Cesium-Examples/libs/vue-cesium/2.1.4/index.umd.min.js
2025-03-11 17:51:04 +08:00

11 lines
533 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* vue-cesium 2.1.4
* Vue 2.x components for CesiumJS.
* Load Cesium built package or other third-party packages which are built on Cesium.
*
* Copyright (c) 2018 zouyaoji <370681295@qq.com>
*
* Released under the MIT License
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define("VueCesium",["vue"],t):(e=e||self).VueCesium=t(e.Vue)}(this,function(a){"use strict";var g=self;a=a&&a.hasOwnProperty("default")?a.default:a;var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==g?g:"undefined"!=typeof self?self:{};function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function t(e,t){return e(t={exports:{}},t.exports),t.exports}function f(i,n,e){if(s(i),void 0===n)return i;switch(e){case 1:return function(e){return i.call(n,e)};case 2:return function(e,t){return i.call(n,e,t)};case 3:return function(e,t,r){return i.call(n,e,t,r)}}return function(){return i.apply(n,arguments)}}function c(e){return"object"==typeof e?null!==e:"function"==typeof e}function v(e){if(!c(e))throw TypeError(e+" is not an object!");return e}function l(e){try{return!!e()}catch(e){return!0}}function n(e){return u?r.createElement(e):{}}function o(e,t){if(!c(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!c(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!c(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!c(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}function C(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function y(e,t){return _.call(e,t)}var b=t(function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)}),w=t(function(e){var t=e.exports={version:"2.6.10"};"number"==typeof __e&&(__e=t)}),s=(w.version,function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}),d=!l(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),r=b.document,u=c(r)&&c(r.createElement),h=!d&&!l(function(){return 7!=Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}),p=Object.defineProperty,m={f:d?Object.defineProperty:function(e,t,r){if(v(e),t=o(t,!0),v(r),h)try{return p(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},M=d?function(e,t,r){return m.f(e,t,C(1,r))}:function(e,t,r){return e[t]=r,e},_={}.hasOwnProperty,x="prototype",P=function(e,t,r){var i,n,o,a=e&P.F,s=e&P.G,c=e&P.S,l=e&P.P,u=e&P.B,h=e&P.W,d=s?w:w[t]||(w[t]={}),p=d[x],m=s?b:c?b[t]:(b[t]||{})[x];for(i in s&&(r=t),r)(n=!a&&m&&void 0!==m[i])&&y(d,i)||(o=n?m[i]:r[i],d[i]=s&&"function"!=typeof m[i]?r[i]:u&&n?f(o,b):h&&m[i]==o?function(i){function e(e,t,r){if(this instanceof i){switch(arguments.length){case 0:return new i;case 1:return new i(e);case 2:return new i(e,t)}return new i(e,t,r)}return i.apply(this,arguments)}return e[x]=i[x],e}(o):l&&"function"==typeof o?f(Function.call,o):o,l&&((d.virtual||(d.virtual={}))[i]=o,e&P.R&&p&&!p[i]&&M(p,i,o)))};P.F=1,P.G=2,P.S=4,P.P=8,P.B=16,P.W=32,P.U=64,P.R=128;var S=P;S(S.S+S.F*!d,"Object",{defineProperty:m.f});function E(e){return N.call(e).slice(8,-1)}function T(e){if(null==e)throw TypeError("Can't call method on "+e);return e}function O(e){return G(T(e))}function k(e){return isNaN(e=+e)?0:(0<e?B:z)(e)}function R(e){return 0<e?V(k(e),9007199254740991):0}function F(e){return"Symbol(".concat(void 0===e?"":e,")_",(++H+$).toString(36))}function L(e){return Z[e]||(Z[e]=F(e))}function I(e,t){var r,i=O(e),n=0,o=[];for(r in i)r!=X&&y(i,r)&&o.push(r);for(;t.length>n;)y(i,r=t[n++])&&(~K(o,r)||o.push(r));return o}var j,A=w.Object,D=function(e,t,r){return A.defineProperty(e,t,r)},N={}.toString,G=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==E(e)?e.split(""):Object(e)},z=Math.ceil,B=Math.floor,V=Math.min,q=Math.max,W=Math.min,U=t(function(e){var t="__core-js_shared__",r=b[t]||(b[t]={});(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:w.version,mode:"pure",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),H=0,$=Math.random(),Z=U("keys"),K=(j=!1,function(e,t,r){var i,n,o,a=O(e),s=R(a.length),c=(n=s,(i=k(i=r))<0?q(i+n,0):W(i,n));if(j&&t!=t){for(;c<s;)if((o=a[c++])!=o)return!0}else for(;c<s;c++)if((j||c in a)&&a[c]===t)return j||c||0;return!j&&-1}),X=L("IE_PROTO"),J="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Y=Object.keys||function(e){return I(e,J)},Q=d?Object.defineProperties:function(e,t){v(e);for(var r,i=Y(t),n=i.length,o=0;o<n;)m.f(e,r=i[o++],t[r]);return e};S(S.S+S.F*!d,"Object",{defineProperties:Q});var ee=w.Object,te=function(e,t){return ee.defineProperties(e,t)},re=J.concat("length","prototype"),ie={f:Object.getOwnPropertyNames||function(e){return I(e,re)}},ne={f:Object.getOwnPropertySymbols},oe=b.Reflect,ae=oe&&oe.ownKeys||function(e){var t=ie.f(v(e)),r=ne.f;return r?t.concat(r(e)):t},se={f:{}.propertyIsEnumerable},ce=Object.getOwnPropertyDescriptor,le={f:d?ce:function(e,t){if(e=O(e),t=o(t,!0),h)try{return ce(e,t)}catch(e){}if(y(e,t))return C(!se.f.call(e,t),e[t])}};S(S.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,r,i,n,o,a=O(e),s=le.f,c=ae(a),l={},u=0;c.length>u;)void 0!==(r=s(a,t=c[u++]))&&(o=r,(n=t)in(i=l)?m.f(i,n,C(0,o)):i[n]=o);return l}});function ue(e,t){var r=(w.Object||{})[e]||Object[e],i={};i[e]=t(r),S(S.S+S.F*l(function(){r(1)}),"Object",i)}var he=w.Object.getOwnPropertyDescriptors,de=le.f;ue("getOwnPropertyDescriptor",function(){return function(e,t){return de(O(e),t)}});function pe(e,t,r){e&&!y(e=r?e:e.prototype,Oe)&&Te(e,Oe,{configurable:!0,value:t})}function me(e){var t=w.Symbol||(w.Symbol={});"_"==e.charAt(0)||e in t||Re(t,e,{value:ke.f(e)})}function fe(e){return Object(T(e))}function ve(){}function ge(e){var t=tt[e]=Ne($e[Xe]);return t._k=e,t}function ye(e,t){v(e);for(var r,i=function(e){var t=Y(e),r=ne.f;if(r)for(var i,n=r(e),o=se.f,a=0;n.length>a;)o.call(e,i=n[a++])&&t.push(i);return t}(t=O(t)),n=0,o=i.length;n<o;)lt(e,r=i[n++],t[r]);return e}function be(e){var t=Qe.call(this,e=o(e,!0));return!(this===it&&y(tt,e)&&!y(rt,e))&&(!(t||!y(this,e)||!y(tt,e)||y(this,Je)&&this[Je][e])||t)}function we(e,t){if(e=O(e),t=o(t,!0),e!==it||!y(tt,t)||y(rt,t)){var r=We(e,t);return!r||!y(tt,t)||y(e,Je)&&e[Je][t]||(r.enumerable=!0),r}}function _e(e){for(var t,r=He(O(e)),i=[],n=0;r.length>n;)y(tt,t=r[n++])||t==Je||t==qe||i.push(t);return i}function Ce(e){for(var t,r=e===it,i=He(r?rt:O(e)),n=[],o=0;i.length>o;)!y(tt,t=i[o++])||r&&!y(it,t)||n.push(tt[t]);return n}var Me=w.Object,xe=function(e,t){return Me.getOwnPropertyDescriptor(e,t)},Pe=M,Se=t(function(e){function r(e){t(e,i,{value:{i:"O"+ ++n,w:{}}})}var i=F("meta"),t=m.f,n=0,o=Object.isExtensible||function(){return!0},a=!l(function(){return o(Object.preventExtensions({}))}),s=e.exports={KEY:i,NEED:!1,fastKey:function(e,t){if(!c(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!y(e,i)){if(!o(e))return"F";if(!t)return"E";r(e)}return e[i].i},getWeak:function(e,t){if(!y(e,i)){if(!o(e))return!0;if(!t)return!1;r(e)}return e[i].w},onFreeze:function(e){return a&&s.NEED&&o(e)&&!y(e,i)&&r(e),e}}}),Ee=(Se.KEY,Se.NEED,Se.fastKey,Se.getWeak,Se.onFreeze,t(function(e){var t=U("wks"),r=b.Symbol,i="function"==typeof r;(e.exports=function(e){return t[e]||(t[e]=i&&r[e]||(i?r:F)("Symbol."+e))}).store=t})),Te=m.f,Oe=Ee("toStringTag"),ke={f:Ee},Re=m.f,Fe=Array.isArray||function(e){return"Array"==E(e)},Le=b.document,Ie=Le&&Le.documentElement,je=L("IE_PROTO"),Ae="prototype",De=function(){var e,t=n("iframe"),r=J.length;for(t.style.display="none",Ie.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),De=e.F;r--;)delete De[Ae][J[r]];return De()},Ne=Object.create||function(e,t){var r;return null!==e?(ve[Ae]=v(e),r=new ve,ve[Ae]=null,r[je]=e):r=De(),void 0===t?r:Q(r,t)},Ge=ie.f,ze={}.toString,Be="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ve={f:function(e){return Be&&"[object Window]"==ze.call(e)?function(e){try{return Ge(e)}catch(e){return Be.slice()}}(e):Ge(O(e))}},qe=Se.KEY,We=le.f,Ue=m.f,He=Ve.f,$e=b.Symbol,Ze=b.JSON,Ke=Ze&&Ze.stringify,Xe="prototype",Je=Ee("_hidden"),Ye=Ee("toPrimitive"),Qe={}.propertyIsEnumerable,et=U("symbol-registry"),tt=U("symbols"),rt=U("op-symbols"),it=Object[Xe],nt="function"==typeof $e&&!!ne.f,ot=b.QObject,at=!ot||!ot[Xe]||!ot[Xe].findChild,st=d&&l(function(){return 7!=Ne(Ue({},"a",{get:function(){return Ue(this,"a",{value:7}).a}})).a})?function(e,t,r){var i=We(it,t);i&&delete it[t],Ue(e,t,r),i&&e!==it&&Ue(it,t,i)}:Ue,ct=nt&&"symbol"==typeof $e.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof $e},lt=function(e,t,r){return e===it&&lt(rt,t,r),v(e),t=o(t,!0),v(r),y(tt,t)?(r.enumerable?(y(e,Je)&&e[Je][t]&&(e[Je][t]=!1),r=Ne(r,{enumerable:C(0,!1)})):(y(e,Je)||Ue(e,Je,C(1,{})),e[Je][t]=!0),st(e,t,r)):Ue(e,t,r)};nt||(Pe(($e=function(e){if(this instanceof $e)throw TypeError("Symbol is not a constructor!");var t=F(0<arguments.length?e:void 0),r=function(e){this===it&&r.call(rt,e),y(this,Je)&&y(this[Je],t)&&(this[Je][t]=!1),st(this,t,C(1,e))};return d&&at&&st(it,t,{configurable:!0,set:r}),ge(t)})[Xe],"toString",function(){return this._k}),le.f=we,m.f=lt,ie.f=Ve.f=_e,se.f=be,ne.f=Ce,ke.f=function(e){return ge(Ee(e))}),S(S.G+S.W+S.F*!nt,{Symbol:$e});for(var ut="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ht=0;ut.length>ht;)Ee(ut[ht++]);for(var dt=Y(Ee.store),pt=0;dt.length>pt;)me(dt[pt++]);S(S.S+S.F*!nt,"Symbol",{for:function(e){return y(et,e+="")?et[e]:et[e]=$e(e)},keyFor:function(e){if(!ct(e))throw TypeError(e+" is not a symbol!");for(var t in et)if(et[t]===e)return t},useSetter:function(){at=!0},useSimple:function(){at=!1}}),S(S.S+S.F*!nt,"Object",{create:function(e,t){return void 0===t?Ne(e):ye(Ne(e),t)},defineProperty:lt,defineProperties:ye,getOwnPropertyDescriptor:we,getOwnPropertyNames:_e,getOwnPropertySymbols:Ce});var mt=l(function(){ne.f(1)});S(S.S+S.F*mt,"Object",{getOwnPropertySymbols:function(e){return ne.f(fe(e))}}),Ze&&S(S.S+S.F*(!nt||l(function(){var e=$e();return"[null]"!=Ke([e])||"{}"!=Ke({a:e})||"{}"!=Ke(Object(e))})),"JSON",{stringify:function(e){for(var t,r,i=[e],n=1;n<arguments.length;)i.push(arguments[n++]);if(r=t=i[1],(c(t)||void 0!==e)&&!ct(e))return Fe(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!ct(t))return t}),i[1]=t,Ke.apply(Ze,i)}}),$e[Xe][Ye]||M($e[Xe],Ye,$e[Xe].valueOf),pe($e,"Symbol"),pe(Math,"Math",!0),pe(b.JSON,"JSON",!0);var ft=w.Object.getOwnPropertySymbols;ue("keys",function(){return function(e){return Y(fe(e))}});var vt=w.Object.keys;function gt(e,t,r){return t in e?D(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yt(e,t){return{value:t,done:!!e}}var bt={},wt={};M(wt,Ee("iterator"),function(){return this});function _t(){return this}function Ct(e,t,r,i,n,o,a){var s,c,l;function u(e){if(!Et&&e in g)return g[e];switch(e){case"keys":case Tt:return function(){return new r(this,e)}}return function(){return new r(this,e)}}c=t,l=i,(s=r).prototype=Ne(wt,{next:C(1,l)}),pe(s,c+" Iterator");var h,d,p,m=t+" Iterator",f=n==Tt,v=!1,g=e.prototype,y=g[St]||g["@@iterator"]||n&&g[n],b=y||u(n),w=n?f?u("entries"):b:void 0,_="Array"==t&&g.entries||y;if(_&&(p=Pt(_.call(new e)))!==Object.prototype&&p.next&&pe(p,m,!0),f&&y&&y.name!==Tt&&(v=!0,b=function(){return y.call(this)}),a&&(Et||v||!g[St])&&M(g,St,b),bt[t]=b,bt[m]=_t,n)if(h={values:f?b:u(Tt),keys:o?b:u("keys"),entries:w},a)for(d in h)d in g||Pe(g,d,h[d]);else S(S.P+S.F*(Et||v),t,h);return h}var Mt=L("IE_PROTO"),xt=Object.prototype,Pt=Object.getPrototypeOf||function(e){return e=fe(e),y(e,Mt)?e[Mt]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?xt:null},St=Ee("iterator"),Et=!([].keys&&"next"in[].keys()),Tt="values";Ct(Array,"Array",function(e,t){this._t=O(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,yt(1)):yt(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])},"values");bt.Arguments=bt.Array;for(var Ot=Ee("toStringTag"),kt="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),Rt=0;Rt<kt.length;Rt++){var Ft=kt[Rt],Lt=b[Ft],It=Lt&&Lt.prototype;It&&!It[Ot]&&M(It,Ot,Ft),bt[Ft]=bt.Array}var jt,At=(jt=!0,function(e,t){var r,i,n=String(T(e)),o=k(t),a=n.length;return o<0||a<=o?jt?"":void 0:(r=n.charCodeAt(o))<55296||56319<r||o+1===a||(i=n.charCodeAt(o+1))<56320||57343<i?jt?n.charAt(o):r:jt?n.slice(o,o+2):i-56320+(r-55296<<10)+65536});Ct(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=At(t,r),this._i+=e.length,{value:e,done:!1})});function Dt(e){var t,r,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),Ut))?r:Ht?E(t):"Object"==(i=E(t))&&"function"==typeof t.callee?"Arguments":i}function Nt(t,e,r,i){try{return i?e(v(r)[0],r[1]):e(r)}catch(e){var n=t.return;throw void 0!==n&&v(n.call(t)),e}}function Gt(e,t){var r,i=v(e).constructor;return void 0===i||null==(r=v(i)[er])?t:s(r)}function zt(){var e,t=+this;sr.hasOwnProperty(t)&&(e=sr[t],delete sr[t],e())}function Bt(e){zt.call(e.data)}var Vt,qt,Wt,Ut=Ee("toStringTag"),Ht="Arguments"==E(function(){return arguments}()),$t=Ee("iterator"),Zt=w.getIteratorMethod=function(e){if(null!=e)return e[$t]||e["@@iterator"]||bt[Dt(e)]},Kt=w.getIterator=function(e){var t=Zt(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return v(t.call(e))},Xt=t(function(e){var t=function(o){var c,e=Object.prototype,l=e.hasOwnProperty,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",r=t.asyncIterator||"@@asyncIterator",i=t.toStringTag||"@@toStringTag";function a(e,t,r,i){var o,a,s,c,n=t&&t.prototype instanceof g?t:g,l=Object.create(n.prototype),u=new E(i||[]);return l._invoke=(o=e,a=r,s=u,c=d,function(e,t){if(c===m)throw new Error("Generator is already running");if(c===f){if("throw"===e)throw t;return O()}for(s.method=e,s.arg=t;;){var r=s.delegate;if(r){var i=x(r,s);if(i){if(i===v)continue;return i}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(c===d)throw c=f,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);c=m;var n=h(o,a,s);if("normal"===n.type){if(c=s.done?f:p,n.arg===v)continue;return{value:n.arg,done:s.done}}"throw"===n.type&&(c=f,s.method="throw",s.arg=n.arg)}}),l}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}o.wrap=a;var d="suspendedStart",p="suspendedYield",m="executing",f="completed",v={};function g(){}function s(){}function u(){}var y={};y[n]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(T([])));w&&w!==e&&l.call(w,n)&&(y=w);var _=u.prototype=g.prototype=Object.create(y);function C(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function M(c){var t;this._invoke=function(r,i){function e(){return new Promise(function(e,t){!function t(e,r,i,n){var o=h(c[e],c,r);if("throw"!==o.type){var a=o.arg,s=a.value;return s&&"object"==typeof s&&l.call(s,"__await")?Promise.resolve(s.__await).then(function(e){t("next",e,i,n)},function(e){t("throw",e,i,n)}):Promise.resolve(s).then(function(e){a.value=e,i(a)},function(e){return t("throw",e,i,n)})}n(o.arg)}(r,i,e,t)})}return t=t?t.then(e,e):e()}}function x(e,t){var r=e.iterator[t.method];if(r===c){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=c,x(e,t),"throw"===t.method))return v;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=h(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,v;var n=i.arg;return n?n.done?(t[e.resultName]=n.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=c),t.delegate=null,v):n:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function T(t){if(t){var e=t[n];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(l.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=c,e.done=!0,e};return i.next=i}}return{next:O}}function O(){return{value:c,done:!0}}return s.prototype=_.constructor=u,u.constructor=s,u[i]=s.displayName="GeneratorFunction",o.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===s||"GeneratorFunction"===(t.displayName||t.name))},o.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,i in e||(e[i]="GeneratorFunction")),e.prototype=Object.create(_),e},o.awrap=function(e){return{__await:e}},C(M.prototype),M.prototype[r]=function(){return this},o.AsyncIterator=M,o.async=function(e,t,r,i){var n=new M(a(e,t,r,i));return o.isGeneratorFunction(t)?n:n.next().then(function(e){return e.done?e.value:n.next()})},C(_),_[i]="Generator",_[n]=function(){return this},_.toString=function(){return"[object Generator]"},o.keys=function(r){var i=[];for(var e in r)i.push(e);return i.reverse(),function e(){for(;i.length;){var t=i.pop();if(t in r)return e.value=t,e.done=!1,e}return e.done=!0,e}},o.values=T,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=c,this.done=!1,this.delegate=null,this.method="next",this.arg=c,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&l.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=c)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var i=this;function e(e,t){return o.type="throw",o.arg=r,i.next=e,t&&(i.method="next",i.arg=c),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t],o=n.completion;if("root"===n.tryLoc)return e("end");if(n.tryLoc<=this.prev){var a=l.call(n,"catchLoc"),s=l.call(n,"finallyLoc");if(a&&s){if(this.prev<n.catchLoc)return e(n.catchLoc,!0);if(this.prev<n.finallyLoc)return e(n.finallyLoc)}else if(a){if(this.prev<n.catchLoc)return e(n.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return e(n.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;0<=r;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&l.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var n=i;break}}n&&("break"===e||"continue"===e)&&n.tryLoc<=t&&t<=n.finallyLoc&&(n=null);var o=n?n.completion:{};return o.type=e,o.arg=t,n?(this.method="next",this.next=n.finallyLoc,v):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var i,n=r.completion;return"throw"===n.type&&(i=n.arg,S(r)),i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=c),v}},o}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}}),Jt=Ee("iterator"),Yt=Array.prototype,Qt=t(function(e){var p={},m={},t=e.exports=function(e,t,r,i,n){var o,a,s,c,l,u=n?function(){return e}:Zt(e),h=f(r,i,t?2:1),d=0;if("function"!=typeof u)throw TypeError(e+" is not iterable!");if(void 0===(l=u)||bt.Array!==l&&Yt[Jt]!==l){for(s=u.call(e);!(a=s.next()).done;)if((c=Nt(s,h,a.value,t))===p||c===m)return c}else for(o=R(e.length);d<o;d++)if((c=t?h(v(a=e[d])[0],a[1]):h(e[d]))===p||c===m)return c};t.BREAK=p,t.RETURN=m}),er=Ee("species"),tr=b.process,rr=b.setImmediate,ir=b.clearImmediate,nr=b.MessageChannel,or=b.Dispatch,ar=0,sr={},cr="onreadystatechange";rr&&ir||(rr=function(e){for(var t=[],r=1;r<arguments.length;)t.push(arguments[r++]);return sr[++ar]=function(){!function(e,t,r){var i=void 0===r;switch(t.length){case 0:return i?e():e.call(r);case 1:return i?e(t[0]):e.call(r,t[0]);case 2:return i?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return i?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return i?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3])}e.apply(r,t)}("function"==typeof e?e:Function(e),t)},Vt(ar),ar},ir=function(e){delete sr[e]},"process"==E(tr)?Vt=function(e){tr.nextTick(f(zt,e,1))}:or&&or.now?Vt=function(e){or.now(f(zt,e,1))}:nr?(Wt=(qt=new nr).port2,qt.port1.onmessage=Bt,Vt=f(Wt.postMessage,Wt,1)):b.addEventListener&&"function"==typeof postMessage&&!b.importScripts?(Vt=function(e){b.postMessage(e+"","*")},b.addEventListener("message",Bt,!1)):Vt=cr in n("script")?function(e){Ie.appendChild(n("script"))[cr]=function(){Ie.removeChild(this),zt.call(e)}}:function(e){setTimeout(f(zt,e,1),0)});var lr={set:rr,clear:ir},ur=lr.set,hr=b.MutationObserver||b.WebKitMutationObserver,dr=b.process,pr=b.Promise,mr="process"==E(dr);function fr(e){var r,i;this.promise=new e(function(e,t){if(void 0!==r||void 0!==i)throw TypeError("Bad Promise constructor");r=e,i=t}),this.resolve=s(r),this.reject=s(i)}function vr(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}function gr(e,t){if(v(e),c(t)&&t.constructor===e)return t;var r=yr.f(e);return(0,r.resolve)(t),r.promise}var yr={f:function(e){return new fr(e)}},br=b.navigator,wr=br&&br.userAgent||"",_r=Ee("species"),Cr=Ee("iterator"),Mr=!1;try{var xr=[7][Cr]();xr.return=function(){Mr=!0},Array.from(xr,function(){throw 2})}catch(e){}var Pr,Sr,Er,Tr,Or,kr,Rr=lr.set,Fr=(Tr=mr?function(){dr.nextTick(Lr)}:!hr||b.navigator&&b.navigator.standalone?pr&&pr.resolve?(Er=pr.resolve(void 0),function(){Er.then(Lr)}):function(){ur.call(b,Lr)}:(Or=!0,kr=document.createTextNode(""),new hr(Lr).observe(kr,{characterData:!0}),function(){kr.data=Or=!Or}),function(e){var t={fn:e,next:void 0};Sr&&(Sr.next=t),Pr||(Pr=t,Tr()),Sr=t});function Lr(){var e,t;for(mr&&(e=dr.domain)&&e.exit();Pr;){t=Pr.fn,Pr=Pr.next;try{t()}catch(e){throw Pr?Tr():Sr=void 0,e}}Sr=void 0,e&&e.enter()}function Ir(){}function jr(e){var t;return!(!c(e)||"function"!=typeof(t=e.then))&&t}function Ar(u,r){var i;u._n||(u._n=!0,i=u._c,Fr(function(){for(var c=u._v,l=1==u._s,e=0,t=function(e){var t,r,i,n=l?e.ok:e.fail,o=e.resolve,a=e.reject,s=e.domain;try{n?(l||(2==u._h&&ti(u),u._h=1),!0===n?t=c:(s&&s.enter(),t=n(c),s&&(s.exit(),i=!0)),t===e.promise?a(Ur("Promise-chain cycle")):(r=jr(t))?r.call(t,o,a):o(t)):a(c)}catch(e){s&&!i&&s.exit(),a(e)}};i.length>e;)t(i[e++]);u._c=[],u._n=!1,r&&!u._h&&Qr(u)}))}function Dr(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),Ar(t,!0))}var Nr,Gr,zr,Br,Vr,qr,Wr="Promise",Ur=b.TypeError,Hr=b.process,$r=Hr&&Hr.versions,Zr=$r&&$r.v8||"",Kr=b[Wr],Xr="process"==Dt(Hr),Jr=Gr=yr.f,Yr=!!function(){try{var e=Kr.resolve(1),t=(e.constructor={})[Ee("species")]=function(e){e(Ir,Ir)};return(Xr||"function"==typeof PromiseRejectionEvent)&&e.then(Ir)instanceof t&&0!==Zr.indexOf("6.6")&&-1===wr.indexOf("Chrome/66")}catch(e){}}(),Qr=function(o){Rr.call(b,function(){var e,t,r,i=o._v,n=ei(o);if(n&&(e=vr(function(){Xr?Hr.emit("unhandledRejection",i,o):(t=b.onunhandledrejection)?t({promise:o,reason:i}):(r=b.console)&&r.error&&r.error("Unhandled promise rejection",i)}),o._h=Xr||ei(o)?2:1),o._a=void 0,n&&e.e)throw e.v})},ei=function(e){return 1!==e._h&&0===(e._a||e._c).length},ti=function(t){Rr.call(b,function(){var e;Xr?Hr.emit("rejectionHandled",t):(e=b.onrejectionhandled)&&e({promise:t,reason:t._v})})},ri=function(e){var r,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===e)throw Ur("Promise can't be resolved itself");(r=jr(e))?Fr(function(){var t={_w:i,_d:!1};try{r.call(e,f(ri,t,1),f(Dr,t,1))}catch(e){Dr.call(t,e)}}):(i._v=e,i._s=1,Ar(i,!1))}catch(e){Dr.call({_w:i,_d:!1},e)}}};Yr||(Kr=function(e){!function(e,t,r,i){if(!(e instanceof t)||void 0!==i&&i in e)throw TypeError(r+": incorrect invocation!")}(this,Kr,Wr,"_h"),s(e),Nr.call(this);try{e(f(ri,this,1),f(Dr,this,1))}catch(e){Dr.call(this,e)}},(Nr=function(){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=function(e,t,r){for(var i in t)r&&e[i]?e[i]=t[i]:M(e,i,t[i]);return e}(Kr.prototype,{then:function(e,t){var r=Jr(Gt(this,Kr));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=Xr?Hr.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&Ar(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),zr=function(){var e=new Nr;this.promise=e,this.resolve=f(ri,e,1),this.reject=f(Dr,e,1)},yr.f=Jr=function(e){return e===Kr||e===Br?new zr:Gr(e)}),S(S.G+S.W+S.F*!Yr,{Promise:Kr}),pe(Kr,Wr),qr="function"==typeof w[Vr=Wr]?w[Vr]:b[Vr],d&&qr&&!qr[_r]&&m.f(qr,_r,{configurable:!0,get:function(){return this}}),Br=w[Wr],S(S.S+S.F*!Yr,Wr,{reject:function(e){var t=Jr(this);return(0,t.reject)(e),t.promise}}),S(S.S+!0*S.F,Wr,{resolve:function(e){return gr(this===Br?Kr:this,e)}}),S(S.S+S.F*!(Yr&&function(e,t){if(!t&&!Mr)return!1;var r=!1;try{var i=[7],n=i[Cr]();n.next=function(){return{done:r=!0}},i[Cr]=function(){return n},e(i)}catch(e){}return r}(function(e){Kr.all(e).catch(Ir)})),Wr,{all:function(e){var a=this,t=Jr(a),s=t.resolve,c=t.reject,r=vr(function(){var i=[],n=0,o=1;Qt(e,!1,function(e){var t=n++,r=!1;i.push(void 0),o++,a.resolve(e).then(function(e){r||(r=!0,i[t]=e,--o||s(i))},c)}),--o||s(i)});return r.e&&c(r.v),t.promise},race:function(e){var t=this,r=Jr(t),i=r.reject,n=vr(function(){Qt(e,!1,function(e){t.resolve(e).then(r.resolve,i)})});return n.e&&i(n.v),r.promise}}),S(S.P+S.R,"Promise",{finally:function(t){var r=Gt(this,w.Promise||b.Promise),e="function"==typeof t;return this.then(e?function(e){return gr(r,t()).then(function(){return e})}:t,e?function(e){return gr(r,t()).then(function(){throw e})}:t)}}),S(S.S,"Promise",{try:function(e){var t=yr.f(this),r=vr(e);return(r.e?t.reject:t.resolve)(r.v),t.promise}});var ii=w.Promise,ni={"vc-viewer":["selectedEntityChanged","trackedEntityChanged"],"viewer-property-events":[{name:"imageryLayers",events:["layerAdded","layerMoved","layerRemoved","layerShownOrHidden"]},{name:"dataSources",events:["dataSourceAdded","dataSourceMoved","dataSourceRemoved"]},{name:"entities",events:["collectionChanged"]},{name:"scene",events:["morphComplete","morphStart","postRender","postUpdate","preRender","preUpdate","renderError","terrainProviderChanged"]},{name:"camera",events:["changed","moveEnd","moveStart"]},{name:"clock",events:["onStop","onTick"]},{name:"terrainProvider",events:["errorEvent"]},{name:["infoBox","viewModel"],events:["cameraClicked","closeClicked"]}],"viewer-mouse-events":["LEFT_CLICK","LEFT_DOUBLE_CLICK","LEFT_DOWN","LEFT_UP","MIDDLE_CLICK","MIDDLE_DOWN","MIDDLE_UP","MOUSE_MOVE","PINCH_END","PINCH_MOVE","PINCH_START","RIGHT_CLICK","RIGHT_DOWN","RIGHT_UP","WHEEL"],"vc-primitive-tileset":["allTilesLoaded","initialTilesLoaded","loadProgress","tileFailed","tileLoad","tileUnload","tileVisible"],"vc-primitive-particle":["complete"],"imagery-layer-events":["errorEvent"],"entity-events":["definitionChanged"],"datasource-events":["changedEvent","errorEvent","loadingEvent"],"datasource-property-events":[{name:"clock",events:["definitionChanged"]},{name:"clustering",events:["clusterEvent"]},{name:"entities",events:["collectionChanged"]}]},oi=ke.f("iterator");me("asyncIterator"),me("observable");var ai=w.Symbol;function si(e){return(si="function"==typeof ai&&"symbol"==typeof oi?function(e){return typeof e}:function(e){return e&&"function"==typeof ai&&e.constructor===ai&&e!==ai.prototype?"symbol":typeof e})(e)}function ci(e){return(ci="function"==typeof ai&&"symbol"===si(oi)?function(e){return si(e)}:function(e){return e&&"function"==typeof ai&&e.constructor===ai&&e!==ai.prototype?"symbol":si(e)})(e)}function li(e,t){if(null===e||"object"!==ci(e))return e;t=t||!1;var r,i=new e.constructor;for(var n in e){e.hasOwnProperty(n)&&(r=e[n],t&&(r=li(r,t)),i[n]=r)}return i}var ui=Object.prototype.toString,hi=function(e){return e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}).replace(/^-/,"")};function di(e){for(var t in e)return!1;return!0}function pi(e){return"[object Array]"===ui.call(e)}function mi(e){return"string"==typeof e}function fi(e){return"[object Function]"===ui.call(e)}function vi(){var e=navigator.userAgent,t=/(?:Windows Phone)/.test(e),r=/(?:SymbianOS)/.test(e)||t,i=/(?:Android)/.test(e),n=/(?:Firefox)/.test(e),o=/(?:Chrome|CriOS)/.test(e),a=/(?:iPad|PlayBook)/.test(e)||i&&!/(?:Mobile)/.test(e)||n&&/(?:Tablet)/.test(e),s=/(?:iPhone)/.test(e)&&!a;return{isTablet:a,isPhone:s,isAndroid:i,isPc:!s&&!i&&!r,isChrome:o}}function gi(i,e){var n=this,o=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],t=e||ni[hi(this.$options.name)];t&&t.forEach(function(e){var t,r;i[e]&&(t=n.$listeners[e],r=o?"addEventListener":"removeEventListener",t&&i[e][r](t.fns))})}var yi=function(r,i,n){if(!r)throw new TypeError("argument dest is required");if(!i)throw new TypeError("argument src is required");void 0===n&&(n=!0);return Object.getOwnPropertyNames(i).forEach(function(e){var t;!n&&bi.call(r,e)||(t=Object.getOwnPropertyDescriptor(i,e),Object.defineProperty(r,e,t))}),r},bi=Object.prototype.hasOwnProperty;function wi(){for(var i,e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"object"!==ci(t[t.length-1])&&(i=t.pop()),t.slice(1).reduce(function(e,t,r){return yi(e,t,i)},t[0])}var _i="services",Ci={inject:{$services:_i},provide:function(){return gt({},_i,this.getServices())},methods:{getServices:function(){return wi({},this.$services||{})},removeNullItem:Mi,isEmptyObj:di},beforeCreate:function(){for(var e=this.$parent;e&&(null==e._provided||null==e._provided[_i]);)e=e.$parent;null!=e&&null!=e._provided[_i]||delete this.$options.inject.$services}};function Mi(e,t,r){var i={}.toString.call(e);"[object Array]"===i?function(e){for(var t=e.length-1;0<=t;t--)"object"===ci(e[t])&&Mi(e[t]);e.length}(e):"[object Object]"===i&&function(e){for(var t in e)(null===e[t]||void 0===e[t]||"object"===ci(e[t])&&di(e[t]))&&delete e[t]}(e)}var xi={name:"vc-viewer",mixins:[Ci],props:{cesiumPath:String,animation:{type:Boolean,default:!1},baseLayerPicker:{type:Boolean,default:!1},fullscreenButton:{type:Boolean,default:!1},vrButton:{type:Boolean,default:!1},geocoder:{type:Boolean,default:!1},homeButton:{type:Boolean,default:!1},infoBox:{type:Boolean,default:!0},sceneModePicker:{type:Boolean,default:!1},selectionIndicator:{type:Boolean,default:!0},timeline:{type:Boolean,default:!1},navigationHelpButton:{type:Boolean,default:!1},navigationInstructionsInitiallyVisible:{type:Boolean,default:!1},scene3DOnly:{type:Boolean,default:!1},shouldAnimate:{type:Boolean,default:!1},clockViewModel:Object,selectedImageryProviderViewModel:Object,imageryProviderViewModels:Object,selectedTerrainProviderViewModel:Object,terrainProviderViewModels:Object,imageryProvider:Object,terrainProvider:Object,skyBox:Object,skyAtmosphere:Object,fullscreenElement:{type:Element|String},useDefaultRenderLoop:{type:Boolean,default:!0},targetFrameRate:Number,showRenderLoopErrors:{type:Boolean,default:!0},automaticallyTrackDataSourceClocks:{type:Boolean,default:!0},contextOptions:Object,sceneMode:{type:Number,default:3},mapProjection:Object,globe:Object,orderIndependentTranslucency:{type:Boolean,default:!0},creditContainer:String,creditViewport:String,dataSources:Object,terrainExaggeration:{type:Number,default:1},shadows:{type:Boolean,default:!1},terrainShadows:{type:Number,default:3},mapMode2D:{type:Number,default:1},projectionPicker:{type:Boolean,default:!1},requestRenderMode:{type:Boolean,default:!1},maximumRenderTimeChange:{type:Number,default:0},logo:{type:Boolean,default:!0},accessToken:String,camera:{type:Object,default:function(){return{position:{lng:105,lat:29.999999999999993,height:19059568.497290563},heading:360,pitch:-90,roll:0}}},navigation:{type:Boolean,default:!1},TZcode:{type:String,default:0===(new Date).getTimezoneOffset()?"UTC":"UTC+"+-(new Date).getTimezoneOffset()/60},UTCoffset:{type:Number,default:-(new Date).getTimezoneOffset()},removeCesiumScript:{type:Boolean,default:!0}},watch:{selectionIndicator:function(e){var t,r,i,n=this.viewer,o=this.viewerContainer;!Cesium.defined(n.selectionIndicator)||n.selectionIndicator.isDestroyed()||e?Cesium.defined(n.selectionIndicator)&&!n.selectionIndicator.isDestroyed()||((t=document.createElement("div")).className="cesium-viewer-selectionIndicatorContainer",o.appendChild(t),r=new Cesium.SelectionIndicator(t,n.scene),n._selectionIndicator=r):(i=n.selectionIndicator.container,o.removeChild(i),n.selectionIndicator.destroy(),n._selectionIndicator=void 0),n.widgetResized.raiseEvent()},infoBox:function(e){var t,r,i,n,o=this.viewer,a=this.viewerContainer;!Cesium.defined(o.infoBox)||o.infoBox.isDestroyed()||e?Cesium.defined(o.infoBox)&&!o.infoBox.isDestroyed()||((t=document.createElement("div")).className="cesium-viewer-infoBoxContainer",a.appendChild(t),r=new Cesium.InfoBox(t),i=r.viewModel,o._eventHelper.add(i.cameraClicked,o._onInfoBoxCameraClicked,o),o._eventHelper.add(i.closeClicked,o._onInfoBoxClockClicked,o),i&&gi.call(this,i,["cameraClicked","closeClicked"],!0),o._infoBox=r):(n=o.infoBox.container,a.removeChild(n),o.infoBox.destroy(),o._infoBox=void 0),o.forceResize(),o.widgetResized.raiseEvent()},geocoder:function(e){var t,r,i,n=this.viewer,o=this.resizeToolbar,a=n._toolbar;!Cesium.defined(n.geocoder)||n.geocoder.isDestroyed()||e?Cesium.defined(n.geocoder)&&!n.geocoder.isDestroyed()||((t=document.createElement("div")).className="cesium-viewer-geocoderContainer",a.appendChild(t),r=new Cesium.Geocoder({container:t,geocoderServices:Cesium.defined(this.geocoder)?Cesium.isArray(this.geocoder)?this.geocoder:[this.geocoder]:void 0,scene:n.scene,viewer:n}),n._eventHelper.add(r.viewModel.search.beforeExecute,n._clearObjects,n),n._geocoder=r,o(a,t)):(i=n.geocoder.container,a.removeChild(i),n.geocoder.destroy(),n._geocoder=void 0),n.widgetResized.raiseEvent()},homeButton:function(e){var t,r=this.viewer,i=this.resizeToolbar,n=r._toolbar;!Cesium.defined(r.homeButton)||r.homeButton.isDestroyed()||e?Cesium.defined(r.homeButton)&&!r.homeButton.isDestroyed()||(t=new Cesium.HomeButton(n,r.scene),Cesium.defined(r.geocoder)&&r._eventHelper.add(t.viewModel.command.afterExecute,function(){var e=r.geocoder.viewModel;e.searchText="",e.isSearchInProgress&&e.search()}),r._eventHelper.add(t.viewModel.command.beforeExecute,r._clearTrackedObject,r),i(n,r._homeButton=t)):(r.homeButton.destroy(),r._homeButton=void 0),r.widgetResized.raiseEvent()},sceneModePicker:function(e){var t,r=this.viewer,i=this.resizeToolbar,n=r._toolbar;if(!Cesium.defined(r.sceneModePicker)||r.sceneModePicker.isDestroyed()||e){if(!Cesium.defined(r.sceneModePicker)||r.sceneModePicker.isDestroyed()){if(!0===this.sceneModePicker&&this.scene3DOnly)throw new Cesium.DeveloperError("options.sceneModePicker is not available when options.scene3DOnly is set to true.");this.scene3DOnly||!0!==this.sceneModePicker||(t=new Cesium.SceneModePicker(n,r.scene),i(n,r._sceneModePicker=t))}}else r.sceneModePicker.destroy(),r._sceneModePicker=void 0;r.widgetResized.raiseEvent()},projectionPicker:function(e){var t,r=this.viewer,i=this.resizeToolbar,n=r._toolbar;!Cesium.defined(r.projectionPicker)||r.projectionPicker.isDestroyed()||e?Cesium.defined(r.projectionPicker)&&!r.projectionPicker.isDestroyed()||(t=new Cesium.ProjectionPicker(n,r.scene),i(n,r._projectionPicker=t)):(r.projectionPicker.destroy(),r._projectionPicker=void 0),r.widgetResized.raiseEvent()},baseLayerPicker:function(e){var t=this.viewer,r=this.resizeToolbar,i=t._toolbar;if(!Cesium.defined(t.baseLayerPicker)||t.baseLayerPicker.isDestroyed()||e){if(!Cesium.defined(t.baseLayerPicker)||t.baseLayerPicker.isDestroyed()){var n,o,a,s,c=!(Cesium.defined(t.globe)&&!1===this.globe||Cesium.defined(t.baseLayerPicker)&&!1===this.baseLayerPicker);if(c&&Cesium.defined(this.imageryProvider))throw new Cesium.DeveloperError("options.imageryProvider is not available when using the BaseLayerPicker widget.\nEither specify options.selectedImageryProviderViewModel instead or set options.baseLayerPicker to false.");if(!c&&Cesium.defined(this.selectedImageryProviderViewModel))throw new Cesium.DeveloperError("options.selectedImageryProviderViewModel is not available when not using the BaseLayerPicker widget.\nEither specify options.imageryProvider instead or set options.baseLayerPicker to true.");if(c&&Cesium.defined(this.terrainProvider))throw new Cesium.DeveloperError("options.terrainProvider is not available when using the BaseLayerPicker widget.\nEither specify options.selectedTerrainProviderViewModel instead or set options.baseLayerPicker to false.");if(!c&&Cesium.defined(this.selectedTerrainProviderViewModel))throw new Cesium.DeveloperError("options.selectedTerrainProviderViewModel is not available when not using the BaseLayerPicker widget.\nEither specify options.terrainProvider instead or set options.baseLayerPicker to true.");c&&(n=Cesium.defaultValue(this.imageryProviderViewModels,Cesium.createDefaultImageryProviderViewModels()),o=Cesium.defaultValue(this.terrainProviderViewModels,Cesium.createDefaultTerrainProviderViewModels()),a=new Cesium.BaseLayerPicker(i,{globe:t.scene.globe,imageryProviderViewModels:n,selectedImageryProviderViewModel:n[0],terrainProviderViewModels:o,selectedTerrainProviderViewModel:o[0]}),s=i.getElementsByClassName("cesium-baseLayerPicker-dropDown")[0],t._baseLayerPickerDropDown=s,t._baseLayerPicker=a,t.imageryLayers.raiseToTop(t.imageryLayers.get(0)),r(i,a))}}else t.baseLayerPicker.destroy(),t._baseLayerPicker=void 0,t.imageryLayers.remove(t.imageryLayers.get(t.imageryLayers.length-1));t.widgetResized.raiseEvent()},navigationHelpButton:function(e){var t=this.viewer,r=this.resizeToolbar,i=t._toolbar;if(!Cesium.defined(t.navigationHelpButton)||t.navigationHelpButton.isDestroyed()||e){if(!Cesium.defined(t.navigationHelpButton)||t.navigationHelpButton.isDestroyed()){var n,o=!0;try{Cesium.defined(window.localStorage)&&(n=window.localStorage.getItem("cesium-hasSeenNavHelp"),Cesium.defined(n)&&Boolean(n)?o=!1:window.localStorage.setItem("cesium-hasSeenNavHelp","true"))}catch(e){}var a=new Cesium.NavigationHelpButton({container:i,instructionsInitiallyVisible:Cesium.defaultValue(this.navigationInstructionsInitiallyVisible,o)});r(i,t._navigationHelpButton=a)}}else t.navigationHelpButton.destroy(),t._navigationHelpButton=void 0;t.widgetResized.raiseEvent()},animation:function(e){var t,r,i,n=this.viewer,o=this.viewerContainer;!Cesium.defined(n.animation)||n.animation.isDestroyed()||e?Cesium.defined(n.animation)&&!n.animation.isDestroyed()||((t=document.createElement("div")).className="cesium-viewer-animationContainer",this.viewerContainer.appendChild(t),r=new Cesium.Animation(t,new Cesium.AnimationViewModel(n.clockViewModel)),r.viewModel.dateFormatter=this.localeDateTimeFormatter,r.viewModel.timeFormatter=this.localeTimeFormatter,n._animation=r):(i=n.animation.container,o.removeChild(i),n.animation.destroy(),n._animation=void 0),n.forceResize(),n.widgetResized.raiseEvent()},timeline:function(e){var t,r,i,n=this,o=this.viewer,a=this.viewerContainer,s=this.onTimelineScrubfunction;!Cesium.defined(o.timeline)||o.timeline.isDestroyed()||e?Cesium.defined(o.timeline)&&!o.timeline.isDestroyed()||((t=document.createElement("div")).className="cesium-viewer-timelineContainer",a.appendChild(t),r=new Cesium.Timeline(t,o.clock),r.makeLabel=function(e){return n.localeDateTimeFormatter(e)},r.addEventListener("settime",s,!1),r.zoomTo(o.clock.startTime,o.clock.stopTime),o._timeline=r):(i=o.timeline.container,a.removeChild(i),o.timeline.destroy(),o._timeline=void 0),o.forceResize(),o.widgetResized.raiseEvent()},fullscreenButton:function(e){var t,r,i,n=this.viewer,o=this.viewerContainer;!Cesium.defined(n.fullscreenButton)||n.fullscreenButton.isDestroyed()||e?Cesium.defined(n.fullscreenButton)&&!n.fullscreenButton.isDestroyed()||((t=document.createElement("div")).className="cesium-viewer-fullscreenContainer",o.appendChild(t),r=new Cesium.FullscreenButton(t,this.$refs.viewer),n._fullscreenButton=r):(i=n.fullscreenButton.container,o.removeChild(i),n.fullscreenButton.destroy(),n._fullscreenButton=void 0),n.forceResize(),n.widgetResized.raiseEvent()},fullscreenElement:function(e){var t=this.viewer;Cesium.defined(t.fullscreenButton)&&Cesium.defined(e)&&(this.viewer.fullscreenButton.viewModel.fullscreenElement=e)},vrButton:function(e){var t,r,i,n,o=this.viewer,a=this.enableVRUI;!Cesium.defined(o.vrButton)||o.vrButton.isDestroyed()||e?Cesium.defined(o.vrButton)&&!o.vrButton.isDestroyed()||((t=document.createElement("div")).className="cesium-viewer-vrContainer",viewerContainer.appendChild(t),r=new Cesium.VRButton(t,o.scene,viewerContainer),i=r.viewModel._command,r.viewModel._command=function(e){i(),a(o,e.isVRMode)},o._vrButton=r):(n=o.vrButton.container,viewerContainer.removeChild(n),o.vrButton.destroy(),o._vrButton=void 0),o.forceResize(),o.widgetResized.raiseEvent()},useDefaultRenderLoop:function(e){this.viewer.useDefaultRenderLoop=e},sceneMode:function(e){var t=this.viewer;Cesium.SceneMode.COLUMBUS_VIEW!==e&&Cesium.SceneMode.MORPHING!==e&&Cesium.SceneMode.SCENE2D!==e&&Cesium.SceneMode.SCENE3D!==e||(t.scene.mode=e)},shouldAnimate:function(e){this.viewer.clock.shouldAnimate=e},terrainExaggeration:function(e){this.viewer.scene._terrainExaggeration=e},shadows:function(e){this.viewer.scene.shadowMap.enabled=e},terrainProvider:function(e){this.viewer.terrainProvider=e},camera:{handler:function(e){this.viewer.camera.setView({destination:Cesium.Cartesian3.fromDegrees(e.position.lng,e.position.lat,e.position.height),orientation:{heading:Cesium.Math.toRadians(e.heading||360),pitch:Cesium.Math.toRadians(e.pitch||-90),roll:Cesium.Math.toRadians(e.roll||0)}})},deep:!0},imageryProvider:function(e,t){var r=this.viewer;if(Cesium.defined(e)){for(var i=0;i<r.imageryLayers.length;i++)r.imageryLayers[i].imageryProvider===t&&r.imageryLayers.remove(r.imageryLayers[i]);r.imageryLayers.addImageryProvider(e)}}},methods:{onTimelineScrubfunction:function(e){var t=e.clock;t.currentTime=e.timeJulian,t.shouldAnimate=!1},resizeToolbar:function(e){Array.prototype.slice.call(e.children).forEach(function(e){switch(e.className){case"cesium-viewer-geocoderContainer":e.customIndex=1;break;case"cesium-button cesium-toolbar-button cesium-home-button":e.customIndex=2;break;case"cesium-sceneModePicker-wrapper cesium-toolbar-button":e.customIndex=3;break;case"cesium-projectionPicker-wrapper cesium-toolbar-button":e.customIndex=4;break;case"cesium-button cesium-toolbar-button":case"cesium-baseLayerPicker-dropDown":e.customIndex=5;break;case"cesium-navigationHelpButton-wrapper":e.customIndex=6}});var t=[];Array.prototype.slice.call(e.children).forEach(function(e){t.push(e)}),t.sort(function(e,t){return e.customIndex-t.customIndex});for(var r=0;r<t.length;r++)e.appendChild(t[r])},enableVRUI:function(e,t){var r,i=e._geocoder,n=e._homeButton,o=e._sceneModePicker,a=e._projectionPicker,s=e._baseLayerPicker,c=e._animation,l=e._timeline,u=e._fullscreenButton,h=e._infoBox,d=e._selectionIndicator,p=t?"hidden":"visible";Cesium.defined(i)&&(i.container.style.visibility=p),Cesium.defined(n)&&(n.container.style.visibility=p),Cesium.defined(o)&&(o.container.style.visibility=p),Cesium.defined(a)&&(a.container.style.visibility=p),Cesium.defined(s)&&(s.container.style.visibility=p),Cesium.defined(c)&&(c.container.style.visibility=p),Cesium.defined(l)&&(l.container.style.visibility=p),Cesium.defined(u)&&u.viewModel.isFullscreenEnabled&&(u.container.style.visibility=p),Cesium.defined(h)&&(h.container.style.visibility=p),Cesium.defined(d)&&(d.container.style.visibility=p),e._container&&(r=t||!Cesium.defined(u)?0:u.container.clientWidth,e._vrButton.container.style.right=r+"px",e.forceResize())},init:function(){var i=this;if(this._mounted)return!1;this.Cesium=Cesium;var e=this.$refs.viewer,t=!this.accessToken&&void 0!==this._Cesium&&this._Cesium().hasOwnProperty("accessToken")?this._Cesium().accessToken:this.accessToken;Cesium.Ion.defaultAccessToken=t;var r=this.animation,n=this.baseLayerPicker,o=this.fullscreenButton,a=this.vrButton,s=this.geocoder,c=this.homeButton,l=this.infoBox,u=this.sceneModePicker,h=this.selectionIndicator,d=this.timeline,p=this.navigationHelpButton,m=this.navigationInstructionsInitiallyVisible,f=this.scene3DOnly,v=this.shouldAnimate,g=this.clockViewModel,y=this.selectedImageryProviderViewModel,b=this.imageryProviderViewModels,w=this.selectedTerrainProviderViewModel,_=this.terrainProviderViewModels,C=this.imageryProvider,M=this.terrainProvider,x=this.skyBox,P=this.skyAtmosphere,S=this.fullscreenElement,E=this.useDefaultRenderLoop,T=this.targetFrameRate,O=this.showRenderLoopErrors,k=this.automaticallyTrackDataSourceClocks,R=this.contextOptions,F=this.sceneMode,L=this.mapProjection,I=this.globe,j=this.orderIndependentTranslucency,A=this.creditContainer,D=this.creditViewport,N=this.dataSources,G=this.terrainExaggeration,z=this.shadows,B=this.terrainShadows,V=this.mapMode2D,q=this.projectionPicker,W=this.requestRenderMode,U=this.maximumRenderTimeChange,H=this.navigation,$=this.registerEvents,Z=Cesium.buildModuleUrl("Assets/Textures/NaturalEarthII"),K={animation:r,baseLayerPicker:n,fullscreenButton:o,vrButton:a,geocoder:s,homeButton:c,infoBox:l,sceneModePicker:u,selectionIndicator:h,timeline:d,navigationHelpButton:p,navigationInstructionsInitiallyVisible:m,scene3DOnly:f,shouldAnimate:v,clockViewModel:g,selectedImageryProviderViewModel:y,imageryProviderViewModels:b,selectedTerrainProviderViewModel:w,terrainProviderViewModels:_,imageryProvider:this.isEmptyObj(C)?Cesium.defined(Cesium.TileMapServiceImageryProvider)?new Cesium.TileMapServiceImageryProvider({url:Z}):Cesium.createTileMapServiceImageryProvider({url:Z}):C,terrainProvider:M,skyBox:x,skyAtmosphere:P,fullscreenElement:this.isEmptyObj(S)?this.$refs.viewer:S,useDefaultRenderLoop:E,targetFrameRate:T,showRenderLoopErrors:O,automaticallyTrackDataSourceClocks:k,contextOptions:R,sceneMode:F,mapProjection:L,globe:I,orderIndependentTranslucency:j,creditContainer:A,creditViewport:D,dataSources:N,terrainExaggeration:G,shadows:z,terrainShadows:B,mapMode2D:V,projectionPicker:q,requestRenderMode:W,maximumRenderTimeChange:U,navigation:H};this.removeNullItem(K);var X=new Cesium.Viewer(e,K);Cesium.defined(this.camera)&&X.camera.setView({destination:Cesium.Cartesian3.fromDegrees(this.camera.position.lng,this.camera.position.lat,this.camera.position.height),orientation:{heading:Cesium.Math.toRadians(this.camera.heading||360),pitch:Cesium.Math.toRadians(this.camera.pitch||-90),roll:Cesium.Math.toRadians(this.camera.roll||0)}});var J,Y=this;return X.camera.changed.addEventListener(function(){var e=Y.$listeners["update:camera"],t=X.camera.positionCartographic,r={position:{lng:Cesium.Math.toDegrees(t.longitude),lat:Cesium.Math.toDegrees(t.latitude),height:t.height},heading:Cesium.Math.toDegrees(X.camera.heading),pitch:Cesium.Math.toDegrees(X.camera.pitch),roll:Cesium.Math.toDegrees(X.camera.roll)};e&&i.$emit("update:camera",r)}),Cesium.defined(X.animation)&&(X.animation.viewModel.dateFormatter=this.localeDateTimeFormatter,X.animation.viewModel.timeFormatter=this.localeTimeFormatter),Cesium.defined(X.timeline)&&(X.timeline.makeLabel=function(e){return i.localeDateTimeFormatter(e)},X.timeline.zoomTo(X.clock.startTime,X.clock.stopTime)),this.viewerContainer=X._element,Cesium.defined(Cesium.SuperMapImageryProvider)&&!this.logo&&(J=X.scene.frameState.creditDisplay).container.removeChild(J._imageContainer),this.logo||(X.cesiumWidget.creditContainer.style.display="none"),X.widgetResized=new Cesium.Event,X.imageryLayers.layerAdded.addEventListener(this.layerAdded),this.viewer=X,$(!0),this.$emit("ready",{Cesium:Cesium,viewer:X}),this._mounted=!0,this._resolve({Cesium:Cesium,viewer:X}),{Cesium:Cesium,viewer:X}},layerAdded:function(e){this.viewer.baseLayerPicker&&this.viewer.imageryLayers.raiseToTop(e)},localeDateTimeFormatter:function(e,t,r){this.UTCoffset&&(e=Cesium.JulianDate.addMinutes(e,this.UTCoffset,{}));var i,n=Cesium.JulianDate.toGregorianDate(e);if(r)i="";else{if(i=new Date(n.year,n.month-1,n.day),i="zh-hans"===this.$vc.lang.isoName?n.year+"年"+i.toLocaleString(this.$vc.lang.isoName,{month:"short"})+n.day+"日":n.day+" "+i.toLocaleString(this.$vc.lang.isoName,{month:"short"})+" "+n.year,t||n.hour+n.minute===0)return i;i+=" "}return i+Cesium.sprintf("%02d:%02d:%02d "+this.TZcode,n.hour,n.minute,n.second)},localeTimeFormatter:function(e,t){return this.localeDateTimeFormatter(e,t,!0)},registerEvents:function(r){var i=this,n=this.viewer;gi.call(this,n,void 0,r),ni["viewer-property-events"].forEach(function(e){var t=pi(e.name)&&n[e.name[0]]?n[e.name[0]][e.name[1]]:n[e.name];t&&gi.call(i,t,e.events,r)});var o=new Cesium.ScreenSpaceEventHandler(n.canvas);ni["viewer-mouse-events"].forEach(function(e){var t=i.$listeners[e];t&&o[r?"setInputAction":"removeInputAction"](t.fns,Cesium.ScreenSpaceEventType[e])})},getServices:function(){var e=this;return wi({},{get viewerContainer(){return e},get Cesium(){return e.Cesium},get viewer(){return e.viewer},get dataSources(){return e.dataSources},get entities(){return e.entities},get imageryLayers(){return e.imageryLayers},get primitives(){return e.primitives},get groundPrimitives(){return e.groundPrimitives},get postProcessStages(){return e.postProcessStages}})},getCesiumScript:function(){if(g.Cesium)return ii.resolve(g.Cesium);var e=this.cesiumPath?this.cesiumPath:void 0!==this._Cesium&&this._Cesium().hasOwnProperty("cesiumPath")?this._Cesium().cesiumPath:"https://unpkg.com/cesium/Build/Cesium/Cesium.js",i=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,i=-1,n=!0,o=e.length-1;1<=o;--o)if(47===(t=e.charCodeAt(o))){if(!n){i=o;break}}else n=!1;return-1===i?r?"/":".":r&&1===i?"/":e.slice(0,i)}(e),t=document.createElement("link");t.rel="stylesheet",g.document.head.appendChild(t),t.href="".concat(i,"/Widgets/widgets.css");var n=document.createElement("script");return g.document.body.appendChild(n),n.src=e,new ii(function(t,r){n.onload=function(){var e;g.Cesium?(Cesium.SuperMapImageryProvider&&Number(Cesium.VERSION)<1.54&&(e=document.createElement("script"),g.document.body.appendChild(e),e.src="".concat(i,"/Workers/zlib.min.js")),t(g.Cesium)):r(new Error("[VueCesium] ERROR: Error loading CesiumJS!"))}})},beforeInit:function(){return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return this.$vc.scriptPromise=this.$vc.scriptPromise||this.getCesiumScript(),e.next=3,Xt.awrap(this.$vc.scriptPromise);case 3:case"end":return e.stop()}},null,this)}},mounted:function(){var e=this.init;(0,this.beforeInit)().then(function(){return e()})},created:function(){var r=this;this._mounted=!1,this._createPromise=new ii(function(e,t){r._resolve=e,r._reject=t}),te(this,{createPromise:{enumerable:!0,get:function(){return r._createPromise}},cesiumObject:{enumerable:!0,get:function(){return r.viewer}},dataSources:{enumerable:!0,get:function(){return r.viewer&&r.viewer.dataSources}},entities:{enumerable:!0,get:function(){return r.viewer&&r.viewer.entities}},imageryLayers:{enumerable:!0,get:function(){return r.viewer&&r.viewer.imageryLayers}},primitives:{enumerable:!0,get:function(){return r.viewer&&r.viewer.scene.primitives}},groundPrimitives:{enumerable:!0,get:function(){return r.viewer&&r.viewer.scene.groundPrimitives}},postProcessStages:{enumerable:!0,get:function(){return r.viewer&&r.viewer.scene.postProcessStages}}})},destroyed:function(){var e=this.viewer,t=this.removeCesiumScript;if(e.destroy(),this.viewer=null,this._mounted=!1,t&&g.Cesium){var r=document.getElementsByTagName("script"),i=[],n=!0,o=!1,a=void 0;try{for(var s,c=Kt(r);!(n=(s=c.next()).done);n=!0){var l=s.value;-1<l.src.indexOf("/Cesium.js")&&i.push(l),-1<l.src.indexOf("/Workers/zlib.min.js")&&i.push(l)}}catch(e){o=!0,a=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw a}}i.forEach(function(e){document.getElementsByTagName("body")[0].removeChild(e)});var u=document.getElementsByTagName("link"),h=!0,d=!1,p=void 0;try{for(var m,f=Kt(u);!(h=(m=f.next()).done);h=!0){var v=m.value;-1<v.href.indexOf("Widgets/widgets.css")&&document.getElementsByTagName("head")[0].removeChild(v)}}catch(e){d=!0,p=e}finally{try{h||null==f.return||f.return()}finally{if(d)throw p}}g.Cesium=null,this.$vc.scriptPromise=void 0}}};var Pi,Si,Ei,Ti,Oi,ki=(Ei=void 0,Ti=!(Pi={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{ref:"viewer",staticStyle:{width:"100%",height:"100%"},attrs:{id:"cesiumContainer"}},[this._t("default")],2)},staticRenderFns:[]}),(Oi=("function"==typeof(Si=xi)?Si.options:Si)||{}).__file="Viewer.vue",Oi.render||(Oi.render=Pi.render,Oi.staticRenderFns=Pi.staticRenderFns,Oi._compiled=!0,Ti&&(Oi.functional=!0)),Oi._scopeId=Ei,Oi);function Ri(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};Ri.installed||(Ri.installed=!0,e.prototype._Cesium=function(){return t},e.component(ki.name,ki))}var Fi=Object.freeze({__proto__:null,default:Ri,Viewer:ki,install:Ri});ue("getPrototypeOf",function(){return function(e){return Pt(fe(e))}});var Li=w.Object.getPrototypeOf,Ii={"vc-viewer":"Viewer","vc-layer-imagery":"ImageryLayer","vc-provider-imagery-arcgis-mapserver":"ArcGisMapServerImageryProvider","vc-provider-imagery-bingmaps":"BingMapsImageryProvider","vc-provider-imagery-googleearth-enterprise":"GoogleEarthEnterpriseImageryProvider","vc-provider-imagery-grid":"GridImageryProvider","vc-provider-imagery-ion":"IonImageryProvider","vc-provider-imagery-mapbox":"MapboxImageryProvider","vc-provider-imagery-openstreetmap":"OpenStreetMapImageryProvider","vc-provider-imagery-tile-single":"SingleTileImageryProvider","vc-provider-imagery-tile-coordinates":"TileCoordinatesImageryProvider","vc-provider-imagery-tile-mapservice":"TileMapServiceImageryProvider","vc-provider-imagery-urltemplate":"UrlTemplateImageryProvider","vc-provider-imagery-wms":"WebMapServiceImageryProvider","vc-provider-imagery-wmts":"WebMapTileServiceImageryProvider","vc-provider-imagery-tianditu":"TiandituImageryProvider","vc-provider-imagery-supermap":"SuperMapImageryProvider","vc-provider-imagery-tiledcache ":"UrlTemplateImageryProvider","vc-provider-terrain-arcgis-tiled-elevation":"ArcGISTiledElevationTerrainProvider","vc-provider-terrain-cesium":"CesiumTerrainProvider","vc-entity":"Entity","vc-graphics-billboard":"BillboardGraphics","vc-graphics-box":"BoxGraphics","vc-graphics-corridor":"CorridorGraphics","vc-graphics-cylinder":"CylinderGraphics","vc-graphics-ellipse":"EllipseGraphics","vc-graphics-ellipsoid":"EllipsoidGraphics","vc-graphics-label":"LabelGraphics","vc-graphics-model":"ModelGraphics","vc-graphics-tileset":"Cesium3DTilesetGraphics","vc-graphics-path":"PathGraphics","vc-graphics-plane":"PlaneGraphics","vc-graphics-point":"PointGraphics","vc-graphics-polygon":"PolygonGraphics","vc-graphics-polyline":"PolylineGraphics","vc-graphics-polyline-volume":"PolylineVolumeGraphics","vc-graphics-rectangle":"RectangleGraphics","vc-graphics-wall":"WallGraphics","vc-datasource-custom":"CustomDataSource","vc-datasource-czml":"CzmlDataSource","vc-datasource-geojson":"GeoJsonDataSource","vc-datasource-kml":"KmlDataSource","vc-collection-primitive":"PrimitiveCollection","vc-collection-primitive-billboard":"BillboardCollection","vc-collection-primitive-label":"LabelCollection","vc-collection-primitive-point":"PointPrimitiveCollection","vc-collection-primitive-polyline":"PolylineCollection","vc-primitive":"Primitive","vc-primitive-classification":"ClassificationPrimitive","vc-primitive-ground":"GroundPrimitive","vc-primitive-billboard":"Billboard","vc-primitive-label":"Label","vc-primitive-point":"PointPrimitive","vc-primitive-polyline":"Polyline","vc-primitive-polyline-ground":"GroundPolylinePrimitive","vc-primitive-model":"Model","vc-primitive-tileset":"Cesium3DTileset","vc-primitive-particle":"ParticleSystem","vc-instance-geometry":"GeometryInstance","vc-geometry-box":"BoxGeometry","vc-geometry-outline-box":"BoxOutlineGeometry","vc-geometry-circle":"CircleGeometry","vc-geometry-outline-circle":"CircleOutlineGeometry","vc-geometry-polygon-coplanar":"CoplanarPolygonGeometry","vc-geometry-outline-polygon-coplanar":"CoplanarPolygonOutlineGeometry","vc-geometry-corridor":"CorridorGeometry","vc-geometry-outline-corridor":"CorridorOutlineGeometry","vc-geometry-cylinder":"CylinderGeometry","vc-geometry-outline-cylinder":"CylinderOutlineGeometry","vc-geometry-ellipse":"EllipseGeometry","vc-geometry-outline-ellipse":"EllipseOutlineGeometry","vc-geometry-ellipsoid":"EllipsoidGeometry","vc-geometry-outline-ellipsoid":"EllipsoidOutlineGeometry","vc-geometry-frustum":"FrustumGeometry","vc-geometry-outline-frustum":"FrustumOutlineGeometry","vc-geometry-polyline-ground":"GroundPolylineGeometry","vc-geometry-plane":"PlaneGeometry","vc-geometry-outline-plane":"PlaneOutlineGeometry","vc-geometry-polygon":"PolygonGeometry","vc-geometry-outline-polygon":"PolygonOutlineGeometry","vc-geometry-polyline":"PolylineGeometry","vc-geometry-polyline-volume":"PolylineVolumeGeometry","vc-geometry-outline-polyline-volume":"PolylineVolumeOutlineGeometry","vc-geometry-rectangle":"RectangleGeometry","vc-geometry-outline-rectangle":"RectangleOutlineGeometry","vc-geometry-polyline-simple":"SimplePolylineGeometry","vc-geometry-sphere":"SphereGeometry","vc-geometry-outline-sphere":"SphereOutlineGeometry","vc-geometry-wall":"WallGeometry","vc-geometry-outline-wall":"WallOutlineGeometry","vc-stage-process-post":"PostProcessStage","vc-collection-stage-process-post":"PostProcessStageCollection"},ji=Object.assign,Ai=!ji||l(function(){var e={},t={},r=Symbol(),i="abcdefghijklmnopqrst";return e[r]=7,i.split("").forEach(function(e){t[e]=e}),7!=ji({},e)[r]||Object.keys(ji({},t)).join("")!=i})?function(e,t){for(var r=fe(e),i=arguments.length,n=1,o=ne.f,a=se.f;n<i;)for(var s,c=G(arguments[n++]),l=o?Y(c).concat(o(c)):Y(c),u=l.length,h=0;h<u;)s=l[h++],d&&!a.call(c,s)||(r[s]=c[s]);return r}:ji;S(S.S+S.F,"Object",{assign:Ai});var Di=w.Object.assign;function Ni(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=Cesium,i=r.Cartesian2,n=r.CallbackProperty;return fi(e)?new n(e,t):e&&e.hasOwnProperty("x")?new i(e.x,e.y):e}function Gi(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=Cesium,i=r.CallbackProperty,n=r.Cartesian3;return fi(e)?new i(e,t):e&&e.hasOwnProperty("x")?new n(e.x,e.y,e.z):e&&e.hasOwnProperty("lng")?n.fromDegrees(e.lng,e.lat,e.height):e}function zi(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=Cesium,i=r.CallbackProperty,n=r.Cartesian3;if(fi(e))return new i(e,t);if(e&&pi(e)&&e[0]instanceof n||e._callback)return e;var o=[];return e.forEach(function(e){o.push(e.lng),o.push(e.lat),o.push(e.height)}),3<=o.length?n.fromDegreesArrayHeights(o):e}function Bi(e,t){var r=Cesium,i=r.CallbackProperty,n=r.Cartesian2;if(fi(e))return new i(e,t);var o=[];return e.forEach(function(e){o.push(new n(e.x,e.y))}),o}function Vi(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=Cesium,i=r.CallbackProperty,n=r.Quaternion;return fi(e)?new i(e,t):e&&e.hasOwnProperty("x")?new n(e.x,e.y,e.z,e.w):e}function qi(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=Cesium,i=r.PolygonHierarchy,n=r.CallbackProperty;return fi(e)?new n(e,t):pi(e)&&3<=e.length?new i(zi(e)):(Cesium.defined(e.positions)&&(e.positions=zi(e.positions),function t(e){e.forEach(function(e){e.positions=zi(e.positions),e.holes&&t(e.holes)})}(e.holes)),e)}function Wi(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=Cesium,i=r.NearFarScalar,n=r.CallbackProperty;return fi(e)?new n(e,t):e&&e.hasOwnProperty("near")?new i(e.near,e.nearValue,e.far,e.farValue):e}function Ui(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=Cesium,i=r.Color,n=r.CallbackProperty;return fi(e)?new n(e,t):e instanceof i?e:pi(e)?new Cesium.Color(e[0],e[1],e[2],e[3]):mi(e)?i.fromCssColorString(e):e}function Hi(e){var t=this.$options.name;if(t&&-1!==t.indexOf("graphics"))return function(e,t){var r=1<arguments.length&&void 0!==t&&t,i=Cesium,n=i.CallbackProperty,o=i.Color,a=i.Resource,s=i.ColorMaterialProperty,c=i.ImageMaterialProperty,l=i.PolylineArrowMaterialProperty,u=i.PolylineDashMaterialProperty,h=i.PolylineGlowMaterialProperty,d=i.PolylineOutlineMaterialProperty,p=i.CheckerboardMaterialProperty,m=i.GridMaterialProperty,f=i.StripeMaterialProperty;if(fi(e))return new n(e,r);if(/(.*)\.(jpg|bmp|gif|ico|pcx|jpeg|tif|png|raw|tga)$/.test(e)||e instanceof a||e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement){var v=new c;return v.image=e,v}if(pi(e)||mi(e))return new s(Ui(e));if(e&&e.hasOwnProperty("fabric"))switch(e.fabric.type){case"Color":return new s(Ui(e.fabric.uniforms.color||o.WHITE));case"PolylineArrow":return new l(Ui(e.fabric.uniforms.color||o.WHITE));case"PolylineDash":return new u({color:Ui(e.fabric.uniforms.color)||o.WHITE,gapColor:e.fabric.uniforms.gapColor||o.TRANSPARENT,dashLength:e.fabric.uniforms.taperPower||16,dashPattern:e.fabric.uniforms.taperPower||255});case"PolylineGlow":return new h({color:Ui(e.fabric.uniforms.color)||o.WHITE,glowPower:e.fabric.uniforms.glowPower||.25,taperPower:e.fabric.uniforms.taperPower||1});case"PolylineOutline":return new d({color:Ui(e.fabric.uniforms.color)||o.WHITE,outlineColor:e.fabric.uniforms.outlineColor||o.BLACK,outlineWidth:e.fabric.uniforms.outlineWidth||1});case"Checkerboard":return new p({evenColor:Ui(e.fabric.uniforms.evenColor)||o.WHITE,oddColor:e.fabric.uniforms.oddColor||o.BLACK,repeat:e.fabric.uniforms.repeat||Ni({x:2,y:2})});case"Grid":return new m({color:Ui(e.fabric.uniforms.color)||o.WHITE,cellAlpha:e.fabric.uniforms.cellAlpha||.1,lineCount:e.fabric.uniforms.lineCount||Ni({x:8,y:8}),lineThickness:e.fabric.uniforms.lineThickness||Ni({x:1,y:1}),lineOffset:e.fabric.uniforms.lineOffset||Ni({x:0,y:0})});case"Stripe":return new f({orientation:Ui(e.fabric.uniforms.orientation)||0,evenColor:e.fabric.uniforms.evenColor||o.WHITE,oddColor:e.fabric.uniforms.oddColor||o.BLACK,offset:e.fabric.uniforms.offset||0,repeat:e.fabric.uniforms.repeat||1})}return e}(e);if(e&&e.hasOwnProperty("fabric")){return function e(t){for(var r in t){var i;pi(t[r])||null===(n=t[r])||"object"!==ci(n)?-1===r.toLocaleLowerCase().indexOf("color")||di(t[r])||(i=Ui(t[r]),t[r]=Cesium.combine(i,i,!0)):e(t[r])}var n}(e),new Cesium.Material(e)}return e}function $i(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=Cesium,i=r.Rectangle,n=r.RectangleGraphics,o=r.CallbackProperty;return fi(e)?new o(e,t):e instanceof n?e:pi(e)&&4===e.length?i.fromDegrees(e[0],e[1],e[2],e[3]):e&&e.hasOwnProperty("west")?i.fromDegrees(e.west,e.south,e.east,e.north):e}function Zi(e){return e.cesiumClass||"vc-viewer"===e.$options.name?e:Zi(e.$parent)}var Ki={distanceDisplayCondition:{handler:function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=Cesium,i=r.DistanceDisplayCondition,n=r.CallbackProperty;return fi(e)?new n(e,t):e&&e.hasOwnProperty("near")?new i(e.near,e.nearValue,e.far,e.farValue):e}},pixelOffset:{handler:Ni},backgroundPadding:{handler:Ni},imageBasedLightingFactor:{handler:Ni},imageSize:{handler:Ni},minimumImageSize:{handler:Ni},maximumImageSize:{handler:Ni},shape:{handler:Bi},shapePositions:{handler:Bi},position:{handler:Gi},eyeOffset:{handler:Gi},alignedAxis:{handler:Gi},dimensions:{handler:Gi},radii:{handler:Gi},center:{handler:Gi},innerRadii:{handler:Gi},origin:{handler:Gi},positions:{handler:zi,exclude:"_callback"},polylinePositions:{handler:zi,exclude:"_callback"},color:{handler:Ui},outlineColor:{handler:Ui},backgroundColor:{handler:Ui},fillColor:{handler:Ui},silhouetteColor:{handler:Ui},lightColor:{handler:Ui},glowColor:{handler:Ui},clearColor:{handler:Ui},startColor:{handler:Ui},endColor:{handler:Ui},scaleByDistance:{handler:Wi},translucencyByDistance:{handler:Wi},pixelOffsetScaleByDistance:{handler:Wi},material:{handler:Hi},depthFailMaterial:{handler:Hi},cutoutRectangle:{handler:$i},coordinates:{handler:$i},rectangle:{handler:$i},imageSubRegion:{handler:function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=Cesium,i=r.BoundingRectangle,n=r.CallbackProperty;return fi(e)?new n(e,t):e&&e.hasOwnProperty("x")?new i(e.x,e.y,e.width,e.height):e}},colorToAlpha:{handler:Ui},plane:{handler:function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=Cesium,i=r.Cartesian3,n=r.Plane,o=r.PlaneGraphics,a=r.CallbackProperty;return fi(e)?new a(e,t):!(e instanceof o)&&e&&e.hasOwnProperty("normal")?(i.normalize(Gi(e.normal),e.normal),new n(e.normal,e.distance)):e}},hierarchy:{handler:qi,exclude:"_callback"},polygonHierarchy:{handler:qi},nodeTransformations:{handler:function(e){return e&&e.hasOwnProperty("translation")?new Cesium.TranslationRotationScale(Gi(e.translation),Vi(e.rotation),Gi(e.scale)):e}},orientation:{handler:Vi},options:{deep:!0,handler:function(e){switch(this.$options.name){case"vc-datasource-geojson":var t={};return Di(t,e),t&&t.markerColor&&(t.markerColor=Ui(t.markerColor)),t&&t.stroke&&(t.stroke=Ui(t.stroke)),t&&t.fill&&(t.fill=Ui(t.fill)),t}return e}}},Xi={load:function(){var t,r,i,n,o,a,s=this;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:if(this._mounted)return e.abrupt("return",!1);e.next=2;break;case 2:if(t=this.createCesiumObject,r=this.mount,i=this.setPropWatchers,n=Zi(this.$parent),o=this.Cesium=n.Cesium,a=this.viewer=n.viewer,n.cesiumObject){e.next=8;break}return e.abrupt("return",n.load());case 8:return i(!0),e.abrupt("return",t().then(function(t){return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return s.originInstance=t,e.abrupt("return",r().then(function(){return s._mounted=!0,s.$emit("ready",{Cesium:o,viewer:a,cesiumObject:t,vm:s}),{Cesium:o,viewer:a,cesiumObject:t,vm:s}}));case 2:case"end":return e.stop()}})}));case 10:case"end":return e.stop()}},null,this)},unload:function(){var t,r,i,n,o,a,s=this;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:r=!(t=!0),i=void 0,e.prev=3,n=Kt((this.$slots.default||[]).map(function(e){return e.componentInstance}).filter(function(e){return!!e}));case 5:if(t=(o=n.next()).done){e.next=12;break}return a=o.value,e.next=9,Xt.awrap(a.unload());case 9:t=!0,e.next=5;break;case 12:e.next=18;break;case 14:e.prev=14,e.t0=e.catch(3),r=!0,i=e.t0;case 18:e.prev=18,e.prev=19,t||null==n.return||n.return();case 21:if(e.prev=21,r)throw i;e.next=24;break;case 24:return e.finish(21);case 25:return e.finish(18);case 26:return e.abrupt("return",!!this._mounted&&this.unmount().then(function(){return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return s.setPropWatchers(!1),s.originInstance=void 0,s._mounted=!1,e.abrupt("return",!s.renderByParent||s.$parent.unload());case 4:case"end":return e.stop()}})}));case 27:case"end":return e.stop()}},null,this,[[3,14,18,26],[19,,21,25]])},reload:function(){var t=this;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.unload().then(function(){return t.load()}));case 1:case"end":return e.stop()}},null,this)},createCesiumObject:function(){var t,r,i,n;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.$props,r=this.cesiumClass,i=this.transformProps,n=i(t),e.abrupt("return",new Cesium[r](n));case 3:case"end":return e.stop()}},null,this)},setPropWatchers:function(e){var s=this;if(e){var t=this.$props,c=this.specialPropsKeys,r=this.cesiumClass,i=this.cesiumObject;if(!r||!Cesium[r])return;for(var n=Cesium[r],o=[],a=0;a<n.length;a++)o.push({});var l=i||function(e,t){var r;try{var i=[{}].concat(t);i[1].mapId={},i[1].geometry={},i[1].rectangle=Cesium.Rectangle.MAX_VALUE,i[1].polygonHierarchy={},i[1].assetId=1,i[1].layers="",i[2]=new Cesium.PolylineCollection({});var n=e.bind.apply(e,i);r=new n,i=void 0}catch(e){}return r}(n,o);t&&vt(t).forEach(function(n){var o=n;"labelStyle"===n||"wmtsStyle"===n?o="style":"bmKey"===n&&(o="key");var e,t=l&&xe(l,o),r=l&&xe(Li(l),o),a=t&&t.writable||r&&r.set;0<s._watchers.filter(function(e){return e.expression===n}).length||(e=s.$watch(n,function(t){var r,i;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Xt.awrap(s.createPromise);case 2:if(a)return r=s.cesiumObject,-1!==c.indexOf(n)&&Ki[n].handler?(i=Ki[n].handler.call(s,t),Cesium.defined(r[o])&&Cesium.defined(r[o]._callback)||(r[o]=i)):r[o]=t,e.abrupt("return",!0);e.next=8;break;case 8:return e.abrupt("return",s.reload());case 9:case"end":return e.stop()}})},{deep:-1!==c.indexOf(n)&&Ki[n].deep}),s.unwatchFns.push(e))}),l=void 0}else this.unwatchFns.forEach(function(e){return e()}),this.unwatchFns=[]},mount:function(){return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}})},unmount:function(){return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}})},getServices:function(){return Ci.methods.getServices.call(this)},transformProps:function(r){var i=this,n=this.specialPropsKeys,o=this.isEmptyObj,a=this.cesiumClass,s={},c=["billboard","box","corridor","cylinder","ellipse","ellipsoid","label","model","tileset","path","plane","point","polygon","polyline","polylineVolume","rectangle","wall"];return r&&vt(r).forEach(function(e){var t=e;"labelStyle"===e||"wmtsStyle"===e?t="style":"bmKey"===e&&(t="key"),-1===c.indexOf(t)||-1!==function(e){if(e&&e.constructor){var t=e.constructor.toString(),r=t.substr(0,t.indexOf("("));return(r=r.replace("function","")).replace(/(^\s*)|(\s*$)/gi,"")}return ci(e)}(r[e]).indexOf("Graphics")||"Entity"!==a&&-1===a.indexOf("DataSource")?s[t]=-1===n.indexOf(e)||!Ki[e].handler||o(r[e])&&"function"!=typeof r[e]?r[e]:Ki[e].handler.call(i,r[e]):s[t]=i.transformProps(r[e])}),this.removeNullItem(s),s},beforeLoad:function(){return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Xt.awrap(this.$parent.createPromise);case 2:case"end":return e.stop()}},null,this)}},Ji={VM_PROP:"vm",mixins:[Ci],methods:Xi,data:function(){return{unwatchFns:[]}},created:function(){var e=this;this._mounted=!1,this.cesiumClass=Ii[this.$options.name],this.specialPropsKeys=vt(Ki);var t=this.beforeLoad,r=this.load,i=Zi(this.$parent);this._createPromise=ii.resolve(t()).then(function(){return new ii(function(e,t){i.viewer&&e(r()),i.$on("ready",function(){e(r())})})}),te(this,{createPromise:{enumerable:!0,get:function(){return e._createPromise}},cesiumObject:{enumerable:!0,get:function(){return e.originInstance}},mounted:{enumerable:!0,get:function(){return e._mounted}}})},destroyed:function(){var e=this;this.unload().then(function(){e.$emit("destroyed",e)})}};var Yi={mixins:[{render:function(e){var t,r=this.$options.stubVNode||{};if(r.empty){var i=e();return"string"==typeof r.empty?i.text=r.empty:"function"==typeof r.empty&&(i.text=r.empty.call(this)),i}t=!1===r.slots?void 0:function(r,e){var i=1<arguments.length&&void 0!==e?e:[];return vt(r).reduce(function(e,t){return i.length&&!i.includes(t)||(e=e.concat(r[t])),e},[])}(this.$slots,r.slots);var n={attrs:"function"==typeof r.attrs?r.attrs.call(this):r.attrs,style:{display:"none !important"}};return e(r.tag||"i",n,t)}},Ji],methods:{getServices:function(){return Ji.methods.getServices.call(this)},load:function(){return Ji.methods.load.call(this)},reload:function(){return Ji.methods.reload.call(this)},unload:function(){return Ji.methods.unload.call(this)}}},Qi={name:"vc-layer-imagery",mixins:[Yi],props:{imageryProvider:Object,rectangle:Object,alpha:{type:Number|Function,default:1},brightness:{type:Number|Function,default:1},contrast:{type:Number|Function,default:1},hue:{type:Number|Function,default:0},saturation:{type:Number|Function,default:1},gamma:{type:Number|Function,default:1},splitDirection:Number,minificationFilter:Number,magnificationFilter:Number,show:{type:Boolean,default:!0},maximumAnisotropy:Number,minimumTerrainLevel:Number,maximumTerrainLevel:Number,cutoutRectangle:Object,colorToAlpha:Object,colorToAlphaThreshold:{type:Number,default:.004}},methods:{createCesiumObject:function(){var t,r,i,n;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.$props,r=this.transformProps,i=this.requiredArg,n=r(t),e.abrupt("return",new Cesium.ImageryLayer(i||{},n));case 3:case"end":return e.stop()}},null,this)},mount:function(){var t,r;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.viewer,r=this.imageryLayer,t.imageryLayers.add(r),e.abrupt("return",!this.viewer.isDestroyed()&&t.imageryLayers.contains(r));case 3:case"end":return e.stop()}},null,this)},unmount:function(){var t,r;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.viewer,r=this.imageryLayer,e.abrupt("return",!t.isDestroyed()&&t.imageryLayers.remove(r));case 2:case"end":return e.stop()}},null,this)},refresh:function(){var t=this;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.unmount().then(function(){return t.createCesiumObject().then(function(e){return t.originInstance=e,t.mount()})}));case 1:case"end":return e.stop()}},null,this)},setProvider:function(e){e!==this._provider&&((this._provider=e)&&this.refresh(),this.$listeners["update:imageryProvider"]&&this.$emit("update:imageryProvider",e))},getServices:function(){var e=this;return wi(Yi.methods.getServices.call(this),{get imageryLayer(){return e.imageryLayer},get providerContainer(){return e}})}},stubVNode:{attrs:function(){return{class:this.$options.name}}},created:function(){var e=this;this._provider=void 0,te(this,{imageryLayer:{enumerable:!0,get:function(){return e.cesiumObject}},requiredArg:{enumerable:!0,get:function(){return e.imageryProvider||e._provider}}})}};var en,tn,rn,nn,on,an=(en={},nn=rn=void 0,(on=("function"==typeof(tn=Qi)?tn.options:tn)||{}).__file="ImageryLayer.vue",on.render||(on.render=en.render,on.staticRenderFns=en.staticRenderFns,on._compiled=!0,nn&&(on.functional=!0)),on._scopeId=rn,on);function sn(e){sn.installed||(sn.installed=!0,e.component(an.name,an))}var cn=Object.freeze({__proto__:null,default:sn,ImageryLayer:an,install:sn}),ln={props:{position:{type:Object|Function,validator:function(e){return!e||!Object.prototype.hasOwnProperty.call(e,"lng")||(t=e.lng,r=e.lat,!!/^(-|\+)?(((\d|[1-9]\d|1[0-7]\d|0{1,3})\.\d{0,15})|(\d|[1-9]\d|1[0-7]\d|0{1,3})|180\.0{0,15}|180)$/.test(t)&&!!/^(-|\+)?([0-8]?\d{1}\.\d{0,15}|90\.0{0,15}|[0-8]?\d{1}|90)$/.test(r));var t,r}}}},un={props:{show:{type:Boolean,default:!0}}},hn={props:{distanceDisplayCondition:Object}},dn={props:{image:String|Object}},pn={props:{scale:{type:Number,default:1}}},mn={props:{pixelOffset:{type:Object,default:function(){return{x:0,y:0}}}}},fn={props:{eyeOffset:{type:Object,default:function(){return{x:0,y:0,z:0}}}}},vn={props:{horizontalOrigin:{type:Number,default:0}}},gn={props:{verticalOrigin:{type:Number,default:0}}},yn={props:{heightReference:Number}},bn={props:{color:{type:Object|String|Array,default:"white"}}},wn={props:{rotation:{type:Number|Object,default:0}}},_n={props:{alignedAxis:{type:Object,default:function(){return{x:0,y:0,z:0}}}}},Cn={props:{sizeInMeters:Boolean}},Mn={props:{width:Number}},xn={props:{height:Number}},Pn={props:{scaleByDistance:Object}},Sn={props:{translucencyByDistance:Object}},En={props:{pixelOffsetScaleByDistance:Object}},Tn={props:{disableDepthTestDistance:Number}},On={props:{dimensions:Object}},kn={props:{fill:{type:Boolean,default:!0}}},Rn={props:{material:{type:Object|String|Array,default:"white"}}},Fn={props:{outline:{type:Boolean,default:!1}}},Ln={props:{outlineColor:{type:Object|String|Array,default:"black"}}},In={props:{outlineWidth:{type:Number,default:1}}},jn={props:{shadows:Number}},An={props:{positions:Array|Object}},Dn={props:{extrudedHeight:Number}},Nn={props:{extrudedHeightReference:Number}},Gn={props:{cornerType:{type:Number,default:0}}},zn={props:{granularity:Number}},Bn={props:{classificationType:{type:Number,default:2}}},Vn={props:{zIndex:Number}},qn={props:{length:Number}},Wn={props:{topRadius:Number}},Un={props:{bottomRadius:Number}},Hn={props:{numberOfVerticalLines:{type:Number,default:16}}},$n={props:{slices:{type:Number,default:128}}},Zn={props:{semiMajorAxis:Number}},Kn={props:{semiMinorAxis:Number}},Xn={props:{stRotation:{type:[Number,Object],default:0}}},Jn={props:{radii:Object}},Yn={props:{stackPartitions:{type:Number,default:64}}},Qn={props:{slicePartitions:{type:Number,default:64}}},eo={props:{subdivisions:{type:Number,default:128}}},to={props:{text:String}},ro={props:{font:{type:String,default:"30px sans-serif"}}},io={props:{labelStyle:{type:Number,default:0}}},no={props:{showBackground:{type:Boolean,default:!1}}},oo={props:{backgroundColor:{type:Object|String|Array,default:function(){return[.165,.165,.165,.8]}}}},ao={props:{backgroundPadding:{type:Object,default:function(){return{x:7,y:5}}}}},so={props:{fillColor:{type:Object|String|Array,default:"WHITE"}}},co={props:{uri:String}},lo={props:{minimumPixelSize:{type:Number,default:0}}},uo={props:{maximumScale:Number}},ho={props:{incrementallyLoadTextures:{type:Boolean,default:!0}}},po={props:{clampAnimations:{type:Boolean,default:!0}}},mo={props:{silhouetteColor:Object|String|Array}},fo={props:{silhouetteSize:{type:Number,default:0}}},vo={props:{colorBlendMode:{type:Number,default:0}}},go={props:{colorBlendAmount:{type:Number,default:.5}}},yo={props:{clippingPlanes:Object}},bo={props:{pixelSize:{type:Number,default:1}}},wo={props:{perPositionHeight:{type:Boolean,default:!1}}},_o={props:{closeTop:{type:Boolean,default:!0}}},Co={props:{closeBottom:{type:Boolean,default:!0}}},Mo={props:{arcType:{type:Number,default:1}}},xo={props:{minimumHeights:Array}},Po={props:{maximumHeights:Array}},So={props:{url:String|Object}},Eo={props:{token:String}},To={props:{tileDiscardPolicy:Object}},Oo={props:{layers:String}},ko={props:{enablePickFeatures:{type:Boolean,default:!0}}},Ro={props:{rectangle:Object}},Fo={props:{tilingScheme:Object}},Lo={props:{ellipsoid:Object}},Io={props:{credit:{type:String|Object,default:""}}},jo={props:{tileWidth:{type:Number,default:256}}},Ao={props:{tileHeight:{type:Number,default:256}}},Do={props:{maximumLevel:Number}},No={props:{minimumLevel:{type:Number,default:0}}},Go={props:{fileExtension:{type:String,default:"png"}}},zo={props:{accessToken:String}},Bo={props:{format:{type:String,default:"png"}}},Vo={props:{subdomains:String|Array}},qo={props:{getFeatureInfoFormats:Array}},Wo={props:{clock:Object}},Uo={props:{times:Object}},Ho={props:{allowPicking:{type:Boolean,default:!0},asynchronous:{type:Boolean,default:!0}}},$o={props:{debugShowShadowVolume:{type:Boolean,default:!1}}},Zo={props:{releaseGeometryInstances:{type:Boolean,default:!0}}},Ko={props:{interleave:{type:Boolean,default:!1}}},Xo={props:{appearance:Object}},Jo={props:{geometryInstances:Array|Object}},Yo={props:{vertexCacheOptimize:{type:Boolean,default:!1},compressVertices:{type:Boolean,default:!0}}},Qo={props:{modelMatrix:Object}},ea={props:{debugShowBoundingVolume:{tyep:Boolean,default:!1}}},ta={props:{scene:Object}},ra={props:{blendOption:{type:Number,default:2}}},ia={props:{id:null}},na={props:{loop:{type:Boolean,default:!1}}},oa={props:{debugWireframe:{type:Boolean,default:!1}}},aa={props:{vertexFormat:Object}},sa={props:{center:Object}},ca={props:{radius:Number}},la={props:{innerRadii:Object}},ua={props:{minimumClock:{type:Number,default:0}}},ha={props:{maximumClock:{type:Number,default:2*Math.PI}}},da={props:{minimumCone:{type:Number,default:0}}},pa={props:{maximumCone:{type:Number,default:Math.PI}}},ma={props:{frustum:Object}},fa={props:{origin:Object}},va={props:{orientation:Object}},ga={props:{polygonHierarchy:Object|Array}},ya={mixins:[Yi],methods:{mount:function(){var t,r,i=this;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.imageryProvider,r=this.providerContainer,t.readyPromise.then(function(){i.$listeners.readyPromise&&i.$emit("readyPromise",t)}).otherwise(function(e){throw new Cesium.DeveloperError(e)}),gi.call(this,t,ni["imagery-layer-events"],!0),e.abrupt("return",r&&r.setProvider(t));case 4:case"end":return e.stop()}},null,this)},unmount:function(){var t,r;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.imageryProvider,r=this.providerContainer,gi.call(this,t,ni["imagery-layer-events"],!1),e.abrupt("return",r&&r.setProvider(void 0));case 3:case"end":return e.stop()}},null,this)}},stubVNode:{empty:function(){return this.$options.name}},created:function(){var e=this;this.renderByParent=!0,te(this,{imageryProvider:{enumerable:!0,get:function(){return e.cesiumObject}},providerContainer:{enumerable:!0,get:function(){return e.$services&&e.$services.providerContainer}}})}},ba={name:"vc-provider-imagery-arcgis-mapserver",mixins:[So,Eo,To,Oo,ko,Ro,Fo,Lo,Io,jo,Ao,Do,ya],props:{usePreCachedTilesIfAvailable:{type:Boolean,default:!0}}};var wa,_a,Ca,Ma,xa,Pa=(wa={},Ma=Ca=void 0,(xa=("function"==typeof(_a=ba)?_a.options:_a)||{}).__file="ArcGisMapServerImageryProvider.vue",xa.render||(xa.render=wa.render,xa.staticRenderFns=wa.staticRenderFns,xa._compiled=!0,Ma&&(xa.functional=!0)),xa._scopeId=Ca,xa);function Sa(e){Sa.installed||(Sa.installed=!0,e.component(Pa.name,Pa))}var Ea=Object.freeze({__proto__:null,default:Sa,ArcGisMapServerImageryProvider:Pa,install:Sa}),Ta={name:"vc-provider-imagery-bingmaps",mixins:[So,Lo,To,ya],props:{url:String|Object,bmKey:String,tileProtocol:String,mapStyle:{type:String,default:"Aerial"},culture:{type:String,default:""}}};var Oa,ka,Ra,Fa,La,Ia=(Oa={},Fa=Ra=void 0,(La=("function"==typeof(ka=Ta)?ka.options:ka)||{}).__file="BingMapsImageryProvider.vue",La.render||(La.render=Oa.render,La.staticRenderFns=Oa.staticRenderFns,La._compiled=!0,Fa&&(La.functional=!0)),La._scopeId=Ra,La);function ja(e){ja.installed||(ja.installed=!0,e.component(Ia.name,Ia))}var Aa=Object.freeze({__proto__:null,default:ja,BingMapsImageryProvider:Ia,install:ja}),Da={name:"vc-provider-imagery-googleearth-enterprise",mixins:[So,Lo,To,Io,ya],props:{metadata:Object}};var Na,Ga,za,Ba,Va,qa=(Na={},Ba=za=void 0,(Va=("function"==typeof(Ga=Da)?Ga.options:Ga)||{}).__file="GoogleEarthEnterpriseImageryProvider.vue",Va.render||(Va.render=Na.render,Va.staticRenderFns=Na.staticRenderFns,Va._compiled=!0,Ba&&(Va.functional=!0)),Va._scopeId=za,Va);function Wa(e){Wa.installed||(Wa.installed=!0,e.component(qa.name,qa))}var Ua=Object.freeze({__proto__:null,default:Wa,GoogleEarthEnterpriseImageryProvider:qa,install:Wa}),Ha={name:"vc-provider-imagery-grid",mixins:[Fo,Lo,jo,Ao,ya],props:{cells:{type:Number,default:8},color:{type:String|Object|Array,default:function(){return[1,1,1,.4]}},glowColor:{type:String|Array|Object,default:function(){return[0,1,0,.05]}},glowWidth:{type:Number,default:6},backgroundColor:{type:String|Array|Object,default:function(){return[0,.5,0,.2]}},canvasSize:{type:Number,default:256}}};var $a,Za,Ka,Xa,Ja,Ya=($a={},Xa=Ka=void 0,(Ja=("function"==typeof(Za=Ha)?Za.options:Za)||{}).__file="GridImageryProvider.vue",Ja.render||(Ja.render=$a.render,Ja.staticRenderFns=$a.staticRenderFns,Ja._compiled=!0,Xa&&(Ja.functional=!0)),Ja._scopeId=Ka,Ja);function Qa(e){Qa.installed||(Qa.installed=!0,e.component(Ya.name,Ya))}var es=Object.freeze({__proto__:null,default:Qa,GridImageryProvider:Ya,install:Qa}),ts={name:"vc-provider-imagery-ion",mixins:[zo,ya],props:{assetId:Number,server:String|Object}};var rs,is,ns,os,as,ss=(rs={},os=ns=void 0,(as=("function"==typeof(is=ts)?is.options:is)||{}).__file="IonImageryProvider.vue",as.render||(as.render=rs.render,as.staticRenderFns=rs.staticRenderFns,as._compiled=!0,os&&(as.functional=!0)),as._scopeId=ns,as);function cs(e){cs.installed||(cs.installed=!0,e.component(ss.name,ss))}var ls=Object.freeze({__proto__:null,default:cs,IonImageryProvider:ss,install:cs}),us={name:"vc-provider-imagery-mapbox",mixins:[zo,Bo,Lo,No,Do,Ro,Io,ya],props:{url:{type:String,default:"https://api.mapbox.com/v4/"},mapId:String}};var hs,ds,ps,ms,fs,vs=(hs={},ms=ps=void 0,(fs=("function"==typeof(ds=us)?ds.options:ds)||{}).__file="MapboxImageryProvider.vue",fs.render||(fs.render=hs.render,fs.staticRenderFns=hs.staticRenderFns,fs._compiled=!0,ms&&(fs.functional=!0)),fs._scopeId=ps,fs);function gs(e){gs.installed||(gs.installed=!0,e.component(vs.name,vs))}var ys=Object.freeze({__proto__:null,default:gs,MapboxImageryProvider:vs,install:gs}),bs={name:"vc-provider-imagery-openstreetmap",mixins:[ya,Go,Ro,No,Do,Lo],props:{url:{type:String,default:"https://a.tile.openstreetmap.org"},credit:{type:String|Object,default:"MapQuest, Open Street Map and contributors, CC-BY-SA"}}};var ws,_s,Cs,Ms,xs,Ps=(ws={},Ms=Cs=void 0,(xs=("function"==typeof(_s=bs)?_s.options:_s)||{}).__file="OpenStreetMapImageryProvider.vue",xs.render||(xs.render=ws.render,xs.staticRenderFns=ws.staticRenderFns,xs._compiled=!0,Ms&&(xs.functional=!0)),xs._scopeId=Cs,xs);function Ss(e){Ss.installed||(Ss.installed=!0,e.component(Ps.name,Ps))}var Es=Object.freeze({__proto__:null,default:Ss,OpenStreetMapImageryProvider:Ps,install:Ss});var Ts,Os,ks,Rs,Fs,Ls=(Ts={},Rs=ks=void 0,(Fs=("function"==typeof(Os={name:"vc-provider-imagery-tile-single",mixins:[So,Ro,Io,Lo,ya]})?Os.options:Os)||{}).__file="SingleTileImageryProvider.vue",Fs.render||(Fs.render=Ts.render,Fs.staticRenderFns=Ts.staticRenderFns,Fs._compiled=!0,Rs&&(Fs.functional=!0)),Fs._scopeId=ks,Fs);function Is(e){Is.installed||(Is.installed=!0,e.component(Ls.name,Ls))}var js=Object.freeze({__proto__:null,default:Is,SingleTileImageryProvider:Ls,install:Is}),As={name:"vc-provider-imagery-tile-coordinates",mixins:[Fo,Lo,jo,Ao,ya],props:{color:{type:Object|String|Array,default:"YELLOW"}}};var Ds,Ns,Gs,zs,Bs,Vs=(Ds={},zs=Gs=void 0,(Bs=("function"==typeof(Ns=As)?Ns.options:Ns)||{}).__file="TileCoordinatesImageryProvider.vue",Bs.render||(Bs.render=Ds.render,Bs.staticRenderFns=Ds.staticRenderFns,Bs._compiled=!0,zs&&(Bs.functional=!0)),Bs._scopeId=Gs,Bs);function qs(e){qs.installed||(qs.installed=!0,e.component(Vs.name,Vs))}var Ws=Object.freeze({__proto__:null,default:qs,TileCoordinatesImageryProvider:Vs,install:qs}),Us={name:"vc-provider-imagery-tile-mapservice",mixins:[So,Go,Io,No,Do,Ro,Fo,Lo,jo,Ao,ya],props:{flipXY:Boolean}};var Hs,$s,Zs,Ks,Xs,Js=(Hs={},Ks=Zs=void 0,(Xs=("function"==typeof($s=Us)?$s.options:$s)||{}).__file="TileMapServiceImageryProvider.vue",Xs.render||(Xs.render=Hs.render,Xs.staticRenderFns=Hs.staticRenderFns,Xs._compiled=!0,Ks&&(Xs.functional=!0)),Xs._scopeId=Zs,Xs);function Ys(e){Ys.installed||(Ys.installed=!0,e.component(Js.name,Js))}var Qs=Object.freeze({__proto__:null,default:Ys,TileMapServiceImageryProvider:Js,install:Ys}),ec={name:"vc-provider-imagery-urltemplate",mixins:[So,Vo,Io,No,Do,Ro,Fo,Lo,jo,Ao,qo,ko,ya],props:{pickFeaturesUrl:String|Object,urlSchemeZeroPadding:Object,hasAlphaChannel:{type:Boolean,default:!0},customTags:Object}};var tc,rc,ic,nc,oc,ac=(tc={},nc=ic=void 0,(oc=("function"==typeof(rc=ec)?rc.options:rc)||{}).__file="UrlTemplateImageryProvider.vue",oc.render||(oc.render=tc.render,oc.staticRenderFns=tc.staticRenderFns,oc._compiled=!0,nc&&(oc.functional=!0)),oc._scopeId=ic,oc);function sc(e){sc.installed||(sc.installed=!0,e.component(ac.name,ac))}var cc=Object.freeze({__proto__:null,default:sc,UrlTemplateImageryProvider:ac,install:sc}),lc={name:"vc-provider-imagery-wms",mixins:[So,Oo,ko,qo,Ro,Fo,Lo,jo,Ao,No,Do,Io,Vo,Wo,Uo,Eo,ya],props:{parameters:Object,getFeatureInfoParameters:Object,crs:String,srs:String}};var uc,hc,dc,pc,mc,fc=(uc={},pc=dc=void 0,(mc=("function"==typeof(hc=lc)?hc.options:hc)||{}).__file="WebMapServiceImageryProvider.vue",mc.render||(mc.render=uc.render,mc.staticRenderFns=uc.staticRenderFns,mc._compiled=!0,pc&&(mc.functional=!0)),mc._scopeId=dc,mc);function vc(e){vc.installed||(vc.installed=!0,e.component(fc.name,fc))}var gc=Object.freeze({__proto__:null,default:vc,WebMapServiceImageryProvider:fc,install:vc}),yc={name:"vc-provider-imagery-wmts",mixins:[So,Wo,Uo,jo,Ao,Fo,Ro,No,Do,Lo,Io,Vo,On,Eo,ya],props:{format:{type:String,default:"image/jpeg"},layer:String,wmtsStyle:String,tileMatrixSetID:String,tileMatrixLabels:Array},methods:{createCesiumObject:function(){var t,r,i;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.$props,r=this.transformProps,(i=r(t)).url=void 0!==i.token?i.url+"&tk="+i.token:i.url,e.abrupt("return",new Cesium.WebMapTileServiceImageryProvider(i));case 4:case"end":return e.stop()}},null,this)}}};var bc,wc,_c,Cc,Mc,xc=(bc={},Cc=_c=void 0,(Mc=("function"==typeof(wc=yc)?wc.options:wc)||{}).__file="WebMapTileServiceImageryProvider.vue",Mc.render||(Mc.render=bc.render,Mc.staticRenderFns=bc.staticRenderFns,Mc._compiled=!0,Cc&&(Mc.functional=!0)),Mc._scopeId=_c,Mc);function Pc(e){Pc.installed||(Pc.installed=!0,e.component(xc.name,xc))}var Sc=Object.freeze({__proto__:null,default:Pc,WebMapTileServiceImageryProvider:xc,install:Pc}),Ec=Se.onFreeze;ue("freeze",function(t){return function(e){return t&&c(e)?t(Ec(e)):e}});var Tc=w.Object.freeze;function Oc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kc(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),D(e,i.key,i)}}function Rc(e,t,r){return t&&kc(e.prototype,t),r&&kc(e,r),e}var Fc={IMG_W:"img_w",IMG_C:"img_c",CIA_W:"cia_w",CIA_C:"cia_c",VEC_W:"vec_w",VEC_C:"vec_c",TER_W:"ter_w",TER_C:"ter_c",CVA_W:"cva_w",CVA_C:"cva_c",CTA_W:"cta_w",CTA_C:"cta_c",EIA_W:"eia_w",EIA_C:"eia_c",EVA_W:"eva_w",EVA_C:"eva_c"},Lc={},Ic={},jc={},Ac={},Dc={},Nc={},Gc=function(){function l(t){Oc(this,l),vt(Fc).forEach(function(e){switch(Lc[Fc[e]]=t.protocol+"://[subdomain].tianditu.gov.cn/"+Fc[e]+"/wmts",Ic[Fc[e]]=Fc[e].slice(0,3),jc[Fc[e]]=Fc[e].slice(4),Ac[Fc[e]]="tiles","w"===jc[Fc[e]]?Dc[Fc[e]]="900913":Dc[Fc[e]]="4490",Fc[e]){case"img_w":case"img_c":case"cia_w":case"cia_c":case"cta_w":case"cta_c":Nc[Fc[e]]=["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18"];break;case"vec_w":case"vec_c":case"cva_w":case"cva_c":Nc[Fc[e]]=["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"];break;case"ter_w":case"ter_c":Nc[Fc[e]]=["1","2","3","4","5","6","7","8","9","10","11","12","13","14"];break;case"eia_w":case"eia_c":case"eva_w":case"eva_c":Nc[Fc[e]]=["1","2","3","4","5","6","7","8","9","10"]}});var e=Cesium,r=e.Credit,i=e.defaultValue,n=e.Event,o=e.GeographicTilingScheme,a=e.WebMercatorTilingScheme,s=e.when;t=i(t,{}),this.m_mapStyle=i(t.mapStyle,Fc.IMG_W),this.m_url=i(t.url,Lc[this.m_mapStyle]),this.m_token=t.token,this.m_layer=i(t.layer,Ic[this.m_mapStyle]),this.m_style=i(t.style,"default"),this.m_tileMatrixSetID=i(t.tileMatrixSetID,jc[this.m_mapStyle]),this.m_tileMatrixLabels=i(t.tileMatrixLabels,Nc[this.m_mapStyle]),this.m_format=i(t.format,Ac[this.m_mapStyle]),this.m_epsgCode=Dc[this.m_mapStyle],this.m_tilingScheme=new("900913"===this.m_epsgCode?a:o),this.m_tileWidth=i(t.tileWidth,256),this.m_tileHeight=i(t.tileHeight,256),this.m_minimumLevel=i(t.minimumLevel,0),this.m_maximumLevel=i(t.maximumLevel,Nc[this.m_mapStyle].length),this.m_rectangle=i(t.rectangle,this.tilingScheme.rectangle),this.m_readyPromise=s.resolve(!0),this.m_errorEvent=new n;var c=i(t.credit,"天地图全球影像服务");this.m_credit="string"==typeof c?new r(c):c,this.m_subdomains=i(t.subdomains,["t0","t1","t2","t3","t4","t5","t6","t7"]),this.m_tileDiscardPolicy=t.tileDiscardPolicy}return Rc(l,[{key:"requestImage",value:function(e,t,r){var i=function(e,t,r){var i=Cesium,n=i.combine,o=i.defined,a=i.defaultValue,s=i.queryToObject,c=i.objectToQuery,l=i.Uri,u=(Tc||function(){})({service:"WMTS",version:"1.0.0",request:"GetTile"});"900913"===this.m_epsgCode&&--r;var h=this.m_tileMatrixLabels,d=o(h)?h[r]:r.toString(),p=this.m_subdomains,m=this.m_url.replace("[subdomain]",p[(e+t+r)%p.length]),f=new l(m),v=s(a(f.query,""));return(v=n(u,v)).tilematrix=d,v.layer=this.m_layer,v.style=this.m_style,v.tilerow=t,v.tilecol=e,v.tilematrixset=this.m_tileMatrixSetID,v.format=this.m_format,f.query=c(v),m=f.toString(),o(this.m_proxy)&&(m=this.m_proxy.getURL(m)),o(this.m_token)&&(m+="&tk="+this.m_token),m}.call(this,e,t,r);return Cesium.ImageryProvider.loadImage(this,i)}},{key:"pickFeatures",value:function(){}},{key:"url",get:function(){return this.m_url}},{key:"mapStyle",get:function(){return this.m_mapStyle}},{key:"tileWidth",get:function(){return this.m_tileWidth}},{key:"tileHeight",get:function(){return this.m_tileHeight}},{key:"maximumLevel",get:function(){return this.m_maximumLevel}},{key:"minimumLevel",get:function(){return this.m_minimumLevel}},{key:"tilingScheme",get:function(){return this.m_tilingScheme}},{key:"rectangle",get:function(){return this.m_rectangle}},{key:"errorEvent",get:function(){return this.m_errorEvent}},{key:"ready",get:function(){return!0}},{key:"readyPromise",get:function(){return this.m_readyPromise}},{key:"credit",get:function(){return this.m_credit}},{key:"hasAlphaChannel",get:function(){return!0}},{key:"tileDiscardPolicy",get:function(){return this.m_tileDiscardPolicy}}]),l}();var zc={name:"vc-provider-imagery-tianditu",mixins:[ya],props:{mapStyle:String,token:String,protocol:{type:String,default:"https"}},methods:{createCesiumObject:function(){var t,r,i,n,o;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.$props,r=this.transformProps,i=this.setPropWatchers,n=this.unwatchFns,o=r(t),Cesium.TiandituImageryProvider=Gc,0===n.length&&i(!0),e.abrupt("return",new Cesium.TiandituImageryProvider(o));case 5:case"end":return e.stop()}},null,this)}}};var Bc,Vc,qc,Wc,Uc,Hc=(Bc={},Wc=qc=void 0,(Uc=("function"==typeof(Vc=zc)?Vc.options:Vc)||{}).__file="TiandituImageryProvider.vue",Uc.render||(Uc.render=Bc.render,Uc.staticRenderFns=Bc.staticRenderFns,Uc._compiled=!0,Wc&&(Uc.functional=!0)),Uc._scopeId=qc,Uc);function $c(e){$c.installed||($c.installed=!0,e.component(Hc.name,Hc))}function Zc(e,t,r){var i={},n=l(function(){return Xc[e]()||"…"!="…"[e]()}),o=i[e]=n?t(el):Xc[e];r&&(i[r]=o),S(S.P+S.F*n,"String",i)}var Kc=Object.freeze({__proto__:null,default:$c,TiandituImageryProvider:Hc,install:$c}),Xc="\t\n\v\f\r   \u2028\u2029\ufeff",Jc="["+Xc+"]",Yc=RegExp("^"+Jc+Jc+"*"),Qc=RegExp(Jc+Jc+"*$"),el=Zc.trim=function(e,t){return e=String(T(e)),1&t&&(e=e.replace(Yc,"")),2&t&&(e=e.replace(Qc,"")),e},tl=Zc,rl=b.parseFloat,il=tl.trim,nl=1/rl(Xc+"-0")!=-1/0?function(e){var t=il(String(e),3),r=rl(t);return 0===r&&"-"==t.charAt(0)?-0:r}:rl;S(S.G+S.F*(parseFloat!=nl),{parseFloat:nl});var ol=w.parseFloat,al=b.parseInt,sl=tl.trim,cl=/^[-+]?0[xX]/,ll=8!==al(Xc+"08")||22!==al(Xc+"0x16")?function(e,t){var r=sl(String(e),3);return al(r,t>>>0||(cl.test(r)?16:10))}:al;S(S.G+S.F*(parseInt!=ll),{parseInt:ll});var ul=w.parseInt,hl=1,dl=2,pl=3,ml=function(){function n(e){if(Oc(this,n),!Cesium.defined(e.name))throw new Cesium.DeveloperError("options.name is required.");var t=Cesium.when.defer();this.dbname=e.name;var r=window.indexedDB.open(this.dbname),i=this;return r.onsuccess=function(e){i.db=e.target.result,i.version=i.db.version,i.cachestatus=i.cachestatus||{},t.resolve(i)},r.onupgradeneeded=function(e){i.db=e.target.result,i.version=i.db.version,t.resolve(i)},r.onerror=function(e){i.db=null,t.reject("create database fail, error code : "+e.target.errorcode)},this.layer=e.layer||null,this.storageType=e.storageType||"arrayBuffer",this.creatingTable=!1,this.cachestatus={},t.promise}return Rc(n,[{key:"checkObjectStoreExist",value:function(e){return!!Cesium.defined(this.db)&&this.db.objectStoreNames.contains(e)}},{key:"createObjectStore",value:function(i){var n=Cesium.when.defer();if(this.creatingTable)n.reject(!1);else{if(this.db.objectStoreNames.contains(i))return n.reject(!1),n.promise;this.creatingTable=!0;var e=ul(this.db.version);this.db.close();var o=this,t=window.indexedDB.open(this.dbname,e+1);t.onupgradeneeded=function(e){var t=e.target.result,r=(o.db=t).createObjectStore(i,{keyPath:"id"});Cesium.defined(r)?(r.createIndex("value","value",{unique:!1}),o.creatingTable=!1,o.cachestatus=o.cachestatus||{},o.cachestatus[i]={},o.db.close(),window.indexedDB.open(o.dbname).onsuccess=function(e){o.db=e.target.result,n.resolve(!0)}):(o.creatingTable=!1,n.resolve(!1))},t.onsuccess=function(e){e.target.result.close(),n.resolve(!0)},t.onerror=function(e){o.creatingTable=!1,n.reject(!1)}}return n.promise}},{key:"putElementInDB",value:function(t,r,i){var n=Cesium.when.defer();if(!Cesium.defined(this.db))return n.reject(!1),n.promise;var o=this.cachestatus,a=this.db;if(Cesium.defined(o[t])&&Cesium.defined(o[t][r]&&(o[t][r]===hl||o[t][r]===dl)))return n.resolve(!1),n.promise;if(a.objectStoreNames.contains(t)){o[t]=o[t]||{};try{var e=a.transaction([t],"readwrite").objectStore(t).add({id:r,value:i});o[t][r]=hl,e.onsuccess=function(e){o[t][r]=dl,n.resolve(!0)},e.onerror=function(e){o[t][r]=pl,n.resolve(!1)}}catch(e){return n.reject(null),n.promise}}else this.createObjectStore(t).then(function(){var e=a.transaction([t],"readwrite").objectStore(t).add({id:r,value:i});e.onsuccess=function(e){n.resolve(!0)},e.onerror=function(e){n.reject(!1)}},function(){n.reject(!1)});return n.promise}},{key:"getElementFromDB",value:function(e,t){var r=Cesium.when.defer(),i=this.db;if(!Cesium.defined(i))return null;if(!i.objectStoreNames.contains(e))return null;try{var n=i.transaction([e]).objectStore(e).get(t);n.onsuccess=function(e){return Cesium.defined(e.target.result)?void r.resolve(e.target.result.value):void r.reject(null)},n.onerror=function(e){r.reject(null)}}catch(e){r.reject(null)}return r.promise}},{key:"updateElementInDB",value:function(e,t,r){var i=Cesium.when.defer(),n=this.db;if(!Cesium.defined(n))return i.resolve(!1),i.promise;if(!n.objectStoreNames.contains(e))return i.resolve(!1),i.promise;try{var o=n.transaction([e],"readwrite").objectStore(e).put({id:t,value:r});o.onsuccess=function(){i.resolve(!0)},o.onerror=function(){i.resolve(!1)}}catch(e){i.resolve(!1)}return i.promise}},{key:"removeElementFromDB",value:function(e,t){var r=Cesium.when.defer(),i=this.db;if(!Cesium.defined(i))return r.resolve(!1),r.promise;if(!i.objectStoreNames.contains(e))return r.resolve(!1),r.promise;try{var n=i.transaction([e],"readwrite").objectStore(e).delete(t);n.onsuccess=function(){r.resolve(!0)},n.onerror=function(){r.resolve(!1)}}catch(e){r.resolve(!1)}return r.promise}},{key:"clear",value:function(e){var t=Cesium.when.defer(),r=this.db;if(!Cesium.defined(r))return t.resolve(!1),t.promise;if(!r.objectStoreNames.contains(e))return t.resolve(!1),t.promise;try{var i=r.transaction([e],"readwrite").objectStore(e).clear();i.onsuccess=function(){t.resolve(!0)},i.onerror=function(){t.resolve(!1)}}catch(e){t.resolve(!1)}return t.promise}}]),n}(),fl=function(){function v(e){Oc(this,v);var t=Cesium,r=t.appendForwardSlash,i=t.Credit,n=t.defaultValue,o=t.defined,a=t.DeveloperError,s=t.Event,c=t.Resource,l=t.when,u=t.Math,h=(e=n(e,{})).url;if(!o(h))throw new a("options.url is required.");var d=h.substring(0,h.indexOf("datas"));this.tablename=h.substring(0,h.indexOf("datas/")+6,h.length);var p=this;new ml({name:d+this.tablename}).then(function(e){p.m_indexedDBScheduler=e}),this.m_indexedDBSetting={isOpen:!1,clear:function(){p.m_indexedDBScheduler.clear(p.tablename)}},this.isSci=!1,this.isTileMap=!1;var m=r(h);if(-1<m.indexOf("rest/maps"))this.isTileMap=!0,this.layersID=e.layersID;else{if(!(-1<m.indexOf("rest/realspace")))throw new a("The url type is not supported!");this.isSci=!0}this.m_url=m,this.m_resource=c.createIfNeeded(m),this.m_transparent=n(e.transparent,!0),this.m_name=e.name||"",this.m_urlTemplate=void 0,this.m_errorEvent=new s,this.m_fileExtension="png",this.m_tileWidth=256,this.m_tileHeight=256,this.m_minimumLevel=n(e.minimumLevel,0),this.m_maximumLevel=e.maximumLevel,this.m_rectangle=void 0,this.m_tilingScheme=void 0,this.m_tileDiscardPolicy=e.tileDiscardPolicy,this.m_fRatio=n(e.ratio,u.DEGREES_PER_RADIAN/6378137),this.m_scales=[],this.m_coordUnit="DEGREE";var f=n(e.credit,new i("MapQuest, SuperMap iServer Imagery"));"string"==typeof f&&(f=new i(f)),this.m_credit=f,this.m_ready=!1,this.m_readyPromise=l.defer(),this.m_options=e,bl.call(this)}return Rc(v,[{key:"getTileCredits",value:function(){if(!this.ready)throw new Cesium.DeveloperError("getTileCredits must not be called before the imagery provider is ready.")}},{key:"requestImage",value:function(e,t,r,i){var n=Cesium,o=n.defined,a=n.DeveloperError,s=n.ImageryProvider,c=n.when;if(!this.ready)throw new a("requestImage must not be called before the imagery provider is ready.")();var l=function(e,t,r){var i;{var n,o;this.isTileMap?"DEGREE"===this.m_coordUnit?(n=gl[r+1]||gl[r],i=this.m_urlTemplate.replace("{x}",e).replace("{y}",t).replace("{scale}",n)):"METER"===this.m_coordUnit&&(o=gl[r],i=this.m_urlTemplate.replace("{x}",e).replace("{y}",t).replace("{scale}",o)):i=this.m_urlTemplate.replace("{x}",e).replace("{y}",t).replace("{level}",r).replace("{fileExtension}",this.m_fileExtension)}return i}.call(this,e,t,r),u=this.m_resource.getDerivedResource({url:l,request:i}),h=this;if(this.m_indexedDBSetting.isOpen&&o(this.m_indexedDBScheduler)){var d=this.m_indexedDBScheduler.getElementFromDB(this.tablename,l);return o(d)?c(d,function(e){if(o(e)){var t=new Image;return t.src=e,t}return s.loadImage(h,u)},function(e){return s.loadImage(h,u)}):s.loadImage(h,u)}return s.loadImage(this,u)}},{key:"pickFeatures",value:function(){}},{key:"url",get:function(){return this.m_url}},{key:"name",get:function(){return this.m_name},set:function(e){this.m_name=e}},{key:"tileWidth",get:function(){if(!this.m_ready)throw new Cesium.DeveloperError("tileWidth must not be called before the imagery provider is ready.");return this.m_tileWidth}},{key:"tileHeight",get:function(){if(!this.m_ready)throw new Cesium.DeveloperError("tileHeight must not be called before the imagery provider is ready.");return this.m_tileHeight}},{key:"maximumLevel",get:function(){if(!this.m_ready)throw new Cesium.DeveloperError("maximumLevel must not be called before the imagery provider is ready.");return this.m_maximumLevel}},{key:"minimumLevel",get:function(){if(!this.m_ready)throw new Cesium.DeveloperError("minimumLevel must not be called before the imagery provider is ready.");return this.m_minimumLevel}},{key:"tilingScheme",get:function(){if(!this.m_ready)throw new Cesium.DeveloperError("tilingScheme must not be called before the imagery provider is ready.");return this.m_tilingScheme}},{key:"rectangle",get:function(){if(!this.m_ready)throw new Cesium.DeveloperError("rectangle must not be called before the imagery provider is ready.");return this.m_rectangle}},{key:"errorEvent",get:function(){return this.m_errorEvent}},{key:"ready",get:function(){return this.m_ready}},{key:"credit",get:function(){return this.m_credit}},{key:"hasAlphaChannel",get:function(){return!0}},{key:"readyPromise",get:function(){return this.m_readyPromise}},{key:"ratio",get:function(){return this.m_fRatio},set:function(e){this.m_fRatio=e}},{key:"tileDiscardPolicy",get:function(){return this.m_tileDiscardPolicy}}]),v}(),vl={},gl=["1.690163571602655E-9","3.3803271432053056E-9","6.760654286410611E-9","1.3521308572821242E-8","2.7042617145642484E-8","5.408523429128511E-8","1.0817046858256998E-7","2.1634093716513974E-7","4.3268187433028044E-7","8.653637486605571E-7","1.7307274973211203E-6","3.4614549946422405E-6","6.9229099892844565E-6","1.3845819978568952E-5","2.7691639957137904E-5","5.53832799142758E-5","1.107665598285516E-4","2.215331196571032E-4","4.430662393142064E-4","8.861324786284128E-4","1.772264957256826E-3","3.544529914513652E-3"],yl=[1.690163571602655e-9,3.3803271432053056e-9,6.760654286410611e-9,1.3521308572821242e-8,2.7042617145642484e-8,5.408523429128511e-8,1.0817046858256998e-7,2.1634093716513974e-7,4.3268187433028044e-7,8.653637486605571e-7,17307274973211203e-22,34614549946422405e-22,69229099892844565e-22,13845819978568952e-21,27691639957137904e-21,553832799142758e-19,.0001107665598285516,.0002215331196571032,.0004430662393142064,.0008861324786284128,.001772264957256826,.003544529914513652];function bl(){var e=Cesium,t=e.Resource,r=e.when;this.isTileMap?r(t.fetchJsonp({url:this.m_options.url+".jsonp",queryParameters:{f:"json"}}),function(e){var t=Cesium,r=t.Cartesian3,i=t.defaultValue,n=t.defined,o=t.GeographicTilingScheme,a=t.Math,s=t.Rectangle,c=t.WebMercatorTilingScheme,l=e.prjCoordSys.coordUnit;this.m_coordUnit=l;var u=e.bounds,h=e.visibleScales;{var d;n(h)&&1<h.length&&n(this.m_maximumLevel)&&(d=h[h.length-1],this.m_maximumLevel=function(e){for(var t=yl.length;t--;)if(e[t]<=e)return t}(d))}{var p,m,f,v;"DEGREE"===l?(this.m_tilingScheme=new o,u.left=a.clamp(u.left,-180,180),u.bottom=a.clamp(u.bottom,-90,90),u.right=a.clamp(u.right,-180,180),u.top=a.clamp(u.top,-90,90),this.m_rectangle=s.fromDegrees(u.left,u.bottom,u.right,u.top),this.m_urlTemplate=this.m_url+'tileImage.png?transparent={transparent}&cacheEnabled=true&width=256&height=256&x={x}&y={y}&scale={scale}&redirect=false&overlapDisplayed=false&origin={"x":-180,"y":90}'):((p=new r(u.left,u.bottom,0)).x=a.max(-20037508.342789244,p.x),p.y=a.max(-20037508.342789244,p.y),(m=new r(u.right,u.top,0)).x=a.min(20037508.342789244,m.x),m.y=a.min(20037508.342789244,m.y),this.m_tilingScheme=new c,f=this.m_tilingScheme.projection.unproject(p),v=this.m_tilingScheme.projection.unproject(m),this.m_rectangle=new s(f.longitude,f.latitude,v.longitude,v.latitude),this.m_urlTemplate=this.m_url+'tileImage.png?transparent={transparent}&cacheEnabled=true&width=256&height=256&x={x}&y={y}&scale={scale}&redirect=false&overlapDisplayed=false&origin={"x":-20037508.342789248 ,"y":20037508.342789095}')}this.m_urlTemplate=this.m_urlTemplate.replace("{transparent}",this.m_transparent),this.layersID&&(this.m_urlTemplate=this.m_urlTemplate+"&layersID="+this.layersID),this.m_rectangle||(this.m_rectangle=i(this.m_options.rectangle,this.m_tilingScheme.rectangle)),this.m_ready=!0,this.m_readyPromise.resolve(!0)}.bind(this),Ml.bind(this)):r(t.fetchText({url:this.url+"config"}),function(e){var t=function(e){var t=new DOMParser;e=t.parseFromString(e,"application/xml");for(var r="http://www.supermap.com/SuperMapCache/sci3d",i=e.childNodes[0],n=function(e,t,r){if(Cesium.defined(e)){for(var i=[],n=e.getElementsByTagNameNS("*",t),o=n.length,a=0;a<o;a++){var s=n[a];s.localName===t&&-1!==r.indexOf(s.namespaceURI)&&i.push(s)}return i}}(Cl(i,"Levels",r),"Level",r),o=[],a=0;a<n.length;a++)o.push(ul(n[a].textContent,10));var s=Cl(i,"Bounds",r),c=_l(s,"Left",r),l=_l(s,"Right",r),u=_l(s,"Top",r),h=_l(s,"Bottom",r),d=wl(i,"FileExtentName",r),p=_l(i,"CellWidth",r),m=_l(i,"CellHeight",r),f=wl(i,"CacheName",r);return this.m_name=f||"",{left:c,right:l,top:u,bottom:h,fileExtentName:d,levels:o,imageSizeWidth:p,imageSizeHeight:m}}.call(this,e),r=Cesium,i=r.defaultValue,n=r.defined,o=r.GeographicTilingScheme,a=r.Math,s=r.Rectangle;this.m_fileExtension=i(t.fileExtentName,"png"),this.m_tileWidth=i(t.imageSizeWidth,256),this.m_tileHeight=i(t.imageSizeHeight,256);var c=t.levels,l=c.length;this.m_minimumLevel=i(c[0],0),this.m_maximumLevel=i(c[l-1],l-1),n(this.m_tilingScheme)||(this.m_tilingScheme=new o({ellipsoid:this.m_options.ellipsoid}));{var u,h,d,p;n(this.m_rectangle)||t.left&&t.right&&t.top&&t.bottom&&(u=a.toRadians(t.left),h=a.toRadians(t.right),d=a.toRadians(t.bottom),p=a.toRadians(t.top),this.m_rectangle=new s(u,d,h,p))}var m=this.m_tilingScheme;this.m_rectangle.west<m.rectangle.west&&(this.m_rectangle.west=m.rectangle.west),this.m_rectangle.east>m.rectangle.east&&(this.m_rectangle.east=m.rectangle.east),this.m_rectangle.south<m.rectangle.south&&(this.m_rectangle.south=m.rectangle.south),this.m_rectangle.north>m.rectangle.north&&(this.m_rectangle.north=m.rectangle.north);var f=m.positionToTileXY(s.southwest(this.m_rectangle),this.m_minimumLevel),v=m.positionToTileXY(s.northeast(this.m_rectangle),this.m_minimumLevel);4<(window.Math.abs(v.x-f.x)+1)*(window.Math.abs(v.y-f.y)+1)&&(this.m_minimumLevel=0),this.m_tilingScheme=m,this.m_urlTemplate=this.m_url+"data/index/{y}/{x}.{fileExtension}?level={level}",this.m_ready=!0,this.m_readyPromise.resolve(!0)}.bind(this),Ml.bind(this))}function wl(e,t,r){var i=Cl(e,t,r);return Cesium.defined(i)?i.textContent.trim():void 0}function _l(e,t,r){var i=Cl(e,t,r);if(Cesium.defined(i)){var n=ol(i.textContent);return isNaN(n)?void 0:n}}function Cl(e,t,r){if(Cesium.defined(e))for(var i=e.childNodes,n=i.length,o=0;o<n;o++){var a=i[o];if(a.localName===t&&-1!==r.indexOf(a.namespaceURI))return a}}function Ml(){var e=Cesium,t=e.TileProviderError,r=e.RuntimeError,i="An error occurred while accessing "+this.m_url+".";vl=t.handleError(vl,this,this.m_errorEvent,i,void 0,void 0,void 0,bl.bind(this)),this.m_readyPromise.reject(new r(i))}var xl={name:"vc-provider-imagery-supermap",mixins:[So,No,Do,ya],props:{name:String,transparent:{type:Boolean,default:!0},credit:{type:String,default:"MapQuest, SuperMap iServer Imagery"}},methods:{createCesiumObject:function(){var t,r,i,n,o;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.$props,r=this.transformProps,i=this.setPropWatchers,n=this.unwatchFns,o=r(t),Cesium.SuperMapImageryProvider=Cesium.SuperMapImageryProvider||fl,0===n.length&&i(!0),e.abrupt("return",new Cesium.SuperMapImageryProvider(o));case 5:case"end":return e.stop()}},null,this)}}};var Pl,Sl,El,Tl,Ol,kl=(Pl={},Tl=El=void 0,(Ol=("function"==typeof(Sl=xl)?Sl.options:Sl)||{}).__file="SuperMapImageryProvider.vue",Ol.render||(Ol.render=Pl.render,Ol.staticRenderFns=Pl.staticRenderFns,Ol._compiled=!0,Tl&&(Ol.functional=!0)),Ol._scopeId=El,Ol);function Rl(e){Rl.installed||(Rl.installed=!0,e.component(kl.name,kl))}var Fl=Object.freeze({__proto__:null,default:Rl,SuperMapImageryProvider:kl,install:Rl}),Ll={name:"vc-provider-imagery-tiledcache",mixins:[So,Bo,Io,No,Do,Ro,Fo,Lo,jo,Ao,ya],props:{dir:{type:String,reqiured:!0},scales:{type:Array,default:function(){return[1/295829355,1/147914678,1/73957339,1/36978669,1/18489335,1/9244667,1/4622334,1/2311167,1/1155583,1/577792,1/288896,1/144448,1/72224,1/36112,1/18056,1/9026,1/4514]}}},methods:{createCesiumObject:function(){var t,r,o,a,i,n,s,c,l,u,h,d,p,m,f,v,g,y,b,w,_,C,M,x,P,S,E,T,O;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.$props,r=this.transformProps,o=this.padWithZerosIfNecessary,a=this.scales,i=r(t),n=Cesium,s=n.Credit,c=n.defined,l=n.defaultValue,u=n.DeveloperError,h=n.Ellipsoid,d=n.GeographicTilingScheme,p=n.Rectangle,m=n.Resource,f=n.UrlTemplateImageryProvider,v=i.url,g=i.dir,y=i.format,c(v)){e.next=6;break}throw new u("options.url is required.");case 6:if(c(g)){e.next=8;break}throw new u("options.dir is required.");case 8:if((b=m.createIfNeeded(v)).url+="?dir=".concat(g,"&scale={scale}&col={x}&row={y}&format=").concat(y),w=l(i.tilingScheme,new d({ellipsoid:l(i.ellipsoid,h.WGS84),numberOfLevelZeroTilesX:2,numberOfLevelZeroTilesY:1})),_=l(i.tileWidth,256),C=l(i.tileHeight,256),M=i.maximumLevel,x=l(i.minimumLevel,0),P=l(i.rectangle,w.rectangle),S=w.positionToTileXY(p.southwest(P),x),E=w.positionToTileXY(p.northeast(P),x),4<(T=(Math.abs(E.x-S.x)+1)*(Math.abs(E.y-S.y)+1)))throw new u("The rectangle and minimumLevel indicate that there are "+T+" tiles at the minimum level. Imagery providers with more than four tiles at the minimum level are not supported.");e.next=21;break;case 21:return"string"==typeof(O=l(i.credit,""))&&(O=new s(O)),e.abrupt("return",new f({url:b,credit:O,tilingScheme:w,tileWidth:_,tileHeight:C,minimumLevel:x,maximumLevel:M,rectangle:P,customTags:{scale:function(e,t,r,i){var n=1/a[i];return o(e,"{scale}",n)}}}));case 24:case"end":return e.stop()}},null,this)},padWithZerosIfNecessary:function(e,t,r){var i,n;return e&&e.urlSchemeZeroPadding&&e.urlSchemeZeroPadding.hasOwnProperty(t)&&("string"!=typeof(i=e.urlSchemeZeroPadding[t])||1<(n=i.length)&&(r=r.length>=n?r:new Array(n-r.toString().length+1).join("0")+r)),r}}};var Il,jl,Al,Dl,Nl,Gl=(Il={},Dl=Al=void 0,(Nl=("function"==typeof(jl=Ll)?jl.options:jl)||{}).__file="TiledCacheImageryProvider.vue",Nl.render||(Nl.render=Il.render,Nl.staticRenderFns=Il.staticRenderFns,Nl._compiled=!0,Dl&&(Nl.functional=!0)),Nl._scopeId=Al,Nl);function zl(e){zl.installed||(zl.installed=!0,e.component(Gl.name,Gl))}var Bl=Object.freeze({__proto__:null,default:zl,TiledCacheImageryProvider:Gl,install:zl}),Vl={mixins:[Yi],methods:{mount:function(){var t,r;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:t=this.viewer,r=this.terrainProvider,gi.call(this,r,ni["imagery-layer-events"],!0),t.terrainProvider=r;case 3:case"end":return e.stop()}},null,this)},unmount:function(){var t,r;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:t=this.viewer,r=this.terrainProvider,gi.call(this,r,ni["imagery-layer-events"],!1),t.terrainProvider=new Cesium.EllipsoidTerrainProvider;case 3:case"end":return e.stop()}},null,this)}},stubVNode:{empty:function(){return this.$options.name}},created:function(){var e=this;te(this,{terrainProvider:{enumerable:!0,get:function(){return e.cesiumObject}}})}},ql={name:"vc-provider-terrain-arcgis-tiled-elevation",mixins:[Vl],props:{url:{type:String|Object,default:"https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer"},token:String,ellipsoid:Object}};var Wl,Ul,Hl,$l,Zl,Kl=(Wl={},$l=Hl=void 0,(Zl=("function"==typeof(Ul=ql)?Ul.options:Ul)||{}).__file="ArcGISTiledElevationTerrainProvider.vue",Zl.render||(Zl.render=Wl.render,Zl.staticRenderFns=Wl.staticRenderFns,Zl._compiled=!0,$l&&(Zl.functional=!0)),Zl._scopeId=Hl,Zl);function Xl(e){Xl.installed||(Xl.installed=!0,e.component(Kl.name,Kl))}var Jl=Object.freeze({__proto__:null,default:Xl,ArcGISTiledElevationTerrainProvider:Kl,install:Xl}),Yl={name:"vc-provider-terrain-cesium",mixins:[Vl],props:{url:String|Object,requestVertexNormals:Boolean,requestWaterMask:Boolean,requestMetadata:Boolean,ellipsoid:Object,credit:String|Object},methods:{createCesiumObject:function(){var t,r,i,n,o,a,s;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.url,r=this.requestVertexNormals,i=this.requestWaterMask,n=this.requestMetadata,o=this.ellipsoid,a=this.credit,s={url:t,requestVertexNormals:r,requestWaterMask:i,requestMetadata:n,ellipsoid:o,credit:a},this.removeNullItem(s),e.abrupt("return",s.url?new Cesium.CesiumTerrainProvider(s):Cesium.createWorldTerrain({requestVertexNormals:r,requestWaterMask:i}));case 4:case"end":return e.stop()}},null,this)}}};var Ql,eu,tu,ru,iu,nu=(Ql={},ru=tu=void 0,(iu=("function"==typeof(eu=Yl)?eu.options:eu)||{}).__file="CesiumTerrainProvider.vue",iu.render||(iu.render=Ql.render,iu.staticRenderFns=Ql.staticRenderFns,iu._compiled=!0,ru&&(iu.functional=!0)),iu._scopeId=tu,iu);function ou(e){ou.installed||(ou.installed=!0,e.component(nu.name,nu))}var au=Object.freeze({__proto__:null,default:ou,CesiumTerrainProvider:nu,install:ou}),su={mount:function(){var t,r,i=this;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.dataSources,r=this.datasource,gi.call(this,r,ni["datasource-events"],!0),ni["datasource-property-events"].forEach(function(e){r[e.name]&&gi.call(i,r[e.name],e.events,!0)}),r.show=this.show,e.abrupt("return",t&&t.add(r));case 5:case"end":return e.stop()}},null,this)},unmount:function(){var t,r,i=this;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.dataSources,r=this.datasource,gi.call(this,r,ni["datasource-events"],!1),ni["datasource-property-events"].forEach(function(e){r[e.name]&&gi.call(i,r[e.name],e.events,!1)}),e.abrupt("return",t&&t.remove(r));case 4:case"end":return e.stop()}},null,this)},getServices:function(){var e=this;return wi(Yi.methods.getServices.call(this),{get datasource(){return e.datasource},get entities(){return e.datasource.entities}})}},cu={mixins:[Yi,un],methods:su,stubVNode:{attrs:function(){return{class:this.$options.name}}},created:function(){var e=this;te(this,{datasource:{enumerable:!0,get:function(){return e.cesiumObject}},dataSources:{enumerable:!0,get:function(){return e.$services&&e.$services.dataSources}}})}},lu={name:"vc-datasource-custom",mixins:[cu],props:{name:String,entities:{type:Array,default:function(){return[]}}},methods:{createCesiumObject:function(){var t,r,i,n;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.name,r=this.transformProps,i=this.entities,n=new Cesium.CustomDataSource(t),i.forEach(function(e){var t=r(e);n.entities.add(t)}),e.abrupt("return",n);case 4:case"end":return e.stop()}},null,this)}}};var uu,hu,du,pu,mu,fu=(uu={},pu=du=void 0,(mu=("function"==typeof(hu=lu)?hu.options:hu)||{}).__file="CustomDataSource.vue",mu.render||(mu.render=uu.render,mu.staticRenderFns=uu.staticRenderFns,mu._compiled=!0,pu&&(mu.functional=!0)),mu._scopeId=du,mu);function vu(e){vu.installed||(vu.installed=!0,e.component(fu.name,fu))}var gu=Object.freeze({__proto__:null,default:vu,CustomDataSource:fu,install:vu}),yu={name:"vc-datasource-czml",mixins:[cu],props:{czml:{type:String|Object,required:!0},options:Object},methods:{createCesiumObject:function(){var t,r;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.czml,r=this.options,e.abrupt("return",Cesium.CzmlDataSource.load(t,r));case 2:case"end":return e.stop()}},null,this)}}};var bu,wu,_u,Cu,Mu,xu=(bu={},Cu=_u=void 0,(Mu=("function"==typeof(wu=yu)?wu.options:wu)||{}).__file="CzmlDataSource.vue",Mu.render||(Mu.render=bu.render,Mu.staticRenderFns=bu.staticRenderFns,Mu._compiled=!0,Cu&&(Mu.functional=!0)),Mu._scopeId=_u,Mu);function Pu(e){Pu.installed||(Pu.installed=!0,e.component(xu.name,xu))}var Su=Object.freeze({__proto__:null,default:Pu,CzmlDataSource:xu,install:Pu}),Eu={name:"vc-datasource-geojson",mixins:[cu],props:{data:{type:String|Object,required:!0},options:{type:Object,default:function(){return{markerSize:48,strokeWidth:2,clampToGround:!1}}}},methods:{createCesiumObject:function(){var t,r,i;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.$props,r=this.transformProps,i=r(t),e.abrupt("return",Cesium.GeoJsonDataSource.load(i.data,i.options));case 3:case"end":return e.stop()}},null,this)}}};var Tu,Ou,ku,Ru,Fu,Lu=(Tu={},Ru=ku=void 0,(Fu=("function"==typeof(Ou=Eu)?Ou.options:Ou)||{}).__file="GeoJsonDataSource.vue",Fu.render||(Fu.render=Tu.render,Fu.staticRenderFns=Tu.staticRenderFns,Fu._compiled=!0,Ru&&(Fu.functional=!0)),Fu._scopeId=ku,Fu);function Iu(e){Iu.installed||(Iu.installed=!0,e.component(Lu.name,Lu))}var ju=Object.freeze({__proto__:null,default:Iu,GeoJsonDataSource:Lu,install:Iu}),Au={name:"vc-datasource-kml",mixins:[cu],props:{data:{type:String|Object,required:!0},options:{type:Object,default:function(){return{clampToGround:!1}}}},methods:{createCesiumObject:function(){var t,r,i,n;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.$props,r=this.transformProps,i=this.viewer,(n=r(t)).camera||(n.camera=i.camera),n.canvas||(n.canvas=i.canvas),e.abrupt("return",Cesium.KmlDataSource.load(n.data,n.options));case 5:case"end":return e.stop()}},null,this)}}};var Du,Nu,Gu,zu,Bu,Vu=(Du={},zu=Gu=void 0,(Bu=("function"==typeof(Nu=Au)?Nu.options:Nu)||{}).__file="KmlDataSource.vue",Bu.render||(Bu.render=Du.render,Bu.staticRenderFns=Du.staticRenderFns,Bu._compiled=!0,zu&&(Bu.functional=!0)),Bu._scopeId=Gu,Bu);function qu(e){qu.installed||(qu.installed=!0,e.component(Vu.name,Vu))}var Wu=Object.freeze({__proto__:null,default:qu,KmlDataSource:Vu,install:qu}),Uu={name:"vc-entity",mixins:[Yi,ln],props:{id:String,name:String,availability:Object,show:{type:Boolean,default:!0},description:String|Object,orientation:Object,viewFrom:Object,parent:Object,billboard:Object,corridor:Object,cylinder:Object,ellipse:Object,ellipsoid:Object,box:Object,label:Object,model:Object,tileset:Object,path:Object,plane:Object,point:Object,polygon:Object,polyline:Object,properties:Object,polylineVolume:Object,rectangle:Object,wall:Object},methods:{mount:function(){var t,r;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.entities,r=this.entity,gi.call(this,r,ni["entity-events"]),e.abrupt("return",t&&t.add(r));case 3:case"end":return e.stop()}},null,this)},unmount:function(){var t,r;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.entities,r=this.entity,gi.call(this,r,ni["entity-events"],!1),e.abrupt("return",t&&t.remove(r));case 3:case"end":return e.stop()}},null,this)},setGraphics:function(e,t){return this.$listeners["update:"+t]?this.$emit("update:"+t,e):this.entity[t]=e,!0},getServices:function(){var e=this;return wi(Yi.methods.getServices.call(this),{get entity(){return e.entity},get graphicsContainer(){return e}})}},stubVNode:{attrs:function(){return{class:this.$options.name}}},created:function(){var e=this;te(this,{entity:{enumerable:!0,get:function(){return e.cesiumObject}},entities:{enumerable:!0,get:function(){return e.$services&&e.$services.entities}}})}};var Hu,$u,Zu,Ku,Xu,Ju=(Hu={},Ku=Zu=void 0,(Xu=("function"==typeof($u=Uu)?$u.options:$u)||{}).__file="Entity.vue",Xu.render||(Xu.render=Hu.render,Xu.staticRenderFns=Hu.staticRenderFns,Xu._compiled=!0,Ku&&(Xu.functional=!0)),Xu._scopeId=Zu,Xu);function Yu(e){Yu.installed||(Yu.installed=!0,e.component(Ju.name,Ju))}var Qu=Object.freeze({__proto__:null,default:Yu,Entity:Ju,install:Yu}),eh={mixins:[dn,pn,mn,fn,vn,gn,yn,bn,wn,_n,Cn,Mn,xn,Pn,Sn,En,Tn,un,hn]},th={mixins:[Yi],methods:{mount:function(){var t,r,i,n;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.graphics,r=this.graphicsContainer,i=this.$options,gi.call(this,t,ni["entity-events"]),n=i.name.split("-"),e.abrupt("return",r&&r.setGraphics(t,3===n.length?n[2]:"polylineVolume"));case 4:case"end":return e.stop()}},null,this)},unmount:function(){var t,r,i,n;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.graphics,r=this.graphicsContainer,i=this.$options,gi.call(this,t,ni["entity-events"],!1),n=i.name.split("-"),e.abrupt("return",r&&r.setGraphics(void 0,3===n.length?n[2]:"polylineVolume"));case 4:case"end":return e.stop()}},null,this)}},stubVNode:{empty:function(){return this.$options.name}},created:function(){var e=this;te(this,{graphics:{enumerable:!0,get:function(){return e.cesiumObject}},graphicsContainer:{enumerable:!0,get:function(){return e.$services&&e.$services.graphicsContainer}}})}},rh={name:"vc-graphics-billboard",mixins:[eh,th],props:{imageSubRegion:Object}};var ih,nh,oh,ah,sh,ch=(ih={},ah=oh=void 0,(sh=("function"==typeof(nh=rh)?nh.options:nh)||{}).__file="BillboardGraphics.vue",sh.render||(sh.render=ih.render,sh.staticRenderFns=ih.staticRenderFns,sh._compiled=!0,ah&&(sh.functional=!0)),sh._scopeId=oh,sh);function lh(e){lh.installed||(lh.installed=!0,e.component(ch.name,ch))}var uh=Object.freeze({__proto__:null,default:lh,BillboardGraphics:ch,install:lh});var hh,dh,ph,mh,fh,vh=(hh={},mh=ph=void 0,(fh=("function"==typeof(dh={name:"vc-graphics-box",mixins:[yn,kn,Rn,Fn,Ln,In,jn,{mixins:[On]},th]})?dh.options:dh)||{}).__file="BoxGraphics.vue",fh.render||(fh.render=hh.render,fh.staticRenderFns=hh.staticRenderFns,fh._compiled=!0,mh&&(fh.functional=!0)),fh._scopeId=ph,fh);function gh(e){gh.installed||(gh.installed=!0,e.component(vh.name,vh))}var yh=Object.freeze({__proto__:null,default:gh,BoxGraphics:vh,install:gh}),bh={mixins:[An,Mn,xn,Dn,Gn,zn]};var wh,_h,Ch,Mh,xh,Ph=(wh={},Mh=Ch=void 0,(xh=("function"==typeof(_h={name:"vc-graphics-corridor",mixins:[bh,yn,Nn,kn,Rn,Fn,Ln,In,jn,Bn,Vn,th,un,hn]})?_h.options:_h)||{}).__file="CorridorGraphics.vue",xh.render||(xh.render=wh.render,xh.staticRenderFns=wh.staticRenderFns,xh._compiled=!0,Mh&&(xh.functional=!0)),xh._scopeId=Ch,xh);function Sh(e){Sh.installed||(Sh.installed=!0,e.component(Ph.name,Ph))}var Eh=Object.freeze({__proto__:null,default:Sh,CorridorGraphics:Ph,install:Sh}),Th={mixins:[qn,Wn,Un,$n]};var Oh,kh,Rh,Fh,Lh,Ih=(Oh={},Fh=Rh=void 0,(Lh=("function"==typeof(kh={name:"vc-graphics-cylinder",mixins:[un,hn,yn,kn,Rn,Fn,Ln,In,Hn,jn,Th,th]})?kh.options:kh)||{}).__file="CylinderGraphics.vue",Lh.render||(Lh.render=Oh.render,Lh.staticRenderFns=Oh.staticRenderFns,Lh._compiled=!0,Fh&&(Lh.functional=!0)),Lh._scopeId=Rh,Lh);function jh(e){jh.installed||(jh.installed=!0,e.component(Ih.name,Ih))}var Ah=Object.freeze({__proto__:null,default:jh,CylinderGraphics:Ih,install:jh}),Dh={mixins:[Zn,Kn,xn,Dn,wn,zn]};var Nh,Gh,zh,Bh,Vh,qh=(Nh={},Bh=zh=void 0,(Vh=("function"==typeof(Gh={name:"vc-graphics-ellipse",mixins:[un,hn,yn,Nn,kn,Rn,Fn,Ln,In,Hn,jn,Bn,Vn,Xn,Dh,th]})?Gh.options:Gh)||{}).__file="EllipseGraphics.vue",Vh.render||(Vh.render=Nh.render,Vh.staticRenderFns=Nh.staticRenderFns,Vh._compiled=!0,Bh&&(Vh.functional=!0)),Vh._scopeId=zh,Vh);function Wh(e){Wh.installed||(Wh.installed=!0,e.component(qh.name,qh))}var Uh=Object.freeze({__proto__:null,default:Wh,EllipseGraphics:qh,install:Wh}),Hh={mixins:[Jn,Yn,Qn]};var $h,Zh,Kh,Xh,Jh,Yh=($h={},Xh=Kh=void 0,(Jh=("function"==typeof(Zh={name:"vc-graphics-ellipsoid",mixins:[un,hn,yn,kn,Rn,Fn,Ln,In,eo,jn,Hh,th]})?Zh.options:Zh)||{}).__file="EllipsoidGraphics.vue",Jh.render||(Jh.render=$h.render,Jh.staticRenderFns=$h.staticRenderFns,Jh._compiled=!0,Xh&&(Jh.functional=!0)),Jh._scopeId=Kh,Jh);function Qh(e){Qh.installed||(Qh.installed=!0,e.component(Yh.name,Yh))}var ed=Object.freeze({__proto__:null,default:Qh,EllipsoidGraphics:Yh,install:Qh}),td={mixins:[un,hn,to,ro,io,pn,no,oo,ao,mn,fn,vn,gn,yn,so,Ln,In,Sn,En,Pn,Tn]};var rd,id,nd,od,ad,sd=(rd={},od=nd=void 0,(ad=("function"==typeof(id={name:"vc-graphics-label",mixins:[td,th]})?id.options:id)||{}).__file="LabelGraphics.vue",ad.render||(ad.render=rd.render,ad.staticRenderFns=rd.staticRenderFns,ad._compiled=!0,od&&(ad.functional=!0)),ad._scopeId=nd,ad);function cd(e){cd.installed||(cd.installed=!0,e.component(sd.name,sd))}var ld=Object.freeze({__proto__:null,default:cd,LabelGraphics:sd,install:cd}),ud={mixins:[un,hn,pn,lo,uo,ho,po,jn,yn,mo,fo,bn,vo,go]},hd={name:"vc-graphics-model",mixins:[ud,th],props:{uri:String,runAnimations:{type:Boolean,default:!0},imageBasedLightingFactor:{type:Object,default:function(){return{x:1,y:1}}},lightColor:Object,nodeTransformations:Object,articulations:Object}};var dd,pd,md,fd,vd,gd=(dd={},fd=md=void 0,(vd=("function"==typeof(pd=hd)?pd.options:pd)||{}).__file="ModelGraphics.vue",vd.render||(vd.render=dd.render,vd.staticRenderFns=dd.staticRenderFns,vd._compiled=!0,fd&&(vd.functional=!0)),vd._scopeId=md,vd);function yd(e){yd.installed||(yd.installed=!0,e.component(gd.name,gd))}var bd=Object.freeze({__proto__:null,default:yd,ModelGraphics:gd,install:yd}),wd={name:"vc-graphics-tileset",mixins:[un,co,th],props:{maximumScreenSpaceError:Number}};var _d,Cd,Md,xd,Pd,Sd=(_d={},xd=Md=void 0,(Pd=("function"==typeof(Cd=wd)?Cd.options:Cd)||{}).__file="Cesium3DTilesetGraphics.vue",Pd.render||(Pd.render=_d.render,Pd.staticRenderFns=_d.staticRenderFns,Pd._compiled=!0,xd&&(Pd.functional=!0)),Pd._scopeId=Md,Pd);function Ed(e){Ed.installed||(Ed.installed=!0,e.component(Sd.name,Sd))}var Td=Object.freeze({__proto__:null,default:Ed,Cesium3DTilesetGraphics:Sd,install:Ed}),Od={name:"vc-graphics-path",mixins:[un,hn,Mn,Rn,th],props:{leadTime:Number,trailTime:Number,resolution:{type:Number,default:60}}};var kd,Rd,Fd,Ld,Id,jd=(kd={},Ld=Fd=void 0,(Id=("function"==typeof(Rd=Od)?Rd.options:Rd)||{}).__file="PathGraphics.vue",Id.render||(Id.render=kd.render,Id.staticRenderFns=kd.staticRenderFns,Id._compiled=!0,Ld&&(Id.functional=!0)),Id._scopeId=Fd,Id);function Ad(e){Ad.installed||(Ad.installed=!0,e.component(jd.name,jd))}var Dd=Object.freeze({__proto__:null,default:Ad,PathGraphics:jd,install:Ad}),Nd={name:"vc-graphics-plane",mixins:[un,hn,On,kn,Rn,Fn,Ln,In,jn,th],props:{plane:Object}};var Gd,zd,Bd,Vd,qd,Wd=(Gd={},Vd=Bd=void 0,(qd=("function"==typeof(zd=Nd)?zd.options:zd)||{}).__file="PlaneGraphics.vue",qd.render||(qd.render=Gd.render,qd.staticRenderFns=Gd.staticRenderFns,qd._compiled=!0,Vd&&(qd.functional=!0)),qd._scopeId=Bd,qd);function Ud(e){Ud.installed||(Ud.installed=!0,e.component(Wd.name,Wd))}var Hd=Object.freeze({__proto__:null,default:Ud,PlaneGraphics:Wd,install:Ud}),$d={mixins:[un,hn,bo,bn,Ln,In,Pn,Sn,Tn]};var Zd,Kd,Xd,Jd,Yd,Qd=(Zd={},Jd=Xd=void 0,(Yd=("function"==typeof(Kd={name:"vc-graphics-point",mixins:[yn,$d,th]})?Kd.options:Kd)||{}).__file="PointGraphics.vue",Yd.render||(Yd.render=Zd.render,Yd.staticRenderFns=Zd.staticRenderFns,Yd._compiled=!0,Jd&&(Yd.functional=!0)),Yd._scopeId=Xd,Yd);function ep(e){ep.installed||(ep.installed=!0,e.component(Qd.name,Qd))}var tp=Object.freeze({__proto__:null,default:ep,PointGraphics:Qd,install:ep}),rp={mixins:[xn,Dn,Xn,zn,wo,_o,Co,Mo]},ip={name:"vc-graphics-polygon",mixins:[un,hn,yn,Nn,kn,Rn,Fn,Ln,In,jn,Bn,Vn,rp,th],props:{hierarchy:Array|Object|Function}};var np,op,ap,sp,cp,lp=(np={},sp=ap=void 0,(cp=("function"==typeof(op=ip)?op.options:op)||{}).__file="PolygonGraphics.vue",cp.render||(cp.render=np.render,cp.staticRenderFns=np.staticRenderFns,cp._compiled=!0,sp&&(cp.functional=!0)),cp._scopeId=ap,cp);function up(e){up.installed||(up.installed=!0,e.component(lp.name,lp))}var hp=Object.freeze({__proto__:null,default:up,PolygonGraphics:lp,install:up}),dp={mixins:[un,hn,Mn,Rn,An]},pp={name:"vc-graphics-polyline",mixins:[zn,Mo,Bn,Vn,dp,th],props:{clampToGround:{type:Boolean,default:!1},depthFailMaterial:Object|Array|String}};var mp,fp,vp,gp,yp,bp=(mp={},gp=vp=void 0,(yp=("function"==typeof(fp=pp)?fp.options:fp)||{}).__file="PolylineGraphics.vue",yp.render||(yp.render=mp.render,yp.staticRenderFns=mp.staticRenderFns,yp._compiled=!0,gp&&(yp.functional=!0)),yp._scopeId=vp,yp);function wp(e){wp.installed||(wp.installed=!0,e.component(bp.name,bp))}var _p=Object.freeze({__proto__:null,default:wp,PolylineGraphics:bp,install:wp}),Cp={name:"vc-graphics-polyline-volume",mixins:[un,hn,An,kn,Rn,Fn,Ln,In,jn,{mixins:[Gn,zn]},th],props:{shape:Array}};var Mp,xp,Pp,Sp,Ep,Tp=(Mp={},Sp=Pp=void 0,(Ep=("function"==typeof(xp=Cp)?xp.options:xp)||{}).__file="PolylineVolumeGraphics.vue",Ep.render||(Ep.render=Mp.render,Ep.staticRenderFns=Mp.staticRenderFns,Ep._compiled=!0,Sp&&(Ep.functional=!0)),Ep._scopeId=Pp,Ep);function Op(e){Op.installed||(Op.installed=!0,e.component(Tp.name,Tp))}var kp=Object.freeze({__proto__:null,default:Op,PolylineVolumeGraphics:Tp,install:Op}),Rp={mixins:[zn,xn,wn,Xn,Dn]},Fp={name:"vc-graphics-rectangle",mixins:[un,hn,yn,Nn,kn,Rn,Fn,Ln,In,jn,Bn,Vn,Rp,th],props:{coordinates:Object}};var Lp,Ip,jp,Ap,Dp,Np=(Lp={},Ap=jp=void 0,(Dp=("function"==typeof(Ip=Fp)?Ip.options:Ip)||{}).__file="RectangleGraphics.vue",Dp.render||(Dp.render=Lp.render,Dp.staticRenderFns=Lp.staticRenderFns,Dp._compiled=!0,Ap&&(Dp.functional=!0)),Dp._scopeId=jp,Dp);function Gp(e){Gp.installed||(Gp.installed=!0,e.component(Np.name,Np))}var zp=Object.freeze({__proto__:null,default:Gp,RectangleGraphics:Np,install:Gp}),Bp={mixins:[An,zn,Po,xo]};var Vp,qp,Wp,Up,Hp,$p=(Vp={},Up=Wp=void 0,(Hp=("function"==typeof(qp={name:"vc-graphics-wall",mixins:[un,hn,kn,Rn,Fn,Ln,In,jn,Bp,th]})?qp.options:qp)||{}).__file="WallGraphics.vue",Hp.render||(Hp.render=Vp.render,Hp.staticRenderFns=Vp.staticRenderFns,Hp._compiled=!0,Up&&(Hp.functional=!0)),Hp._scopeId=Wp,Hp);function Zp(e){Zp.installed||(Zp.installed=!0,e.component($p.name,$p))}var Kp=Object.freeze({__proto__:null,default:Zp,WallGraphics:$p,install:Zp}),Xp={mount:function(){var t,r;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.primitives,r=this.collection,e.abrupt("return",t&&t.add(r));case 2:case"end":return e.stop()}},null,this)},unmount:function(){var t,r;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.primitives,r=this.collection,e.abrupt("return",t&&t.remove(r));case 2:case"end":return e.stop()}},null,this)},getServices:function(){var e=this;return wi(Yi.methods.getServices.call(this),{get primitives(){return e.collection},get collectionContainer(){return e}})}},Jp={mixins:[Yi],methods:Xp,stubVNode:{attrs:function(){return{class:this.$options.name}}},created:function(){var e=this;te(this,{collection:{enumerable:!0,get:function(){return e.cesiumObject}},primitives:{enumerable:!0,get:function(){return e.$services&&e.$services.primitives}},groundPrimitives:{enumerable:!0,get:function(){return e.$services&&e.$services.groundPrimitives}}})}},Yp={name:"vc-collection-primitive",mixins:[un,Jp],props:{destroyPrimitives:{type:Boolean,default:!0}}};var Qp,em,tm,rm,im,nm=(Qp={},rm=tm=void 0,(im=("function"==typeof(em=Yp)?em.options:em)||{}).__file="PrimitiveCollection.vue",im.render||(im.render=Qp.render,im.staticRenderFns=Qp.staticRenderFns,im._compiled=!0,rm&&(im.functional=!0)),im._scopeId=tm,im);function om(e){om.installed||(om.installed=!0,e.component(nm.name,nm))}var am=Object.freeze({__proto__:null,default:om,PrimitiveCollection:nm,install:om}),sm={name:"vc-collection-primitive-billboard",mixins:[ta,ra,Jp],props:{billboards:{type:Array,default:function(){return[]}}},methods:{createCesiumObject:function(){var t,r,i,n,o;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.$props,r=this.transformProps,i=this.billboards,n=r(t),o=new Cesium.BillboardCollection(n),i.forEach(function(e){var t=r(e);o.add(t)}),e.abrupt("return",o);case 5:case"end":return e.stop()}},null,this)}}};var cm,lm,um,hm,dm,pm=(cm={},hm=um=void 0,(dm=("function"==typeof(lm=sm)?lm.options:lm)||{}).__file="BillboardCollection.vue",dm.render||(dm.render=cm.render,dm.staticRenderFns=cm.staticRenderFns,dm._compiled=!0,hm&&(dm.functional=!0)),dm._scopeId=um,dm);function mm(e){mm.installed||(mm.installed=!0,e.component(pm.name,pm))}var fm=Object.freeze({__proto__:null,default:mm,BillboardCollection:pm,install:mm}),vm={name:"vc-collection-primitive-label",mixins:[ta,ra,Jp],props:{labels:{type:Array,default:function(){return[]}}},methods:{createCesiumObject:function(){var t,r,i,n,o;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.$props,r=this.transformProps,i=this.labels,n=r(t),o=new Cesium.LabelCollection(n),i.forEach(function(e){var t=r(e);o.add(t)}),e.abrupt("return",o);case 5:case"end":return e.stop()}},null,this)}}};var gm,ym,bm,wm,_m,Cm=(gm={},wm=bm=void 0,(_m=("function"==typeof(ym=vm)?ym.options:ym)||{}).__file="LabelCollection.vue",_m.render||(_m.render=gm.render,_m.staticRenderFns=gm.staticRenderFns,_m._compiled=!0,wm&&(_m.functional=!0)),_m._scopeId=bm,_m);function Mm(e){Mm.installed||(Mm.installed=!0,e.component(Cm.name,Cm))}var xm=Object.freeze({__proto__:null,default:Mm,LabelCollection:Cm,install:Mm}),Pm={name:"vc-collection-primitive-point",mixins:[ra,Qo,ea,Jp],props:{points:{type:Array,default:function(){return[]}}},methods:{createCesiumObject:function(){var t,r,i,n,o;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.$props,r=this.transformProps,i=this.points,n=r(t),o=new Cesium.PointPrimitiveCollection(n),i.forEach(function(e){var t=r(e);o.add(t)}),e.abrupt("return",o);case 5:case"end":return e.stop()}},null,this)}}};var Sm,Em,Tm,Om,km,Rm=(Sm={},Om=Tm=void 0,(km=("function"==typeof(Em=Pm)?Em.options:Em)||{}).__file="PointPrimitiveCollection.vue",km.render||(km.render=Sm.render,km.staticRenderFns=Sm.staticRenderFns,km._compiled=!0,Om&&(km.functional=!0)),km._scopeId=Tm,km);function Fm(e){Fm.installed||(Fm.installed=!0,e.component(Rm.name,Rm))}var Lm=Object.freeze({__proto__:null,default:Fm,PointPrimitiveCollection:Rm,install:Fm}),Im={name:"vc-collection-primitive-polyline",mixins:[Qo,ea,Jp],props:{polylines:{type:Array,default:function(){return[]}}},methods:{createCesiumObject:function(){var t,r,i,n,o;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.$props,r=this.transformProps,i=this.polylines,n=r(t),o=new Cesium.PolylineCollection(n),i.forEach(function(e){var t=r(e);o.add(t)}),e.abrupt("return",o);case 5:case"end":return e.stop()}},null,this)}}};var jm,Am,Dm,Nm,Gm,zm=(jm={},Nm=Dm=void 0,(Gm=("function"==typeof(Am=Im)?Am.options:Am)||{}).__file="PolylineCollection.vue",Gm.render||(Gm.render=jm.render,Gm.staticRenderFns=jm.staticRenderFns,Gm._compiled=!0,Nm&&(Gm.functional=!0)),Gm._scopeId=Dm,Gm);function Bm(e){Bm.installed||(Bm.installed=!0,e.component(zm.name,zm))}var Vm=Object.freeze({__proto__:null,default:Bm,PolylineCollection:zm,install:Bm}),qm={mount:function(){var t,r,i=this;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.primitives,(r=this.primitive).readyPromise&&r.readyPromise.then(function(e){i.$listeners.readyPromise&&i.$emit("readyPromise",e)}).otherwise(function(e){throw new Cesium.DeveloperError(e)}),gi.call(this,r,void 0,!0),e.abrupt("return",t&&t.add(r));case 4:case"end":return e.stop()}},null,this)},unmount:function(){var t,r;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.primitives,r=this.primitive,this.childCount=0,this.instances=[],gi.call(this,r,void 0,!1),e.abrupt("return",t&&t.remove(r));case 5:case"end":return e.stop()}},null,this)},setGeometryInstances:function(t,r){return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return this.instances.push(t),r===this.childCount-1&&(this.$listeners["update:geometryInstances"]?this.$emit("update:geometryInstances",this.instances):this.primitive.geometryInstances=0===r?t:this.instances),e.abrupt("return",!0);case 3:case"end":return e.stop()}},null,this)},getServices:function(){var e=this;return wi(Yi.methods.getServices.call(this),{get primitive(){return e.primitive},get primitiveContainer(){return e}})}},Wm={data:function(){return{childCount:0,instances:[]}},mixins:[Yi],methods:qm,stubVNode:{attrs:function(){return{class:this.$options.name}}},created:function(){var e=this;te(this,{primitive:{enumerable:!0,get:function(){return e.cesiumObject}},primitives:{enumerable:!0,get:function(){return e.$services&&e.$services.primitives}},groundPrimitives:{enumerable:!0,get:function(){return e.$services&&e.$services.groundPrimitives}}})}},Um={name:"vc-primitive",mixins:[Yo,Qo,jn,Jo,Xo,un,Ko,Zo,Ho,Bn,ea,$o,Wm],props:{cull:{type:Boolean,default:!0}}};var Hm,$m,Zm,Km,Xm,Jm=(Hm={},Km=Zm=void 0,(Xm=("function"==typeof($m=Um)?$m.options:$m)||{}).__file="Primitive.vue",Xm.render||(Xm.render=Hm.render,Xm.staticRenderFns=Hm.staticRenderFns,Xm._compiled=!0,Km&&(Xm.functional=!0)),Xm._scopeId=Zm,Xm);function Ym(e){Ym.installed||(Ym.installed=!0,e.component(Jm.name,Jm))}var Qm=Object.freeze({__proto__:null,default:Ym,Primitive:Jm,install:Ym});var ef,tf,rf,nf,of,af=(ef={},nf=rf=void 0,(of=("function"==typeof(tf={name:"vc-primitive-classification",mixins:[Yo,Jo,Xo,un,Ko,Zo,Ho,Bn,ea,$o,Wm]})?tf.options:tf)||{}).__file="ClassificationPrimitive.vue",of.render||(of.render=ef.render,of.staticRenderFns=ef.staticRenderFns,of._compiled=!0,nf&&(of.functional=!0)),of._scopeId=rf,of);function sf(e){sf.installed||(sf.installed=!0,e.component(af.name,af))}var cf=Object.freeze({__proto__:null,default:sf,ClassificationPrimitive:af,install:sf});var lf,uf,hf,df,pf,mf=(lf={},df=hf=void 0,(pf=("function"==typeof(uf={name:"vc-primitive-ground",mixins:[Yo,Jo,Xo,un,Ko,Zo,Ho,Bn,ea,$o,Wm],methods:{createCesiumObject:function(){var t,r,i;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.$props,r=this.transformProps,(i=r(t)).asynchronous){e.next=5;break}return e.next=5,Xt.awrap(Cesium.GroundPrimitive.initializeTerrainHeights());case 5:return e.abrupt("return",new Cesium.GroundPrimitive(i));case 6:case"end":return e.stop()}},null,this)}}})?uf.options:uf)||{}).__file="GroundPrimitive.vue",pf.render||(pf.render=lf.render,pf.staticRenderFns=lf.staticRenderFns,pf._compiled=!0,df&&(pf.functional=!0)),pf._scopeId=hf,pf);function ff(e){ff.installed||(ff.installed=!0,e.component(mf.name,mf))}var vf=Object.freeze({__proto__:null,default:ff,GroundPrimitive:mf,install:ff});var gf,yf,bf,wf,_f,Cf=(gf={},wf=bf=void 0,(_f=("function"==typeof(yf={name:"vc-primitive-polyline-ground",mixins:[Jo,Xo,un,Ko,Zo,Ho,Bn,ea,$o,Wm],methods:{createCesiumObject:function(){var t,r,i;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.$props,r=this.transformProps,(i=r(t)).asynchronous){e.next=5;break}return e.next=5,Xt.awrap(Cesium.GroundPolylinePrimitive.initializeTerrainHeights());case 5:return e.abrupt("return",new Cesium.GroundPolylinePrimitive(i));case 6:case"end":return e.stop()}},null,this)}}})?yf.options:yf)||{}).__file="GroundPolylinePrimitive.vue",_f.render||(_f.render=gf.render,_f.staticRenderFns=gf.staticRenderFns,_f._compiled=!0,wf&&(_f.functional=!0)),_f._scopeId=bf,_f);function Mf(e){Mf.installed||(Mf.installed=!0,e.component(Cf.name,Cf))}var xf=Object.freeze({__proto__:null,default:Mf,GroundPolylinePrimitive:Cf,install:Mf}),Pf={mixins:[Yi],methods:{createCesiumObject:function(){var t,r,i,n;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.$props,r=this.transformProps,i=this.primitives,n=r(t),e.abrupt("return",i&&i.add(n));case 3:case"end":return e.stop()}},null,this)},mount:function(){var t,r;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.primitives,r=this.primitive,e.abrupt("return",t&&t.contains(r));case 2:case"end":return e.stop()}},null,this)},unmount:function(){var t,r;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.primitives,r=this.primitive,e.abrupt("return",t&&t.remove(r));case 2:case"end":return e.stop()}},null,this)}},stubVNode:{empty:function(){return this.$options.name}},created:function(){var e=this;this.index=0,te(this,{primitive:{enumerable:!0,get:function(){return e.cesiumObject}},primitives:{enumerable:!0,get:function(){return e.$services&&e.$services.primitives}}})}};var Sf,Ef,Tf,Of,kf,Rf=(Sf={},Of=Tf=void 0,(kf=("function"==typeof(Ef={name:"vc-primitive-billboard",mixins:[ia,ln,eh,Pf]})?Ef.options:Ef)||{}).__file="Billboard.vue",kf.render||(kf.render=Sf.render,kf.staticRenderFns=Sf.staticRenderFns,kf._compiled=!0,Of&&(kf.functional=!0)),kf._scopeId=Tf,kf);function Ff(e){Ff.installed||(Ff.installed=!0,e.component(Rf.name,Rf))}var Lf=Object.freeze({__proto__:null,default:Ff,Billboard:Rf,install:Ff}),If={name:"vc-primitive-label",mixins:[ia,ln,td,Pf],props:{totalScale:Number}};var jf,Af,Df,Nf,Gf,zf=(jf={},Nf=Df=void 0,(Gf=("function"==typeof(Af=If)?Af.options:Af)||{}).__file="Label.vue",Gf.render||(Gf.render=jf.render,Gf.staticRenderFns=jf.staticRenderFns,Gf._compiled=!0,Nf&&(Gf.functional=!0)),Gf._scopeId=Df,Gf);function Bf(e){Bf.installed||(Bf.installed=!0,e.component(zf.name,zf))}var Vf=Object.freeze({__proto__:null,default:Bf,Label:zf,install:Bf});var qf,Wf,Uf,Hf,$f,Zf=(qf={},Hf=Uf=void 0,($f=("function"==typeof(Wf={name:"vc-primitive-point",mixins:[ia,ln,$d,Pf]})?Wf.options:Wf)||{}).__file="PointPrimitive.vue",$f.render||($f.render=qf.render,$f.staticRenderFns=qf.staticRenderFns,$f._compiled=!0,Hf&&($f.functional=!0)),$f._scopeId=Uf,$f);function Kf(e){Kf.installed||(Kf.installed=!0,e.component(Zf.name,Zf))}var Xf=Object.freeze({__proto__:null,default:Kf,PointPrimitive:Zf,install:Kf});var Jf,Yf,Qf,ev,tv,rv=(Jf={},ev=Qf=void 0,(tv=("function"==typeof(Yf={name:"vc-primitive-polyline",mixins:[na,ia,dp,Pf]})?Yf.options:Yf)||{}).__file="Polyline.vue",tv.render||(tv.render=Jf.render,tv.staticRenderFns=Jf.staticRenderFns,tv._compiled=!0,ev&&(tv.functional=!0)),tv._scopeId=Qf,tv);function iv(e){iv.installed||(iv.installed=!0,e.component(rv.name,rv))}var nv=Object.freeze({__proto__:null,default:iv,Polyline:rv,install:iv}),ov={name:"vc-primitive-model",mixins:[Qo,ia,Ho,ea,ta,oa,ud,Wm],props:{url:String,basePath:String,dequantizeInShader:{type:Boolean,default:!0}},methods:{createCesiumObject:function(){var t,r,i;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.$props,r=this.transformProps,i=r(t),e.abrupt("return",Cesium.Model.fromGltf(i));case 3:case"end":return e.stop()}},null,this)}}};var av,sv,cv,lv,uv,hv=(av={},lv=cv=void 0,(uv=("function"==typeof(sv=ov)?sv.options:sv)||{}).__file="Model.vue",uv.render||(uv.render=av.render,uv.staticRenderFns=av.staticRenderFns,uv._compiled=!0,lv&&(uv.functional=!0)),uv._scopeId=cv,uv);function dv(e){dv.installed||(dv.installed=!0,e.component(hv.name,hv))}var pv=Object.freeze({__proto__:null,default:dv,Model:hv,install:dv}),mv={name:"vc-primitive-tileset",mixins:[un,Qo,jn,yo,ea,oa,Wm],props:{url:String|Object,maximumScreenSpaceError:{type:Number,default:16},maximumMemoryUsage:{type:Number,default:512},cullWithChildrenBounds:{type:Boolean,default:!0},dynamicScreenSpaceError:{type:Boolean,default:!1},dynamicScreenSpaceErrorDensity:{type:Number,default:.00278},dynamicScreenSpaceErrorFactor:{type:Number,default:4},dynamicScreenSpaceErrorHeightFalloff:{type:Number,default:.25},skipLevelOfDetail:{type:Boolean,default:!0},baseScreenSpaceError:{type:Number,default:1024},skipScreenSpaceErrorFactor:{type:Number,default:16},skipLevels:{type:Number,default:1},immediatelyLoadDesiredLevelOfDetail:{type:Boolean,default:!1},loadSiblings:{type:Boolean,default:!1},classificationType:Number,ellipsoid:Object,pointCloudShading:Object,imageBasedLightingFactor:Object,lightColor:Object,debugFreezeFrame:{type:Boolean,default:!1},debugColorizeTiles:{type:Boolean,default:!1},debugShowContentBoundingVolume:{type:Boolean,default:!1},debugShowViewerRequestVolume:{type:Boolean,default:!1},debugShowGeometricError:{type:Boolean,default:!1},debugShowRenderingStatistics:{type:Boolean,default:!1},debugShowMemoryUsage:{type:Boolean,default:!1},debugShowUrl:{type:Boolean,default:!1}}};var fv,vv,gv,yv,bv,wv=(fv={},yv=gv=void 0,(bv=("function"==typeof(vv=mv)?vv.options:vv)||{}).__file="Cesium3DTileset.vue",bv.render||(bv.render=fv.render,bv.staticRenderFns=fv.staticRenderFns,bv._compiled=!0,yv&&(bv.functional=!0)),bv._scopeId=gv,bv);function _v(e){_v.installed||(_v.installed=!0,e.component(wv.name,wv))}var Cv=Object.freeze({__proto__:null,default:_v,Cesium3DTileset:wv,install:_v}),Mv={name:"vc-primitive-particle",mixins:[un,Qo,dn,Wm],props:{color:Object|String|Array,updateCallback:Function,emitter:Object,emitterModelMatrix:Object,emissionRate:Number,bursts:Array,loop:{type:Boolean,default:!0},scale:Number,startScale:Number,endScale:Number,startColor:Object|String|Array,endColor:Object|String|Array,imageSize:Object,minimumImageSize:Object,maximumImageSize:Object,speed:Number,minimumSpeed:Number,maximumSpeed:Number,lifetime:Number,particleLife:Number,minimumParticleLife:Number,maximumParticleLife:Number,mass:Number,minimumMass:Number,maximumMass:Number}};var xv,Pv,Sv,Ev,Tv,Ov=(xv={},Ev=Sv=void 0,(Tv=("function"==typeof(Pv=Mv)?Pv.options:Pv)||{}).__file="ParticleSystem.vue",Tv.render||(Tv.render=xv.render,Tv.staticRenderFns=xv.staticRenderFns,Tv._compiled=!0,Ev&&(Tv.functional=!0)),Tv._scopeId=Sv,Tv);function kv(e){kv.installed||(kv.installed=!0,e.component(Ov.name,Ov))}var Rv=Object.freeze({__proto__:null,default:kv,ParticleSystem:Ov,install:kv}),Fv={name:"vc-instance-geometry",mixins:[Yi,Qo,ia],props:{geometry:Object,attributes:Object},methods:{createCesiumObject:function(){var t,r,i;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.$props,r=this.transformProps,(i=r(t)).geometry||(i.geometry=new Cesium.Geometry({attributes:new Cesium.GeometryAttributes})),e.abrupt("return",new Cesium.GeometryInstance(i));case 4:case"end":return e.stop()}},null,this)},mount:function(){var t,r;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return this.index=this.$parent.childCount,this.$parent.childCount+=1,t=this.geometryInstance,(r=this.primitiveContainer)&&r.setGeometryInstances(t,this.index),e.abrupt("return",!0);case 5:case"end":return e.stop()}},null,this)},setGeometry:function(t){return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return this.$listeners["update:geometry"]?this.$emit("update:geometry",t):this.geometryInstance.geometry=t,e.abrupt("return",!0);case 3:case"end":return e.stop()}},null,this)},getServices:function(){var e=this;return wi(Yi.methods.getServices.call(this),{get geometryInstance(){return e.geometryInstance},get geometryContainer(){return e}})}},stubVNode:{attrs:function(){return{class:this.$options.name}}},created:function(){var e=this;this.renderByParent=!0,te(this,{geometryInstance:{enumerable:!0,get:function(){return e.cesiumObject}},primitiveContainer:{enumerable:!0,get:function(){return e.$services&&e.$services.primitiveContainer}}})}};var Lv,Iv,jv,Av,Dv,Nv=(Lv={},Av=jv=void 0,(Dv=("function"==typeof(Iv=Fv)?Iv.options:Iv)||{}).__file="GeometryInstance.vue",Dv.render||(Dv.render=Lv.render,Dv.staticRenderFns=Lv.staticRenderFns,Dv._compiled=!0,Av&&(Dv.functional=!0)),Dv._scopeId=jv,Dv);function Gv(e){Gv.installed||(Gv.installed=!0,e.component(Nv.name,Nv))}var zv=Object.freeze({__proto__:null,default:Gv,GeometryInstance:Nv,install:Gv}),Bv={mixins:[Yi],methods:{mount:function(){var t,r;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.geometry,r=this.geometryContainer,e.abrupt("return",r.setGeometry(t));case 2:case"end":return e.stop()}},null,this)}},stubVNode:{empty:function(){return this.$options.name}},created:function(){var e=this;this.renderByParent=!0,te(this,{geometry:{enumerable:!0,get:function(){return e.cesiumObject}},geometryContainer:{enumerable:!0,get:function(){return e.$services&&e.$services.geometryContainer}}})}};var Vv,qv,Wv,Uv,Hv,$v=(Vv={},Uv=Wv=void 0,(Hv=("function"==typeof(qv={name:"vc-geometry-box",mixins:[On,aa,Bv],methods:{createCesiumObject:function(){var t,r,i;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.$props,r=this.transformProps,i=r(t),e.abrupt("return",Cesium.BoxGeometry.fromDimensions(i));case 3:case"end":return e.stop()}},null,this)}}})?qv.options:qv)||{}).__file="BoxGeometry.vue",Hv.render||(Hv.render=Vv.render,Hv.staticRenderFns=Vv.staticRenderFns,Hv._compiled=!0,Uv&&(Hv.functional=!0)),Hv._scopeId=Wv,Hv);function Zv(e){Zv.installed||(Zv.installed=!0,e.component($v.name,$v))}var Kv=Object.freeze({__proto__:null,default:Zv,BoxGeometry:$v,install:Zv});var Xv,Jv,Yv,Qv,eg,tg=(Xv={},Qv=Yv=void 0,(eg=("function"==typeof(Jv={name:"vc-geometry-outline-box",mixins:[On,Bv],methods:{createCesiumObject:function(){var t,r,i;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.$props,r=this.transformProps,i=r(t),e.abrupt("return",Cesium.BoxOutlineGeometry.fromDimensions(i));case 3:case"end":return e.stop()}},null,this)}}})?Jv.options:Jv)||{}).__file="BoxOutlineGeometry.vue",eg.render||(eg.render=Xv.render,eg.staticRenderFns=Xv.staticRenderFns,eg._compiled=!0,Qv&&(eg.functional=!0)),eg._scopeId=Yv,eg);function rg(e){rg.installed||(rg.installed=!0,e.component(tg.name,tg))}var ig=Object.freeze({__proto__:null,default:rg,BoxOutlineGeometry:tg,install:rg});var ng,og,ag,sg,cg,lg=(ng={},sg=ag=void 0,(cg=("function"==typeof(og={name:"vc-geometry-circle",mixins:[sa,ca,Lo,xn,zn,aa,Dn,Xn,Bv]})?og.options:og)||{}).__file="CircleGeometry.vue",cg.render||(cg.render=ng.render,cg.staticRenderFns=ng.staticRenderFns,cg._compiled=!0,sg&&(cg.functional=!0)),cg._scopeId=ag,cg);function ug(e){ug.installed||(ug.installed=!0,e.component(lg.name,lg))}var hg=Object.freeze({__proto__:null,default:ug,CircleGeometry:lg,install:ug});var dg,pg,mg,fg,vg,gg=(dg={},fg=mg=void 0,(vg=("function"==typeof(pg={name:"vc-geometry-outline-circle",mixins:[sa,ca,Lo,xn,zn,Dn,Hn,Bv]})?pg.options:pg)||{}).__file="CircleOutlineGeometry.vue",vg.render||(vg.render=dg.render,vg.staticRenderFns=dg.staticRenderFns,vg._compiled=!0,fg&&(vg.functional=!0)),vg._scopeId=mg,vg);function yg(e){yg.installed||(yg.installed=!0,e.component(gg.name,gg))}var bg=Object.freeze({__proto__:null,default:yg,CircleOutlineGeometry:gg,install:yg});var wg,_g,Cg,Mg,xg,Pg=(wg={},Mg=Cg=void 0,(xg=("function"==typeof(_g={name:"vc-geometry-polygon-coplanar",mixins:[An,Xn,aa,Lo,Bv],methods:{createCesiumObject:function(){var t,r,i;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.$props,r=this.transformProps,i=r(t),e.abrupt("return",Cesium.CoplanarPolygonGeometry.fromPositions(i));case 3:case"end":return e.stop()}},null,this)}}})?_g.options:_g)||{}).__file="CoplanarPolygonGeometry.vue",xg.render||(xg.render=wg.render,xg.staticRenderFns=wg.staticRenderFns,xg._compiled=!0,Mg&&(xg.functional=!0)),xg._scopeId=Cg,xg);function Sg(e){Sg.installed||(Sg.installed=!0,e.component(Pg.name,Pg))}var Eg=Object.freeze({__proto__:null,default:Sg,CoplanarPolygonGeometry:Pg,install:Sg});var Tg,Og,kg,Rg,Fg,Lg=(Tg={},Rg=kg=void 0,(Fg=("function"==typeof(Og={name:"vc-geometry-outline-polygon-coplanar",mixins:[An,Bv],methods:{createCesiumObject:function(){var t,r,i;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.$props,r=this.transformProps,i=r(t),e.abrupt("return",Cesium.CoplanarPolygonOutlineGeometry.fromPositions(i));case 3:case"end":return e.stop()}},null,this)}}})?Og.options:Og)||{}).__file="CoplanarPolygonOutlineGeometry.vue",Fg.render||(Fg.render=Tg.render,Fg.staticRenderFns=Tg.staticRenderFns,Fg._compiled=!0,Rg&&(Fg.functional=!0)),Fg._scopeId=kg,Fg);function Ig(e){Ig.installed||(Ig.installed=!0,e.component(Lg.name,Lg))}var jg=Object.freeze({__proto__:null,default:Ig,CoplanarPolygonOutlineGeometry:Lg,install:Ig});var Ag,Dg,Ng,Gg,zg,Bg=(Ag={},Gg=Ng=void 0,(zg=("function"==typeof(Dg={name:"vc-geometry-corridor",mixins:[Lo,aa,bh,Bv]})?Dg.options:Dg)||{}).__file="CorridorGeometry.vue",zg.render||(zg.render=Ag.render,zg.staticRenderFns=Ag.staticRenderFns,zg._compiled=!0,Gg&&(zg.functional=!0)),zg._scopeId=Ng,zg);function Vg(e){Vg.installed||(Vg.installed=!0,e.component(Bg.name,Bg))}var qg=Object.freeze({__proto__:null,default:Vg,CorridorGeometry:Bg,install:Vg});var Wg,Ug,Hg,$g,Zg,Kg=(Wg={},$g=Hg=void 0,(Zg=("function"==typeof(Ug={name:"vc-geometry-outline-corridor",mixins:[Lo,bh,Bv]})?Ug.options:Ug)||{}).__file="CorridorOutlineGeometry.vue",Zg.render||(Zg.render=Wg.render,Zg.staticRenderFns=Wg.staticRenderFns,Zg._compiled=!0,$g&&(Zg.functional=!0)),Zg._scopeId=Hg,Zg);function Xg(e){Xg.installed||(Xg.installed=!0,e.component(Kg.name,Kg))}var Jg=Object.freeze({__proto__:null,default:Xg,CorridorOutlineGeometry:Kg,install:Xg});var Yg,Qg,ey,ty,ry,iy=(Yg={},ty=ey=void 0,(ry=("function"==typeof(Qg={name:"vc-geometry-cylinder",mixins:[aa,Th,Bv]})?Qg.options:Qg)||{}).__file="CylinderGeometry.vue",ry.render||(ry.render=Yg.render,ry.staticRenderFns=Yg.staticRenderFns,ry._compiled=!0,ty&&(ry.functional=!0)),ry._scopeId=ey,ry);function ny(e){ny.installed||(ny.installed=!0,e.component(iy.name,iy))}var oy=Object.freeze({__proto__:null,default:ny,CylinderGeometry:iy,install:ny});var ay,sy,cy,ly,uy,hy=(ay={},ly=cy=void 0,(uy=("function"==typeof(sy={name:"vc-geometry-outline-cylinder",mixins:[Hn,Th,Bv]})?sy.options:sy)||{}).__file="CylinderOutlineGeometry.vue",uy.render||(uy.render=ay.render,uy.staticRenderFns=ay.staticRenderFns,uy._compiled=!0,ly&&(uy.functional=!0)),uy._scopeId=cy,uy);function dy(e){dy.installed||(dy.installed=!0,e.component(hy.name,hy))}var py=Object.freeze({__proto__:null,default:dy,CylinderOutlineGeometry:hy,install:dy});var my,fy,vy,gy,yy,by=(my={},gy=vy=void 0,(yy=("function"==typeof(fy={name:"vc-geometry-ellipse",mixins:[sa,Lo,Xn,aa,Dh,Bv]})?fy.options:fy)||{}).__file="EllipseGeometry.vue",yy.render||(yy.render=my.render,yy.staticRenderFns=my.staticRenderFns,yy._compiled=!0,gy&&(yy.functional=!0)),yy._scopeId=vy,yy);function wy(e){wy.installed||(wy.installed=!0,e.component(by.name,by))}var _y=Object.freeze({__proto__:null,default:wy,EllipseGeometry:by,install:wy});var Cy,My,xy,Py,Sy,Ey=(Cy={},Py=xy=void 0,(Sy=("function"==typeof(My={name:"vc-geometry-outline-ellipse",mixins:[sa,Lo,Hn,Dh,Bv]})?My.options:My)||{}).__file="EllipseOutlineGeometry.vue",Sy.render||(Sy.render=Cy.render,Sy.staticRenderFns=Cy.staticRenderFns,Sy._compiled=!0,Py&&(Sy.functional=!0)),Sy._scopeId=xy,Sy);function Ty(e){Ty.installed||(Ty.installed=!0,e.component(Ey.name,Ey))}var Oy=Object.freeze({__proto__:null,default:Ty,EllipseOutlineGeometry:Ey,install:Ty});var ky,Ry,Fy,Ly,Iy,jy=(ky={},Ly=Fy=void 0,(Iy=("function"==typeof(Ry={name:"vc-geometry-ellipsoid",mixins:[la,ua,ha,da,pa,aa,Hh,Bv]})?Ry.options:Ry)||{}).__file="EllipsoidGeometry.vue",Iy.render||(Iy.render=ky.render,Iy.staticRenderFns=ky.staticRenderFns,Iy._compiled=!0,Ly&&(Iy.functional=!0)),Iy._scopeId=Fy,Iy);function Ay(e){Ay.installed||(Ay.installed=!0,e.component(jy.name,jy))}var Dy=Object.freeze({__proto__:null,default:Ay,EllipsoidGeometry:jy,install:Ay}),Ny={name:"vc-geometry-outline-ellipsoid",mixins:[la,ua,ha,da,pa,eo,Hh,Bv],props:{stackPartitions:{type:Number,default:10},slicePartitions:{type:Number,default:8}}};var Gy,zy,By,Vy,qy,Wy=(Gy={},Vy=By=void 0,(qy=("function"==typeof(zy=Ny)?zy.options:zy)||{}).__file="EllipsoidOutlineGeometry.vue",qy.render||(qy.render=Gy.render,qy.staticRenderFns=Gy.staticRenderFns,qy._compiled=!0,Vy&&(qy.functional=!0)),qy._scopeId=By,qy);function Uy(e){Uy.installed||(Uy.installed=!0,e.component(Wy.name,Wy))}var Hy=Object.freeze({__proto__:null,default:Uy,EllipsoidOutlineGeometry:Wy,install:Uy});var $y,Zy,Ky,Xy,Jy,Yy=($y={},Xy=Ky=void 0,(Jy=("function"==typeof(Zy={name:"vc-geometry-frustum",mixins:[ma,fa,va,aa,Bv]})?Zy.options:Zy)||{}).__file="FrustumGeometry.vue",Jy.render||(Jy.render=$y.render,Jy.staticRenderFns=$y.staticRenderFns,Jy._compiled=!0,Xy&&(Jy.functional=!0)),Jy._scopeId=Ky,Jy);function Qy(e){Qy.installed||(Qy.installed=!0,e.component(Yy.name,Yy))}var eb=Object.freeze({__proto__:null,default:Qy,FrustumGeometry:Yy,install:Qy});var tb,rb,ib,nb,ob,ab=(tb={},nb=ib=void 0,(ob=("function"==typeof(rb={name:"vc-geometry-outline-frustum",mixins:[ma,fa,va,Bv]})?rb.options:rb)||{}).__file="FrustumOutlineGeometry.vue",ob.render||(ob.render=tb.render,ob.staticRenderFns=tb.staticRenderFns,ob._compiled=!0,nb&&(ob.functional=!0)),ob._scopeId=ib,ob);function sb(e){sb.installed||(sb.installed=!0,e.component(ab.name,ab))}var cb=Object.freeze({__proto__:null,default:sb,FrustumOutlineGeometry:ab,install:sb});var lb,ub,hb,db,pb,mb=(lb={},db=hb=void 0,(pb=("function"==typeof(ub={name:"vc-geometry-polyline-ground",mixins:[An,Mn,zn,na,Mo,Bv]})?ub.options:ub)||{}).__file="GroundPolylineGeometry.vue",pb.render||(pb.render=lb.render,pb.staticRenderFns=lb.staticRenderFns,pb._compiled=!0,db&&(pb.functional=!0)),pb._scopeId=hb,pb);function fb(e){fb.installed||(fb.installed=!0,e.component(mb.name,mb))}var vb=Object.freeze({__proto__:null,default:fb,GroundPolylineGeometry:mb,install:fb});var gb,yb,bb,wb,_b,Cb=(gb={},wb=bb=void 0,(_b=("function"==typeof(yb={name:"vc-geometry-plane",mixins:[aa,Bv]})?yb.options:yb)||{}).__file="PlaneGeometry.vue",_b.render||(_b.render=gb.render,_b.staticRenderFns=gb.staticRenderFns,_b._compiled=!0,wb&&(_b.functional=!0)),_b._scopeId=bb,_b);function Mb(e){Mb.installed||(Mb.installed=!0,e.component(Cb.name,Cb))}var xb=Object.freeze({__proto__:null,default:Mb,PlaneGeometry:Cb,install:Mb});var Pb,Sb,Eb,Tb,Ob,kb=(Pb={},Tb=Eb=void 0,(Ob=("function"==typeof(Sb={name:"vc-geometry-outline-plane",mixins:[Bv]})?Sb.options:Sb)||{}).__file="PlaneOutlineGeometry.vue",Ob.render||(Ob.render=Pb.render,Ob.staticRenderFns=Pb.staticRenderFns,Ob._compiled=!0,Tb&&(Ob.functional=!0)),Ob._scopeId=Eb,Ob);function Rb(e){Rb.installed||(Rb.installed=!0,e.component(kb.name,kb))}var Fb=Object.freeze({__proto__:null,default:Rb,PlaneOutlineGeometry:kb,install:Rb}),Lb={name:"vc-geometry-polygon",mixins:[rp,Lo,aa,Bv],props:{polygonHierarchy:Object|Array}};var Ib,jb,Ab,Db,Nb,Gb=(Ib={},Db=Ab=void 0,(Nb=("function"==typeof(jb=Lb)?jb.options:jb)||{}).__file="PolygonGeometry.vue",Nb.render||(Nb.render=Ib.render,Nb.staticRenderFns=Ib.staticRenderFns,Nb._compiled=!0,Db&&(Nb.functional=!0)),Nb._scopeId=Ab,Nb);function zb(e){zb.installed||(zb.installed=!0,e.component(Gb.name,Gb))}var Bb=Object.freeze({__proto__:null,default:zb,PolygonGeometry:Gb,install:zb});var Vb,qb,Wb,Ub,Hb,$b=(Vb={},Ub=Wb=void 0,(Hb=("function"==typeof(qb={name:"vc-geometry-outline-polygon",mixins:[ga,xn,Dn,aa,Lo,zn,wo,Mo,Bv]})?qb.options:qb)||{}).__file="PolygonOutlineGeometry.vue",Hb.render||(Hb.render=Vb.render,Hb.staticRenderFns=Vb.staticRenderFns,Hb._compiled=!0,Ub&&(Hb.functional=!0)),Hb._scopeId=Wb,Hb);function Zb(e){Zb.installed||(Zb.installed=!0,e.component($b.name,$b))}var Kb=Object.freeze({__proto__:null,default:Zb,PolygonOutlineGeometry:$b,install:Zb}),Xb={name:"vc-geometry-polyline",mixins:[An,Mn,Mo,zn,aa,Lo,Bv],props:{colors:Array,colorsPerVertex:{type:Boolean,default:!1}}};var Jb,Yb,Qb,ew,tw,rw=(Jb={},ew=Qb=void 0,(tw=("function"==typeof(Yb=Xb)?Yb.options:Yb)||{}).__file="PolylineGeometry.vue",tw.render||(tw.render=Jb.render,tw.staticRenderFns=Jb.staticRenderFns,tw._compiled=!0,ew&&(tw.functional=!0)),tw._scopeId=Qb,tw);function iw(e){iw.installed||(iw.installed=!0,e.component(rw.name,rw))}var nw=Object.freeze({__proto__:null,default:iw,PolylineGeometry:rw,install:iw}),ow={name:"vc-geometry-polyline-volume",mixins:[Lo,zn,aa,Gn,Bv],props:{polylinePositions:Array,shapePositions:Array}};var aw,sw,cw,lw,uw,hw=(aw={},lw=cw=void 0,(uw=("function"==typeof(sw=ow)?sw.options:sw)||{}).__file="PolylineVolumeGeometry.vue",uw.render||(uw.render=aw.render,uw.staticRenderFns=aw.staticRenderFns,uw._compiled=!0,lw&&(uw.functional=!0)),uw._scopeId=cw,uw);function dw(e){dw.installed||(dw.installed=!0,e.component(hw.name,hw))}var pw=Object.freeze({__proto__:null,default:dw,PolylineVolumeGeometry:hw,install:dw}),mw={name:"vc-geometry-outline-polyline-volume",mixins:[Lo,zn,Gn,Bv],props:{polylinePositions:Array,shapePositions:Array}};var fw,vw,gw,yw,bw,ww=(fw={},yw=gw=void 0,(bw=("function"==typeof(vw=mw)?vw.options:vw)||{}).__file="PolylineVolumeOutlineGeometry.vue",bw.render||(bw.render=fw.render,bw.staticRenderFns=fw.staticRenderFns,bw._compiled=!0,yw&&(bw.functional=!0)),bw._scopeId=gw,bw);function _w(e){_w.installed||(_w.installed=!0,e.component(ww.name,ww))}var Cw=Object.freeze({__proto__:null,default:_w,PolylineVolumeOutlineGeometry:ww,install:_w});var Mw,xw,Pw,Sw,Ew,Tw=(Mw={},Sw=Pw=void 0,(Ew=("function"==typeof(xw={name:"vc-geometry-rectangle",mixins:[Rp,Lo,aa,Ro,Bv]})?xw.options:xw)||{}).__file="RectangleGeometry.vue",Ew.render||(Ew.render=Mw.render,Ew.staticRenderFns=Mw.staticRenderFns,Ew._compiled=!0,Sw&&(Ew.functional=!0)),Ew._scopeId=Pw,Ew);function Ow(e){Ow.installed||(Ow.installed=!0,e.component(Tw.name,Tw))}var kw=Object.freeze({__proto__:null,default:Ow,RectangleGeometry:Tw,install:Ow});var Rw,Fw,Lw,Iw,jw,Aw=(Rw={},Iw=Lw=void 0,(jw=("function"==typeof(Fw={name:"vc-geometry-outline-rectangle",mixins:[Ro,Lo,zn,xn,wn,Dn,Bv]})?Fw.options:Fw)||{}).__file="RectangleOutlineGeometry.vue",jw.render||(jw.render=Rw.render,jw.staticRenderFns=Rw.staticRenderFns,jw._compiled=!0,Iw&&(jw.functional=!0)),jw._scopeId=Lw,jw);function Dw(e){Dw.installed||(Dw.installed=!0,e.component(Aw.name,Aw))}var Nw=Object.freeze({__proto__:null,default:Dw,RectangleOutlineGeometry:Aw,install:Dw}),Gw={name:"vc-geometry-polyline-simple",mixins:[An,Mo,zn,Lo,Lo,Bv],props:{colors:Array,colorsPerVertex:{type:Boolean,default:!1}}};var zw,Bw,Vw,qw,Ww,Uw=(zw={},qw=Vw=void 0,(Ww=("function"==typeof(Bw=Gw)?Bw.options:Bw)||{}).__file="SimplePolylineGeometry.vue",Ww.render||(Ww.render=zw.render,Ww.staticRenderFns=zw.staticRenderFns,Ww._compiled=!0,qw&&(Ww.functional=!0)),Ww._scopeId=Vw,Ww);function Hw(e){Hw.installed||(Hw.installed=!0,e.component(Uw.name,Uw))}var $w=Object.freeze({__proto__:null,default:Hw,SimplePolylineGeometry:Uw,install:Hw});var Zw,Kw,Xw,Jw,Yw,Qw=(Zw={},Jw=Xw=void 0,(Yw=("function"==typeof(Kw={name:"vc-geometry-sphere",mixins:[ca,Yn,Qn,aa,Bv]})?Kw.options:Kw)||{}).__file="SphereGeometry.vue",Yw.render||(Yw.render=Zw.render,Yw.staticRenderFns=Zw.staticRenderFns,Yw._compiled=!0,Jw&&(Yw.functional=!0)),Yw._scopeId=Xw,Yw);function e_(e){e_.installed||(e_.installed=!0,e.component(Qw.name,Qw))}var t_=Object.freeze({__proto__:null,default:e_,SphereGeometry:Qw,install:e_});var r_,i_,n_,o_,a_,s_=(r_={},o_=n_=void 0,(a_=("function"==typeof(i_={name:"vc-geometry-outline-sphere",mixins:[ca,Yn,Qn,eo,Bv]})?i_.options:i_)||{}).__file="SphereOutlineGeometry.vue",a_.render||(a_.render=r_.render,a_.staticRenderFns=r_.staticRenderFns,a_._compiled=!0,o_&&(a_.functional=!0)),a_._scopeId=n_,a_);function c_(e){c_.installed||(c_.installed=!0,e.component(s_.name,s_))}var l_=Object.freeze({__proto__:null,default:c_,SphereOutlineGeometry:s_,install:c_});var u_,h_,d_,p_,m_,f_=(u_={},p_=d_=void 0,(m_=("function"==typeof(h_={name:"vc-geometry-wall",mixins:[Lo,aa,Bp,Bv]})?h_.options:h_)||{}).__file="WallGeometry.vue",m_.render||(m_.render=u_.render,m_.staticRenderFns=u_.staticRenderFns,m_._compiled=!0,p_&&(m_.functional=!0)),m_._scopeId=d_,m_);function v_(e){v_.installed||(v_.installed=!0,e.component(f_.name,f_))}var g_=Object.freeze({__proto__:null,default:v_,WallGeometry:f_,install:v_});var y_,b_,w_,__,C_,M_=(y_={},__=w_=void 0,(C_=("function"==typeof(b_={name:"vc-geometry-outline-wall",mixins:[Lo,Bp,Bv]})?b_.options:b_)||{}).__file="WallOutlineGeometry.vue",C_.render||(C_.render=y_.render,C_.staticRenderFns=y_.staticRenderFns,C_._compiled=!0,__&&(C_.functional=!0)),C_._scopeId=w_,C_);function x_(e){x_.installed||(x_.installed=!0,e.component(M_.name,M_))}var P_=Object.freeze({__proto__:null,default:x_,WallOutlineGeometry:M_,install:x_}),S_={name:"vc-collection-stage-process-post",mixins:[Yi],props:{stages:{type:Array,default:function(){return[]}}},methods:{createCesiumObject:function(){var r,t,i;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.transformProps,t=this.stages,i=new Cesium.PostProcessStageCollection,t.forEach(function(e){var t=r(e);i.add(new Cesium.PostProcessStage(t))}),e.abrupt("return",i);case 4:case"end":return e.stop()}},null,this)},mount:function(){var t;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.postProcessStages,this.viewer.scene.postProcessStages=t,e.abrupt("return",!0);case 3:case"end":return e.stop()}},null,this)},unmount:function(){return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return this.postProcessStages.destroy(),e.abrupt("return",!0);case 3:case"end":return e.stop()}},null,this)},getServices:function(){var e=this;return wi(Yi.methods.getServices.call(this),{get postProcessStages(){return e.postProcessStages},get postProcessStagesContainer(){return e}})}},created:function(){var e=this;te(this,{postProcessStages:{enumerable:!0,get:function(){return e.cesiumObject}}})},stubVNode:{attrs:function(){return{class:this.$options.name}}}};var E_,T_,O_,k_,R_,F_=(E_={},k_=O_=void 0,(R_=("function"==typeof(T_=S_)?T_.options:T_)||{}).__file="PostProcessStageCollection.vue",R_.render||(R_.render=E_.render,R_.staticRenderFns=E_.staticRenderFns,R_._compiled=!0,k_&&(R_.functional=!0)),R_._scopeId=O_,R_);function L_(e){L_.installed||(L_.installed=!0,e.component(F_.name,F_))}var I_=Object.freeze({__proto__:null,default:L_,PostProcessStageCollection:F_,install:L_}),j_={name:"vc-stage-process-post",mixins:[Yi],props:{fragmentShader:String,uniforms:Object,textureScale:{type:Number},forcePowerOfTwo:{type:!1},sampleMode:Number,pixelFormat:Number,pixelDatatype:Number,clearColor:Object|Array|String,scissorRectangle:Object,name:String},methods:{createCesiumObject:function(){var t,r,i;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.$props,r=this.transformProps,i=r(t),e.abrupt("return",new Cesium.PostProcessStage(i));case 3:case"end":return e.stop()}},null,this)},mount:function(){var t,r;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.postProcessStages,r=this.postProcessStage,e.abrupt("return",t.add(r));case 2:case"end":return e.stop()}},null,this)},unmount:function(){var t,r;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.postProcessStages,r=this.postProcessStage,e.abrupt("return",t.remove(r));case 2:case"end":return e.stop()}},null,this)}},created:function(){var e=this;te(this,{postProcessStage:{enumerable:!0,get:function(){return e.cesiumObject}},postProcessStages:{enumerable:!0,get:function(){return e.$services&&e.$services.postProcessStages}}})},stubVNode:{empty:function(){return this.$options.name}}};var A_,D_,N_,G_,z_,B_=(A_={},G_=N_=void 0,(z_=("function"==typeof(D_=j_)?D_.options:D_)||{}).__file="PostProcessStage.vue",z_.render||(z_.render=A_.render,z_.staticRenderFns=A_.staticRenderFns,z_._compiled=!0,G_&&(z_.functional=!0)),z_._scopeId=N_,z_);function V_(e){V_.installed||(V_.installed=!0,e.component(B_.name,B_))}var q_=Object.freeze({__proto__:null,default:V_,PostProcessStage:B_,install:V_}),W_=t(function(e,o){function s(e,t,r){void 0===r&&(r={});var i={type:"Feature"};return 0!==r.id&&!r.id||(i.id=r.id),r.bbox&&(i.bbox=r.bbox),i.properties=t||{},i.geometry=e,i}function i(e,t,r){return void 0===r&&(r={}),s({type:"Point",coordinates:e},t,r)}function n(e,t,r){void 0===r&&(r={});for(var i=0,n=e;i<n.length;i++){var o=n[i];if(o.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var a=0;a<o[o.length-1].length;a++)if(o[o.length-1][a]!==o[0][a])throw new Error("First and last Position are not equivalent.")}return s({type:"Polygon",coordinates:e},t,r)}function a(e,t,r){if(void 0===r&&(r={}),e.length<2)throw new Error("coordinates must be an array of two or more positions");return s({type:"LineString",coordinates:e},t,r)}function c(e,t){void 0===t&&(t={});var r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function l(e,t,r){return void 0===r&&(r={}),s({type:"MultiLineString",coordinates:e},t,r)}function u(e,t,r){return void 0===r&&(r={}),s({type:"MultiPoint",coordinates:e},t,r)}function h(e,t,r){return void 0===r&&(r={}),s({type:"MultiPolygon",coordinates:e},t,r)}function d(e,t){void 0===t&&(t="kilometers");var r=o.factors[t];if(!r)throw new Error(t+" units is invalid");return e*r}function p(e,t){void 0===t&&(t="kilometers");var r=o.factors[t];if(!r)throw new Error(t+" units is invalid");return e/r}function r(e){return 180*(e%(2*Math.PI))/Math.PI}function t(e){return!isNaN(e)&&null!==e&&!Array.isArray(e)&&!/^\s*$/.test(e)}Object.defineProperty(o,"__esModule",{value:!0}),o.earthRadius=6371008.8,o.factors={centimeters:100*o.earthRadius,centimetres:100*o.earthRadius,degrees:o.earthRadius/111325,feet:3.28084*o.earthRadius,inches:39.37*o.earthRadius,kilometers:o.earthRadius/1e3,kilometres:o.earthRadius/1e3,meters:o.earthRadius,metres:o.earthRadius,miles:o.earthRadius/1609.344,millimeters:1e3*o.earthRadius,millimetres:1e3*o.earthRadius,nauticalmiles:o.earthRadius/1852,radians:1,yards:o.earthRadius/1.0936},o.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/o.earthRadius,yards:1/1.0936},o.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046},o.feature=s,o.geometry=function(e,t,r){switch(e){case"Point":return i(t).geometry;case"LineString":return a(t).geometry;case"Polygon":return n(t).geometry;case"MultiPoint":return u(t).geometry;case"MultiLineString":return l(t).geometry;case"MultiPolygon":return h(t).geometry;default:throw new Error(e+" is invalid")}},o.point=i,o.points=function(e,t,r){return void 0===r&&(r={}),c(e.map(function(e){return i(e,t)}),r)},o.polygon=n,o.polygons=function(e,t,r){return void 0===r&&(r={}),c(e.map(function(e){return n(e,t)}),r)},o.lineString=a,o.lineStrings=function(e,t,r){return void 0===r&&(r={}),c(e.map(function(e){return a(e,t)}),r)},o.featureCollection=c,o.multiLineString=l,o.multiPoint=u,o.multiPolygon=h,o.geometryCollection=function(e,t,r){return void 0===r&&(r={}),s({type:"GeometryCollection",geometries:e},t,r)},o.round=function(e,t){if(void 0===t&&(t=0),t&&!(0<=t))throw new Error("precision must be a positive number");var r=Math.pow(10,t||0);return Math.round(e*r)/r},o.radiansToLength=d,o.lengthToRadians=p,o.lengthToDegrees=function(e,t){return r(p(e,t))},o.bearingToAzimuth=function(e){var t=e%360;return t<0&&(t+=360),t},o.radiansToDegrees=r,o.degreesToRadians=function(e){return e%360*Math.PI/180},o.convertLength=function(e,t,r){if(void 0===t&&(t="kilometers"),void 0===r&&(r="kilometers"),!(0<=e))throw new Error("length must be a positive number");return d(p(e,t),r)},o.convertArea=function(e,t,r){if(void 0===t&&(t="meters"),void 0===r&&(r="kilometers"),!(0<=e))throw new Error("area must be a positive number");var i=o.areaFactors[t];if(!i)throw new Error("invalid original units");var n=o.areaFactors[r];if(!n)throw new Error("invalid final units");return e/i*n},o.isNumber=t,o.isObject=function(e){return!!e&&e.constructor===Object},o.validateBBox=function(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(4!==e.length&&6!==e.length)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(function(e){if(!t(e))throw new Error("bbox must only contain numbers")})},o.validateId=function(e){if(!e)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof e))throw new Error("id must be a number or a string")},o.radians2degrees=function(){throw new Error("method has been renamed to `radiansToDegrees`")},o.degrees2radians=function(){throw new Error("method has been renamed to `degreesToRadians`")},o.distanceToDegrees=function(){throw new Error("method has been renamed to `lengthToDegrees`")},o.distanceToRadians=function(){throw new Error("method has been renamed to `lengthToRadians`")},o.radiansToDistance=function(){throw new Error("method has been renamed to `radiansToLength`")},o.bearingToAngle=function(){throw new Error("method has been renamed to `bearingToAzimuth`")},o.convertDistance=function(){throw new Error("method has been renamed to `convertLength`")}});e(W_);W_.earthRadius,W_.factors,W_.unitsFactors,W_.areaFactors,W_.feature,W_.geometry;var U_=W_.point,H_=(W_.points,W_.polygon,W_.polygons,W_.lineString,W_.lineStrings,W_.featureCollection),$_=(W_.multiLineString,W_.multiPoint,W_.multiPolygon,W_.geometryCollection,W_.round,W_.radiansToLength,W_.lengthToRadians,W_.lengthToDegrees,W_.bearingToAzimuth,W_.radiansToDegrees,W_.degreesToRadians,W_.convertLength,W_.convertArea,W_.isNumber,W_.isObject,W_.validateBBox,W_.validateId,W_.radians2degrees,W_.degrees2radians,W_.distanceToDegrees,W_.distanceToRadians,W_.radiansToDistance,W_.bearingToAngle,W_.convertDistance,t(function(e,t){function C(e,t,r){if(null!==e)for(var i,n,o,a,s,c,l,u=0,h=0,d=e.type,p="FeatureCollection"===d,m="Feature"===d,f=p?e.features.length:1,v=0;v<f;v++){a=(l=!!(c=p?e.features[v].geometry:m?e.geometry:e)&&"GeometryCollection"===c.type)?c.geometries.length:1;for(var g=0;g<a;g++){var y,b=0,w=0;if(null!==(y=l?c.geometries[g]:c)){s=y.coordinates;var _=y.type,u=!r||"Polygon"!==_&&"MultiPolygon"!==_?0:1;switch(_){case null:break;case"Point":if(!1===t(s,h,v,b,w))return!1;h++,b++;break;case"LineString":case"MultiPoint":for(i=0;i<s.length;i++){if(!1===t(s[i],h,v,b,w))return!1;h++,"MultiPoint"===_&&b++}"LineString"===_&&b++;break;case"Polygon":case"MultiLineString":for(i=0;i<s.length;i++){for(n=0;n<s[i].length-u;n++){if(!1===t(s[i][n],h,v,b,w))return!1;h++}"MultiLineString"===_&&b++,"Polygon"===_&&w++}"Polygon"===_&&b++;break;case"MultiPolygon":for(i=0;i<s.length;i++){for(n=w=0;n<s[i].length;n++){for(o=0;o<s[i][n].length-u;o++){if(!1===t(s[i][n][o],h,v,b,w))return!1;h++}w++}b++}break;case"GeometryCollection":for(i=0;i<y.geometries.length;i++)if(!1===C(y.geometries[i],t,r))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function o(e,t){var r;switch(e.type){case"FeatureCollection":for(r=0;r<e.features.length&&!1!==t(e.features[r].properties,r);r++);break;case"Feature":t(e.properties,0)}}function a(e,t){if("Feature"===e.type)t(e,0);else if("FeatureCollection"===e.type)for(var r=0;r<e.features.length&&!1!==t(e.features[r],r);r++);}function r(e,t){for(var r,i,n,o,a,s,c,l,u,h=0,d="FeatureCollection"===e.type,p="Feature"===e.type,m=d?e.features.length:1,f=0;f<m;f++){for(a=d?e.features[f].geometry:p?e.geometry:e,c=d?e.features[f].properties:p?e.properties:{},l=d?e.features[f].bbox:p?e.bbox:void 0,u=d?e.features[f].id:p?e.id:void 0,o=(s=!!a&&"GeometryCollection"===a.type)?a.geometries.length:1,i=0;i<o;i++)if(null!==(n=s?a.geometries[i]:a))switch(n.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===t(n,h,c,l,u))return!1;break;case"GeometryCollection":for(r=0;r<n.geometries.length;r++)if(!1===t(n.geometries[r],h,c,l,u))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===t(null,h,c,l,u))return!1;h++}}function s(e,l){r(e,function(e,t,r,i,n){var o,a=null===e?null:e.type;switch(a){case null:case"Point":case"LineString":case"Polygon":return!1===l(W_.feature(e,r,{bbox:i,id:n}),t,0)?!1:void 0}switch(a){case"MultiPoint":o="Point";break;case"MultiLineString":o="LineString";break;case"MultiPolygon":o="Polygon"}for(var s=0;s<e.coordinates.length;s++){var c={type:o,coordinates:e.coordinates[s]};if(!1===l(W_.feature(c,r),t,s))return!1}})}function i(e,m){s(e,function(a,s,c){var l=0;if(a.geometry){var e=a.geometry.type;if("Point"!==e&&"MultiPoint"!==e){var u,h=0,d=0,p=0;return!1!==C(a,function(e,t,r,i,n){if(void 0===u||h<s||d<i||p<n)return u=e,h=s,d=i,p=n,void(l=0);var o=W_.lineString([u,e],a.properties);if(!1===m(o,s,c,n,l))return!1;l++,u=e})&&void 0}}})}function c(e,a){if(!e)throw new Error("geojson is required");s(e,function(e,t,r){if(null!==e.geometry){var i=e.geometry.type,n=e.geometry.coordinates;switch(i){case"LineString":if(!1===a(e,t,r,0,0))return!1;break;case"Polygon":for(var o=0;o<n.length;o++)if(!1===a(W_.lineString(n[o],e.properties),t,r,o))return!1}}})}Object.defineProperty(t,"__esModule",{value:!0}),t.coordEach=C,t.coordReduce=function(e,o,a,t){var s=a;return C(e,function(e,t,r,i,n){s=0===t&&void 0===a?e:o(s,e,t,r,i,n)},t),s},t.propEach=o,t.propReduce=function(e,r,i){var n=i;return o(e,function(e,t){n=0===t&&void 0===i?e:r(n,e,t)}),n},t.featureEach=a,t.featureReduce=function(e,r,i){var n=i;return a(e,function(e,t){n=0===t&&void 0===i?e:r(n,e,t)}),n},t.coordAll=function(e){var t=[];return C(e,function(e){t.push(e)}),t},t.geomEach=r,t.geomReduce=function(e,o,a){var s=a;return r(e,function(e,t,r,i,n){s=0===t&&void 0===a?e:o(s,e,t,r,i,n)}),s},t.flattenEach=s,t.flattenReduce=function(e,i,n){var o=n;return s(e,function(e,t,r){o=0===t&&0===r&&void 0===n?e:i(o,e,t,r)}),o},t.segmentEach=i,t.segmentReduce=function(e,o,a){var s=a,c=!1;return i(e,function(e,t,r,i,n){s=!1===c&&void 0===a?e:o(s,e,t,r,i,n),c=!0}),s},t.lineEach=c,t.lineReduce=function(e,n,o){var a=o;return c(e,function(e,t,r,i){a=0===t&&void 0===o?e:n(a,e,t,r,i)}),a},t.findSegment=function(e,t){if(t=t||{},!W_.isObject(t))throw new Error("options is invalid");var r,i=t.featureIndex||0,n=t.multiFeatureIndex||0,o=t.geometryIndex||0,a=t.segmentIndex||0,s=t.properties;switch(e.type){case"FeatureCollection":i<0&&(i=e.features.length+i),s=s||e.features[i].properties,r=e.features[i].geometry;break;case"Feature":s=s||e.properties,r=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":r=e;break;default:throw new Error("geojson is invalid")}if(null===r)return null;var c=r.coordinates;switch(r.type){case"Point":case"MultiPoint":return null;case"LineString":return a<0&&(a=c.length+a-1),W_.lineString([c[a],c[a+1]],s,t);case"Polygon":return o<0&&(o=c.length+o),a<0&&(a=c[o].length+a-1),W_.lineString([c[o][a],c[o][a+1]],s,t);case"MultiLineString":return n<0&&(n=c.length+n),a<0&&(a=c[n].length+a-1),W_.lineString([c[n][a],c[n][a+1]],s,t);case"MultiPolygon":return n<0&&(n=c.length+n),o<0&&(o=c[n].length+o),a<0&&(a=c[n][o].length-a-1),W_.lineString([c[n][o][a],c[n][o][a+1]],s,t)}throw new Error("geojson is invalid")},t.findPoint=function(e,t){if(t=t||{},!W_.isObject(t))throw new Error("options is invalid");var r,i=t.featureIndex||0,n=t.multiFeatureIndex||0,o=t.geometryIndex||0,a=t.coordIndex||0,s=t.properties;switch(e.type){case"FeatureCollection":i<0&&(i=e.features.length+i),s=s||e.features[i].properties,r=e.features[i].geometry;break;case"Feature":s=s||e.properties,r=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":r=e;break;default:throw new Error("geojson is invalid")}if(null===r)return null;var c=r.coordinates;switch(r.type){case"Point":return W_.point(c,s,t);case"MultiPoint":return n<0&&(n=c.length+n),W_.point(c[n],s,t);case"LineString":return a<0&&(a=c.length+a),W_.point(c[a],s,t);case"Polygon":return o<0&&(o=c.length+o),a<0&&(a=c[o].length+a),W_.point(c[o][a],s,t);case"MultiLineString":return n<0&&(n=c.length+n),a<0&&(a=c[n].length+a),W_.point(c[n][a],s,t);case"MultiPolygon":return n<0&&(n=c.length+n),o<0&&(o=c[n].length+o),a<0&&(a=c[n][o].length-a),W_.point(c[n][o][a],s,t)}throw new Error("geojson is invalid")}}));e($_);$_.coordEach,$_.coordReduce,$_.propEach,$_.propReduce,$_.featureEach,$_.featureReduce,$_.coordAll,$_.geomEach,$_.geomReduce,$_.flattenEach,$_.flattenReduce,$_.segmentEach,$_.segmentReduce,$_.lineEach,$_.lineReduce,$_.findSegment,$_.findPoint;var Z_=e(t(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var l=6378137;function i(e){var t=0;if(e&&0<e.length){t+=Math.abs(n(e[0]));for(var r=1;r<e.length;r++)t-=Math.abs(n(e[r]))}return t}function n(e){var t,r,i,n,o,a,s=0,c=e.length;if(2<c){for(a=0;a<c;a++)o=a===c-2?(i=c-2,n=c-1,0):a===c-1?(i=c-1,n=0,1):(n=(i=a)+1,a+2),t=e[i],r=e[n],s+=(u(e[o][0])-u(t[0]))*Math.sin(u(r[1]));s=s*l*l/2}return s}function u(e){return e*Math.PI/180}t.default=function(e){return $_.geomReduce(e,function(e,t){return e+function(e){var t,r=0;switch(e.type){case"Polygon":return i(e.coordinates);case"MultiPolygon":for(t=0;t<e.coordinates.length;t++)r+=i(e.coordinates[t]);return r;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0}return 0}(t)},0)}})),K_={mode:{type:Number,default:1},font:{type:String,default:"100 20px SimSun"},fillColor:{type:String|Object|Array,default:"WHITE"},labelStyle:{type:Number,default:2},showBackground:{type:Boolean,default:!0},backgroundColor:{type:String|Object|Array,default:"rgba(38, 38, 38, 0.85)"},outlineWidth:{type:Number,default:1},outlineColor:{type:String|Object|Array,default:"BLUE"},pixelOffset:{type:Object,default:function(){return{x:15,y:-20}}},pointColor:{type:String|Object|Array,default:"rgb(255,229,0)"},pointPixelSize:{type:Number,default:8},polylineMaterial:{type:Object,default:function(){return{fabric:{type:"Color",uniforms:{color:"#51ff00"}}}}},polylineWidth:{type:Number,default:2},depthTest:{type:Boolean,default:!1}},X_={mixins:[Yi],props:K_,watch:{measuring:function(t){var r,i,n,o,a,s,c,l,u,h,d,p,m;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=!1,i=this.polylines,n=this.startNew,o=this.type,a=i[i.length-1],t||!a||a.positions.length){e.next=7;break}this.polylines.pop(),e.next=42;break;case 7:if(!t){e.next=42;break}s=[],e.t0=o,e.next="distanceMeasuring"===e.t0?12:"areaMeasuring"===e.t0?15:"heightMeasuring"===e.t0?18:21;break;case 12:return s.push("vc-measure-height"),s.push("vc-measure-area"),e.abrupt("break",21);case 15:return s.push("vc-measure-distance"),s.push("vc-measure-height"),e.abrupt("break",21);case 18:return s.push("vc-measure-distance"),s.push("vc-measure-area"),e.abrupt("break",21);case 21:for(c=["vc-handler-draw-polyline","vc-handler-draw-point","vc-handler-draw-polygon"],u=!(l=!0),h=void 0,e.prev=25,d=Kt(this.$parent.$slots.default||[]);!(l=(p=d.next()).done);l=!0)(m=p.value).componentOptions&&-1!==s.indexOf(m.componentOptions.tag)&&(m.child.measuring=!1,r=!0),m.componentOptions&&-1!==c.indexOf(m.componentOptions.tag)&&(m.child.drawing=!1,r=!0);e.next=33;break;case 29:e.prev=29,e.t1=e.catch(25),u=!0,h=e.t1;case 33:e.prev=33,e.prev=34,l||null==d.return||d.return();case 36:if(e.prev=36,u)throw h;e.next=39;break;case 39:return e.finish(36);case 40:return e.finish(33);case 41:n();case 42:if(e.t2=r,e.t2)return e.next=46,Xt.awrap(this.$nextTick());e.next=46;break;case 46:this.viewer.canvas.setAttribute("style",t?"cursor: crosshair":"cursor: auto"),this.$listeners.activeEvt&&this.$emit("activeEvt",{type:o,isActive:t});case 49:case"end":return e.stop()}},null,this,[[25,29,33,41],[34,,36,40]])}},methods:{createCesiumObject:function(){var t,r;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=this.viewer).scene.frameState.morphTime=0,(r=new Cesium.ScreenSpaceEventHandler(t.canvas)).setInputAction(this.LEFT_CLICK,Cesium.ScreenSpaceEventType.LEFT_CLICK),r.setInputAction(this.MOUSE_MOVE,Cesium.ScreenSpaceEventType.MOUSE_MOVE),r.setInputAction(this.RIGHT_CLICK,Cesium.ScreenSpaceEventType.RIGHT_CLICK),this.handler=r,e.abrupt("return",this.polylines);case 8:case"end":return e.stop()}},null,this)},mount:function(){return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}})},unmount:function(){return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}})},LEFT_CLICK:function(e){if(this.measuring){var t=this.Cesium,r=this.viewer,i=this.polylines,n=this.type,o=this.onMeasureEvt,a=r.scene.pickPosition(e.position);if(t.defined(a)){var s=i.length-1,c=i[s];switch(n){case"distanceMeasuring":case"areaMeasuring":c.positions.push(a),c.distances.push(c.distance),o(c,s);break;case"heightMeasuring":0===c.positions.length&&(c.positions.push(a),this.startPoint=a),o(c,this.labels)}}}},MOUSE_MOVE:function(t){var r,i,n,o,a,s,c,l,u,h,d,p,m,f,v,g,y,b,w,_,C,M,x;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.measuring){e.next=2;break}return e.abrupt("return");case 2:if(r=this.viewer,i=this.polylines,n=this.onMeasureEvt,o=this.type,i.length){e.next=5;break}return e.abrupt("return");case 5:if(a=i.length-1,(s=i[a]).positions.length){e.next=9;break}return e.abrupt("return");case 9:if(c=r.scene.pickPosition(t.endPosition),Cesium.defined(c)){e.next=12;break}return e.abrupt("return");case 12:if(this.$listeners.movingEvt&&this.$emit("movingEvt",t.endPosition,o),"distanceMeasuring"===o||"areaMeasuring"===o)return 2<=s.positions.length&&(s.positions.pop(),s.distances&&s.distances.pop(),"areaMeasuring"===o&&s.distances&&s.distances.pop()),s.positions.push(c),"distanceMeasuring"===o?(l=this.getDistance(s.positions),s.distances.push(l),s.distance=l,a=i.reduce(function(e,t){return e+t.positions.length-1},0)-1):(s.area=this.getSurfaceArea(s.positions),s.projectedArea=this.getProjectedArea(s.positions),u=this.getDistance(s.positions),s.distance=u,s.distances.push(u),(h=Cesium.clone(s.positions,!0)).push(s.positions[0]),u=this.getDistance(h),s.distance=u,s.distances.push(u)),e.next=20,Xt.awrap(this.$nextTick());e.next=23;break;case 20:n(s,a),e.next=49;break;case 23:return d=this.labels,p=c,m={},Cesium.Cartesian3.normalize(this.startPoint,m),f=new Cesium.Plane(m,-Cesium.Cartesian3.distance(this.startPoint,new Cesium.Cartesian3(0,0,0))),v={},s.height=Cesium.Plane.getPointDistance(f,p),g={},y={},b={},0<=s.height?(Cesium.Plane.projectPointOntoPlane(f,p,v),Cesium.Cartesian3.midpoint(p,v,g),Cesium.Cartesian3.midpoint(this.startPoint,v,y),s.distanceH=Cesium.Cartesian3.distance(this.startPoint,v)):(w={},Cesium.Cartesian3.normalize(p,w),_=new Cesium.Plane(m,-Cesium.Cartesian3.distance(p,new Cesium.Cartesian3(0,0,0))),Cesium.Plane.projectPointOntoPlane(_,this.startPoint,v),Cesium.Cartesian3.midpoint(this.startPoint,v,g),Cesium.Cartesian3.midpoint(p,v,y),s.distanceH=Cesium.Cartesian3.distance(p,v)),s.distanceS=Cesium.Cartesian3.distance(this.startPoint,p),Cesium.Cartesian3.midpoint(this.startPoint,p,b),s.height=Math.abs(s.height),1!==s.positions.length&&(s.positions.pop(),s.positions.pop(),d.pop(),d.pop(),d.pop()),s.positions.push(p),s.positions.push(v),C=1e3<s.height?(s.height/1e3).toFixed(2)+"km":s.height.toFixed(2)+"m",d.push({text:this.$vc.lang.measure.verticalHeight+": "+C,position:g}),M=1e3<s.distanceH?(s.distanceH/1e3).toFixed(2)+"km":s.distanceH.toFixed(2)+"m",d.push({text:this.$vc.lang.measure.horizontalDistance+": "+M,position:y}),x=1e3<s.distanceS?(s.distanceS/1e3).toFixed(2)+"km":s.distanceS.toFixed(2)+"m",d.push({text:this.$vc.lang.measure.spaceDistance+": "+x,position:b}),e.next=48,Xt.awrap(this.$nextTick());case 48:n(s,d);case 49:case"end":return e.stop()}},null,this)},RIGHT_CLICK:function(t){var r,i,n,o,a,s,c,l,u,h,d,p,m;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.measuring){e.next=2;break}return e.abrupt("return");case 2:if(r=this.viewer,i=this.polylines,n=this.mode,o=this.startNew,a=this.onMeasureEvt,s=this.type,i.length){e.next=5;break}return e.abrupt("return");case 5:if(c=i.length-1,0===(l=i[c]).positions.length)return e.abrupt("return");e.next=9;break;case 9:if(u=r.scene.pickPosition(t.position),Cesium.defined(u)){e.next=12;break}return e.abrupt("return");case 12:return"distanceMeasuring"===s?(l.positions.pop(),l.distances.pop(),h=this.getDistance,l.distance=h(l.positions),1===l.positions.length&&(l.positions=[]),c=i.reduce(function(e,t){return e+t.positions.length-1},0)-1):"areaMeasuring"===s&&(l.positions.pop(),l.distances.pop(),d=this.getSurfaceArea,p=this.getProjectedArea,l.area=d(l.positions),l.projectedArea=p(l.positions),l.positions.length<=2&&(l.positions=[])),0===n?o():this.measuring=!1,e.next=16,Xt.awrap(this.$nextTick());case 16:"distanceMeasuring"===s||"areaMeasuring"===s?a(l,c,!0):(m=this.labels,a(l,m,!0));case 17:case"end":return e.stop()}},null,this)},startNew:function(){var e,t=this.polylines,r=this.type;Cesium.defined(t)&&(Di(e={positions:[]},"distanceMeasuring"===r?{distances:[],distance:0}:"areaMeasuring"===r?{area:0,projectedArea:0,distances:[],distance:0}:{distanceH:0,height:0,distanceS:0}),t.push(e))},getDistance:function(e){for(var t=Cesium.Cartesian3,r=this.clampToGround,i=this.getGeodesicDistance,n=0,o=0;o<e.length-1;o++){n+=r?i(e[o],e[o+1]):t.distance(e[o],e[o+1])}return n},getGeodesicDistance:function(e,t){var r=Cesium,i=r.Ellipsoid;return new r.EllipsoidGeodesic(i.WGS84.cartesianToCartographic(e),i.WGS84.cartesianToCartographic(t)).surfaceDistance},onMeasureEvt:function(e,t,r){var i,n,o,a,s,c=2<arguments.length&&void 0!==r&&r;this.depthTest||(i=Cesium.RenderState.fromCache({depthMask:!0,depthTest:{enabled:!1}}),Cesium.SuperMapImageryProvider?this.$refs.polylineCollection&&(this.$refs.polylineCollection.cesiumObject._opaqueRS=i):this.$refs.polylineCollection&&(this.$refs.polylineCollection.cesiumObject._opaqueRS.depthTest.enabled=!1),this.$refs.pointCollection&&(this.$refs.pointCollection.cesiumObject._rsOpaque=i),this.$refs.labelCollection.cesiumObject._billboardCollection._rsTranslucent=i,this.$refs.labelCollection.cesiumObject._backgroundBillboardCollection._rsTranslucent=i,n=this.$listeners.measureEvt,"distanceMeasuring"===(o=this.type)||"areaMeasuring"===o?n&&this.$emit("measureEvt",{polyline:e,label:this.$refs.labelCollection.cesiumObject.get(t),type:o,finished:c}):(a=t,s={labelHeight:this.$refs.labelCollection.cesiumObject.get(a.length-3),labelH:this.$refs.labelCollection.cesiumObject.get(a.length-2),labelS:this.$refs.labelCollection.cesiumObject.get(a.length-1)},n&&this.$emit("measureEvt",{polyline:e,label:s,type:"heightMeasuring",finished:c})))}},created:function(){var e=this;te(this,{polyline:{enumerable:!0,get:function(){return e.polyline}}})},destroyed:function(){var e=this.handler;e&&(e.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK),e.removeInputAction(Cesium.ScreenSpaceEventType.MOUSE_MOVE),e.removeInputAction(Cesium.ScreenSpaceEventType.RIGHT_CLICK))}},J_={name:"vc-measure-area",mixins:[X_],data:function(){return{index:0,type:"areaMeasuring",measuring:!1,polylines:[]}},props:{clampToGround:{type:Boolean,default:!1},alongLine:{type:Boolean,default:!0},polygonMaterial:{type:Object,default:function(){return{fabric:{type:"Color",uniforms:{color:"rgba(255,165,0,0.25)"}}}}}},watch:{clampToGround:function(){var o=this.getSurfaceArea,a=this.getDistance;this.polylines.forEach(function(e){e.area=o(e.positions);for(var t=[0],r=0,i=0;i<e.positions.length;i++){var n=[e.positions[i],e.positions.length-1!==i?e.positions[i+1]:e.positions[0]];r+=a(n),t.push(r)}e.distances=t,e.distance=r})}},methods:{getDistanceText:function(e){return 1e3<e?(e/1e3).toFixed(2)+"km":e.toFixed(2)+"m"},getMidPoistion:function(e,t){var r=Cesium.Cartesian3;return r.midpoint(e,t,new r)},makeEllipsoidSurfaceAppearance:function(e){return new Cesium.EllipsoidSurfaceAppearance({material:Hi.call(this,e),renderState:{cull:{enabled:!1}}})},makePolylineMaterialAppearance:function(e){return new Cesium.PolylineMaterialAppearance({material:Hi.call(this,e)})},clone:li,getSurfaceArea:function(e){var t=li(e,!0);if(t.length<3)return 0;var r=Cesium,i=r.Cartesian3,n=r.EllipsoidTangentPlane,o=r.Ellipsoid,a=r.Math,s=r.PolygonGeometryLibrary,c=r.PolygonHierarchy,l=r.VertexFormat,u=r.ArcType,h=!this.clampToGround,d=n.fromPoints(t,o.WGS84),p=s.polygonsFromHierarchy(new c(t),d.projectPointsOntoPlane.bind(d),this.clampToGround,o.WGS84),m=s.createGeometryFromPositions(o.WGS84,p.polygons[0],a.RADIANS_PER_DEGREE,h,l.POSITION_ONLY,u.GEODESIC);if(m.indices.length%3!=0||m.attributes.position.values.length%3!=0)return 0;for(var f=[],v=0;v<m.attributes.position.values.length;v+=3)f.push(new i(m.attributes.position.values[v],m.attributes.position.values[v+1],m.attributes.position.values[v+2]));for(var g=0,y=0;y<m.indices.length;y+=3){var b=m.indices[y],w=m.indices[y+1],_=m.indices[y+2],C=i.distance(f[b],f[w]),M=i.distance(f[w],f[_]),x=i.distance(f[_],f[b]),P=(C+M+x)/2;g+=Math.sqrt(P*(P-C)*(P-M)*(P-x))}return g},getProjectedArea:function(e){for(var t=Cesium,r=t.Cartographic,i=t.Math,n=[],o=0,a=e.length;o<a;o++){var s=r.fromCartesian(e[o]),c=i.toDegrees(s.longitude).toFixed(6),l=i.toDegrees(s.latitude).toFixed(6);n.push({x:c,y:l})}var u=[],h=[];u.push(h);for(var d=0,p=n.length;d<p;d++)h.push([n[d].x,n[d].y]);return Z_({type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:u}},{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[[[0,0],[0,0],[0,0],[0,0],[0,0]]]}}]})},clear:function(){this.distance=0,this.polylines=[],this.labels=[],this.measuring=!1}}};var Y_,Q_,eC,tC,rC,iC=(eC=void 0,tC=!(Y_={render:function(){var n=this,e=n.$createElement,o=n._self._c||e;return o("i",{class:n.$options.name,staticStyle:{display:"none !important"}},[n.clampToGround?o("vc-collection-primitive",{ref:"groundPolygonCollection"},[n._l(n.polylines,function(e,t){return[2<e.positions.length?o("vc-primitive-ground",{key:t,attrs:{appearance:n.makeEllipsoidSurfaceAppearance(n.polygonMaterial),asynchronous:!1}},[o("vc-instance-geometry",[o("vc-geometry-polygon",{attrs:{perPositionHeight:!1,polygonHierarchy:n.clone(e.positions,!0)}})],1)],1):n._e()]})],2):o("vc-collection-primitive",{ref:"polygonCollection"},[n._l(n.polylines,function(e,t){return[2<e.positions.length?o("vc-primitive",{key:t,attrs:{appearance:n.makeEllipsoidSurfaceAppearance(n.polygonMaterial),asynchronous:!1}},[o("vc-instance-geometry",[o("vc-geometry-polygon",{attrs:{perPositionHeight:!0,polygonHierarchy:n.clone(e.positions,!0)}})],1)],1):n._e()]})],2),n._v(" "),n.clampToGround?o("vc-collection-primitive",{ref:"groundPolylineCollection"},[n._l(n.polylines,function(e,t){return[1<e.positions.length?o("vc-primitive-polyline-ground",{key:t,attrs:{appearance:n.makePolylineMaterialAppearance(n.polylineMaterial),asynchronous:!1}},[o("vc-instance-geometry",[o("vc-geometry-polyline-ground",{attrs:{positions:e.positions,width:n.polylineWidth,loop:""}})],1)],1):n._e()]})],2):o("vc-collection-primitive-polyline",{ref:"polylineCollection"},n._l(n.polylines,function(e,t){return o("vc-primitive-polyline",{key:t,attrs:{loop:!0,material:n.polylineMaterial,positions:e.positions,width:n.polylineWidth}})}),1),n._v(" "),o("vc-collection-primitive-point",{ref:"pointCollection"},[n._l(n.polylines,function(e,r){return[n._l(e.positions,function(e,t){return[o("vc-primitive-point",{key:"point"+r+"position"+t,attrs:{color:n.pointColor,pixelSize:n.pointPixelSize,position:e}})]})]})],2),n._v(" "),o("vc-collection-primitive-label",{ref:"labelCollection"},[n._l(n.polylines,function(r,i){return[o("vc-primitive-label",{key:"label"+i,attrs:{backgroundColor:n.backgroundColor,font:n.font,horizontalOrigin:1,labelStyle:n.labelStyle,outlineColor:n.outlineColor,outlineWidth:n.outlineWidth,pixelOffset:n.pixelOffset,position:r.positions[r.positions.length-1],showBackground:n.showBackground,text:n.$vc.lang.measure.area+": "+(1e6<r.area?(r.area/1e6).toFixed(2)+"km²":r.area.toFixed(2)+"㎡")}}),n._v(" "),n._l(r.positions,function(e,t){return[n.alongLine?o("vc-primitive-label",{key:"label"+i+"position"+t,attrs:{backgroundColor:n.backgroundColor,fillColor:n.fillColor,font:n.font,horizontalOrigin:1,labelStyle:n.labelStyle,outlineColor:n.outlineColor,outlineWidth:n.outlineWidth,pixelOffset:n.pixelOffset,position:t!==r.positions.length-1?n.getMidPoistion(r.positions[t],r.positions[t+1]):n.getMidPoistion(r.positions[t],r.positions[0]),showBackground:n.showBackground,text:n.getDistanceText(r.distances[t+1]-r.distances[t])}}):n._e()]})]})],2)],1)},staticRenderFns:[]}),(rC=("function"==typeof(Q_=J_)?Q_.options:Q_)||{}).__file="VcMeasureArea.vue",rC.render||(rC.render=Y_.render,rC.staticRenderFns=Y_.staticRenderFns,rC._compiled=!0,tC&&(rC.functional=!0)),rC._scopeId=eC,rC);function nC(e){nC.installed||(nC.installed=!0,e.component(iC.name,iC))}var oC=Object.freeze({__proto__:null,default:nC,VcMeasureArea:iC,install:nC}),aC={name:"vc-measure-distance",mixins:[X_],data:function(){return{type:"distanceMeasuring",measuring:!1,polylines:[]}},props:{arcType:{type:Number,default:0},clampToGround:{type:Boolean,default:!1},alongLine:{type:Boolean,default:!0}},watch:{clampToGround:function(){var o=this.getDistance;this.polylines.forEach(function(e){for(var t=[0],r=0,i=0;i<e.positions.length-1;i++){var n=[e.positions[i],e.positions[i+1]];r+=o(n),t.push(r)}e.distances=t,e.distance=r})}},methods:{getDistanceText:function(e){return 1e3<e?(e/1e3).toFixed(2)+"km":e.toFixed(2)+"m"},getMidPoistion:function(e,t){var r=Cesium.Cartesian3;return r.midpoint(e,t,new r)},clear:function(){this.polylines=[],this.measuring=!1},makeAppearance:function(e){return new Cesium.PolylineMaterialAppearance({material:Hi.call(this,e)})}}};var sC,cC,lC,uC,hC,dC=(lC=void 0,uC=!(sC={render:function(){var n=this,e=n.$createElement,o=n._self._c||e;return o("i",{class:n.$options.name,staticStyle:{display:"none !important"}},[n.clampToGround?o("vc-collection-primitive",{ref:"groundPolylineCollection"},[n._l(n.polylines,function(e,t){return[1<e.positions.length?o("vc-primitive-polyline-ground",{key:t,attrs:{appearance:n.makeAppearance(n.polylineMaterial),arcType:n.arcType,asynchronous:!1}},[o("vc-instance-geometry",[o("vc-geometry-polyline-ground",{attrs:{positions:e.positions,width:n.polylineWidth}})],1)],1):n._e()]})],2):o("vc-collection-primitive-polyline",{ref:"polylineCollection"},n._l(n.polylines,function(e,t){return o("vc-primitive-polyline",{key:t,attrs:{material:n.polylineMaterial,positions:e.positions,width:n.polylineWidth}})}),1),n._v(" "),o("vc-collection-primitive-point",{ref:"pointCollection"},[n._l(n.polylines,function(e,r){return[n._l(e.positions,function(e,t){return[o("vc-primitive-point",{key:"point"+r+"position"+t,attrs:{color:n.pointColor,pixelSize:n.pointPixelSize,position:e}})]})]})],2),n._v(" "),o("vc-collection-primitive-label",{ref:"labelCollection"},[n._l(n.polylines,function(r,i){return[n._l(r.positions,function(e,t){return[t===r.positions.length-1?o("vc-primitive-label",{key:"label"+i+"position"+t,attrs:{backgroundColor:n.backgroundColor,fillColor:n.fillColor,font:n.font,horizontalOrigin:1,labelStyle:n.labelStyle,outlineColor:n.outlineColor,outlineWidth:n.outlineWidth,pixelOffset:n.pixelOffset,position:e,showBackground:n.showBackground,text:n.$vc.lang.measure.distance+": "+n.getDistanceText(r.distances[t])}}):n._e(),n._v(" "),t!==r.positions.length-1&&r.positions.length>2+t||(r.positions.length>2+t||r.positions.length-2===t&&2!==r.positions.length)&&n.alongLine?o("vc-primitive-label",{key:"label"+i+"position"+t,attrs:{backgroundColor:n.backgroundColor,fillColor:n.fillColor,font:n.font,horizontalOrigin:1,labelStyle:n.labelStyle,outlineColor:n.outlineColor,outlineWidth:n.outlineWidth,pixelOffset:n.pixelOffset,position:n.getMidPoistion(r.positions[t],r.positions[t+1]),showBackground:n.showBackground,text:n.getDistanceText(r.distances[t+1]-r.distances[t])}}):n._e()]})]})],2)],1)},staticRenderFns:[]}),(hC=("function"==typeof(cC=aC)?cC.options:cC)||{}).__file="VcMeasureDistance.vue",hC.render||(hC.render=sC.render,hC.staticRenderFns=sC.staticRenderFns,hC._compiled=!0,uC&&(hC.functional=!0)),hC._scopeId=lC,hC);function pC(e){pC.installed||(pC.installed=!0,e.component(dC.name,dC))}var mC=Object.freeze({__proto__:null,default:pC,VcMeasureDistance:dC,install:pC});var fC,vC,gC,yC,bC,wC=(gC=void 0,yC=!(fC={render:function(){var i=this,e=i.$createElement,n=i._self._c||e;return n("i",{class:i.$options.name,staticStyle:{display:"none !important"}},[n("vc-collection-primitive-polyline",{ref:"polylineCollection"},i._l(i.polylines,function(e,t){return n("vc-primitive-polyline",{key:t,attrs:{material:i.polylineMaterial,positions:e.positions,width:i.polylineWidth,loop:""}})}),1),i._v(" "),n("vc-collection-primitive-point",{ref:"pointCollection"},[i._l(i.polylines,function(e,r){return[i._l(e.positions,function(e,t){return[n("vc-primitive-point",{key:"point"+r+"position"+t,attrs:{color:i.pointColor,pixelSize:i.pointPixelSize,position:e}})]})]})],2),i._v(" "),n("vc-collection-primitive-label",{ref:"labelCollection"},i._l(i.labels,function(e,t){return n("vc-primitive-label",{key:"label"+t,attrs:{backgroundColor:i.backgroundColor,fillColor:i.fillColor,font:i.font,horizontalOrigin:1,labelStyle:i.labelStyle,outlineColor:i.outlineColor,outlineWidth:i.outlineWidth,pixelOffset:i.pixelOffset,position:e.position,showBackground:i.showBackground,text:e.text}})}),1)],1)},staticRenderFns:[]}),(bC=("function"==typeof(vC={name:"vc-measure-height",mixins:[X_],data:function(){return{type:"heightMeasuring",measuring:!1,startPoint:{},polylines:[],labels:[]}},methods:{getDistance:function(e){for(var t=0,r=0;r<e.length-1;r++){t+=Cesium.Cartesian3.distance(e[r],e[r+1])}return t},clear:function(){this.distance=0,this.polylines=[],this.labels=[],this.measuring=!1}}})?vC.options:vC)||{}).__file="VcMeasureHeight.vue",bC.render||(bC.render=fC.render,bC.staticRenderFns=fC.staticRenderFns,bC._compiled=!0,yC&&(bC.functional=!0)),bC._scopeId=gC,bC);function _C(e){_C.installed||(_C.installed=!0,e.component(wC.name,wC))}var CC=Object.freeze({__proto__:null,default:_C,VcMeasureHeight:wC,install:_C}),MC={mode:{type:Number,default:1},show:{type:Boolean,default:!0},pointColor:{type:String|Object|Array,default:"rgb(255,229,0)"},pointPixelSize:{type:Number,default:8}},xC={mixins:[Yi],props:MC,watch:{drawing:function(t){var r,i,n,o,a,s,c,l,u,h,d,p,m;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=!1,i=this.polylines,n=this.startNew,o=this.drawType,a=i[i.length-1],t||!a||a.positions.length){e.next=7;break}this.polylines.pop(),e.next=42;break;case 7:if(!t){e.next=42;break}s=[],e.t0=o,e.next="pointDrawing"===e.t0?12:"polylineDrawing"===e.t0?15:"polygonDrawing"===e.t0?18:21;break;case 12:return s.push("vc-handler-draw-polyline"),s.push("vc-handler-draw-polygon"),e.abrupt("break",21);case 15:return s.push("vc-handler-draw-point"),s.push("vc-handler-draw-polygon"),e.abrupt("break",21);case 18:return s.push("vc-handler-draw-polyline"),s.push("vc-handler-draw-point"),e.abrupt("break",21);case 21:for(c=["vc-measure-height","vc-measure-distance","vc-measure-area"],u=!(l=!0),h=void 0,e.prev=25,d=Kt(this.$parent.$slots.default||[]);!(l=(p=d.next()).done);l=!0)(m=p.value).componentOptions&&-1!==s.indexOf(m.componentOptions.tag)&&(m.child.drawing=!1,r=!0),m.componentOptions&&-1!==c.indexOf(m.componentOptions.tag)&&(m.child.measuring=!1,r=!0);e.next=33;break;case 29:e.prev=29,e.t1=e.catch(25),u=!0,h=e.t1;case 33:e.prev=33,e.prev=34,l||null==d.return||d.return();case 36:if(e.prev=36,u)throw h;e.next=39;break;case 39:return e.finish(36);case 40:return e.finish(33);case 41:n();case 42:if(e.t2=r,e.t2)return e.next=46,Xt.awrap(this.$nextTick());e.next=46;break;case 46:this.viewer.canvas.setAttribute("style",t?"cursor: crosshair":"cursor: auto"),this.$listeners.activeEvt&&this.$emit("activeEvt",{type:o,isActive:t});case 49:case"end":return e.stop()}},null,this,[[25,29,33,41],[34,,36,40]])}},computed:{},methods:{createCesiumObject:function(){var t,r;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.viewer,(r=new Cesium.ScreenSpaceEventHandler(t.canvas)).setInputAction(this.LEFT_CLICK,Cesium.ScreenSpaceEventType.LEFT_CLICK),r.setInputAction(this.MOUSE_MOVE,Cesium.ScreenSpaceEventType.MOUSE_MOVE),r.setInputAction(this.RIGHT_CLICK,Cesium.ScreenSpaceEventType.RIGHT_CLICK),this.handler=r,e.abrupt("return",this.polylines);case 7:case"end":return e.stop()}},null,this)},mount:function(){return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}})},unload:function(){return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}})},LEFT_CLICK:function(e){var t,r,i,n,o,a,s;this.drawing&&(t=this.Cesium,r=this.viewer,i=this.polylines,n=this.onDrawingEvt,o=r.scene.pickPosition(e.position),t.defined(o)&&((s=i[a=i.length-1]).positions.push(o),n(s,a)))},MOUSE_MOVE:function(t){var r,i,n,o,a,s,c,l;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.drawing){e.next=2;break}return e.abrupt("return");case 2:if(r=this.Cesium,i=this.viewer,n=this.polylines,o=this.onDrawingEvt,a=this.drawType,n.length){e.next=5;break}return e.abrupt("return");case 5:if(s=n.length-1,(c=n[s]).positions.length){e.next=9;break}return e.abrupt("return");case 9:if(l=i.scene.pickPosition(t.endPosition),r.defined(l)){e.next=12;break}return e.abrupt("return");case 12:2<=c.positions.length&&c.positions.pop(),c.positions.push(l),this.$listeners.movingEvt&&this.$emit("movingEvt",t.endPosition,a),o(c,s);case 17:case"end":return e.stop()}},null,this)},RIGHT_CLICK:function(t){var r,i,n,o,a,s,c,l;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.drawing){e.next=2;break}return e.abrupt("return");case 2:if(r=this.viewer,i=this.polylines,n=this.mode,o=this.startNew,a=this.onDrawingEvt,i.length){e.next=5;break}return e.abrupt("return");case 5:if(s=i.length-1,0===(c=i[s]).positions.length)return e.abrupt("return");e.next=9;break;case 9:if(l=r.scene.pickPosition(t.position),Cesium.defined(l)){e.next=12;break}return e.abrupt("return");case 12:return c.positions.pop(),0===n?o():this.drawing=!1,e.next=16,Xt.awrap(this.$nextTick());case 16:a(c,s,!0);case 17:case"end":return e.stop()}},null,this)},startNew:function(){var e=this.polylines;Cesium.defined(e)&&e.push({positions:[]})},clear:function(){this.polylines=[],this.drawing=!1},onDrawingEvt:function(e,t,r){var i,n=2<arguments.length&&void 0!==r&&r;this.index=t,this.depthTest||(i=Cesium.RenderState.fromCache({depthMask:!0,depthTest:{enabled:!1}}),this.$refs.pointCollection&&(this.$refs.pointCollection.cesiumObject._rsOpaque=i),Cesium.SuperMapImageryProvider?this.$refs.polylineCollection&&(this.$refs.polylineCollection.cesiumObject._opaqueRS=i):this.$refs.polylineCollection&&(this.$refs.polylineCollection.cesiumObject._opaqueRS.depthTest.enabled=!1)),this.$listeners.drawEvt&&this.$emit("drawEvt",{polyline:e,type:this.drawType,finished:n})}},destroyed:function(){var e=this.handler;e&&(e.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK),e.removeInputAction(Cesium.ScreenSpaceEventType.MOUSE_MOVE),e.removeInputAction(Cesium.ScreenSpaceEventType.RIGHT_CLICK))}};var PC,SC,EC,TC,OC,kC=(EC=void 0,TC=!(PC={render:function(){var i=this,e=i.$createElement,n=i._self._c||e;return n("i",{class:i.$options.name,staticStyle:{display:"none !important"}},[n("vc-collection-primitive-point",{ref:"pointCollection"},[i._l(i.polylines,function(e,r){return[i._l(e.positions,function(e,t){return[n("vc-primitive-point",{key:"point"+r+"position"+t,attrs:{color:i.pointColor,pixelSize:i.pointPixelSize,position:e,show:i.show}})]})]})],2)],1)},staticRenderFns:[]}),(OC=("function"==typeof(SC={name:"vc-handler-draw-point",mixins:[xC],data:function(){return{drawType:"pointDrawing",drawing:!1,polylines:[]}}})?SC.options:SC)||{}).__file="VcDrawHandlerPoint.vue",OC.render||(OC.render=PC.render,OC.staticRenderFns=PC.staticRenderFns,OC._compiled=!0,TC&&(OC.functional=!0)),OC._scopeId=EC,OC);function RC(e){RC.installed||(RC.installed=!0,e.component(kC.name,kC))}var FC=Object.freeze({__proto__:null,default:RC,VcDrawHandlerPoint:kC,install:RC}),LC={name:"vc-handler-draw-polyline",mixins:[xC],data:function(){return{drawType:"polylineDrawing",drawing:!1,polylines:[]}},props:{depthTest:{type:Boolean,default:!1},polylineMaterial:{type:Object,default:function(){return{fabric:{type:"Color",uniforms:{color:"#51ff00"}}}}},polylineWidth:{type:Number,default:2},clampToGround:{type:Boolean,default:!1}},methods:{makeAppearance:function(e){return new Cesium.PolylineMaterialAppearance({material:Hi.call(this,e)})}}};var IC,jC,AC,DC,NC,GC=(AC=void 0,DC=!(IC={render:function(){var i=this,e=i.$createElement,n=i._self._c||e;return n("i",{class:i.$options.name,staticStyle:{display:"none !important"}},[n("vc-collection-primitive",{attrs:{show:i.show}},[i.clampToGround?n("vc-collection-primitive",{ref:"groundPolylineCollection"},[i._l(i.polylines,function(e,t){return[1<e.positions.length?n("vc-primitive-polyline-ground",{key:t,attrs:{appearance:i.makeAppearance(i.polylineMaterial),asynchronous:!1}},[n("vc-instance-geometry",[n("vc-geometry-polyline-ground",{attrs:{positions:e.positions,width:i.polylineWidth}})],1)],1):i._e()]})],2):n("vc-collection-primitive-polyline",{ref:"polylineCollection"},i._l(i.polylines,function(e,t){return n("vc-primitive-polyline",{key:t,attrs:{material:i.polylineMaterial,positions:e.positions,width:i.polylineWidth}})}),1),i._v(" "),n("vc-collection-primitive-point",{ref:"pointCollection"},[i._l(i.polylines,function(e,r){return[i._l(e.positions,function(e,t){return[n("vc-primitive-point",{key:"point"+r+"position"+t,attrs:{color:i.pointColor,pixelSize:i.pointPixelSize,position:e}})]})]})],2)],1)],1)},staticRenderFns:[]}),(NC=("function"==typeof(jC=LC)?jC.options:jC)||{}).__file="VcDrawHandlerPolyline.vue",NC.render||(NC.render=IC.render,NC.staticRenderFns=IC.staticRenderFns,NC._compiled=!0,DC&&(NC.functional=!0)),NC._scopeId=AC,NC);function zC(e){zC.installed||(zC.installed=!0,e.component(GC.name,GC))}var BC=Object.freeze({__proto__:null,default:zC,VcDrawHandlerPolyline:GC,install:zC}),VC={name:"vc-handler-draw-polygon",mixins:[xC],data:function(){return{drawType:"polygonDrawing",drawing:!1,polylines:[]}},props:{depthTest:{type:Boolean,default:!0},perPositionHeight:{type:Boolean,default:!0},polylineMaterial:{type:Object,default:function(){return{fabric:{type:"Color",uniforms:{color:"#51ff00"}}}}},polylineWidth:{type:Number,default:2},polygonMaterial:{type:Object,default:function(){return{fabric:{type:"Color",uniforms:{color:"rgba(255,165,0,0.25)"}}}}},clampToGround:{type:Boolean,default:!1}},methods:{makeEllipsoidSurfaceAppearance:function(e){return new Cesium.EllipsoidSurfaceAppearance({material:Hi.call(this,e),renderState:{cull:{enabled:!1}}})},makePolylineMaterialAppearance:function(e){return new Cesium.PolylineMaterialAppearance({material:Hi.call(this,e)})},clone:li}};var qC,WC,UC,HC,$C,ZC=(UC=void 0,HC=!(qC={render:function(){var i=this,e=i.$createElement,n=i._self._c||e;return n("i",{class:i.$options.name,staticStyle:{display:"none !important"}},[n("vc-collection-primitive",{attrs:{show:i.show}},[i.clampToGround?n("vc-collection-primitive",{ref:"groundPolygonCollection"},[i._l(i.polylines,function(e,t){return[2<e.positions.length?n("vc-primitive-ground",{key:t,attrs:{appearance:i.makeEllipsoidSurfaceAppearance(i.polygonMaterial),asynchronous:!1}},[n("vc-instance-geometry",[n("vc-geometry-polygon",{attrs:{perPositionHeight:!1,polygonHierarchy:i.clone(e.positions,!0)}})],1)],1):i._e()]})],2):n("vc-collection-primitive",{ref:"polygonCollection"},[i._l(i.polylines,function(e,t){return[2<e.positions.length?n("vc-primitive",{key:t,attrs:{appearance:i.makeEllipsoidSurfaceAppearance(i.polygonMaterial),asynchronous:!1}},[n("vc-instance-geometry",[n("vc-geometry-polygon",{attrs:{perPositionHeight:!0,polygonHierarchy:i.clone(e.positions,!0)}})],1)],1):i._e()]})],2),i._v(" "),i.clampToGround?n("vc-collection-primitive",{ref:"groundPolylineCollection"},[i._l(i.polylines,function(e,t){return[1<e.positions.length?n("vc-primitive-polyline-ground",{key:t,attrs:{appearance:i.makePolylineMaterialAppearance(i.polylineMaterial),asynchronous:!1}},[n("vc-instance-geometry",[n("vc-geometry-polyline-ground",{attrs:{positions:e.positions,width:i.polylineWidth,loop:""}})],1)],1):i._e()]})],2):n("vc-collection-primitive-polyline",{ref:"polylineCollection"},i._l(i.polylines,function(e,t){return n("vc-primitive-polyline",{key:t,attrs:{material:i.polylineMaterial,positions:e.positions,width:i.polylineWidth,loop:""}})}),1),i._v(" "),n("vc-collection-primitive-point",{ref:"pointCollection"},[i._l(i.polylines,function(e,r){return[i._l(e.positions,function(e,t){return[n("vc-primitive-point",{key:"point"+r+"position"+t,attrs:{color:i.pointColor,pixelSize:i.pointPixelSize,position:e}})]})]})],2)],1)],1)},staticRenderFns:[]}),($C=("function"==typeof(WC=VC)?WC.options:WC)||{}).__file="VcDrawHandlerPolygon.vue",$C.render||($C.render=qC.render,$C.staticRenderFns=qC.staticRenderFns,$C._compiled=!0,HC&&($C.functional=!0)),$C._scopeId=UC,$C);function KC(e){KC.installed||(KC.installed=!0,e.component(ZC.name,ZC))}var XC=Object.freeze({__proto__:null,default:KC,VcDrawHandlerPolygon:ZC,install:KC}),JC="Expected a function",YC=NaN,QC="[object Symbol]",eM=/^\s+|\s+$/g,tM=/^[-+]0x[0-9a-f]+$/i,rM=/^0b[01]+$/i,iM=/^0o[0-7]+$/i,nM=parseInt,oM="object"==typeof i&&i&&i.Object===Object&&i,aM="object"==typeof self&&self&&self.Object===Object&&self,sM=oM||aM||Function("return this")(),cM=Object.prototype.toString,lM=Math.max,uM=Math.min,hM=function(){return sM.Date.now()};function dM(e){var t=typeof e;return e&&("object"==t||"function"==t)}function pM(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||(r=t)&&"object"==typeof r&&cM.call(t)==QC)return YC;var t,r,i;if(dM(e)&&(e=dM(i="function"==typeof e.valueOf?e.valueOf():e)?i+"":i),"string"!=typeof e)return 0===e?e:+e;e=e.replace(eM,"");var n=rM.test(e);return n||iM.test(e)?nM(e.slice(2),n?2:8):tM.test(e)?YC:+e}var mM=function(i,n,e){var o,a,s,c,l,u,h=0,d=!1,p=!1,t=!0;if("function"!=typeof i)throw new TypeError(JC);function m(e){var t=o,r=a;return o=a=void 0,h=e,c=i.apply(r,t)}function f(e){var t=e-u;return void 0===u||n<=t||t<0||p&&s<=e-h}function v(){var e,t,r=hM();if(f(r))return g(r);l=setTimeout(v,(t=n-((e=r)-u),p?uM(t,s-(e-h)):t))}function g(e){return l=void 0,t&&o?m(e):(o=a=void 0,c)}function r(){var e,t=hM(),r=f(t);if(o=arguments,a=this,u=t,r){if(void 0===l)return h=e=u,l=setTimeout(v,n),d?m(e):c;if(p)return l=setTimeout(v,n),m(u)}return void 0===l&&(l=setTimeout(v,n)),c}return n=pM(n)||0,dM(e)&&(d=!!e.leading,s=(p="maxWait"in e)?lM(pM(e.maxWait)||0,n):s,t="trailing"in e?!!e.trailing:t),r.cancel=function(){void 0!==l&&clearTimeout(l),o=u=a=l=void(h=0)},r.flush=function(){return void 0===l?c:g(hM())},r};var fM=t(function(e,t){e.exports=function(){var e=function(e){e("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees");e("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees");e("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs");e.WGS84=e["EPSG:4326"];e["EPSG:3785"]=e["EPSG:3857"];e.GOOGLE=e["EPSG:3857"];e["EPSG:900913"]=e["EPSG:3857"];e["EPSG:102113"]=e["EPSG:3857"]},p=1,m=2,s=4,c=5,k=484813681109536e-20,O=Math.PI/2,l=.16666666666666666,u=.04722222222222222,h=.022156084656084655,R=1e-10,d=.017453292519943295,f=57.29577951308232,v=Math.PI/4,i=Math.PI*2,y=3.14159265359,g={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667},b={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}},w=/[\s_\-\/\(\)]/g;function _(e,t){if(e[t]){return e[t]}var r=Object.keys(e);var i=t.toLowerCase().replace(w,"");var n=-1;var o,a;while(++n<r.length){o=r[n];a=o.toLowerCase().replace(w,"");if(a===i){return e[o]}}}var n=function(e){var r={};var t=e.split("+").map(function(e){return e.trim()}).filter(function(e){return e}).reduce(function(e,t){var r=t.split("=");r.push(true);e[r[0].toLowerCase()]=r[1];return e},{});var i,n,o;var a={proj:"projName",datum:"datumCode",rf:function(e){r.rf=parseFloat(e)},lat_0:function(e){r.lat0=e*d},lat_1:function(e){r.lat1=e*d},lat_2:function(e){r.lat2=e*d},lat_ts:function(e){r.lat_ts=e*d},lon_0:function(e){r.long0=e*d},lon_1:function(e){r.long1=e*d},lon_2:function(e){r.long2=e*d},alpha:function(e){r.alpha=parseFloat(e)*d},lonc:function(e){r.longc=e*d},x_0:function(e){r.x0=parseFloat(e)},y_0:function(e){r.y0=parseFloat(e)},k_0:function(e){r.k0=parseFloat(e)},k:function(e){r.k0=parseFloat(e)},a:function(e){r.a=parseFloat(e)},b:function(e){r.b=parseFloat(e)},r_a:function(){r.R_A=true},zone:function(e){r.zone=parseInt(e,10)},south:function(){r.utmSouth=true},towgs84:function(e){r.datum_params=e.split(",").map(function(e){return parseFloat(e)})},to_meter:function(e){r.to_meter=parseFloat(e)},units:function(e){r.units=e;var t=_(b,e);if(t){r.to_meter=t.to_meter}},from_greenwich:function(e){r.from_greenwich=e*d},pm:function(e){var t=_(g,e);r.from_greenwich=(t?t:parseFloat(e))*d},nadgrids:function(e){if(e==="@null"){r.datumCode="none"}else{r.nadgrids=e}},axis:function(e){var t="ewnsud";if(e.length===3&&t.indexOf(e.substr(0,1))!==-1&&t.indexOf(e.substr(1,1))!==-1&&t.indexOf(e.substr(2,1))!==-1){r.axis=e}}};for(i in t){n=t[i];if(i in a){o=a[i];if(typeof o==="function"){o(n)}else{r[o]=n}}else{r[i]=n}}if(typeof r.datumCode==="string"&&r.datumCode!=="WGS84"){r.datumCode=r.datumCode.toLowerCase()}return r},r=1,t=2,o=3,a=4,C=5,M=-1,x=/\s/,P=/[A-Za-z]/,S=/[A-Za-z84]/,E=/[,\]]/,T=/[\d\.E\-\+]/;function F(e){if(typeof e!=="string"){throw new Error("not a string")}this.text=e.trim();this.level=0;this.place=0;this.root=null;this.stack=[];this.currentObject=null;this.state=r}function L(e){var t=new F(e);return t.output()}function I(e,t,r){if(Array.isArray(t)){r.unshift(t);t=null}var i=t?{}:e;var n=r.reduce(function(e,t){j(t,e);return e},i);if(t){e[t]=n}}function j(e,t){if(!Array.isArray(e)){t[e]=true;return}var r=e.shift();if(r==="PARAMETER"){r=e.shift()}if(e.length===1){if(Array.isArray(e[0])){t[r]={};j(e[0],t[r]);return}t[r]=e[0];return}if(!e.length){t[r]=true;return}if(r==="TOWGS84"){t[r]=e;return}if(!Array.isArray(r)){t[r]={}}var i;switch(r){case"UNIT":case"PRIMEM":case"VERT_DATUM":t[r]={name:e[0].toLowerCase(),convert:e[1]};if(e.length===3){j(e[2],t[r])}return;case"SPHEROID":case"ELLIPSOID":t[r]={name:e[0],a:e[1],rf:e[2]};if(e.length===4){j(e[3],t[r])}return;case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"EDATUM":case"ENGINEERINGDATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":case"COMPD_CS":case"COMPOUNDCRS":case"ENGINEERINGCRS":case"ENGCRS":case"FITTED_CS":case"LOCAL_DATUM":case"DATUM":e[0]=["name",e[0]];I(t,r,e);return;default:i=-1;while(++i<e.length){if(!Array.isArray(e[i])){return j(e,t[r])}}return I(t,r,e)}}F.prototype.readCharicter=function(){var e=this.text[this.place++];if(this.state!==a){while(x.test(e)){if(this.place>=this.text.length){return}e=this.text[this.place++]}}switch(this.state){case r:return this.neutral(e);case t:return this.keyword(e);case a:return this.quoted(e);case C:return this.afterquote(e);case o:return this.number(e);case M:return}},F.prototype.afterquote=function(e){if(e==='"'){this.word+='"';this.state=a;return}if(E.test(e)){this.word=this.word.trim();this.afterItem(e);return}throw new Error("havn't handled \""+e+'" in afterquote yet, index '+this.place)},F.prototype.afterItem=function(e){if(e===","){if(this.word!==null){this.currentObject.push(this.word)}this.word=null;this.state=r;return}if(e==="]"){this.level--;if(this.word!==null){this.currentObject.push(this.word);this.word=null}this.state=r;this.currentObject=this.stack.pop();if(!this.currentObject){this.state=M}return}},F.prototype.number=function(e){if(T.test(e)){this.word+=e;return}if(E.test(e)){this.word=parseFloat(this.word);this.afterItem(e);return}throw new Error("havn't handled \""+e+'" in number yet, index '+this.place)},F.prototype.quoted=function(e){if(e==='"'){this.state=C;return}this.word+=e;return},F.prototype.keyword=function(e){if(S.test(e)){this.word+=e;return}if(e==="["){var t=[];t.push(this.word);this.level++;if(this.root===null){this.root=t}else{this.currentObject.push(t)}this.stack.push(this.currentObject);this.currentObject=t;this.state=r;return}if(E.test(e)){this.afterItem(e);return}throw new Error("havn't handled \""+e+'" in keyword yet, index '+this.place)},F.prototype.neutral=function(e){if(P.test(e)){this.word=e;this.state=t;return}if(e==='"'){this.word="";this.state=a;return}if(T.test(e)){this.word=e;this.state=o;return}if(E.test(e)){this.afterItem(e);return}throw new Error("havn't handled \""+e+'" in neutral yet, index '+this.place)},F.prototype.output=function(){while(this.place<this.text.length){this.readCharicter()}if(this.state===M){return this.root}throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};var A=.017453292519943295;function D(e,t){var r=t[0];var i=t[1];if(!(r in e)&&i in e){e[r]=e[i];if(t.length===3){e[r]=t[2](e[r])}}}function N(e){return e*A}function G(r){if(r.type==="GEOGCS"){r.projName="longlat"}else if(r.type==="LOCAL_CS"){r.projName="identity";r.local=true}else{if(typeof r.PROJECTION==="object"){r.projName=Object.keys(r.PROJECTION)[0]}else{r.projName=r.PROJECTION}}if(r.UNIT){r.units=r.UNIT.name.toLowerCase();if(r.units==="metre"){r.units="meter"}if(r.UNIT.convert){if(r.type==="GEOGCS"){if(r.DATUM&&r.DATUM.SPHEROID){r.to_meter=r.UNIT.convert*r.DATUM.SPHEROID.a}}else{r.to_meter=r.UNIT.convert}}}var e=r.GEOGCS;if(r.type==="GEOGCS"){e=r}if(e){if(e.DATUM){r.datumCode=e.DATUM.name.toLowerCase()}else{r.datumCode=e.name.toLowerCase()}if(r.datumCode.slice(0,2)==="d_"){r.datumCode=r.datumCode.slice(2)}if(r.datumCode==="new_zealand_geodetic_datum_1949"||r.datumCode==="new_zealand_1949"){r.datumCode="nzgd49"}if(r.datumCode==="wgs_1984"){if(r.PROJECTION==="Mercator_Auxiliary_Sphere"){r.sphere=true}r.datumCode="wgs84"}if(r.datumCode.slice(-6)==="_ferro"){r.datumCode=r.datumCode.slice(0,-6)}if(r.datumCode.slice(-8)==="_jakarta"){r.datumCode=r.datumCode.slice(0,-8)}if(~r.datumCode.indexOf("belge")){r.datumCode="rnb72"}if(e.DATUM&&e.DATUM.SPHEROID){r.ellps=e.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk");if(r.ellps.toLowerCase().slice(0,13)==="international"){r.ellps="intl"}r.a=e.DATUM.SPHEROID.a;r.rf=parseFloat(e.DATUM.SPHEROID.rf,10)}if(e.DATUM&&e.DATUM.TOWGS84){r.datum_params=e.DATUM.TOWGS84}if(~r.datumCode.indexOf("osgb_1936")){r.datumCode="osgb36"}if(~r.datumCode.indexOf("osni_1952")){r.datumCode="osni52"}if(~r.datumCode.indexOf("tm65")||~r.datumCode.indexOf("geodetic_datum_of_1965")){r.datumCode="ire65"}if(r.datumCode==="ch1903+"){r.datumCode="ch1903"}if(~r.datumCode.indexOf("israel")){r.datumCode="isr93"}}if(r.b&&!isFinite(r.b)){r.b=r.a}function t(e){var t=r.to_meter||1;return e*t}var i=function(e){return D(r,e)};var n=[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_2","Standard_Parallel_2"],["false_easting","False_Easting"],["false_northing","False_Northing"],["central_meridian","Central_Meridian"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",N],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",N],["x0","false_easting",t],["y0","false_northing",t],["long0","central_meridian",N],["lat0","latitude_of_origin",N],["lat0","standard_parallel_1",N],["lat1","standard_parallel_1",N],["lat2","standard_parallel_2",N],["azimuth","Azimuth"],["alpha","azimuth",N],["srsCode","name"]];n.forEach(i);if(!r.long0&&r.longc&&(r.projName==="Albers_Conic_Equal_Area"||r.projName==="Lambert_Azimuthal_Equal_Area")){r.long0=r.longc}if(!r.lat_ts&&r.lat1&&(r.projName==="Stereographic_South_Pole"||r.projName==="Polar Stereographic (variant B)")){r.lat0=N(r.lat1>0?90:-90);r.lat_ts=r.lat1}}var z=function(e){var t=L(e);var r=t.shift();var i=t.shift();t.unshift(["name",i]);t.unshift(["type",r]);var n={};j(t,n);G(n);return n};function B(e){var t=this;if(arguments.length===2){var r=arguments[1];if(typeof r==="string"){if(r.charAt(0)==="+"){B[e]=n(arguments[1])}else{B[e]=z(arguments[1])}}else{B[e]=r}}else if(arguments.length===1){if(Array.isArray(e)){return e.map(function(e){if(Array.isArray(e)){B.apply(t,e)}else{B(e)}})}else if(typeof e==="string"){if(e in B){return B[e]}}else if("EPSG"in e){B["EPSG:"+e.EPSG]=e}else if("ESRI"in e){B["ESRI:"+e.ESRI]=e}else if("IAU2000"in e){B["IAU2000:"+e.IAU2000]=e}else{console.log(e)}return}}function V(e){return typeof e==="string"}function q(e){return e in B}e(B);var W=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function U(t){return W.some(function(e){return t.indexOf(e)>-1})}var H=["3857","900913","3785","102113"];function $(e){var t=_(e,"authority");if(!t){return}var r=_(t,"epsg");return r&&H.indexOf(r)>-1}function Z(e){var t=_(e,"extension");if(!t){return}return _(t,"proj4")}function K(e){return e[0]==="+"}function X(e){if(V(e)){if(q(e)){return B[e]}if(U(e)){var t=z(e);if($(t)){return B["EPSG:3857"]}var r=Z(t);if(r){return n(r)}return t}if(K(e)){return n(e)}}else{return e}}var J=function(e,t){e=e||{};var r,i;if(!t){return e}for(i in t){r=t[i];if(r!==undefined){e[i]=r}}return e},Y=function(e,t,r){var i=e*t;return r/Math.sqrt(1-i*i)},Q=function(e){return e<0?-1:1},ee=function(e){return Math.abs(e)<=y?e:e-Q(e)*i},te=function(e,t,r){var i=e*r;var n=.5*e;i=Math.pow((1-i)/(1+i),n);return Math.tan(.5*(O-t))/i},re=function(e,t){var r=.5*e;var i,n;var o=O-2*Math.atan(t);for(var a=0;a<=15;a++){i=e*Math.sin(o);n=O-2*Math.atan(t*Math.pow((1-i)/(1+i),r))-o;o+=n;if(Math.abs(n)<=1e-10){return o}}return-9999},ie,ne;function oe(){var e=this.b/this.a;this.es=1-e*e;if(!("x0"in this)){this.x0=0}if(!("y0"in this)){this.y0=0}this.e=Math.sqrt(this.es);if(this.lat_ts){if(this.sphere){this.k0=Math.cos(this.lat_ts)}else{this.k0=Y(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))}}else{if(!this.k0){if(this.k){this.k0=this.k}else{this.k0=1}}}}function ae(e){var t=e.x;var r=e.y;if(r*f>90&&r*f<-90&&t*f>180&&t*f<-180){return null}var i,n;if(Math.abs(Math.abs(r)-O)<=R){return null}else{if(this.sphere){i=this.x0+this.a*this.k0*ee(t-this.long0);n=this.y0+this.a*this.k0*Math.log(Math.tan(v+.5*r))}else{var o=Math.sin(r);var a=te(this.e,r,o);i=this.x0+this.a*this.k0*ee(t-this.long0);n=this.y0-this.a*this.k0*Math.log(a)}e.x=i;e.y=n;return e}}function se(e){var t=e.x-this.x0;var r=e.y-this.y0;var i,n;if(this.sphere){n=O-2*Math.atan(Math.exp(-r/(this.a*this.k0)))}else{var o=Math.exp(-r/(this.a*this.k0));n=re(this.e,o);if(n===-9999){return null}}i=ee(this.long0+t/(this.a*this.k0));e.x=i;e.y=n;return e}function ce(){}function le(e){return e}var ue,he,de=[{init:oe,forward:ae,inverse:se,names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"]},{init:ce,forward:le,inverse:le,names:["longlat","identity"]}],pe={},me=[];function fe(e,t){var r=me.length;if(!e.names){console.log(t);return true}me[r]=e;e.names.forEach(function(e){pe[e.toLowerCase()]=r});return this}function ve(e){if(!e){return false}var t=e.toLowerCase();if(typeof pe[t]!=="undefined"&&me[pe[t]]){return me[pe[t]]}}function ge(){de.forEach(fe)}var ye={start:ge,add:fe,get:ve},be={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"}},we=be.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};function _e(e,t,r,i){var n=e*e;var o=t*t;var a=(n-o)/n;var s=0;if(i){e*=1-a*(l+a*(u+a*h));n=e*e;a=0}else{s=Math.sqrt(a)}var c=(n-o)/o;return{es:a,e:s,ep2:c}}function Ce(e,t,r,i,n){if(!e){var o=_(be,i);if(!o){o=we}e=o.a;t=o.b;r=o.rf}if(r&&!t){t=(1-1/r)*e}if(r===0||Math.abs(e-t)<R){n=true;t=e}return{a:e,b:t,rf:r,sphere:n}}be.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};var Me={};function xe(e,t,r,i,n,o){var a={};if(e===undefined||e==="none"){a.datum_type=c}else{a.datum_type=s}if(t){a.datum_params=t.map(parseFloat);if(a.datum_params[0]!==0||a.datum_params[1]!==0||a.datum_params[2]!==0){a.datum_type=p}if(a.datum_params.length>3){if(a.datum_params[3]!==0||a.datum_params[4]!==0||a.datum_params[5]!==0||a.datum_params[6]!==0){a.datum_type=m;a.datum_params[3]*=k;a.datum_params[4]*=k;a.datum_params[5]*=k;a.datum_params[6]=a.datum_params[6]/1e6+1}}}a.a=r;a.b=i;a.es=n;a.ep2=o;return a}function Pe(e,t){if(!(this instanceof Pe)){return new Pe(e)}t=t||function(e){if(e){throw e}};var r=X(e);if(typeof r!=="object"){t(e);return}var i=Pe.projections.get(r.projName);if(!i){t(e);return}if(r.datumCode&&r.datumCode!=="none"){var n=_(Me,r.datumCode);if(n){r.datum_params=n.towgs84?n.towgs84.split(","):null;r.ellps=n.ellipse;r.datumName=n.datumName?n.datumName:r.datumCode}}r.k0=r.k0||1;r.axis=r.axis||"enu";r.ellps=r.ellps||"wgs84";var o=Ce(r.a,r.b,r.rf,r.ellps,r.sphere);var a=_e(o.a,o.b,o.rf,r.R_A);var s=r.datum||xe(r.datumCode,r.datum_params,o.a,o.b,a.es,a.ep2);J(this,r);J(this,i);this.a=o.a;this.b=o.b;this.rf=o.rf;this.sphere=o.sphere;this.es=a.es;this.e=a.e;this.ep2=a.ep2;this.datum=s;this.init();t(null,this)}function Se(e,t){if(e.datum_type!==t.datum_type){return false}else if(e.a!==t.a||Math.abs(e.es-t.es)>5e-11){return false}else if(e.datum_type===p){return e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]}else if(e.datum_type===m){return e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]&&e.datum_params[3]===t.datum_params[3]&&e.datum_params[4]===t.datum_params[4]&&e.datum_params[5]===t.datum_params[5]&&e.datum_params[6]===t.datum_params[6]}else{return true}}function Ee(e,t,r){var i=e.x;var n=e.y;var o=e.z?e.z:0;var a;var s;var c;var l;if(n<-O&&n>-1.001*O){n=-O}else if(n>O&&n<1.001*O){n=O}else if(n<-O){return{x:-Infinity,y:-Infinity,z:e.z}}else if(n>O){return{x:Infinity,y:Infinity,z:e.z}}if(i>Math.PI){i-=2*Math.PI}s=Math.sin(n);l=Math.cos(n);c=s*s;a=r/Math.sqrt(1-t*c);return{x:(a+o)*l*Math.cos(i),y:(a+o)*l*Math.sin(i),z:(a*(1-t)+o)*s}}function Te(e,t,r,i){var n=1e-12;var o=n*n;var a=30;var s;var c;var l;var u;var h;var d;var p;var m;var f;var v;var g;var y;var b;var w=e.x;var _=e.y;var C=e.z?e.z:0;var M;var x;var P;s=Math.sqrt(w*w+_*_);c=Math.sqrt(w*w+_*_+C*C);if(s/r<n){M=0;if(c/r<n){x=O;P=-i;return{x:e.x,y:e.y,z:e.z}}}else{M=Math.atan2(_,w)}l=C/c;u=s/c;h=1/Math.sqrt(1-t*(2-t)*u*u);m=u*(1-t)*h;f=l*h;b=0;do{b++;p=r/Math.sqrt(1-t*f*f);P=s*m+C*f-p*(1-t*f*f);d=t*p/(p+P);h=1/Math.sqrt(1-d*(2-d)*u*u);v=u*(1-d)*h;g=l*h;y=g*m-v*f;m=v;f=g}while(y*y>o&&b<a);x=Math.atan(g/Math.abs(v));return{x:M,y:x,z:P}}function Oe(e,t,r){if(t===p){return{x:e.x+r[0],y:e.y+r[1],z:e.z+r[2]}}else if(t===m){var i=r[0];var n=r[1];var o=r[2];var a=r[3];var s=r[4];var c=r[5];var l=r[6];return{x:l*(e.x-c*e.y+s*e.z)+i,y:l*(c*e.x+e.y-a*e.z)+n,z:l*(-s*e.x+a*e.y+e.z)+o}}}function ke(e,t,r){if(t===p){return{x:e.x-r[0],y:e.y-r[1],z:e.z-r[2]}}else if(t===m){var i=r[0];var n=r[1];var o=r[2];var a=r[3];var s=r[4];var c=r[5];var l=r[6];var u=(e.x-i)/l;var h=(e.y-n)/l;var d=(e.z-o)/l;return{x:u+c*h-s*d,y:-c*u+h+a*d,z:s*u-a*h+d}}}function Re(e){return e===p||e===m}Me.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},Me.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},Me.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},Me.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},Me.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},Me.potsdam={towgs84:"606.0,23.0,413.0",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},Me.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},Me.hermannskogel={towgs84:"653.0,-212.0,449.0",ellipse:"bessel",datumName:"Hermannskogel"},Me.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},Me.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},Me.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},Me.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},Me.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},Me.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},Me.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},Me.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},Me.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"},Pe.projections=ye,Pe.projections.start();var Fe=function(e,t,r){if(Se(e,t)){return r}if(e.datum_type===c||t.datum_type===c){return r}if(e.es===t.es&&e.a===t.a&&!Re(e.datum_type)&&!Re(t.datum_type)){return r}r=Ee(r,e.es,e.a);if(Re(e.datum_type)){r=Oe(r,e.datum_type,e.datum_params)}if(Re(t.datum_type)){r=ke(r,t.datum_type,t.datum_params)}return Te(r,t.es,t.a,t.b)},Le=function(e,t,r){var i=r.x,n=r.y,o=r.z||0;var a,s,c;var l={};for(c=0;c<3;c++){if(t&&c===2&&r.z===undefined){continue}if(c===0){a=i;s="x"}else if(c===1){a=n;s="y"}else{a=o;s="z"}switch(e.axis[c]){case"e":l[s]=a;break;case"w":l[s]=-a;break;case"n":l[s]=a;break;case"s":l[s]=-a;break;case"u":if(r[s]!==undefined){l.z=a}break;case"d":if(r[s]!==undefined){l.z=-a}break;default:return null}}return l},Ie=function(e){var t={x:e[0],y:e[1]};if(e.length>2){t.z=e[2]}if(e.length>3){t.m=e[3]}return t},je=function(e){Ae(e.x);Ae(e.y)};function Ae(e){if(typeof Number.isFinite==="function"){if(Number.isFinite(e)){return}throw new TypeError("coordinates must be finite numbers")}if(typeof e!=="number"||e!==e||!isFinite(e)){throw new TypeError("coordinates must be finite numbers")}}function De(e,t){return(e.datum.datum_type===p||e.datum.datum_type===m)&&t.datumCode!=="WGS84"||(t.datum.datum_type===p||t.datum.datum_type===m)&&e.datumCode!=="WGS84"}function Ne(e,t,r){var i;if(Array.isArray(r)){r=Ie(r)}je(r);if(e.datum&&t.datum&&De(e,t)){i=new Pe("WGS84");r=Ne(e,i,r);e=i}if(e.axis!=="enu"){r=Le(e,false,r)}if(e.projName==="longlat"){r={x:r.x*d,y:r.y*d,z:r.z||0}}else{if(e.to_meter){r={x:r.x*e.to_meter,y:r.y*e.to_meter,z:r.z||0}}r=e.inverse(r)}if(e.from_greenwich){r.x+=e.from_greenwich}r=Fe(e.datum,t.datum,r);if(t.from_greenwich){r={x:r.x-t.from_greenwich,y:r.y,z:r.z||0}}if(t.projName==="longlat"){r={x:r.x*f,y:r.y*f,z:r.z||0}}else{r=t.forward(r);if(t.to_meter){r={x:r.x/t.to_meter,y:r.y/t.to_meter,z:r.z||0}}}if(t.axis!=="enu"){return Le(t,true,r)}return r}var Ge=Pe("WGS84");function ze(t,r,i){var e,n,o;if(Array.isArray(i)){e=Ne(t,r,i)||{x:NaN,y:NaN};if(i.length>2){if(typeof t.name!=="undefined"&&t.name==="geocent"||typeof r.name!=="undefined"&&r.name==="geocent"){if(typeof e.z==="number"){return[e.x,e.y,e.z].concat(i.splice(3))}else{return[e.x,e.y,i[2]].concat(i.splice(3))}}else{return[e.x,e.y].concat(i.splice(2))}}else{return[e.x,e.y]}}else{n=Ne(t,r,i);o=Object.keys(i);if(o.length===2){return n}o.forEach(function(e){if(typeof t.name!=="undefined"&&t.name==="geocent"||typeof r.name!=="undefined"&&r.name==="geocent"){if(e==="x"||e==="y"||e==="z"){return}}else{if(e==="x"||e==="y"){return}}n[e]=i[e]});return n}}function Be(e){if(e instanceof Pe){return e}if(e.oProj){return e.oProj}return Pe(e)}function Ve(t,r,e){t=Be(t);var i=false;var n;if(typeof r==="undefined"){r=t;t=Ge;i=true}else if(typeof r.x!=="undefined"||Array.isArray(r)){e=r;r=t;t=Ge;i=true}r=Be(r);if(e){return ze(t,r,e)}else{n={forward:function(e){return ze(t,r,e)},inverse:function(e){return ze(r,t,e)}};if(i){n.oProj=r}return n}}var qe=6,We="AJSAJS",Ue="AFAFAF",He=65,$e=73,Ze=79,Ke=86,Xe=90,Je={forward:Ye,inverse:Qe,toPoint:et};function Ye(e,t){t=t||5;return at(it({lat:e[1],lon:e[0]}),t)}function Qe(e){var t=nt(ut(e.toUpperCase()));if(t.lat&&t.lon){return[t.lon,t.lat,t.lon,t.lat]}return[t.left,t.bottom,t.right,t.top]}function et(e){var t=nt(ut(e.toUpperCase()));if(t.lat&&t.lon){return[t.lon,t.lat]}return[(t.left+t.right)/2,(t.top+t.bottom)/2]}function tt(e){return e*(Math.PI/180)}function rt(e){return 180*(e/Math.PI)}function it(e){var t=e.lat;var r=e.lon;var i=6378137;var n=.00669438;var o=.9996;var a;var s;var c,l,u,h,d;var p=tt(t);var m=tt(r);var f;var v;v=Math.floor((r+180)/6)+1;if(r===180){v=60}if(t>=56&&t<64&&r>=3&&r<12){v=32}if(t>=72&&t<84){if(r>=0&&r<9){v=31}else if(r>=9&&r<21){v=33}else if(r>=21&&r<33){v=35}else if(r>=33&&r<42){v=37}}a=(v-1)*6-180+3;f=tt(a);s=n/(1-n);c=i/Math.sqrt(1-n*Math.sin(p)*Math.sin(p));l=Math.tan(p)*Math.tan(p);u=s*Math.cos(p)*Math.cos(p);h=Math.cos(p)*(m-f);d=i*((1-n/4-3*n*n/64-5*n*n*n/256)*p-(3*n/8+3*n*n/32+45*n*n*n/1024)*Math.sin(2*p)+(15*n*n/256+45*n*n*n/1024)*Math.sin(4*p)-35*n*n*n/3072*Math.sin(6*p));var g=o*c*(h+(1-l+u)*h*h*h/6+(5-18*l+l*l+72*u-58*s)*h*h*h*h*h/120)+5e5;var y=o*(d+c*Math.tan(p)*(h*h/2+(5-l+9*u+4*u*u)*h*h*h*h/24+(61-58*l+l*l+600*u-330*s)*h*h*h*h*h*h/720));if(t<0){y+=1e7}return{northing:Math.round(y),easting:Math.round(g),zoneNumber:v,zoneLetter:ot(t)}}function nt(e){var t=e.northing;var r=e.easting;var i=e.zoneLetter;var n=e.zoneNumber;if(n<0||n>60){return null}var o=.9996;var a=6378137;var s=.00669438;var c;var l=(1-Math.sqrt(1-s))/(1+Math.sqrt(1-s));var u,h,d,p,m,f;var v;var g,y;var b=r-5e5;var w=t;if(i<"N"){w-=1e7}v=(n-1)*6-180+3;c=s/(1-s);f=w/o;g=f/(a*(1-s/4-3*s*s/64-5*s*s*s/256));y=g+(3*l/2-27*l*l*l/32)*Math.sin(2*g)+(21*l*l/16-55*l*l*l*l/32)*Math.sin(4*g)+151*l*l*l/96*Math.sin(6*g);u=a/Math.sqrt(1-s*Math.sin(y)*Math.sin(y));h=Math.tan(y)*Math.tan(y);d=c*Math.cos(y)*Math.cos(y);p=a*(1-s)/Math.pow(1-s*Math.sin(y)*Math.sin(y),1.5);m=b/(u*o);var _=y-u*Math.tan(y)/p*(m*m/2-(5+3*h+10*d-4*d*d-9*c)*m*m*m*m/24+(61+90*h+298*d+45*h*h-252*c-3*d*d)*m*m*m*m*m*m/720);_=rt(_);var C=(m-(1+2*h+d)*m*m*m/6+(5-2*d+28*h-3*d*d+8*c+24*h*h)*m*m*m*m*m/120)/Math.cos(y);C=v+rt(C);var M;if(e.accuracy){var x=nt({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});M={top:x.lat,right:x.lon,bottom:_,left:C}}else{M={lat:_,lon:C}}return M}function ot(e){var t="Z";if(84>=e&&e>=72){t="X"}else if(72>e&&e>=64){t="W"}else if(64>e&&e>=56){t="V"}else if(56>e&&e>=48){t="U"}else if(48>e&&e>=40){t="T"}else if(40>e&&e>=32){t="S"}else if(32>e&&e>=24){t="R"}else if(24>e&&e>=16){t="Q"}else if(16>e&&e>=8){t="P"}else if(8>e&&e>=0){t="N"}else if(0>e&&e>=-8){t="M"}else if(-8>e&&e>=-16){t="L"}else if(-16>e&&e>=-24){t="K"}else if(-24>e&&e>=-32){t="J"}else if(-32>e&&e>=-40){t="H"}else if(-40>e&&e>=-48){t="G"}else if(-48>e&&e>=-56){t="F"}else if(-56>e&&e>=-64){t="E"}else if(-64>e&&e>=-72){t="D"}else if(-72>e&&e>=-80){t="C"}return t}function at(e,t){var r="00000"+e.easting,i="00000"+e.northing;return e.zoneNumber+e.zoneLetter+st(e.easting,e.northing,e.zoneNumber)+r.substr(r.length-5,t)+i.substr(i.length-5,t)}function st(e,t,r){var i=ct(r);var n=Math.floor(e/1e5);var o=Math.floor(t/1e5)%20;return lt(n,o,i)}function ct(e){var t=e%qe;if(t===0){t=qe}return t}function lt(e,t,r){var i=r-1;var n=We.charCodeAt(i);var o=Ue.charCodeAt(i);var a=n+e-1;var s=o+t;var c=false;if(a>Xe){a=a-Xe+He-1;c=true}if(a===$e||n<$e&&a>$e||(a>$e||n<$e)&&c){a++}if(a===Ze||n<Ze&&a>Ze||(a>Ze||n<Ze)&&c){a++;if(a===$e){a++}}if(a>Xe){a=a-Xe+He-1}if(s>Ke){s=s-Ke+He-1;c=true}else{c=false}if(s===$e||o<$e&&s>$e||(s>$e||o<$e)&&c){s++}if(s===Ze||o<Ze&&s>Ze||(s>Ze||o<Ze)&&c){s++;if(s===$e){s++}}if(s>Ke){s=s-Ke+He-1}var l=String.fromCharCode(a)+String.fromCharCode(s);return l}function ut(e){if(e&&e.length===0){throw"MGRSPoint coverting from nothing"}var t=e.length;var r=null;var i="";var n;var o=0;while(!/[A-Z]/.test(n=e.charAt(o))){if(o>=2){throw"MGRSPoint bad conversion from: "+e}i+=n;o++}var a=parseInt(i,10);if(o===0||o+3>t){throw"MGRSPoint bad conversion from: "+e}var s=e.charAt(o++);if(s<="A"||s==="B"||s==="Y"||s>="Z"||s==="I"||s==="O"){throw"MGRSPoint zone letter "+s+" not handled: "+e}r=e.substring(o,o+=2);var c=ct(a);var l=ht(r.charAt(0),c);var u=dt(r.charAt(1),c);while(u<pt(s)){u+=2e6}var h=t-o;if(h%2!==0){throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+e}var d=h/2;var p=0;var m=0;var f,v,g,y,b;if(d>0){f=1e5/Math.pow(10,d);v=e.substring(o,o+d);p=parseFloat(v)*f;g=e.substring(o+d);m=parseFloat(g)*f}y=p+l;b=m+u;return{easting:y,northing:b,zoneLetter:s,zoneNumber:a,accuracy:f}}function ht(e,t){var r=We.charCodeAt(t-1);var i=1e5;var n=false;while(r!==e.charCodeAt(0)){r++;if(r===$e){r++}if(r===Ze){r++}if(r>Xe){if(n){throw"Bad character: "+e}r=He;n=true}i+=1e5}return i}function dt(e,t){if(e>"V"){throw"MGRSPoint given invalid Northing "+e}var r=Ue.charCodeAt(t-1);var i=0;var n=false;while(r!==e.charCodeAt(0)){r++;if(r===$e){r++}if(r===Ze){r++}if(r>Ke){if(n){throw"Bad character: "+e}r=He;n=true}i+=1e5}return i}function pt(e){var t;switch(e){case"C":t=11e5;break;case"D":t=2e6;break;case"E":t=28e5;break;case"F":t=37e5;break;case"G":t=46e5;break;case"H":t=55e5;break;case"J":t=64e5;break;case"K":t=73e5;break;case"L":t=82e5;break;case"M":t=91e5;break;case"N":t=0;break;case"P":t=8e5;break;case"Q":t=17e5;break;case"R":t=26e5;break;case"S":t=35e5;break;case"T":t=44e5;break;case"U":t=53e5;break;case"V":t=62e5;break;case"W":t=7e6;break;case"X":t=79e5;break;default:t=-1}if(t>=0){return t}else{throw"Invalid zone letter: "+e}}function mt(e,t,r){if(!(this instanceof mt)){return new mt(e,t,r)}if(Array.isArray(e)){this.x=e[0];this.y=e[1];this.z=e[2]||0}else if(typeof e==="object"){this.x=e.x;this.y=e.y;this.z=e.z||0}else if(typeof e==="string"&&typeof t==="undefined"){var i=e.split(",");this.x=parseFloat(i[0],10);this.y=parseFloat(i[1],10);this.z=parseFloat(i[2],10)||0}else{this.x=e;this.y=t;this.z=r||0}console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}mt.fromMGRS=function(e){return new mt(et(e))},mt.prototype.toMGRS=function(e){return Ye([this.x,this.y],e)};var ft=1,vt=.25,gt=.046875,yt=.01953125,bt=.01068115234375,wt=.75,_t=.46875,Ct=.013020833333333334,Mt=.007120768229166667,xt=.3645833333333333,Pt=.005696614583333333,St=.3076171875,Et=function(e){var t=[];t[0]=ft-e*(vt+e*(gt+e*(yt+e*bt)));t[1]=e*(wt-e*(gt+e*(yt+e*bt)));var r=e*e;t[2]=r*(_t-e*(Ct+e*Mt));r*=e;t[3]=r*(xt-e*Pt);t[4]=r*e*St;return t},Tt=function(e,t,r,i){r*=t;t*=t;return i[0]*e-r*(i[1]+t*(i[2]+t*(i[3]+t*i[4])))},Ot=20,kt=function(e,t,r){var i=1/(1-t);var n=e;for(var o=Ot;o;--o){var a=Math.sin(n);var s=1-t*a*a;s=(Tt(n,a,Math.cos(n),r)-e)*(s*Math.sqrt(s))*i;n-=s;if(Math.abs(s)<R){return n}}return n};function Rt(){this.x0=this.x0!==undefined?this.x0:0;this.y0=this.y0!==undefined?this.y0:0;this.long0=this.long0!==undefined?this.long0:0;this.lat0=this.lat0!==undefined?this.lat0:0;if(this.es){this.en=Et(this.es);this.ml0=Tt(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en)}}function Ft(e){var t=e.x;var r=e.y;var i=ee(t-this.long0);var n;var o,a;var s=Math.sin(r);var c=Math.cos(r);if(!this.es){var l=c*Math.sin(i);if(Math.abs(Math.abs(l)-1)<R){return 93}else{o=.5*this.a*this.k0*Math.log((1+l)/(1-l))+this.x0;a=c*Math.cos(i)/Math.sqrt(1-Math.pow(l,2));l=Math.abs(a);if(l>=1){if(l-1>R){return 93}else{a=0}}else{a=Math.acos(a)}if(r<0){a=-a}a=this.a*this.k0*(a-this.lat0)+this.y0}}else{var u=c*i;var h=Math.pow(u,2);var d=this.ep2*Math.pow(c,2);var p=Math.pow(d,2);var m=Math.abs(c)>R?Math.tan(r):0;var f=Math.pow(m,2);var v=Math.pow(f,2);n=1-this.es*Math.pow(s,2);u=u/Math.sqrt(n);var g=Tt(r,s,c,this.en);o=this.a*(this.k0*u*(1+h/6*(1-f+d+h/20*(5-18*f+v+14*d-58*f*d+h/42*(61+179*v-v*f-479*f)))))+this.x0;a=this.a*(this.k0*(g-this.ml0+s*i*u/2*(1+h/12*(5-f+9*d+4*p+h/30*(61+v-58*f+270*d-330*f*d+h/56*(1385+543*v-v*f-3111*f))))))+this.y0}e.x=o;e.y=a;return e}function Lt(e){var t,r;var i,n;var o=(e.x-this.x0)*(1/this.a);var a=(e.y-this.y0)*(1/this.a);if(!this.es){var s=Math.exp(o/this.k0);var c=.5*(s-1/s);var l=this.lat0+a/this.k0;var u=Math.cos(l);t=Math.sqrt((1-Math.pow(u,2))/(1+Math.pow(c,2)));i=Math.asin(t);if(a<0){i=-i}if(c===0&&u===0){n=0}else{n=ee(Math.atan2(c,u)+this.long0)}}else{t=this.ml0+a/this.k0;r=kt(t,this.es,this.en);if(Math.abs(r)<O){var h=Math.sin(r);var d=Math.cos(r);var p=Math.abs(d)>R?Math.tan(r):0;var m=this.ep2*Math.pow(d,2);var f=Math.pow(m,2);var v=Math.pow(p,2);var g=Math.pow(v,2);t=1-this.es*Math.pow(h,2);var y=o*Math.sqrt(t)/this.k0;var b=Math.pow(y,2);t=t*p;i=r-t*b/(1-this.es)*.5*(1-b/12*(5+3*v-9*m*v+m-4*f-b/30*(61+90*v-252*m*v+45*g+46*m-b/56*(1385+3633*v+4095*g+1574*g*v))));n=ee(this.long0+y*(1-b/6*(1+2*v+m-b/20*(5+28*v+24*g+8*m*v+6*m-b/42*(61+662*v+1320*g+720*g*v))))/d)}else{i=O*Q(a);n=0}}e.x=n;e.y=i;return e}var It,jt={init:Rt,forward:Ft,inverse:Lt,names:["Transverse_Mercator","Transverse Mercator","tmerc"]},At=function(e){var t=Math.exp(e);t=(t-1/t)/2;return t},Dt=function(e,t){e=Math.abs(e);t=Math.abs(t);var r=Math.max(e,t);var i=Math.min(e,t)/(r?r:1);return r*Math.sqrt(1+Math.pow(i,2))},Nt=function(e){var t=1+e;var r=t-1;return r===0?e:e*Math.log(t)/r},Gt=function(e){var t=Math.abs(e);t=Nt(t*(1+t/(Dt(1,t)+1)));return e<0?-t:t},zt=function(e,t){var r=2*Math.cos(2*t);var i=e.length-1;var n=e[i];var o=0;var a;while(--i>=0){a=-o+r*n+e[i];o=n;n=a}return t+a*Math.sin(2*t)},Bt=function(e,t){var r=2*Math.cos(t);var i=e.length-1;var n=e[i];var o=0;var a;while(--i>=0){a=-o+r*n+e[i];o=n;n=a}return Math.sin(t)*a},Vt=function(e){var t=Math.exp(e);t=(t+1/t)/2;return t},qt=function(e,t,r){var i=Math.sin(t);var n=Math.cos(t);var o=At(r);var a=Vt(r);var s=2*n*a;var c=-2*i*o;var l=e.length-1;var u=e[l];var h=0;var d=0;var p=0;var m;var f;while(--l>=0){m=d;f=h;d=u;h=p;u=-m+s*d-c*h+e[l];p=-f+c*d+s*h}s=i*a;c=n*o;return[s*u-c*p,s*p+c*u]};function Wt(){if(this.es===undefined||this.es<=0){throw new Error("incorrect elliptical usage")}this.x0=this.x0!==undefined?this.x0:0;this.y0=this.y0!==undefined?this.y0:0;this.long0=this.long0!==undefined?this.long0:0;this.lat0=this.lat0!==undefined?this.lat0:0;this.cgb=[];this.cbg=[];this.utg=[];this.gtu=[];var e=this.es/(1+Math.sqrt(1-this.es));var t=e/(2-e);var r=t;this.cgb[0]=t*(2+t*(-2/3+t*(-2+t*(116/45+t*(26/45+t*(-2854/675))))));this.cbg[0]=t*(-2+t*(2/3+t*(4/3+t*(-82/45+t*(32/45+t*(4642/4725))))));r=r*t;this.cgb[1]=r*(7/3+t*(-8/5+t*(-227/45+t*(2704/315+t*(2323/945)))));this.cbg[1]=r*(5/3+t*(-16/15+t*(-13/9+t*(904/315+t*(-1522/945)))));r=r*t;this.cgb[2]=r*(56/15+t*(-136/35+t*(-1262/105+t*(73814/2835))));this.cbg[2]=r*(-26/15+t*(34/21+t*(8/5+t*(-12686/2835))));r=r*t;this.cgb[3]=r*(4279/630+t*(-332/35+t*(-399572/14175)));this.cbg[3]=r*(1237/630+t*(-12/5+t*(-24832/14175)));r=r*t;this.cgb[4]=r*(4174/315+t*(-144838/6237));this.cbg[4]=r*(-734/315+t*(109598/31185));r=r*t;this.cgb[5]=r*(601676/22275);this.cbg[5]=r*(444337/155925);r=Math.pow(t,2);this.Qn=this.k0/(1+t)*(1+r*(1/4+r*(1/64+r/256)));this.utg[0]=t*(-.5+t*(2/3+t*(-37/96+t*(1/360+t*(81/512+t*(-96199/604800))))));this.gtu[0]=t*(.5+t*(-2/3+t*(5/16+t*(41/180+t*(-127/288+t*(7891/37800))))));this.utg[1]=r*(-1/48+t*(-1/15+t*(437/1440+t*(-46/105+t*(1118711/3870720)))));this.gtu[1]=r*(13/48+t*(-3/5+t*(557/1440+t*(281/630+t*(-1983433/1935360)))));r=r*t;this.utg[2]=r*(-17/480+t*(37/840+t*(209/4480+t*(-5569/90720))));this.gtu[2]=r*(61/240+t*(-103/140+t*(15061/26880+t*(167603/181440))));r=r*t;this.utg[3]=r*(-4397/161280+t*(11/504+t*(830251/7257600)));this.gtu[3]=r*(49561/161280+t*(-179/168+t*(6601661/7257600)));r=r*t;this.utg[4]=r*(-4583/161280+t*(108847/3991680));this.gtu[4]=r*(34729/80640+t*(-3418889/1995840));r=r*t;this.utg[5]=r*(-20648693/638668800);this.gtu[5]=r*(212378941/319334400);var i=zt(this.cbg,this.lat0);this.Zb=-this.Qn*(i+Bt(this.gtu,2*i))}function Ut(e){var t=ee(e.x-this.long0);var r=e.y;r=zt(this.cbg,r);var i=Math.sin(r);var n=Math.cos(r);var o=Math.sin(t);var a=Math.cos(t);r=Math.atan2(i,a*n);t=Math.atan2(o*n,Dt(i,n*a));t=Gt(Math.tan(t));var s=qt(this.gtu,2*r,2*t);r=r+s[0];t=t+s[1];var c;var l;if(Math.abs(t)<=2.623395162778){c=this.a*(this.Qn*t)+this.x0;l=this.a*(this.Qn*r+this.Zb)+this.y0}else{c=Infinity;l=Infinity}e.x=c;e.y=l;return e}function Ht(e){var t=(e.x-this.x0)*(1/this.a);var r=(e.y-this.y0)*(1/this.a);r=(r-this.Zb)/this.Qn;t=t/this.Qn;var i;var n;if(Math.abs(t)<=2.623395162778){var o=qt(this.utg,2*r,2*t);r=r+o[0];t=t+o[1];t=Math.atan(At(t));var a=Math.sin(r);var s=Math.cos(r);var c=Math.sin(t);var l=Math.cos(t);r=Math.atan2(a*l,Dt(c,l*s));t=Math.atan2(c,l*s);i=ee(t+this.long0);n=zt(this.cgb,r)}else{i=Infinity;n=Infinity}e.x=i;e.y=n;return e}var $t,Zt={init:Wt,forward:Ut,inverse:Ht,names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc"]},Kt=function(e,t){if(e===undefined){e=Math.floor((ee(t)+Math.PI)*30/Math.PI)+1;if(e<0){return 0}else if(e>60){return 60}}return e},Xt;function Jt(){var e=Kt(this.zone,this.long0);if(e===undefined){throw new Error("unknown utm zone")}this.lat0=0;this.long0=(6*Math.abs(e)-183)*d;this.x0=5e5;this.y0=this.utmSouth?1e7:0;this.k0=.9996;Zt.init.apply(this);this.forward=Zt.forward;this.inverse=Zt.inverse}var Yt,Qt={init:Jt,names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"},er=function(e,t){return Math.pow((1-e)/(1+e),t)},tr=20;function rr(){var e=Math.sin(this.lat0);var t=Math.cos(this.lat0);t*=t;this.rc=Math.sqrt(1-this.es)/(1-this.es*e*e);this.C=Math.sqrt(1+this.es*t*t/(1-this.es));this.phic0=Math.asin(e/this.C);this.ratexp=.5*this.C*this.e;this.K=Math.tan(.5*this.phic0+v)/(Math.pow(Math.tan(.5*this.lat0+v),this.C)*er(this.e*e,this.ratexp))}function ir(e){var t=e.x;var r=e.y;e.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*r+v),this.C)*er(this.e*Math.sin(r),this.ratexp))-O;e.x=this.C*t;return e}function nr(e){var t=1e-14;var r=e.x/this.C;var i=e.y;var n=Math.pow(Math.tan(.5*i+v)/this.K,1/this.C);for(var o=tr;o>0;--o){i=2*Math.atan(n*er(this.e*Math.sin(e.y),-.5*this.e))-O;if(Math.abs(i-e.y)<t){break}e.y=i}if(!o){return null}e.x=r;e.y=i;return e}var or,ar={init:rr,forward:ir,inverse:nr,names:["gauss"]};function sr(){ar.init.apply(this);if(!this.rc){return}this.sinc0=Math.sin(this.phic0);this.cosc0=Math.cos(this.phic0);this.R2=2*this.rc;if(!this.title){this.title="Oblique Stereographic Alternative"}}function cr(e){var t,r,i,n;e.x=ee(e.x-this.long0);ar.forward.apply(this,[e]);t=Math.sin(e.y);r=Math.cos(e.y);i=Math.cos(e.x);n=this.k0*this.R2/(1+this.sinc0*t+this.cosc0*r*i);e.x=n*r*Math.sin(e.x);e.y=n*(this.cosc0*t-this.sinc0*r*i);e.x=this.a*e.x+this.x0;e.y=this.a*e.y+this.y0;return e}function lr(e){var t,r,i,n,o;e.x=(e.x-this.x0)/this.a;e.y=(e.y-this.y0)/this.a;e.x/=this.k0;e.y/=this.k0;if(o=Math.sqrt(e.x*e.x+e.y*e.y)){var a=2*Math.atan2(o,this.R2);t=Math.sin(a);r=Math.cos(a);n=Math.asin(r*this.sinc0+e.y*t*this.cosc0/o);i=Math.atan2(e.x*t,o*this.cosc0*r-e.y*this.sinc0*t)}else{n=this.phic0;i=0}e.x=i;e.y=n;ar.inverse.apply(this,[e]);e.x=ee(e.x+this.long0);return e}var ur,hr={init:sr,forward:cr,inverse:lr,names:["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]};function dr(e,t,r){t*=r;return Math.tan(.5*(O+e))*Math.pow((1-t)/(1+t),.5*r)}function pr(){this.coslat0=Math.cos(this.lat0);this.sinlat0=Math.sin(this.lat0);if(this.sphere){if(this.k0===1&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=R){this.k0=.5*(1+Q(this.lat0)*Math.sin(this.lat_ts))}}else{if(Math.abs(this.coslat0)<=R){if(this.lat0>0){this.con=1}else{this.con=-1}}this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e));if(this.k0===1&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=R){this.k0=.5*this.cons*Y(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/te(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))}this.ms1=Y(this.e,this.sinlat0,this.coslat0);this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-O;this.cosX0=Math.cos(this.X0);this.sinX0=Math.sin(this.X0)}}function mr(e){var t=e.x;var r=e.y;var i=Math.sin(r);var n=Math.cos(r);var o,a,s,c,l,u;var h=ee(t-this.long0);if(Math.abs(Math.abs(t-this.long0)-Math.PI)<=R&&Math.abs(r+this.lat0)<=R){e.x=NaN;e.y=NaN;return e}if(this.sphere){o=2*this.k0/(1+this.sinlat0*i+this.coslat0*n*Math.cos(h));e.x=this.a*o*n*Math.sin(h)+this.x0;e.y=this.a*o*(this.coslat0*i-this.sinlat0*n*Math.cos(h))+this.y0;return e}else{a=2*Math.atan(this.ssfn_(r,i,this.e))-O;c=Math.cos(a);s=Math.sin(a);if(Math.abs(this.coslat0)<=R){l=te(this.e,r*this.con,this.con*i);u=2*this.a*this.k0*l/this.cons;e.x=this.x0+u*Math.sin(t-this.long0);e.y=this.y0-this.con*u*Math.cos(t-this.long0);return e}else if(Math.abs(this.sinlat0)<R){o=2*this.a*this.k0/(1+c*Math.cos(h));e.y=o*s}else{o=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*s+this.cosX0*c*Math.cos(h)));e.y=o*(this.cosX0*s-this.sinX0*c*Math.cos(h))+this.y0}e.x=o*c*Math.sin(h)+this.x0}return e}function fr(e){e.x-=this.x0;e.y-=this.y0;var t,r,i,n,o;var a=Math.sqrt(e.x*e.x+e.y*e.y);if(this.sphere){var s=2*Math.atan(a/(2*this.a*this.k0));t=this.long0;r=this.lat0;if(a<=R){e.x=t;e.y=r;return e}r=Math.asin(Math.cos(s)*this.sinlat0+e.y*Math.sin(s)*this.coslat0/a);if(Math.abs(this.coslat0)<R){if(this.lat0>0){t=ee(this.long0+Math.atan2(e.x,-1*e.y))}else{t=ee(this.long0+Math.atan2(e.x,e.y))}}else{t=ee(this.long0+Math.atan2(e.x*Math.sin(s),a*this.coslat0*Math.cos(s)-e.y*this.sinlat0*Math.sin(s)))}e.x=t;e.y=r;return e}else{if(Math.abs(this.coslat0)<=R){if(a<=R){r=this.lat0;t=this.long0;e.x=t;e.y=r;return e}e.x*=this.con;e.y*=this.con;i=a*this.cons/(2*this.a*this.k0);r=this.con*re(this.e,i);t=this.con*ee(this.con*this.long0+Math.atan2(e.x,-1*e.y))}else{n=2*Math.atan(a*this.cosX0/(2*this.a*this.k0*this.ms1));t=this.long0;if(a<=R){o=this.X0}else{o=Math.asin(Math.cos(n)*this.sinX0+e.y*Math.sin(n)*this.cosX0/a);t=ee(this.long0+Math.atan2(e.x*Math.sin(n),a*this.cosX0*Math.cos(n)-e.y*this.sinX0*Math.sin(n)))}r=-1*re(this.e,Math.tan(.5*(O+o)))}}e.x=t;e.y=r;return e}var vr,gr={init:pr,forward:mr,inverse:fr,names:["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"],ssfn_:dr};function yr(){var e=this.lat0;this.lambda0=this.long0;var t=Math.sin(e);var r=this.a;var i=this.rf;var n=1/i;var o=2*n-Math.pow(n,2);var a=this.e=Math.sqrt(o);this.R=this.k0*r*Math.sqrt(1-o)/(1-o*Math.pow(t,2));this.alpha=Math.sqrt(1+o/(1-o)*Math.pow(Math.cos(e),4));this.b0=Math.asin(t/this.alpha);var s=Math.log(Math.tan(Math.PI/4+this.b0/2));var c=Math.log(Math.tan(Math.PI/4+e/2));var l=Math.log((1+a*t)/(1-a*t));this.K=s-this.alpha*c+this.alpha*a/2*l}function br(e){var t=Math.log(Math.tan(Math.PI/4-e.y/2));var r=this.e/2*Math.log((1+this.e*Math.sin(e.y))/(1-this.e*Math.sin(e.y)));var i=-this.alpha*(t+r)+this.K;var n=2*(Math.atan(Math.exp(i))-Math.PI/4);var o=this.alpha*(e.x-this.lambda0);var a=Math.atan(Math.sin(o)/(Math.sin(this.b0)*Math.tan(n)+Math.cos(this.b0)*Math.cos(o)));var s=Math.asin(Math.cos(this.b0)*Math.sin(n)-Math.sin(this.b0)*Math.cos(n)*Math.cos(o));e.y=this.R/2*Math.log((1+Math.sin(s))/(1-Math.sin(s)))+this.y0;e.x=this.R*a+this.x0;return e}function wr(e){var t=e.x-this.x0;var r=e.y-this.y0;var i=t/this.R;var n=2*(Math.atan(Math.exp(r/this.R))-Math.PI/4);var o=Math.asin(Math.cos(this.b0)*Math.sin(n)+Math.sin(this.b0)*Math.cos(n)*Math.cos(i));var a=Math.atan(Math.sin(i)/(Math.cos(this.b0)*Math.cos(i)-Math.sin(this.b0)*Math.tan(n)));var s=this.lambda0+a/this.alpha;var c=0;var l=o;var u=-1e3;var h=0;while(Math.abs(l-u)>1e-7){if(++h>20){return}c=1/this.alpha*(Math.log(Math.tan(Math.PI/4+o/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(l))/2));u=l;l=2*Math.atan(Math.exp(c))-Math.PI/2}e.x=s;e.y=l;return e}var _r,Cr={init:yr,forward:br,inverse:wr,names:["somerc"]};function Mr(){this.no_off=this.no_off||false;this.no_rot=this.no_rot||false;if(isNaN(this.k0)){this.k0=1}var e=Math.sin(this.lat0);var t=Math.cos(this.lat0);var r=this.e*e;this.bl=Math.sqrt(1+this.es/(1-this.es)*Math.pow(t,4));this.al=this.a*this.bl*this.k0*Math.sqrt(1-this.es)/(1-r*r);var i=te(this.e,this.lat0,e);var n=this.bl/t*Math.sqrt((1-this.es)/(1-r*r));if(n*n<1){n=1}var o;var a;if(!isNaN(this.longc)){if(this.lat0>=0){o=n+Math.sqrt(n*n-1)}else{o=n-Math.sqrt(n*n-1)}this.el=o*Math.pow(i,this.bl);a=.5*(o-1/o);this.gamma0=Math.asin(Math.sin(this.alpha)/n);this.long0=this.longc-Math.asin(a*Math.tan(this.gamma0))/this.bl}else{var s=te(this.e,this.lat1,Math.sin(this.lat1));var c=te(this.e,this.lat2,Math.sin(this.lat2));if(this.lat0>=0){this.el=(n+Math.sqrt(n*n-1))*Math.pow(i,this.bl)}else{this.el=(n-Math.sqrt(n*n-1))*Math.pow(i,this.bl)}var l=Math.pow(s,this.bl);var u=Math.pow(c,this.bl);o=this.el/l;a=.5*(o-1/o);var h=(this.el*this.el-u*l)/(this.el*this.el+u*l);var d=(u-l)/(u+l);var p=ee(this.long1-this.long2);this.long0=.5*(this.long1+this.long2)-Math.atan(h*Math.tan(.5*this.bl*p)/d)/this.bl;this.long0=ee(this.long0);var m=ee(this.long1-this.long0);this.gamma0=Math.atan(Math.sin(this.bl*m)/a);this.alpha=Math.asin(n*Math.sin(this.gamma0))}if(this.no_off){this.uc=0}else{if(this.lat0>=0){this.uc=this.al/this.bl*Math.atan2(Math.sqrt(n*n-1),Math.cos(this.alpha))}else{this.uc=-1*this.al/this.bl*Math.atan2(Math.sqrt(n*n-1),Math.cos(this.alpha))}}}function xr(e){var t=e.x;var r=e.y;var i=ee(t-this.long0);var n,o;var a;if(Math.abs(Math.abs(r)-O)<=R){if(r>0){a=-1}else{a=1}o=this.al/this.bl*Math.log(Math.tan(v+a*this.gamma0*.5));n=-1*a*O*this.al/this.bl}else{var s=te(this.e,r,Math.sin(r));var c=this.el/Math.pow(s,this.bl);var l=.5*(c-1/c);var u=.5*(c+1/c);var h=Math.sin(this.bl*i);var d=(l*Math.sin(this.gamma0)-h*Math.cos(this.gamma0))/u;if(Math.abs(Math.abs(d)-1)<=R){o=Number.POSITIVE_INFINITY}else{o=.5*this.al*Math.log((1-d)/(1+d))/this.bl}if(Math.abs(Math.cos(this.bl*i))<=R){n=this.al*this.bl*i}else{n=this.al*Math.atan2(l*Math.cos(this.gamma0)+h*Math.sin(this.gamma0),Math.cos(this.bl*i))/this.bl}}if(this.no_rot){e.x=this.x0+n;e.y=this.y0+o}else{n-=this.uc;e.x=this.x0+o*Math.cos(this.alpha)+n*Math.sin(this.alpha);e.y=this.y0+n*Math.cos(this.alpha)-o*Math.sin(this.alpha)}return e}function Pr(e){var t,r;if(this.no_rot){r=e.y-this.y0;t=e.x-this.x0}else{r=(e.x-this.x0)*Math.cos(this.alpha)-(e.y-this.y0)*Math.sin(this.alpha);t=(e.y-this.y0)*Math.cos(this.alpha)+(e.x-this.x0)*Math.sin(this.alpha);t+=this.uc}var i=Math.exp(-1*this.bl*r/this.al);var n=.5*(i-1/i);var o=.5*(i+1/i);var a=Math.sin(this.bl*t/this.al);var s=(a*Math.cos(this.gamma0)+n*Math.sin(this.gamma0))/o;var c=Math.pow(this.el/Math.sqrt((1+s)/(1-s)),1/this.bl);if(Math.abs(s-1)<R){e.x=this.long0;e.y=O}else if(Math.abs(s+1)<R){e.x=this.long0;e.y=-1*O}else{e.y=re(this.e,c);e.x=ee(this.long0-Math.atan2(n*Math.cos(this.gamma0)-a*Math.sin(this.gamma0),Math.cos(this.bl*t/this.al))/this.bl)}return e}var Sr,Er={init:Mr,forward:xr,inverse:Pr,names:["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","omerc"]};function Tr(){if(!this.lat2){this.lat2=this.lat1}if(!this.k0){this.k0=1}this.x0=this.x0||0;this.y0=this.y0||0;if(Math.abs(this.lat1+this.lat2)<R){return}var e=this.b/this.a;this.e=Math.sqrt(1-e*e);var t=Math.sin(this.lat1);var r=Math.cos(this.lat1);var i=Y(this.e,t,r);var n=te(this.e,this.lat1,t);var o=Math.sin(this.lat2);var a=Math.cos(this.lat2);var s=Y(this.e,o,a);var c=te(this.e,this.lat2,o);var l=te(this.e,this.lat0,Math.sin(this.lat0));if(Math.abs(this.lat1-this.lat2)>R){this.ns=Math.log(i/s)/Math.log(n/c)}else{this.ns=t}if(isNaN(this.ns)){this.ns=t}this.f0=i/(this.ns*Math.pow(n,this.ns));this.rh=this.a*this.f0*Math.pow(l,this.ns);if(!this.title){this.title="Lambert Conformal Conic"}}function Or(e){var t=e.x;var r=e.y;if(Math.abs(2*Math.abs(r)-Math.PI)<=R){r=Q(r)*(O-2*R)}var i=Math.abs(Math.abs(r)-O);var n,o;if(i>R){n=te(this.e,r,Math.sin(r));o=this.a*this.f0*Math.pow(n,this.ns)}else{i=r*this.ns;if(i<=0){return null}o=0}var a=this.ns*ee(t-this.long0);e.x=this.k0*(o*Math.sin(a))+this.x0;e.y=this.k0*(this.rh-o*Math.cos(a))+this.y0;return e}function kr(e){var t,r,i;var n,o;var a=(e.x-this.x0)/this.k0;var s=this.rh-(e.y-this.y0)/this.k0;if(this.ns>0){t=Math.sqrt(a*a+s*s);r=1}else{t=-Math.sqrt(a*a+s*s);r=-1}var c=0;if(t!==0){c=Math.atan2(r*a,r*s)}if(t!==0||this.ns>0){r=1/this.ns;i=Math.pow(t/(this.a*this.f0),r);n=re(this.e,i);if(n===-9999){return null}}else{n=-O}o=ee(c/this.ns+this.long0);e.x=o;e.y=n;return e}var Rr,Fr={init:Tr,forward:Or,inverse:kr,names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_2SP","lcc"]};function Lr(){this.a=6377397.155;this.es=.006674372230614;this.e=Math.sqrt(this.es);if(!this.lat0){this.lat0=.863937979737193}if(!this.long0){this.long0=.7417649320975901-.308341501185665}if(!this.k0){this.k0=.9999}this.s45=.785398163397448;this.s90=2*this.s45;this.fi0=this.lat0;this.e2=this.es;this.e=Math.sqrt(this.e2);this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2));this.uq=1.04216856380474;this.u0=Math.asin(Math.sin(this.fi0)/this.alfa);this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2);this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g;this.k1=this.k0;this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2));this.s0=1.37008346281555;this.n=Math.sin(this.s0);this.ro0=this.k1*this.n0/Math.tan(this.s0);this.ad=this.s90-this.uq}function Ir(e){var t,r,i,n,o,a,s;var c=e.x;var l=e.y;var u=ee(c-this.long0);t=Math.pow((1+this.e*Math.sin(l))/(1-this.e*Math.sin(l)),this.alfa*this.e/2);r=2*(Math.atan(this.k*Math.pow(Math.tan(l/2+this.s45),this.alfa)/t)-this.s45);i=-u*this.alfa;n=Math.asin(Math.cos(this.ad)*Math.sin(r)+Math.sin(this.ad)*Math.cos(r)*Math.cos(i));o=Math.asin(Math.cos(r)*Math.sin(i)/Math.cos(n));a=this.n*o;s=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(n/2+this.s45),this.n);e.y=s*Math.cos(a)/1;e.x=s*Math.sin(a)/1;if(!this.czech){e.y*=-1;e.x*=-1}return e}function jr(e){var t,r,i,n,o,a,s;var c;var l=e.x;e.x=e.y;e.y=l;if(!this.czech){e.y*=-1;e.x*=-1}a=Math.sqrt(e.x*e.x+e.y*e.y);o=Math.atan2(e.y,e.x);n=o/Math.sin(this.s0);i=2*(Math.atan(Math.pow(this.ro0/a,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45);t=Math.asin(Math.cos(this.ad)*Math.sin(i)-Math.sin(this.ad)*Math.cos(i)*Math.cos(n));r=Math.asin(Math.cos(i)*Math.sin(n)/Math.cos(t));e.x=this.long0-r/this.alfa;s=t;c=0;var u=0;do{e.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(t/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(s))/(1-this.e*Math.sin(s)),this.e/2))-this.s45);if(Math.abs(s-e.y)<1e-10){c=1}s=e.y;u+=1}while(c===0&&u<15);if(u>=15){return null}return e}var Ar,Dr={init:Lr,forward:Ir,inverse:jr,names:["Krovak","krovak"]},Nr=function(e,t,r,i,n){return e*n-t*Math.sin(2*n)+r*Math.sin(4*n)-i*Math.sin(6*n)},Gr=function(e){return 1-.25*e*(1+e/16*(3+1.25*e))},zr=function(e){return.375*e*(1+.25*e*(1+.46875*e))},Br=function(e){return.05859375*e*e*(1+.75*e)},Vr=function(e){return e*e*e*(35/3072)},qr=function(e,t,r){var i=t*r;return e/Math.sqrt(1-i*i)},Wr=function(e){return Math.abs(e)<O?e:e-Q(e)*Math.PI},Ur=function(e,t,r,i,n){var o;var a;o=e/t;for(var s=0;s<15;s++){a=(e-(t*o-r*Math.sin(2*o)+i*Math.sin(4*o)-n*Math.sin(6*o)))/(t-2*r*Math.cos(2*o)+4*i*Math.cos(4*o)-6*n*Math.cos(6*o));o+=a;if(Math.abs(a)<=1e-10){return o}}return NaN};function Hr(){if(!this.sphere){this.e0=Gr(this.es);this.e1=zr(this.es);this.e2=Br(this.es);this.e3=Vr(this.es);this.ml0=this.a*Nr(this.e0,this.e1,this.e2,this.e3,this.lat0)}}function $r(e){var t,r;var i=e.x;var n=e.y;i=ee(i-this.long0);if(this.sphere){t=this.a*Math.asin(Math.cos(n)*Math.sin(i));r=this.a*(Math.atan2(Math.tan(n),Math.cos(i))-this.lat0)}else{var o=Math.sin(n);var a=Math.cos(n);var s=qr(this.a,this.e,o);var c=Math.tan(n)*Math.tan(n);var l=i*Math.cos(n);var u=l*l;var h=this.es*a*a/(1-this.es);var d=this.a*Nr(this.e0,this.e1,this.e2,this.e3,n);t=s*l*(1-u*c*(1/6-(8-c+8*h)*u/120));r=d-this.ml0+s*o/a*u*(.5+(5-c+6*h)*u/24)}e.x=t+this.x0;e.y=r+this.y0;return e}function Zr(e){e.x-=this.x0;e.y-=this.y0;var t=e.x/this.a;var r=e.y/this.a;var i,n;if(this.sphere){var o=r+this.lat0;i=Math.asin(Math.sin(o)*Math.cos(t));n=Math.atan2(Math.tan(t),Math.cos(o))}else{var a=this.ml0/this.a+r;var s=Ur(a,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(s)-O)<=R){e.x=this.long0;e.y=O;if(r<0){e.y*=-1}return e}var c=qr(this.a,this.e,Math.sin(s));var l=c*c*c/this.a/this.a*(1-this.es);var u=Math.pow(Math.tan(s),2);var h=t*this.a/c;var d=h*h;i=s-c*Math.tan(s)/l*h*h*(.5-(1+3*u)*h*h/24);n=h*(1-d*(u/3+(1+3*u)*u*d/15))/Math.cos(s)}e.x=ee(n+this.long0);e.y=Wr(i);return e}var Kr,Xr={init:Hr,forward:$r,inverse:Zr,names:["Cassini","Cassini_Soldner","cass"]},Jr=function(e,t){var r;if(e>1e-7){r=e*t;return(1-e*e)*(t/(1-r*r)-.5/e*Math.log((1-r)/(1+r)))}else{return 2*t}},Yr,Qr,ei,ti;function ri(){var e=Math.abs(this.lat0);if(Math.abs(e-O)<R){this.mode=this.lat0<0?this.S_POLE:this.N_POLE}else if(Math.abs(e)<R){this.mode=this.EQUIT}else{this.mode=this.OBLIQ}if(this.es>0){var t;this.qp=Jr(this.e,1);this.mmf=.5/(1-this.es);this.apa=hi(this.es);switch(this.mode){case this.N_POLE:this.dd=1;break;case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp);this.dd=1/this.rq;this.xmf=1;this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp);t=Math.sin(this.lat0);this.sinb1=Jr(this.e,t)/this.qp;this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1);this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*t*t)*this.rq*this.cosb1);this.ymf=(this.xmf=this.rq)/this.dd;this.xmf*=this.dd;break}}else{if(this.mode===this.OBLIQ){this.sinph0=Math.sin(this.lat0);this.cosph0=Math.cos(this.lat0)}}}function ii(e){var t,r,i,n,o,a,s,c,l,u;var h=e.x;var d=e.y;h=ee(h-this.long0);if(this.sphere){o=Math.sin(d);u=Math.cos(d);i=Math.cos(h);if(this.mode===this.OBLIQ||this.mode===this.EQUIT){r=this.mode===this.EQUIT?1+u*i:1+this.sinph0*o+this.cosph0*u*i;if(r<=R){return null}r=Math.sqrt(2/r);t=r*u*Math.sin(h);r*=this.mode===this.EQUIT?o:this.cosph0*o-this.sinph0*u*i}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE){i=-i}if(Math.abs(d+this.phi0)<R){return null}r=v-d*.5;r=2*(this.mode===this.S_POLE?Math.cos(r):Math.sin(r));t=r*Math.sin(h);r*=i}}else{s=0;c=0;l=0;i=Math.cos(h);n=Math.sin(h);o=Math.sin(d);a=Jr(this.e,o);if(this.mode===this.OBLIQ||this.mode===this.EQUIT){s=a/this.qp;c=Math.sqrt(1-s*s)}switch(this.mode){case this.OBLIQ:l=1+this.sinb1*s+this.cosb1*c*i;break;case this.EQUIT:l=1+c*i;break;case this.N_POLE:l=O+d;a=this.qp-a;break;case this.S_POLE:l=d-O;a=this.qp+a;break}if(Math.abs(l)<R){return null}switch(this.mode){case this.OBLIQ:case this.EQUIT:l=Math.sqrt(2/l);if(this.mode===this.OBLIQ){r=this.ymf*l*(this.cosb1*s-this.sinb1*c*i)}else{r=(l=Math.sqrt(2/(1+c*i)))*s*this.ymf}t=this.xmf*l*c*n;break;case this.N_POLE:case this.S_POLE:if(a>=0){t=(l=Math.sqrt(a))*n;r=i*(this.mode===this.S_POLE?l:-l)}else{t=r=0}break}}e.x=this.a*t+this.x0;e.y=this.a*r+this.y0;return e}function ni(e){e.x-=this.x0;e.y-=this.y0;var t=e.x/this.a;var r=e.y/this.a;var i,n,o,a,s,c,l;if(this.sphere){var u=0,h,d=0;h=Math.sqrt(t*t+r*r);n=h*.5;if(n>1){return null}n=2*Math.asin(n);if(this.mode===this.OBLIQ||this.mode===this.EQUIT){d=Math.sin(n);u=Math.cos(n)}switch(this.mode){case this.EQUIT:n=Math.abs(h)<=R?0:Math.asin(r*d/h);t*=d;r=u*h;break;case this.OBLIQ:n=Math.abs(h)<=R?this.phi0:Math.asin(u*this.sinph0+r*d*this.cosph0/h);t*=d*this.cosph0;r=(u-Math.sin(n)*this.sinph0)*h;break;case this.N_POLE:r=-r;n=O-n;break;case this.S_POLE:n-=O;break}i=r===0&&(this.mode===this.EQUIT||this.mode===this.OBLIQ)?0:Math.atan2(t,r)}else{l=0;if(this.mode===this.OBLIQ||this.mode===this.EQUIT){t/=this.dd;r*=this.dd;c=Math.sqrt(t*t+r*r);if(c<R){e.x=0;e.y=this.phi0;return e}a=2*Math.asin(.5*c/this.rq);o=Math.cos(a);t*=a=Math.sin(a);if(this.mode===this.OBLIQ){l=o*this.sinb1+r*a*this.cosb1/c;s=this.qp*l;r=c*this.cosb1*o-r*this.sinb1*a}else{l=r*a/c;s=this.qp*l;r=c*o}}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE){r=-r}s=t*t+r*r;if(!s){e.x=0;e.y=this.phi0;return e}l=1-s/this.qp;if(this.mode===this.S_POLE){l=-l}}i=Math.atan2(t,r);n=di(Math.asin(l),this.apa)}e.x=ee(this.long0+i);e.y=n;return e}var oi=.3333333333333333,ai=.17222222222222222,si=.10257936507936508,ci=.06388888888888888,li=.0664021164021164,ui=.016415012942191543;function hi(e){var t;var r=[];r[0]=e*oi;t=e*e;r[0]+=t*ai;r[1]=t*ci;t*=e;r[0]+=t*si;r[1]+=t*li;r[2]=t*ui;return r}function di(e,t){var r=e+e;return e+t[0]*Math.sin(r)+t[1]*Math.sin(r+r)+t[2]*Math.sin(r+r+r)}var pi,mi={init:ri,forward:ii,inverse:ni,names:["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],S_POLE:1,N_POLE:2,EQUIT:3,OBLIQ:4},fi=function(e){if(Math.abs(e)>1){e=e>1?1:-1}return Math.asin(e)};function vi(){if(Math.abs(this.lat1+this.lat2)<R){return}this.temp=this.b/this.a;this.es=1-Math.pow(this.temp,2);this.e3=Math.sqrt(this.es);this.sin_po=Math.sin(this.lat1);this.cos_po=Math.cos(this.lat1);this.t1=this.sin_po;this.con=this.sin_po;this.ms1=Y(this.e3,this.sin_po,this.cos_po);this.qs1=Jr(this.e3,this.sin_po,this.cos_po);this.sin_po=Math.sin(this.lat2);this.cos_po=Math.cos(this.lat2);this.t2=this.sin_po;this.ms2=Y(this.e3,this.sin_po,this.cos_po);this.qs2=Jr(this.e3,this.sin_po,this.cos_po);this.sin_po=Math.sin(this.lat0);this.cos_po=Math.cos(this.lat0);this.t3=this.sin_po;this.qs0=Jr(this.e3,this.sin_po,this.cos_po);if(Math.abs(this.lat1-this.lat2)>R){this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1)}else{this.ns0=this.con}this.c=this.ms1*this.ms1+this.ns0*this.qs1;this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0}function gi(e){var t=e.x;var r=e.y;this.sin_phi=Math.sin(r);this.cos_phi=Math.cos(r);var i=Jr(this.e3,this.sin_phi,this.cos_phi);var n=this.a*Math.sqrt(this.c-this.ns0*i)/this.ns0;var o=this.ns0*ee(t-this.long0);var a=n*Math.sin(o)+this.x0;var s=this.rh-n*Math.cos(o)+this.y0;e.x=a;e.y=s;return e}function yi(e){var t,r,i,n,o,a;e.x-=this.x0;e.y=this.rh-e.y+this.y0;if(this.ns0>=0){t=Math.sqrt(e.x*e.x+e.y*e.y);i=1}else{t=-Math.sqrt(e.x*e.x+e.y*e.y);i=-1}n=0;if(t!==0){n=Math.atan2(i*e.x,i*e.y)}i=t*this.ns0/this.a;if(this.sphere){a=Math.asin((this.c-i*i)/(2*this.ns0))}else{r=(this.c-i*i)/this.ns0;a=this.phi1z(this.e3,r)}o=ee(n/this.ns0+this.long0);e.x=o;e.y=a;return e}function bi(e,t){var r,i,n,o,a;var s=fi(.5*t);if(e<R){return s}var c=e*e;for(var l=1;l<=25;l++){r=Math.sin(s);i=Math.cos(s);n=e*r;o=1-n*n;a=.5*o*o/i*(t/(1-c)-r/o+.5/e*Math.log((1-n)/(1+n)));s=s+a;if(Math.abs(a)<=1e-7){return s}}return null}var wi,_i={init:vi,forward:gi,inverse:yi,names:["Albers_Conic_Equal_Area","Albers","aea"],phi1z:bi};function Ci(){this.sin_p14=Math.sin(this.lat0);this.cos_p14=Math.cos(this.lat0);this.infinity_dist=1e3*this.a;this.rc=1}function Mi(e){var t,r;var i;var n;var o;var a;var s,c;var l=e.x;var u=e.y;i=ee(l-this.long0);t=Math.sin(u);r=Math.cos(u);n=Math.cos(i);a=this.sin_p14*t+this.cos_p14*r*n;o=1;if(a>0||Math.abs(a)<=R){s=this.x0+this.a*o*r*Math.sin(i)/a;c=this.y0+this.a*o*(this.cos_p14*t-this.sin_p14*r*n)/a}else{s=this.x0+this.infinity_dist*r*Math.sin(i);c=this.y0+this.infinity_dist*(this.cos_p14*t-this.sin_p14*r*n)}e.x=s;e.y=c;return e}function xi(e){var t;var r,i;var n;var o,a;e.x=(e.x-this.x0)/this.a;e.y=(e.y-this.y0)/this.a;e.x/=this.k0;e.y/=this.k0;if(t=Math.sqrt(e.x*e.x+e.y*e.y)){n=Math.atan2(t,this.rc);r=Math.sin(n);i=Math.cos(n);a=fi(i*this.sin_p14+e.y*r*this.cos_p14/t);o=Math.atan2(e.x*r,t*this.cos_p14*i-e.y*this.sin_p14*r);o=ee(this.long0+o)}else{a=this.phic0;o=0}e.x=o;e.y=a;return e}var Pi,Si={init:Ci,forward:Mi,inverse:xi,names:["gnom"]},Ei=function(e,t){var r=1-(1-e*e)/(2*e)*Math.log((1-e)/(1+e));if(Math.abs(Math.abs(t)-r)<1e-6){if(t<0){return-1*O}else{return O}}var i=Math.asin(.5*t);var n;var o;var a;var s;for(var c=0;c<30;c++){o=Math.sin(i);a=Math.cos(i);s=e*o;n=Math.pow(1-s*s,2)/(2*a)*(t/(1-e*e)-o/(1-s*s)+.5/e*Math.log((1-s)/(1+s)));i+=n;if(Math.abs(n)<=1e-10){return i}}return NaN};function Ti(){if(!this.sphere){this.k0=Y(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))}}function Oi(e){var t=e.x;var r=e.y;var i,n;var o=ee(t-this.long0);if(this.sphere){i=this.x0+this.a*o*Math.cos(this.lat_ts);n=this.y0+this.a*Math.sin(r)/Math.cos(this.lat_ts)}else{var a=Jr(this.e,Math.sin(r));i=this.x0+this.a*this.k0*o;n=this.y0+this.a*a*.5/this.k0}e.x=i;e.y=n;return e}function ki(e){e.x-=this.x0;e.y-=this.y0;var t,r;if(this.sphere){t=ee(this.long0+e.x/this.a/Math.cos(this.lat_ts));r=Math.asin(e.y/this.a*Math.cos(this.lat_ts))}else{r=Ei(this.e,2*e.y*this.k0/this.a);t=ee(this.long0+e.x/(this.a*this.k0))}e.x=t;e.y=r;return e}var Ri,Fi={init:Ti,forward:Oi,inverse:ki,names:["cea"]};function Li(){this.x0=this.x0||0;this.y0=this.y0||0;this.lat0=this.lat0||0;this.long0=this.long0||0;this.lat_ts=this.lat_ts||0;this.title=this.title||"Equidistant Cylindrical (Plate Carre)";this.rc=Math.cos(this.lat_ts)}function Ii(e){var t=e.x;var r=e.y;var i=ee(t-this.long0);var n=Wr(r-this.lat0);e.x=this.x0+this.a*i*this.rc;e.y=this.y0+this.a*n;return e}function ji(e){var t=e.x;var r=e.y;e.x=ee(this.long0+(t-this.x0)/(this.a*this.rc));e.y=Wr(this.lat0+(r-this.y0)/this.a);return e}var Ai,Di={init:Li,forward:Ii,inverse:ji,names:["Equirectangular","Equidistant_Cylindrical","eqc"]},Ni=20;function Gi(){this.temp=this.b/this.a;this.es=1-Math.pow(this.temp,2);this.e=Math.sqrt(this.es);this.e0=Gr(this.es);this.e1=zr(this.es);this.e2=Br(this.es);this.e3=Vr(this.es);this.ml0=this.a*Nr(this.e0,this.e1,this.e2,this.e3,this.lat0)}function zi(e){var t=e.x;var r=e.y;var i,n,o;var a=ee(t-this.long0);o=a*Math.sin(r);if(this.sphere){if(Math.abs(r)<=R){i=this.a*a;n=-1*this.a*this.lat0}else{i=this.a*Math.sin(o)/Math.tan(r);n=this.a*(Wr(r-this.lat0)+(1-Math.cos(o))/Math.tan(r))}}else{if(Math.abs(r)<=R){i=this.a*a;n=-1*this.ml0}else{var s=qr(this.a,this.e,Math.sin(r))/Math.tan(r);i=s*Math.sin(o);n=this.a*Nr(this.e0,this.e1,this.e2,this.e3,r)-this.ml0+s*(1-Math.cos(o))}}e.x=i+this.x0;e.y=n+this.y0;return e}function Bi(e){var t,r,i,n,o;var a,s;var c,l;i=e.x-this.x0;n=e.y-this.y0;if(this.sphere){if(Math.abs(n+this.a*this.lat0)<=R){t=ee(i/this.a+this.long0);r=0}else{a=this.lat0+n/this.a;s=i*i/this.a/this.a+a*a;c=a;var u;for(o=Ni;o;--o){u=Math.tan(c);l=-1*(a*(c*u+1)-c-.5*(c*c+s)*u)/((c-a)/u-1);c+=l;if(Math.abs(l)<=R){r=c;break}}t=ee(this.long0+Math.asin(i*Math.tan(c)/this.a)/Math.sin(r))}}else{if(Math.abs(n+this.ml0)<=R){r=0;t=ee(this.long0+i/this.a)}else{a=(this.ml0+n)/this.a;s=i*i/this.a/this.a+a*a;c=a;var h,d,p,m;var f;for(o=Ni;o;--o){f=this.e*Math.sin(c);h=Math.sqrt(1-f*f)*Math.tan(c);d=this.a*Nr(this.e0,this.e1,this.e2,this.e3,c);p=this.e0-2*this.e1*Math.cos(2*c)+4*this.e2*Math.cos(4*c)-6*this.e3*Math.cos(6*c);m=d/this.a;l=(a*(h*m+1)-m-.5*h*(m*m+s))/(this.es*Math.sin(2*c)*(m*m+s-2*a*m)/(4*h)+(a-m)*(h*p-2/Math.sin(2*c))-p);c-=l;if(Math.abs(l)<=R){r=c;break}}h=Math.sqrt(1-this.es*Math.pow(Math.sin(r),2))*Math.tan(r);t=ee(this.long0+Math.asin(i*h/this.a)/Math.sin(r))}}e.x=t;e.y=r;return e}var Vi,qi={init:Gi,forward:zi,inverse:Bi,names:["Polyconic","poly"]};function Wi(){this.A=[];this.A[1]=.6399175073;this.A[2]=-.1358797613;this.A[3]=.063294409;this.A[4]=-.02526853;this.A[5]=.0117879;this.A[6]=-.0055161;this.A[7]=.0026906;this.A[8]=-.001333;this.A[9]=67e-5;this.A[10]=-34e-5;this.B_re=[];this.B_im=[];this.B_re[1]=.7557853228;this.B_im[1]=0;this.B_re[2]=.249204646;this.B_im[2]=.003371507;this.B_re[3]=-.001541739;this.B_im[3]=.04105856;this.B_re[4]=-.10162907;this.B_im[4]=.01727609;this.B_re[5]=-.26623489;this.B_im[5]=-.36249218;this.B_re[6]=-.6870983;this.B_im[6]=-1.1651967;this.C_re=[];this.C_im=[];this.C_re[1]=1.3231270439;this.C_im[1]=0;this.C_re[2]=-.577245789;this.C_im[2]=-.007809598;this.C_re[3]=.508307513;this.C_im[3]=-.112208952;this.C_re[4]=-.15094762;this.C_im[4]=.18200602;this.C_re[5]=1.01418179;this.C_im[5]=1.64497696;this.C_re[6]=1.9660549;this.C_im[6]=2.5127645;this.D=[];this.D[1]=1.5627014243;this.D[2]=.5185406398;this.D[3]=-.03333098;this.D[4]=-.1052906;this.D[5]=-.0368594;this.D[6]=.007317;this.D[7]=.0122;this.D[8]=.00394;this.D[9]=-.0013}function Ui(e){var t;var r=e.x;var i=e.y;var n=i-this.lat0;var o=r-this.long0;var a=n/k*1e-5;var s=o;var c=1;var l=0;for(t=1;t<=10;t++){c=c*a;l=l+this.A[t]*c}var u=l;var h=s;var d=1;var p=0;var m;var f;var v=0;var g=0;for(t=1;t<=6;t++){m=d*u-p*h;f=p*u+d*h;d=m;p=f;v=v+this.B_re[t]*d-this.B_im[t]*p;g=g+this.B_im[t]*d+this.B_re[t]*p}e.x=g*this.a+this.x0;e.y=v*this.a+this.y0;return e}function Hi(e){var t;var r=e.x;var i=e.y;var n=r-this.x0;var o=i-this.y0;var a=o/this.a;var s=n/this.a;var c=1;var l=0;var u;var h;var d=0;var p=0;for(t=1;t<=6;t++){u=c*a-l*s;h=l*a+c*s;c=u;l=h;d=d+this.C_re[t]*c-this.C_im[t]*l;p=p+this.C_im[t]*c+this.C_re[t]*l}for(var m=0;m<this.iterations;m++){var f=d;var v=p;var g;var y;var b=a;var w=s;for(t=2;t<=6;t++){g=f*d-v*p;y=v*d+f*p;f=g;v=y;b=b+(t-1)*(this.B_re[t]*f-this.B_im[t]*v);w=w+(t-1)*(this.B_im[t]*f+this.B_re[t]*v)}f=1;v=0;var _=this.B_re[1];var C=this.B_im[1];for(t=2;t<=6;t++){g=f*d-v*p;y=v*d+f*p;f=g;v=y;_=_+t*(this.B_re[t]*f-this.B_im[t]*v);C=C+t*(this.B_im[t]*f+this.B_re[t]*v)}var M=_*_+C*C;d=(b*_+w*C)/M;p=(w*_-b*C)/M}var x=d;var P=p;var S=1;var E=0;for(t=1;t<=9;t++){S=S*x;E=E+this.D[t]*S}var T=this.lat0+E*k*1e5;var O=this.long0+P;e.x=O;e.y=T;return e}var $i,Zi={init:Wi,forward:Ui,inverse:Hi,names:["New_Zealand_Map_Grid","nzmg"]};function Ki(){}function Xi(e){var t=e.x;var r=e.y;var i=ee(t-this.long0);var n=this.x0+this.a*i;var o=this.y0+this.a*Math.log(Math.tan(Math.PI/4+r/2.5))*1.25;e.x=n;e.y=o;return e}function Ji(e){e.x-=this.x0;e.y-=this.y0;var t=ee(this.long0+e.x/this.a);var r=2.5*(Math.atan(Math.exp(.8*e.y/this.a))-Math.PI/4);e.x=t;e.y=r;return e}var Yi,Qi={init:Ki,forward:Xi,inverse:Ji,names:["Miller_Cylindrical","mill"]},en=20;function tn(){if(!this.sphere){this.en=Et(this.es)}else{this.n=1;this.m=0;this.es=0;this.C_y=Math.sqrt((this.m+1)/this.n);this.C_x=this.C_y/(this.m+1)}}function rn(e){var t,r;var i=e.x;var n=e.y;i=ee(i-this.long0);if(this.sphere){if(!this.m){n=this.n!==1?Math.asin(this.n*Math.sin(n)):n}else{var o=this.n*Math.sin(n);for(var a=en;a;--a){var s=(this.m*n+Math.sin(n)-o)/(this.m+Math.cos(n));n-=s;if(Math.abs(s)<R){break}}}t=this.a*this.C_x*i*(this.m+Math.cos(n));r=this.a*this.C_y*n}else{var c=Math.sin(n);var l=Math.cos(n);r=this.a*Tt(n,c,l,this.en);t=this.a*i*l/Math.sqrt(1-this.es*c*c)}e.x=t;e.y=r;return e}function nn(e){var t,r,i,n;e.x-=this.x0;i=e.x/this.a;e.y-=this.y0;t=e.y/this.a;if(this.sphere){t/=this.C_y;i=i/(this.C_x*(this.m+Math.cos(t)));if(this.m){t=fi((this.m*t+Math.sin(t))/this.n)}else if(this.n!==1){t=fi(Math.sin(t)/this.n)}i=ee(i+this.long0);t=Wr(t)}else{t=kt(e.y/this.a,this.es,this.en);n=Math.abs(t);if(n<O){n=Math.sin(t);r=this.long0+e.x*Math.sqrt(1-this.es*n*n)/(this.a*Math.cos(t));i=ee(r)}else if(n-R<O){i=this.long0}}e.x=i;e.y=t;return e}var on,an={init:tn,forward:rn,inverse:nn,names:["Sinusoidal","sinu"]};function sn(){}function cn(e){var t=e.x;var r=e.y;var i=ee(t-this.long0);var n=r;var o=Math.PI*Math.sin(r);while(true){var a=-(n+Math.sin(n)-o)/(1+Math.cos(n));n+=a;if(Math.abs(a)<R){break}}n/=2;if(Math.PI/2-Math.abs(r)<R){i=0}var s=.900316316158*this.a*i*Math.cos(n)+this.x0;var c=1.4142135623731*this.a*Math.sin(n)+this.y0;e.x=s;e.y=c;return e}function ln(e){var t;var r;e.x-=this.x0;e.y-=this.y0;r=e.y/(1.4142135623731*this.a);if(Math.abs(r)>.999999999999){r=.999999999999}t=Math.asin(r);var i=ee(this.long0+e.x/(.900316316158*this.a*Math.cos(t)));if(i<-Math.PI){i=-Math.PI}if(i>Math.PI){i=Math.PI}r=(2*t+Math.sin(2*t))/Math.PI;if(Math.abs(r)>1){r=1}var n=Math.asin(r);e.x=i;e.y=n;return e}var un,hn={init:sn,forward:cn,inverse:ln,names:["Mollweide","moll"]};function dn(){if(Math.abs(this.lat1+this.lat2)<R){return}this.lat2=this.lat2||this.lat1;this.temp=this.b/this.a;this.es=1-Math.pow(this.temp,2);this.e=Math.sqrt(this.es);this.e0=Gr(this.es);this.e1=zr(this.es);this.e2=Br(this.es);this.e3=Vr(this.es);this.sinphi=Math.sin(this.lat1);this.cosphi=Math.cos(this.lat1);this.ms1=Y(this.e,this.sinphi,this.cosphi);this.ml1=Nr(this.e0,this.e1,this.e2,this.e3,this.lat1);if(Math.abs(this.lat1-this.lat2)<R){this.ns=this.sinphi}else{this.sinphi=Math.sin(this.lat2);this.cosphi=Math.cos(this.lat2);this.ms2=Y(this.e,this.sinphi,this.cosphi);this.ml2=Nr(this.e0,this.e1,this.e2,this.e3,this.lat2);this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)}this.g=this.ml1+this.ms1/this.ns;this.ml0=Nr(this.e0,this.e1,this.e2,this.e3,this.lat0);this.rh=this.a*(this.g-this.ml0)}function pn(e){var t=e.x;var r=e.y;var i;if(this.sphere){i=this.a*(this.g-r)}else{var n=Nr(this.e0,this.e1,this.e2,this.e3,r);i=this.a*(this.g-n)}var o=this.ns*ee(t-this.long0);var a=this.x0+i*Math.sin(o);var s=this.y0+this.rh-i*Math.cos(o);e.x=a;e.y=s;return e}function mn(e){e.x-=this.x0;e.y=this.rh-e.y+this.y0;var t,r,i,n;if(this.ns>=0){r=Math.sqrt(e.x*e.x+e.y*e.y);t=1}else{r=-Math.sqrt(e.x*e.x+e.y*e.y);t=-1}var o=0;if(r!==0){o=Math.atan2(t*e.x,t*e.y)}if(this.sphere){n=ee(this.long0+o/this.ns);i=Wr(this.g-r/this.a);e.x=n;e.y=i;return e}else{var a=this.g-r/this.a;i=Ur(a,this.e0,this.e1,this.e2,this.e3);n=ee(this.long0+o/this.ns);e.x=n;e.y=i;return e}}var fn,vn={init:dn,forward:pn,inverse:mn,names:["Equidistant_Conic","eqdc"]};function gn(){this.R=this.a}function yn(e){var t=e.x;var r=e.y;var i=ee(t-this.long0);var n,o;if(Math.abs(r)<=R){n=this.x0+this.R*i;o=this.y0}var a=fi(2*Math.abs(r/Math.PI));if(Math.abs(i)<=R||Math.abs(Math.abs(r)-O)<=R){n=this.x0;if(r>=0){o=this.y0+Math.PI*this.R*Math.tan(.5*a)}else{o=this.y0+Math.PI*this.R*-Math.tan(.5*a)}}var s=.5*Math.abs(Math.PI/i-i/Math.PI);var c=s*s;var l=Math.sin(a);var u=Math.cos(a);var h=u/(l+u-1);var d=h*h;var p=h*(2/l-1);var m=p*p;var f=Math.PI*this.R*(s*(h-m)+Math.sqrt(c*(h-m)*(h-m)-(m+c)*(d-m)))/(m+c);if(i<0){f=-f}n=this.x0+f;var v=c+h;f=Math.PI*this.R*(p*v-s*Math.sqrt((m+c)*(c+1)-v*v))/(m+c);if(r>=0){o=this.y0+f}else{o=this.y0-f}e.x=n;e.y=o;return e}function bn(e){var t,r;var i,n,o,a,s,c;var l;var u;var h;var d;var p;e.x-=this.x0;e.y-=this.y0;h=Math.PI*this.R;i=e.x/h;n=e.y/h;o=i*i+n*n;a=-Math.abs(n)*(1+o);s=a-2*n*n+i*i;c=-2*a+1+2*n*n+o*o;p=n*n/c+(2*s*s*s/c/c/c-9*a*s/c/c)/27;l=(a-s*s/3/c)/c;u=2*Math.sqrt(-l/3);h=3*p/l/u;if(Math.abs(h)>1){if(h>=0){h=1}else{h=-1}}d=Math.acos(h)/3;if(e.y>=0){r=(-u*Math.cos(d+Math.PI/3)-s/3/c)*Math.PI}else{r=-(-u*Math.cos(d+Math.PI/3)-s/3/c)*Math.PI}if(Math.abs(i)<R){t=this.long0}else{t=ee(this.long0+Math.PI*(o-1+Math.sqrt(1+2*(i*i-n*n)+o*o))/2/i)}e.x=t;e.y=r;return e}var wn,_n={init:gn,forward:yn,inverse:bn,names:["Van_der_Grinten_I","VanDerGrinten","vandg"]};function Cn(){this.sin_p12=Math.sin(this.lat0);this.cos_p12=Math.cos(this.lat0)}function Mn(e){var t=e.x;var r=e.y;var i=Math.sin(e.y);var n=Math.cos(e.y);var o=ee(t-this.long0);var a,s,c,l,u,h,d,p,m,f,v,g,y,b,w,_,C,M,x,P,S,E,T;if(this.sphere){if(Math.abs(this.sin_p12-1)<=R){e.x=this.x0+this.a*(O-r)*Math.sin(o);e.y=this.y0-this.a*(O-r)*Math.cos(o);return e}else if(Math.abs(this.sin_p12+1)<=R){e.x=this.x0+this.a*(O+r)*Math.sin(o);e.y=this.y0+this.a*(O+r)*Math.cos(o);return e}else{M=this.sin_p12*i+this.cos_p12*n*Math.cos(o);_=Math.acos(M);C=_/Math.sin(_);e.x=this.x0+this.a*C*n*Math.sin(o);e.y=this.y0+this.a*C*(this.cos_p12*i-this.sin_p12*n*Math.cos(o));return e}}else{a=Gr(this.es);s=zr(this.es);c=Br(this.es);l=Vr(this.es);if(Math.abs(this.sin_p12-1)<=R){u=this.a*Nr(a,s,c,l,O);h=this.a*Nr(a,s,c,l,r);e.x=this.x0+(u-h)*Math.sin(o);e.y=this.y0-(u-h)*Math.cos(o);return e}else if(Math.abs(this.sin_p12+1)<=R){u=this.a*Nr(a,s,c,l,O);h=this.a*Nr(a,s,c,l,r);e.x=this.x0+(u+h)*Math.sin(o);e.y=this.y0+(u+h)*Math.cos(o);return e}else{d=i/n;p=qr(this.a,this.e,this.sin_p12);m=qr(this.a,this.e,i);f=Math.atan((1-this.es)*d+this.es*p*this.sin_p12/(m*n));v=Math.atan2(Math.sin(o),this.cos_p12*Math.tan(f)-this.sin_p12*Math.cos(o));if(v===0){x=Math.asin(this.cos_p12*Math.sin(f)-this.sin_p12*Math.cos(f))}else if(Math.abs(Math.abs(v)-Math.PI)<=R){x=-Math.asin(this.cos_p12*Math.sin(f)-this.sin_p12*Math.cos(f))}else{x=Math.asin(Math.sin(o)*Math.cos(f)/Math.sin(v))}g=this.e*this.sin_p12/Math.sqrt(1-this.es);y=this.e*this.cos_p12*Math.cos(v)/Math.sqrt(1-this.es);b=g*y;w=y*y;P=x*x;S=P*x;E=S*x;T=E*x;_=p*x*(1-P*w*(1-w)/6+S/8*b*(1-2*w)+E/120*(w*(4-7*w)-3*g*g*(1-7*w))-T/48*b);e.x=this.x0+_*Math.sin(v);e.y=this.y0+_*Math.cos(v);return e}}}function xn(e){e.x-=this.x0;e.y-=this.y0;var t,r,i,n,o,a,s,c,l,u,h,d,p,m,f,v,g,y,b,w,_,C,M;if(this.sphere){t=Math.sqrt(e.x*e.x+e.y*e.y);if(t>2*O*this.a){return}r=t/this.a;i=Math.sin(r);n=Math.cos(r);o=this.long0;if(Math.abs(t)<=R){a=this.lat0}else{a=fi(n*this.sin_p12+e.y*i*this.cos_p12/t);s=Math.abs(this.lat0)-O;if(Math.abs(s)<=R){if(this.lat0>=0){o=ee(this.long0+Math.atan2(e.x,-e.y))}else{o=ee(this.long0-Math.atan2(-e.x,e.y))}}else{o=ee(this.long0+Math.atan2(e.x*i,t*this.cos_p12*n-e.y*this.sin_p12*i))}}e.x=o;e.y=a;return e}else{c=Gr(this.es);l=zr(this.es);u=Br(this.es);h=Vr(this.es);if(Math.abs(this.sin_p12-1)<=R){d=this.a*Nr(c,l,u,h,O);t=Math.sqrt(e.x*e.x+e.y*e.y);p=d-t;a=Ur(p/this.a,c,l,u,h);o=ee(this.long0+Math.atan2(e.x,-1*e.y));e.x=o;e.y=a;return e}else if(Math.abs(this.sin_p12+1)<=R){d=this.a*Nr(c,l,u,h,O);t=Math.sqrt(e.x*e.x+e.y*e.y);p=t-d;a=Ur(p/this.a,c,l,u,h);o=ee(this.long0+Math.atan2(e.x,e.y));e.x=o;e.y=a;return e}else{t=Math.sqrt(e.x*e.x+e.y*e.y);v=Math.atan2(e.x,e.y);m=qr(this.a,this.e,this.sin_p12);g=Math.cos(v);y=this.e*this.cos_p12*g;b=-y*y/(1-this.es);w=3*this.es*(1-b)*this.sin_p12*this.cos_p12*g/(1-this.es);_=t/m;C=_-b*(1+b)*Math.pow(_,3)/6-w*(1+3*b)*Math.pow(_,4)/24;M=1-b*C*C/2-_*C*C*C/6;f=Math.asin(this.sin_p12*Math.cos(C)+this.cos_p12*Math.sin(C)*g);o=ee(this.long0+Math.asin(Math.sin(v)*Math.sin(C)/Math.cos(f)));a=Math.atan((1-this.es*M*this.sin_p12/Math.sin(f))*Math.tan(f)/(1-this.es));e.x=o;e.y=a;return e}}}var Pn,Sn={init:Cn,forward:Mn,inverse:xn,names:["Azimuthal_Equidistant","aeqd"]};function En(){this.sin_p14=Math.sin(this.lat0);this.cos_p14=Math.cos(this.lat0)}function Tn(e){var t,r;var i;var n;var o;var a,s,c;var l=e.x;var u=e.y;i=ee(l-this.long0);t=Math.sin(u);r=Math.cos(u);n=Math.cos(i);a=this.sin_p14*t+this.cos_p14*r*n;o=1;if(a>0||Math.abs(a)<=R){s=this.a*o*r*Math.sin(i);c=this.y0+this.a*o*(this.cos_p14*t-this.sin_p14*r*n)}e.x=s;e.y=c;return e}function On(e){var t;var r;var i,n;var o;var a,s;e.x-=this.x0;e.y-=this.y0;t=Math.sqrt(e.x*e.x+e.y*e.y);r=fi(t/this.a);i=Math.sin(r);n=Math.cos(r);a=this.long0;if(Math.abs(t)<=R){s=this.lat0;e.x=a;e.y=s;return e}s=fi(n*this.sin_p14+e.y*i*this.cos_p14/t);o=Math.abs(this.lat0)-O;if(Math.abs(o)<=R){if(this.lat0>=0){a=ee(this.long0+Math.atan2(e.x,-e.y))}else{a=ee(this.long0-Math.atan2(-e.x,e.y))}e.x=a;e.y=s;return e}a=ee(this.long0+Math.atan2(e.x*i,t*this.cos_p14*n-e.y*this.sin_p14*i));e.x=a;e.y=s;return e}var kn,Rn={init:En,forward:Tn,inverse:On,names:["ortho"]},Fn={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},Ln={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function In(){this.x0=this.x0||0;this.y0=this.y0||0;this.lat0=this.lat0||0;this.long0=this.long0||0;this.lat_ts=this.lat_ts||0;this.title=this.title||"Quadrilateralized Spherical Cube";if(this.lat0>=O-v/2){this.face=Fn.TOP}else if(this.lat0<=-(O-v/2)){this.face=Fn.BOTTOM}else if(Math.abs(this.long0)<=v){this.face=Fn.FRONT}else if(Math.abs(this.long0)<=O+v){this.face=this.long0>0?Fn.RIGHT:Fn.LEFT}else{this.face=Fn.BACK}if(this.es!==0){this.one_minus_f=1-(this.a-this.b)/this.a;this.one_minus_f_squared=this.one_minus_f*this.one_minus_f}}function jn(e){var t={x:0,y:0};var r,i;var n,o;var a,s;var c={value:0};e.x-=this.long0;if(this.es!==0){r=Math.atan(this.one_minus_f_squared*Math.tan(e.y))}else{r=e.y}i=e.x;if(this.face===Fn.TOP){o=O-r;if(i>=v&&i<=O+v){c.value=Ln.AREA_0;n=i-O}else if(i>O+v||i<=-(O+v)){c.value=Ln.AREA_1;n=i>0?i-y:i+y}else if(i>-(O+v)&&i<=-v){c.value=Ln.AREA_2;n=i+O}else{c.value=Ln.AREA_3;n=i}}else if(this.face===Fn.BOTTOM){o=O+r;if(i>=v&&i<=O+v){c.value=Ln.AREA_0;n=-i+O}else if(i<v&&i>=-v){c.value=Ln.AREA_1;n=-i}else if(i<-v&&i>=-(O+v)){c.value=Ln.AREA_2;n=-i-O}else{c.value=Ln.AREA_3;n=i>0?-i+y:-i-y}}else{var l,u,h;var d,p;var m,f;if(this.face===Fn.RIGHT){i=Nn(i,+O)}else if(this.face===Fn.BACK){i=Nn(i,+y)}else if(this.face===Fn.LEFT){i=Nn(i,-O)}d=Math.sin(r);p=Math.cos(r);m=Math.sin(i);f=Math.cos(i);l=p*f;u=p*m;h=d;if(this.face===Fn.FRONT){o=Math.acos(l);n=Dn(o,h,u,c)}else if(this.face===Fn.RIGHT){o=Math.acos(u);n=Dn(o,h,-l,c)}else if(this.face===Fn.BACK){o=Math.acos(-l);n=Dn(o,h,-u,c)}else if(this.face===Fn.LEFT){o=Math.acos(-u);n=Dn(o,h,l,c)}else{o=n=0;c.value=Ln.AREA_0}}s=Math.atan(12/y*(n+Math.acos(Math.sin(n)*Math.cos(v))-O));a=Math.sqrt((1-Math.cos(o))/(Math.cos(s)*Math.cos(s))/(1-Math.cos(Math.atan(1/Math.cos(n)))));if(c.value===Ln.AREA_1){s+=O}else if(c.value===Ln.AREA_2){s+=y}else if(c.value===Ln.AREA_3){s+=1.5*y}t.x=a*Math.cos(s);t.y=a*Math.sin(s);t.x=t.x*this.a+this.x0;t.y=t.y*this.a+this.y0;e.x=t.x;e.y=t.y;return e}function An(e){var t={lam:0,phi:0};var r,i,n,o;var a,s,c,l;var u;var h={value:0};e.x=(e.x-this.x0)/this.a;e.y=(e.y-this.y0)/this.a;i=Math.atan(Math.sqrt(e.x*e.x+e.y*e.y));r=Math.atan2(e.y,e.x);if(e.x>=0&&e.x>=Math.abs(e.y)){h.value=Ln.AREA_0}else if(e.y>=0&&e.y>=Math.abs(e.x)){h.value=Ln.AREA_1;r-=O}else if(e.x<0&&-e.x>=Math.abs(e.y)){h.value=Ln.AREA_2;r=r<0?r+y:r-y}else{h.value=Ln.AREA_3;r+=O}u=y/12*Math.tan(r);a=Math.sin(u)/(Math.cos(u)-1/Math.sqrt(2));s=Math.atan(a);n=Math.cos(r);o=Math.tan(i);c=1-n*n*o*o*(1-Math.cos(Math.atan(1/Math.cos(s))));if(c<-1){c=-1}else if(c>+1){c=+1}if(this.face===Fn.TOP){l=Math.acos(c);t.phi=O-l;if(h.value===Ln.AREA_0){t.lam=s+O}else if(h.value===Ln.AREA_1){t.lam=s<0?s+y:s-y}else if(h.value===Ln.AREA_2){t.lam=s-O}else{t.lam=s}}else if(this.face===Fn.BOTTOM){l=Math.acos(c);t.phi=l-O;if(h.value===Ln.AREA_0){t.lam=-s+O}else if(h.value===Ln.AREA_1){t.lam=-s}else if(h.value===Ln.AREA_2){t.lam=-s-O}else{t.lam=s<0?-s-y:-s+y}}else{var d,p,m;d=c;u=d*d;if(u>=1){m=0}else{m=Math.sqrt(1-u)*Math.sin(s)}u+=m*m;if(u>=1){p=0}else{p=Math.sqrt(1-u)}if(h.value===Ln.AREA_1){u=p;p=-m;m=u}else if(h.value===Ln.AREA_2){p=-p;m=-m}else if(h.value===Ln.AREA_3){u=p;p=m;m=-u}if(this.face===Fn.RIGHT){u=d;d=-p;p=u}else if(this.face===Fn.BACK){d=-d;p=-p}else if(this.face===Fn.LEFT){u=d;d=p;p=-u}t.phi=Math.acos(-m)-O;t.lam=Math.atan2(p,d);if(this.face===Fn.RIGHT){t.lam=Nn(t.lam,-O)}else if(this.face===Fn.BACK){t.lam=Nn(t.lam,-y)}else if(this.face===Fn.LEFT){t.lam=Nn(t.lam,+O)}}if(this.es!==0){var f;var v,g;f=t.phi<0?1:0;v=Math.tan(t.phi);g=this.b/Math.sqrt(v*v+this.one_minus_f_squared);t.phi=Math.atan(Math.sqrt(this.a*this.a-g*g)/(this.one_minus_f*g));if(f){t.phi=-t.phi}}t.lam+=this.long0;e.x=t.lam;e.y=t.phi;return e}function Dn(e,t,r,i){var n;if(e<R){i.value=Ln.AREA_0;n=0}else{n=Math.atan2(t,r);if(Math.abs(n)<=v){i.value=Ln.AREA_0}else if(n>v&&n<=O+v){i.value=Ln.AREA_1;n-=O}else if(n>O+v||n<=-(O+v)){i.value=Ln.AREA_2;n=n>=0?n-y:n+y}else{i.value=Ln.AREA_3;n+=O}}return n}function Nn(e,t){var r=e+t;if(r<-y){r+=i}else if(r>+y){r-=i}return r}var Gn,zn={init:In,forward:jn,inverse:An,names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]},Bn=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],Vn=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],qn=.8487,Wn=1.3523,Un=f/5,Hn=1/Un,$n=18,Zn=function(e,t){return e[0]+t*(e[1]+t*(e[2]+t*e[3]))},Kn=function(e,t){return e[1]+t*(2*e[2]+t*3*e[3])};function Xn(e,t,r,i){var n=t;for(;i;--i){var o=e(n);n-=o;if(Math.abs(o)<r){break}}return n}function Jn(){this.x0=this.x0||0;this.y0=this.y0||0;this.long0=this.long0||0;this.es=0;this.title=this.title||"Robinson"}function Yn(e){var t=ee(e.x-this.long0);var r=Math.abs(e.y);var i=Math.floor(r*Un);if(i<0){i=0}else if(i>=$n){i=$n-1}r=f*(r-Hn*i);var n={x:Zn(Bn[i],r)*t,y:Zn(Vn[i],r)};if(e.y<0){n.y=-n.y}n.x=n.x*this.a*qn+this.x0;n.y=n.y*this.a*Wn+this.y0;return n}function Qn(e){var t={x:(e.x-this.x0)/(this.a*qn),y:Math.abs(e.y-this.y0)/(this.a*Wn)};if(t.y>=1){t.x/=Bn[$n][0];t.y=e.y<0?-O:O}else{var r=Math.floor(t.y*$n);if(r<0){r=0}else if(r>=$n){r=$n-1}for(;;){if(Vn[r][0]>t.y){--r}else if(Vn[r+1][0]<=t.y){++r}else{break}}var i=Vn[r];var n=5*(t.y-i[0])/(Vn[r+1][0]-i[0]);n=Xn(function(e){return(Zn(i,e)-t.y)/Kn(i,e)},n,R,100);t.x/=Zn(Bn[r],n);t.y=(5*r+n)*d;if(e.y<0){t.y=-t.y}}t.x=ee(t.x+this.long0);return t}var eo,to={init:Jn,forward:Yn,inverse:Qn,names:["Robinson","robin"]};function ro(){this.name="geocent"}function io(e){var t=Ee(e,this.es,this.a);return t}function no(e){var t=Te(e,this.es,this.a,this.b);return t}var oo,ao={init:ro,forward:io,inverse:no,names:["Geocentric","geocentric","geocent","Geocent"]},so=function(e){e.Proj.projections.add(jt),e.Proj.projections.add(Zt),e.Proj.projections.add(Qt),e.Proj.projections.add(hr),e.Proj.projections.add(gr),e.Proj.projections.add(Cr),e.Proj.projections.add(Er),e.Proj.projections.add(Fr),e.Proj.projections.add(Dr),e.Proj.projections.add(Xr),e.Proj.projections.add(mi),e.Proj.projections.add(_i),e.Proj.projections.add(Si),e.Proj.projections.add(Fi),e.Proj.projections.add(Di),e.Proj.projections.add(qi),e.Proj.projections.add(Zi),e.Proj.projections.add(Qi),e.Proj.projections.add(an),e.Proj.projections.add(hn),e.Proj.projections.add(vn),e.Proj.projections.add(_n),e.Proj.projections.add(Sn),e.Proj.projections.add(Rn),e.Proj.projections.add(zn),e.Proj.projections.add(to),e.Proj.projections.add(ao)};return Ve.defaultDatum="WGS84",Ve.Proj=Pe,Ve.WGS84=new Ve.Proj("WGS84"),Ve.Point=mt,Ve.toPoint=Ie,Ve.defs=B,Ve.transform=Ne,Ve.mgrs=Je,Ve.version="2.6.0",function(e){e.Proj.projections.add(jt),e.Proj.projections.add(Zt),e.Proj.projections.add(Qt),e.Proj.projections.add(hr),e.Proj.projections.add(gr),e.Proj.projections.add(Cr),e.Proj.projections.add(Er),e.Proj.projections.add(Fr),e.Proj.projections.add(Dr),e.Proj.projections.add(Xr),e.Proj.projections.add(mi),e.Proj.projections.add(_i),e.Proj.projections.add(Si),e.Proj.projections.add(Fi),e.Proj.projections.add(Di),e.Proj.projections.add(qi),e.Proj.projections.add(Zi),e.Proj.projections.add(Qi),e.Proj.projections.add(an),e.Proj.projections.add(hn),e.Proj.projections.add(vn),e.Proj.projections.add(_n),e.Proj.projections.add(Sn),e.Proj.projections.add(Rn),e.Proj.projections.add(zn),e.Proj.projections.add(to),e.Proj.projections.add(ao)}(Ve),Ve}()});function vM(e){this.gridFileUrl=e,this.data=void 0,this.minimumHeight=-106.99,this.maximumHeight=85.39}function gM(n){var e,t=Cesium,r=t.defined,i=t.when;return r(n.data)||(n.data=(e=n.gridFileUrl,Cesium.Resource.createIfNeeded(e).fetchArrayBuffer())),i(n.data,function(e){if(!(n.data instanceof Int16Array)){for(var t=new Uint8Array(e),r=0;r<t.length;r+=2){var i=t[r];t[r]=t[r+1],t[r+1]=i}n.data=new Int16Array(e)}return n.data})}function yM(e,t,r){var i=Cesium.Math,n=720*(i.PI_OVER_TWO-r)/Math.PI;n<0?n=0:720<n&&(n=720);var o=1440*(t=i.zeroToTwoPi(t))/i.TWO_PI;o<0?o=0:1440<o&&(o=1440);var a=0|o,s=0|n,c=o-a,l=n-s,u=1-c,h=1-l;return(bM(e,s,a)*u*h+bM(e,s,1+a)*c*h+bM(e,1+s,a)*u*l+bM(e,1+s,1+a)*c*l)/100}function bM(e,t,r){return 720<t?t=720:t<0&&(t=0),1439<r?r-=1440:r<0&&(r+=1440),e[1440*t+r]}vM.isSupported=function(){return"undefined"!=typeof Int16Array&&"undefined"!=typeof Uint8Array},vM.prototype.getHeight=function(t,r){return gM(this).then(function(e){return yM(e,t,r)})},vM.prototype.getHeights=function(i){return gM(this).then(function(e){for(var t=0;t<i.length;++t){var r=i[t];r.height=yM(e,r.longitude,r.latitude)}return i})};var wM=function(){function o(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};Oc(this,o);var t=Cesium,r=t.Cartographic,i=t.knockout,n=e.gridFileUrl;n&&(this.geoidModel=new vM(n)),this.proj4Projection="+proj=utm +ellps=GRS80 +units=m +no_defs",this.projectionUnits="m",this.proj4longlat="+proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees +no_defs",this.lastHeightSamplePosition=new r,this.accurateSamplingDebounceTime=250,this.tileRequestInFlight=void 0,this.elevation=void 0,this.utmZone=void 0,this.latitude=void 0,this.longitude=void 0,this.north=void 0,this.east=void 0,this.useProjection=!1,this.debounceSampleAccurateHeight=mM(this.sampleAccurateHeight,this.accurateSamplingDebounceTime),i.track(this,["elevation","utmZone","latitude","longitude","north","east","useProjection"])}return Rc(o,[{key:"toggleUseProjection",value:function(){this.useProjection=!this.useProjection}},{key:"updateCoordinatesFromCesium",value:function(e,t){var r,i,n,o,a,s,c,l,u,h,d,p,m,f,v,g=Cesium,y=g.Cartographic,b=g.defined,w=g.EllipsoidTerrainProvider,_=g.Intersections2D,C=e.scene,M=C.camera.getPickRay(t),x=C.globe,P=function(e,t,r){var i=Cesium,n=i.BoundingSphere,o=i.Cartesian3,a=i.defined,s=i.DeveloperError,c=i.IntersectionTests,l=i.SceneMode;if(!a(e))throw new s("ray is required");if(!a(t))throw new s("scene is required");var u=t.mode,h=t.mapProjection,d=_M;d.length=0;var p,m,f,v=this._surface._tilesToRender,g=v.length;for(m=0;m<g;++m){var y,b,w=(p=v[m]).data;a(w)&&(y=w.pickBoundingSphere,u!==l.SCENE3D?(n.fromRectangleWithHeights2D(p.rectangle,h,w.minimumHeight,w.maximumHeight,y),o.fromElements(y.center.z,y.center.x,y.center.y,y.center)):n.clone(w.boundingSphere3D,y),b=c.raySphere(e,y,CM),a(b)&&d.push(p))}for(d.sort(function(r){var i=Cesium.BoundingSphere;return function(e,t){return i.distanceSquaredTo(e.data.pickBoundingSphere,r)-i.distanceSquaredTo(t.data.pickBoundingSphere,r)}}(e.origin)),g=d.length,m=0;m<g;++m)if(f=EM.call(d[m].data,e,t.mode,t.mapProjection,!0,r),a(f)){f.tile=d[m];break}return f}.call(x,M,C);b(P)?(i=(r=x.ellipsoid).cartesianToCartographic(P.v0),n=r.cartesianToCartographic(P.v1),o=r.cartesianToCartographic(P.v2),a=r.cartesianToCartographic(P.intersection),x.terrainProvider instanceof w?a.height=void 0:(-1e-15<=(s=_.computeBarycentricCoordinates(a.longitude,a.latitude,i.longitude,i.latitude,n.longitude,n.latitude,o.longitude,o.latitude)).x&&-1e-15<=s.y&&-1e-15<=s.z&&(c=s.x*i.height+s.y*n.height+s.z*o.height,a.height=c),l=x.terrainProvider.getLevelMaximumGeometricError(P.tile.level),u=a.height,h=Math.max(P.tile.data.tileBoundingRegion.minimumHeight,u-l),d=Math.min(P.tile.data.tileBoundingRegion.maximumHeight,u+l),p=h-(this.geoidModel?this.geoidModel.minimumHeight:0),m=d+(this.geoidModel?this.geoidModel.maximumHeight:0),f=Math.max(Math.abs(u-p),Math.abs(m-u))),y.clone(a,this.lastHeightSamplePosition),v=x.terrainProvider,this.cartographicToFields(a,f),v instanceof w||this.debounceSampleAccurateHeight(v,a)):(this.elevation=void 0,this.utmZone=void 0,this.latitude=void 0,this.longitude=void 0,this.north=void 0,this.east=void 0)}},{key:"cartographicToFields",value:function(e,t){var r,i,n,o,a,s,c,l,u=Cesium.Math,h=u.toDegrees(e.latitude),d=u.toDegrees(e.longitude);this.useProjection&&(i=d,n=h,o=this.proj4Projection,a=this.proj4longlat,s=this.projectionUnits,c=1+Math.floor((i+180)/6),l=fM(a,o+" +zone="+c+(n<0?" +south":""),[i,n]),r={utmZone:c+(n<0?"S":"N"),north:l[1].toFixed(2)+s,east:l[0].toFixed(2)+s},this.utmZone=r.utmZone,this.north=r.north,this.east=r.east);var p,m,f,v,g,y,b,w,_,C=(p=d,m=h,f={height:e.height,errorBar:t},v={},g=Cesium,y=g.defaultValue,b=g.defined,w=y(f,{}),_=y(w.digits,5),v.latitude=Math.abs(m).toFixed(_)+"°"+(m<0?"S":"N"),v.longitude=Math.abs(p).toFixed(_)+"°"+(p<0?"W":"E"),b(w.height)?v.elevation=Math.round(w.height)+(b(w.errorBar)?"±"+Math.round(w.errorBar):"")+"m":v.elevation=void 0,v);this.latitude=C.latitude,this.longitude=C.longitude,this.elevation=C.elevation}},{key:"sampleAccurateHeight",value:function(e,r){var i=this,t=Cesium,n=t.Cartographic,o=t.sampleTerrainMostDetailed,a=t.when;if(this.tileRequestInFlight)return this.debounceSampleAccurateHeight.cancel(),void this.debounceSampleAccurateHeight(e,r);var s=n.clone(r),c=this.geoidModel?this.geoidModel.getHeight(r.longitude,r.latitude):void 0,l=o(e,[s]);this.tileRequestInFlight=a.all([c,l],function(e){var t=e[0]||0;i.tileRequestInFlight=void 0,n.equals(r,i.lastHeightSamplePosition)&&(r.height=s.height-t,i.cartographicToFields(r))},function(){i.tileRequestInFlight=void 0})}}]),o}(),_M=[],CM={start:0,stop:0};var MM={},xM={},PM={},SM={};function EM(e,t,r,i){var n=Cesium,o=n.defined,a=n.IntersectionTests,s=this.renderedMesh;if(o(s))for(var c=s.vertices,l=s.indices,u=s.encoding,h=l.length,d=0;d<h;d+=3){var p=l[d],m=l[d+1],f=l[d+2],v=TM(u,t,r,c,p,MM),g=TM(u,t,r,c,m,xM),y=TM(u,t,r,c,f,PM),b=a.rayTriangle(e,v,g,y,i,SM);if(o(b))return{intersection:b,v0:v,v1:g,v2:y}}}function TM(e,t,r,i,n,o){e.decodePosition(i,n,o);var a,s=Cesium,c=s.Cartesian3,l=s.defined,u=s.SceneMode;return l(t)&&t!==u.SCENE3D&&(a=r.ellipsoid.cartesianToCartographic(o),r.project(a,o),c.fromElements(o.z,o.x,o.y,o)),o}var OM={},kM=[],RM="",FM="vc-svg",LM=!1,IM=!1,jM={name:"svgicon",data:function(){return{loaded:!1}},props:{icon:String,name:String,width:{type:String,default:""},height:{type:String,default:""},scale:String,dir:String,fill:{type:Boolean,default:function(){return!LM}},color:String,original:{type:Boolean,default:function(){return IM}},title:String},computed:{clazz:function(){var e="".concat(FM,"-icon");return this.fill&&(e+=" ".concat(FM,"-fill")),this.dir&&(e+=" ".concat(FM,"-").concat(this.dir)),e},iconName:function(){return this.name||this.icon},iconData:function(){var e=OM[this.iconName];return e||this.loaded?e:null},colors:function(){return this.color?this.color.split(" "):[]},path:function(){var e="";return this.iconData?(e=this.iconData.data,e=this.setTitle(e),this.original&&(e=this.addOriginalColor(e)),0<this.colors.length&&(e=this.addColor(e))):kM.push({name:this.iconName,component:this}),this.getValidPathData(e)},box:function(){var e=this.width||16,t=this.width||16;return this.iconData?this.iconData.viewBox?this.iconData.viewBox:"0 0 ".concat(this.iconData.width," ").concat(this.iconData.height):"0 0 ".concat(ol(e)," ").concat(ol(t))},style:function(){var e,t=/^\d+$/,r=Number(this.scale),i=!isNaN(r)&&this.iconData?(e=Number(this.iconData.width)*r+"px",Number(this.iconData.height)*r+"px"):(e=t.test(this.width)?this.width+"px":this.width||RM,t.test(this.height)?this.height+"px":this.height||RM),n={};return e&&(n.width=e),i&&(n.height=i),n}},created:function(){OM[this.iconName]&&(this.loaded=!0)},methods:{addColor:function(e){var n=this,o=0;return e.replace(/<(path|rect|circle|polygon|line|polyline|ellipse)\s/gi,function(e){var t=n.colors[o++]||n.colors[n.colors.length-1],r=n.fill;if(t&&"_"===t)return e;t&&0===t.indexOf("r-")&&(r=!r,t=t.split("r-")[1]);var i=r?"stroke":"fill";return e+"".concat(r?"fill":"stroke",'="').concat(t,'" ').concat(i,'="none" ')})},addOriginalColor:function(e){return e.replace(/_fill="|_stroke="/gi,function(e){return e&&e.slice(1)})},getValidPathData:function(e){return this.original&&0<this.colors.length&&(e=e.replace(/<(path|rect|circle|polygon|line|polyline|ellipse)(\sfill|\sstroke)([="\w\s\.\-\+#\$\&>]+)(fill|stroke)/gi,function(e,t,r,i,n){return"<".concat(t).concat(r).concat(i,"_").concat(n)})),e},setTitle:function(e){if(this.title){var t=this.title.replace(/\</gi,"&lt;").replace(/>/gi,"&gt;").replace(/&/g,"&amp;");return"<title>".concat(t,"</title>")+e}return e},onClick:function(e){this.$emit("click",e)}},install:function(e,t){var r=1<arguments.length&&void 0!==t?t:{},i=r.tagName||"svgicon";r.classPrefix&&(FM=r.classPrefix),LM=!!r.isStroke,IM=!!r.isOriginalDefault,r.defaultWidth&&(RM=r.defaultWidth),r.defaultHeight&&r.defaultHeight,e.component(i,this)},register:function(e){function t(r){OM[r]||(OM[r]=e[r]),kM=kM.filter(function(e,t){return e.name===r&&e.component.$set(e.component,"loaded",!0),e.name!==r})}for(var r in e)t(r)},icons:OM};var AM,DM,NM,GM,zM,BM=(AM={render:function(){var e=this.$createElement;return(this._self._c||e)("svg",{class:this.clazz,style:this.style,attrs:{viewBox:this.box,version:"1.1"},domProps:{innerHTML:this._s(this.path)},on:{click:this.onClick}})},staticRenderFns:[]},GM=!(NM="data-v-fba35be0"),(zM=("function"==typeof(DM=jM)?DM.options:DM)||{}).__file="VcIconSvg.vue",zM.render||(zM.render=AM.render,zM.staticRenderFns=AM.staticRenderFns,zM._compiled=!0,GM&&(zM.functional=!0)),zM._scopeId=NM,zM);BM.register({"compass-outer":{width:162,height:162,viewBox:"0 0 162 162",data:'\n \x3c!-- Generator: Sketch 43.2 (39069) - http://www.bohemiancoding.com/sketch --\x3e\n \x3c!-- <title>compass-outer</title> --\x3e\n <desc>Created with Sketch.</desc>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill-rule="evenodd">\n <g id="compass-outer" fill-rule="nonzero">\n <path d="M80.8410544,161.682109 C36.1937731,161.682109 0,125.488336 0,80.8410544 C0,36.1937731 36.1937731,0 80.8410544,0 C125.488336,0 161.682109,36.1937731 161.682109,80.8410544 C161.682109,125.488336 125.488336,161.682109 80.8410544,161.682109 Z M81.1836011,134.620909 C110.696211,134.620909 134.620909,110.696211 134.620909,81.1836011 C134.620909,51.6709916 110.696211,27.7462941 81.1836011,27.7462941 C51.6709916,27.7462941 27.7462941,51.6709916 27.7462941,81.1836011 C27.7462941,110.696211 51.6709916,134.620909 81.1836011,134.620909 Z" id="Oval-108"></path>\n <circle id="Oval-74" fill="#FFFFFF" cx="129.493683" cy="127.952092" r="1.54159147"></circle>\n <circle id="Oval-74-Copy-3" fill="#FFFFFF" cx="129.493683" cy="35.4566038" r="1.54159147"></circle>\n <circle id="Oval-74-Copy-5" fill="#FFFFFF" cx="30.8318294" cy="127.952092" r="1.54159147"></circle>\n <circle id="Oval-74-Copy-4" fill="#FFFFFF" cx="30.8318294" cy="35.4566038" r="1.54159147"></circle>\n <polygon id="N" fill="#FFFFFF" points="84.9318072 23.1238721 84.9318072 13.1321362 82.5623385 13.1321362 82.5623385 19.2984646 77.951866 13.1321362 75.7108625 13.1321362 75.7108625 23.1238721 78.0946053 23.1238721 78.0946053 16.9718176 82.6908037 23.1238721"></polygon>\n <polygon id="Line" fill="#FFFFFF" points="143.368007 82.1093476 152.617555 82.1093476 152.617555 81.2993476 143.368007 81.2993476"></polygon>\n <polygon id="Line-Copy-8" fill="#FFFFFF" points="9.24954884 82.1093476 18.4990976 82.1093476 18.4990976 81.2993476 9.24954884 81.2993476"></polygon>\n <polygon id="Line" fill="#FFFFFF" points="81.2993476 143.368007 81.2993476 152.617555 82.1093476 152.617555 82.1093476 143.368007"></polygon>\n </g>\n </g>'}}),BM.register({"compass-inner":{width:17,height:17,viewBox:"0 0 17 17",data:'\n \x3c!-- Generator: Sketch 43.2 (39069) - http://www.bohemiancoding.com/sketch --\x3e\n \x3c!-- <title>compass-inner</title> --\x3e\n <desc>Created with Sketch.</desc>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill-rule="evenodd">\n <g id="compass-inner" fill-rule="nonzero">\n <path d="M8.5,16.5 C4.081722,16.5 0.5,12.918278 0.5,8.5 C0.5,4.081722 4.081722,0.5 8.5,0.5 C12.918278,0.5 16.5,4.081722 16.5,8.5 C16.5,12.918278 12.918278,16.5 8.5,16.5 Z M8.5,15.5 C12.3659932,15.5 15.5,12.3659932 15.5,8.5 C15.5,4.63400675 12.3659932,1.5 8.5,1.5 C4.63400675,1.5 1.5,4.63400675 1.5,8.5 C1.5,12.3659932 4.63400675,15.5 8.5,15.5 Z" id="Oval-96"></path>\n <path d="M9.92599835,7.09066832 C12.7122872,9.87695712 14.3709388,12.5452228 13.4497471,13.4664145 C12.5285555,14.3876061 9.86028979,12.7289545 7.074001,9.94266568 C4.2877122,7.15637688 2.62906055,4.48811119 3.55025221,3.56691953 C4.47144386,2.64572788 7.13970955,4.30437952 9.92599835,7.09066832 Z M9.21889157,7.7977751 C6.92836458,5.50724811 4.52075769,4.01062761 4.25735899,4.27402631 C3.99396029,4.53742501 5.49058078,6.9450319 7.78110778,9.2355589 C10.0716348,11.5260859 12.4792417,13.0227064 12.7426404,12.7593077 C13.0060391,12.495909 11.5094186,10.0883021 9.21889157,7.7977751 Z" id="Oval-96-Copy-2"></path>\n <path d="M9.92599835,9.94266568 C7.13970955,12.7289545 4.47144386,14.3876061 3.55025221,13.4664145 C2.62906055,12.5452228 4.2877122,9.87695712 7.074001,7.09066832 C9.86028979,4.30437952 12.5285555,2.64572788 13.4497471,3.56691953 C14.3709388,4.48811119 12.7122872,7.15637688 9.92599835,9.94266568 Z M9.21889157,9.2355589 C11.5094186,6.9450319 13.0060391,4.53742501 12.7426404,4.27402631 C12.4792417,4.01062761 10.0716348,5.50724811 7.78110778,7.7977751 C5.49058078,10.0883021 3.99396029,12.495909 4.25735899,12.7593077 C4.52075769,13.0227064 6.92836458,11.5260859 9.21889157,9.2355589 Z" id="Oval-96-Copy-3"></path>\n <path d="M15.1464466,1.1464466 L14.3453364,1.94755684 L13.9608692,2.33202401 L14.667976,3.03913077 L15.0524431,2.65466362 L15.8535534,1.8535534 L15.1464466,1.1464466 Z M2.29760014,13.995293 L1.85311902,14.4397742 L1.004311,15.2885822 L1.71141776,15.995689 L2.56022581,15.146881 L3.00470698,14.7023998 L2.29760014,13.995293 Z" id="Line"></path>\n <circle id="Oval-432" cx="16" cy="1" r="1"></circle>\n <circle id="Oval-432-Copy" cx="1" cy="16" r="1"></circle>\n </g>\n </g>\n '}}),BM.register({"compass-rotation-marker":{width:53,height:53,viewBox:"0 0 53 53",data:'\n \x3c!-- Generator: Sketch 3.4.3 (16044) - http://www.bohemiancoding.com/sketch --\x3e\n \x3c!-- <title>compass-rotation-marker</title> --\x3e\n <desc>Created with Sketch.</desc>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="compass-rotation-marker">\n <path d="M52.4399986,26.2199993 C52.4399986,11.7390936 40.7009051,0 26.2199993,0 C11.7390936,0 0,11.7390936 0,26.2199993 C0,40.7009051 11.7390936,52.4399986 26.2199993,52.4399986 C40.7009051,52.4399986 52.4399986,40.7009051 52.4399986,26.2199993 Z" id="rotator" stroke-opacity="0.135841259" stroke="#E2A549" stroke-width="9" opacity="0.201434235"></path>\n <path d="M0,26.2199993 C0,11.7390936 11.7390936,0 26.2199993,0 L26.2199993,9 C16.7096563,9 9,16.7096563 9,26.2199993" id="Shape" opacity="0.634561567" fill="#4990E2"></path>\n </g>\n </g>'}});var VM={};var qM={},WM={};function UM(e,t,r,i,n){var o,a,s,c,l,u,h,d=Cesium,p=d.Cartesian3,m=d.defined,f=d.Math,v=n,g=Math.max(r,i);if(m(v)||(o=e.position,a=e.up,s=e.right,c=e.frustum,l=p.subtract(o,t,qM),u=p.magnitude(p.multiplyByScalar(a,p.dot(l,a),WM)),h=p.magnitude(p.multiplyByScalar(s,p.dot(l,s),WM)),v=Math.min(.2*function(e,t,r){var i=Cesium,n=i.PerspectiveFrustum,o=i.PerspectiveOffCenterFrustum;if(e instanceof n){var a=Math.tan(.5*e.fovy),s=e.near,c=e.near*a,l=e.aspectRatio*c;return Math.max(t*s/l,r*s/c)}return e instanceof o?(s=e.near,c=e.top,l=e.right,Math.max(t*s/l,r*s/c)):Math.max(t,r)}(c,u,h),1e9)),g<v){var y=-Math.pow(1e6*(v-r),1/8),b=Math.pow(1e6*(v-i),1/8);return function(e){var t=e*(b-y)+y;return-Math.pow(t,8)/1e6+v}}return function(e){return f.lerp(r,i,e)}}function HM(e,t){var r=Cesium.Math;return r.equalsEpsilon(e,r.TWO_PI,r.EPSILON11)&&(e=0),t>e+Math.PI?e+=r.TWO_PI:t<e-Math.PI&&(e-=r.TWO_PI),e}var $M={};function ZM(e,r,i,n,o,a,t){var s=Cesium,c=s.Cartesian2,l=s.Cartesian3,u=s.Math,h=e.camera,d=l.clone(h.position,$M),p=h.pitch,m=HM(h.heading,n),f=HM(h.roll,a),v=UM(h,i,d.z,i.z,t);return function(e){var t=e.time/r;h.setView({orientation:{heading:u.lerp(m,n,t),pitch:u.lerp(p,o,t),roll:u.lerp(f,a,t)}}),c.lerp(d,i,t,h.position),h.position.z=v(t)}}var KM={},XM={};function JM(e,i,t,n,r,o,a,s,c,l){var u=Cesium,h=u.Cartesian3,d=u.Cartographic,p=u.defined,m=u.Math,f=e.camera,v=e.mapProjection.ellipsoid,g=d.clone(f.positionCartographic,KM),y=f.pitch,b=HM(f.heading,n),w=HM(f.roll,o),_=v.cartesianToCartographic(t,XM);g.longitude=m.zeroToTwoPi(g.longitude),_.longitude=m.zeroToTwoPi(_.longitude);var C,M,x,P,S,E,T,O,k,R,F,L,I,j=!1;p(s)&&(C=m.zeroToTwoPi(s),M=Math.min(g.longitude,_.longitude),x=Math.max(g.longitude,_.longitude),P=M<=C&&C<=x,p(c)?(S=Math.abs(g.longitude-_.longitude),E=m.TWO_PI-S,(P?S:E)<(P?E:S)*c&&!P&&(j=!0)):P||(j=!0)),j?(F=g,L=_,I=Cesium.Math,F.longitude<L.longitude?F.longitude+=I.TWO_PI:L.longitude+=I.TWO_PI):(T=g,O=_,k=Cesium.Math,(R=T.longitude-O.longitude)<-k.PI?T.longitude+=k.TWO_PI:R>k.PI&&(O.longitude+=k.TWO_PI));var A,D,N,G,z=UM(f,t,g.height,_.height,a),B=function(n,o,a,e){var t=Cesium,r=t.defined,s=t.Math;if(r(e)&&a(.5)>e){var c=a(0),l=a(1),i=a(.5),u=i-c,h=i-l;return function(e){var t=a(e);if(e<=.5){var r=(t-c)/u;return s.lerp(n,-s.PI_OVER_TWO,r)}var i=(t-l)/h;return s.lerp(-s.PI_OVER_TWO,o,1-i)}}return function(e){return s.lerp(n,o,e)}}(y,r,z,l);return A=g.longitude,D=_.longitude,N=g.latitude,G=_.latitude,function(e){var t=e.time/i,r=h.fromRadians(m.lerp(A,D,t),m.lerp(N,G,t),z(t));f.setView({destination:r,orientation:{heading:m.lerp(b,n,t),pitch:B(t),roll:m.lerp(w,o,t)}})}}function YM(e,a,s,c,t,r,i){var n=Cesium,l=n.Cartesian2,o=n.Cartesian3,u=n.Math,h=e.camera,d=o.clone(h.position,$M),p=HM(h.heading,c),m=h.frustum.right-h.frustum.left,f=UM(h,s,m,s.z,i);return function(e){var t=e.time/a;h.setView({orientation:{heading:u.lerp(p,c,t)}}),l.lerp(d,s,t,h.position);var r=f(t),i=h.frustum,n=i.top/i.right,o=.5*(r-(i.right-i.left));i.right+=o,i.left-=o,i.top=n*i.right,i.bottom=-i.top}}var QM={},ex={};function tx(e,t){return{startObject:{},stopObject:{},duration:0,complete:e,cancel:t}}function rx(e,t){return function(){"function"==typeof t&&t(),e.enableInputs=!0}}VM.createTween=function(e,t){var r=Cesium,i=r.Cartesian2,n=r.Cartesian3,o=r.defaultValue,a=r.defined,s=r.DeveloperError,c=r.EasingFunction,l=r.Math,u=r.SceneMode,h=(t=o(t,o.EMPTY_OBJECT)).destination;if(!a(e))throw new s("scene is required.");if(!a(h))throw new s("destination is required.");var d=e.mode;if(d===u.MORPHING)return tx();var p=o(t.convert,!0),m=e.mapProjection,f=m.ellipsoid,v=t.maximumHeight,g=t.flyOverLongitude,y=t.flyOverLongitudeWeight,b=t.pitchAdjustHeight,w=t.easingFunction;p&&d!==u.SCENE3D&&(f.cartesianToCartographic(h,QM),h=m.project(QM,ex));var _=e.camera,C=t.endTransform;a(C)&&_._setTransform(C);var M=t.duration;a(M)||(M=Math.ceil(n.distance(_.position,h)/1e6)+2,M=Math.min(M,3));var x=o(t.heading,0),P=o(t.pitch,-l.PI_OVER_TWO),S=o(t.roll,0),E=e.screenSpaceCameraController;E.enableInputs=!1;var T=rx(E,t.complete),O=rx(E,t.cancel),k=_.frustum,R=e.mode===u.SCENE2D;if(R=(R=(R=(R=R&&i.equalsEpsilon(_.position,h,l.EPSILON6))&&l.equalsEpsilon(Math.max(k.right-k.left,k.top-k.bottom),h.z,l.EPSILON6))||e.mode!==u.SCENE2D&&n.equalsEpsilon(h,_.position,l.EPSILON10))&&l.equalsEpsilon(l.negativePiToPi(x),l.negativePiToPi(_.heading),l.EPSILON10)&&l.equalsEpsilon(l.negativePiToPi(P),l.negativePiToPi(_.pitch),l.EPSILON10)&&l.equalsEpsilon(l.negativePiToPi(S),l.negativePiToPi(_.roll),l.EPSILON10))return tx(T,O);var F=new Array(4);if(F[u.SCENE2D]=YM,F[u.SCENE3D]=JM,F[u.COLUMBUS_VIEW]=ZM,M<=0){return tx(function(){F[d](e,1,h,x,P,S,v,g,y,b)({time:1}),"function"==typeof T&&T()},O)}var L,I=F[d](e,M,h,x,P,S,v,g,y,b);return a(w)||(L=_.positionCartographic.height,w=(d===u.SCENE3D?f.cartesianToCartographic(h).height:h.z)<L&&11500<L?c.CUBIC_OUT:c.QUINTIC_IN_OUT),{duration:M,easingFunction:w,startObject:{time:0},stopObject:{time:M},update:I,complete:T,cancel:O}};var ix={},nx={},ox={},ax={},sx={name:"vc-compass",props:{enableCompassOuterRing:Boolean},data:function(){return{heading:0,orbitCursorAngle:0,orbitCursorOpacity:0}},components:{VcIconSvg:BM},computed:{outerCircleStyle:function(){return{transform:"rotate(-"+this.heading+"rad)",WebkitTransform:"rotate(-"+this.heading+"rad)",opacity:""}},rotationMarkerStyle:function(){return{transform:"rotate(-"+this.orbitCursorAngle+"rad)",WebkitTransform:"rotate(-"+this.orbitCursorAngle+"rad)",opacity:this.orbitCursorOpacity}}},mounted:function(){var r=this;this.$parent.createPromise.then(function(e){e.Cesium;var t=e.viewer;e.cesiumObject;r.viewer=t,r._unsubscribeFromViewerChange=r.viewer.afterViewerChanged.addEventListener(function(){return cx(r)}),cx(r)})},destroyed:function(){document.removeEventListener("mousemove",this.orbitMouseMoveFunction,!1),document.removeEventListener("mouseup",this.orbitMouseUpFunction,!1),document.removeEventListener("touchmove",this.orbitMouseMoveFunction,!1),document.removeEventListener("touchend",this.orbitMouseUpFunction,!1),this._unsubscribeFromClockTick&&this._unsubscribeFromClockTick(),this._unsubscribeFromPostRender&&this._unsubscribeFromPostRender(),this._unsubscribeFromViewerChange&&this._unsubscribeFromViewerChange()},methods:{handleMouseDown:function(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault();var t=Cesium.SceneMode;if(this.viewer.scene.mode===t.MORPHING)return!0;var r=Cesium.Cartesian2,i=e.currentTarget,n=e.currentTarget.getBoundingClientRect(),o=n.width/2,a=new r((n.right-n.left)/2,(n.bottom-n.top)/2),s="mousedown"===event.type?new r(event.clientX-n.left,event.clientY-n.top):new r(event.changedTouches[0].clientX-n.left,event.changedTouches[0].clientY-n.top),c=r.subtract(s,a,ix),l=r.magnitude(c)/o;if(l<50/145)!function(s,i,e){var t=Cesium,c=t.Cartesian2,l=t.Cartesian3,r=t.defined,u=t.getTimestamp,h=t.Math,d=t.Matrix4,n=t.Ellipsoid,o=t.Ray,a=t.SceneMode,p=t.Transforms,m=s.viewer.scene,f=m.camera,v=m.screenSpaceCameraController;if(m.mode===a.MORPHING||!v.enableInputs)return;switch(m.mode){case a.COLUMBUS_VIEW:if(v.enableLook)break;if(!v.enableTranslate||!v.enableTilt)return;break;case a.SCENE3D:if(v.enableLook)break;if(!v.enableTilt||!v.enableRotate)return;break;case Cesium.SceneMode.SCENE2D:if(!v.enableTranslate)return}document.removeEventListener("mousemove",s.orbitMouseMoveFunction,!1),document.removeEventListener("mouseup",s.orbitMouseUpFunction,!1),document.removeEventListener("touchmove",s.orbitMouseMoveFunction,!1),document.removeEventListener("touchend",s.orbitMouseUpFunction,!1),r(s.orbitTickFunction)&&s.viewer.clock.onTick.removeEventListener(s.orbitTickFunction);s.orbitMouseMoveFunction=void 0,s.orbitMouseUpFunction=void 0,s.orbitTickFunction=void 0,s.isOrbiting=!0,s.orbitLastTimestamp=u();var g=new c;g.x=m.canvas.clientWidth/2,g.y=m.canvas.clientHeight/2;var y=new o,b=f.getPickRay(g,y),w=m.globe.pick(b,m,ax);r(w)?(s.orbitFrame=p.eastNorthUpToFixedFrame(w,n.WGS84,ox),s.orbitIsLook=!1):(s.orbitFrame=p.eastNorthUpToFixedFrame(f.positionWC,n.WGS84,ox),s.orbitIsLook=!0);function _(e,t){var r=Math.atan2(-e.y,e.x);s.orbitCursorAngle=h.zeroToTwoPi(r-h.PI_OVER_TWO);var i=c.magnitude(e),n=t/2,o=Math.min(i/n,1),a=.5*o*o+.5;s.orbitCursorOpacity=a}s.orbitTickFunction=function(e){var t=u(),r=(t-s.orbitLastTimestamp)*(2.5*(s.orbitCursorOpacity-.5)/1e3),i=s.orbitCursorAngle+h.PI_OVER_TWO,n=Math.cos(i)*r,o=Math.sin(i)*r;m=s.viewer.scene,f=m.camera;var a=d.clone(f.transform,nx);f.lookAtTransform(s.orbitFrame),s.orbitIsLook?(f.look(l.UNIT_Z,-n),f.look(f.right,-o)):(f.rotateLeft(n),f.rotateUp(o)),f.lookAtTransform(a),s.orbitLastTimestamp=t},s.orbitMouseMoveFunction=function(e){var t=i.getBoundingClientRect();w=new c((t.right-t.left)/2,(t.bottom-t.top)/2);var r="mousemove"===event.type?new c(event.clientX-t.left,event.clientY-t.top):new c(event.changedTouches[0].clientX-t.left,event.changedTouches[0].clientY-t.top);_(c.subtract(r,w,ix),t.width)},s.orbitMouseUpFunction=function(e){s.isOrbiting=!1,document.removeEventListener("mousemove",s.orbitMouseMoveFunction,!1),document.removeEventListener("mouseup",s.orbitMouseUpFunction,!1),document.removeEventListener("touchmove",s.orbitMouseMoveFunction,!1),document.removeEventListener("touchend",s.orbitMouseUpFunction,!1),r(s.orbitTickFunction)&&s.viewer.clock.onTick.removeEventListener(s.orbitTickFunction),s.orbitMouseMoveFunction=void 0,s.orbitMouseUpFunction=void 0,s.orbitTickFunction=void 0},document.addEventListener("mousemove",s.orbitMouseMoveFunction,!1),document.addEventListener("mouseup",s.orbitMouseUpFunction,!1),document.addEventListener("touchmove",s.orbitMouseMoveFunction,!1),document.addEventListener("touchend",s.orbitMouseUpFunction,!1),s._unsubscribeFromClockTick=s.viewer.clock.onTick.addEventListener(s.orbitTickFunction),_(e,i.getBoundingClientRect().width)}(this,i,c);else{if(!(l<1))return!0;!function(c,l,e){if(!c.enableCompassOuterRing)return;var t=c.viewer.scene,u=t.camera,r=t.screenSpaceCameraController;if(t.mode===Cesium.SceneMode.MORPHING||t.mode===Cesium.SceneMode.SCENE2D||!r.enableInputs)return;if(!r.enableLook&&(t.mode===Cesium.SceneMode.COLUMBUS_VIEW||t.mode===Cesium.SceneMode.SCENE3D&&!r.enableRotate))return;document.removeEventListener("mousemove",c.rotateMouseMoveFunction,!1),document.removeEventListener("touchmove",c.rotateMouseMoveFunction,!1),document.removeEventListener("mouseup",c.rotateMouseUpFunction,!1),document.removeEventListener("touchend",c.rotateMouseUpFunction,!1);var i=Cesium,h=i.Cartesian2,n=i.Cartesian3,o=i.defined,d=i.Math,p=i.Matrix4,a=i.Ellipsoid,s=i.Ray,m=i.Transforms;c.rotateMouseMoveFunction=void 0,c.rotateMouseUpFunction=void 0,c.isRotating=!0,c.rotateInitialCursorAngle=Math.atan2(-e.y,e.x);var f=new h;f.x=t.canvas.clientWidth/2,f.y=t.canvas.clientHeight/2;var v=new s,g=u.getPickRay(f,v),y=t.globe.pick(g,t,ax);o(y)?(c.rotateFrame=m.eastNorthUpToFixedFrame(y,a.WGS84,ox),c.rotateIsLook=!1):(c.rotateFrame=m.eastNorthUpToFixedFrame(u.positionWC,a.WGS84,ox),c.rotateIsLook=!0);var b=p.clone(u.transform,nx);u.lookAtTransform(c.rotateFrame),c.rotateInitialCameraAngle=Math.atan2(u.position.y,u.position.x),c.rotateInitialCameraDistance=n.magnitude(new n(u.position.x,u.position.y,0)),u.lookAtTransform(b),c.rotateMouseMoveFunction=function(e){var t=l.getBoundingClientRect(),r=new h((t.right-t.left)/2,(t.bottom-t.top)/2),i="mousedown"===event.type||"mousemove"===event.type?new h(event.clientX-t.left,event.clientY-t.top):new h(event.changedTouches[0].clientX-t.left,event.changedTouches[0].clientY-t.top),n=h.subtract(i,r,ix),o=Math.atan2(-n.y,n.x)-c.rotateInitialCursorAngle,a=d.zeroToTwoPi(c.rotateInitialCameraAngle-o);u=c.viewer.scene.camera,b=p.clone(u.transform,nx),u.lookAtTransform(c.rotateFrame);var s=Math.atan2(u.position.y,u.position.x);u.rotateRight(a-s),u.lookAtTransform(b)},c.rotateMouseUpFunction=function(e){c.isRotating=!1,document.removeEventListener("mousemove",c.rotateMouseMoveFunction,!1),document.removeEventListener("touchmove",c.rotateMouseMoveFunction,!1),document.removeEventListener("mouseup",c.rotateMouseUpFunction,!1),document.removeEventListener("touchend",c.rotateMouseUpFunction,!1),c.rotateMouseMoveFunction=void 0,c.rotateMouseUpFunction=void 0},document.addEventListener("mousemove",c.rotateMouseMoveFunction,!1),document.addEventListener("touchmove",c.rotateMouseMoveFunction,!1),document.addEventListener("mouseup",c.rotateMouseUpFunction,!1),document.addEventListener("touchend",c.rotateMouseUpFunction,!1)}(this,i,c)}},handleDoubleClick:function(){var e=Cesium,t=e.Cartesian2,r=e.Cartesian3,i=e.defined,n=e.Ellipsoid,o=e.Matrix4,a=e.Ray,s=e.SceneMode,c=e.Transforms,l=this.viewer.scene,u=l.camera,h=l.screenSpaceCameraController;if(l.mode===s.MORPHING||!h.enableInputs)return!0;if(l.mode!==s.COLUMBUS_VIEW||h.enableTranslate){if(l.mode===s.SCENE3D||l.mode===s.COLUMBUS_VIEW){if(!h.enableLook)return;if(l.mode===s.SCENE3D&&!h.enableRotate)return}var d=new t;d.x=l.canvas.clientWidth/2,d.y=l.canvas.clientHeight/2;var p,m,f,v=new a,g=u.getPickRay(d,v),y=l.globe.pick(g,l,ax);i(y)?(p=c.eastNorthUpToFixedFrame(y,n.WGS84),m=r.subtract(y,u.position,new r),f=VM.createTween(l,{destination:o.multiplyByPoint(p,new r(0,0,r.magnitude(m)),new r),direction:o.multiplyByPointAsVector(p,new r(0,0,-1),new r),up:o.multiplyByPointAsVector(p,new r(0,1,0),new r),duration:1.5}),l.tweens.add(f)):this.viewer.camera.flyHome()}},resetRotater:function(){this.orbitCursorOpacity=0,this.orbitCursorAngle=0}}};function cx(e){(0,Cesium.defined)(e.viewer)?(e._unsubscribeFromPostRender&&(e._unsubscribeFromPostRender(),e._unsubscribeFromPostRender=void 0),e._unsubscribeFromPostRender=e.viewer.scene.postRender.addEventListener(function(){e.heading=e.viewer.scene.camera.heading})):(e._unsubscribeFromPostRender&&(e._unsubscribeFromPostRender(),e._unsubscribeFromPostRender=void 0),e.showCompass=!1)}var lx,ux,hx,dx,px,mx=(hx=void 0,dx=!(lx={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"vc-compass",attrs:{title:e.$vc.lang.navigation.compass.description},on:{dblclick:e.handleDoubleClick,mousedown:e.handleMouseDown,mouseup:e.resetRotater,touchend:e.resetRotater,touchstart:e.handleMouseDown}},[r("div",{staticClass:"vc-compass-outerRing",style:e.outerCircleStyle},[r("vc-icon-svg",{attrs:{name:"compass-outer"}})],1),e._v(" "),r("div",{staticClass:"vc-compass-innerRing"},[r("vc-icon-svg",{attrs:{name:"compass-inner"}})],1),e._v(" "),r("div",{staticClass:"vc-compass-rotation-marker",style:e.rotationMarkerStyle},[r("vc-icon-svg",{attrs:{name:"compass-rotation-marker"}})],1)])},staticRenderFns:[]}),(px=("function"==typeof(ux=sx)?ux.options:ux)||{}).__file="VcCompass.vue",px.render||(px.render=lx.render,px.staticRenderFns=lx.staticRenderFns,px._compiled=!0,dx&&(px.functional=!0)),px._scopeId=hx,px);BM.register({increase:{width:50,height:50,viewBox:"0 0 50 50",data:'\n \x3c!-- Generator: Sketch 3.4.3 (16044) - http://www.bohemiancoding.com/sketch --\x3e\n \x3c!-- <title>increase</title> --\x3e\n <path d="M0,25 C0,25.3514939 0.131810207,25.659051 0.373462207,25.900703 C0.615114207,26.142355 0.922671379,26.2741652 1.27416517,26.2741652 L23.7258348,26.2741652 L23.7258348,48.7258348 C23.7258348,49.0773286 23.857645,49.3848858 24.099297,49.6265378 C24.3189807,49.8462214 24.6485061,50 25,50 C25.7029877,50 26.2741652,49.4288225 26.2741652,48.7258348 L26.2741652,26.2741652 L48.7258348,26.2741652 C49.4288225,26.2741652 50,25.7029877 50,25 C50,24.2970123 49.4288225,23.7258348 48.7258348,23.7258348 L26.2741652,23.7258348 L26.2741652,1.27416517 C26.2741652,0.571177517 25.7029877,0 25,0 C24.2970123,0 23.7258348,0.571177517 23.7258348,1.27416517 L23.7258348,23.7258348 L1.27416517,23.7258348 C0.571177517,23.7258348 0,24.2970123 0,25 L0,25 L0,25 L0,25 Z" id="Shape"></path>'}}),BM.register({decrease:{width:50,height:6,viewBox:"0 0 50 6",data:'\n \x3c!-- Generator: Sketch 3.4.3 (16044) - http://www.bohemiancoding.com/sketch --\x3e\n \x3c!-- <title>decrease</title> --\x3e\n <path d="M46.6183575,0.657894737 L3.30112724,0.657894737 C1.44927539,0.657894737 0,1.66880618 0,2.96052632 C0,4.25224645 1.44927539,5.26315789 3.30112724,5.26315789 L46.6988728,5.26315789 C48.5507246,5.26315789 50,4.25224645 50,2.96052632 C49.9194847,1.66880618 48.4702093,0.657894737 46.6183575,0.657894737 L46.6183575,0.657894737 L46.6183575,0.657894737 Z" id="Shape"></path>'}}),BM.register({refresh:{width:50,height:50,viewBox:"0 0 50 50",data:'\n \x3c!-- Generator: Sketch 3.4.3 (16044) - http://www.bohemiancoding.com/sketch --\x3e\n \x3c!-- <title>refresh</title> --\x3e\n <path d="M48.2758621,0 C47.2844828,0 46.5086207,0.775193846 46.5086207,1.76571923 L46.5086207,12.2308355 C42.0689655,4.78036173 34.0086207,0 25,0 C11.2068965,0 0,11.1972438 0,25.0215332 C0,38.8458226 11.2068965,50 25,50 C38.7931035,50 50,38.8027562 50,25.0215332 C50,24.0310078 49.2241379,23.2558139 48.2327587,23.2558139 C47.2413793,23.2558139 46.4655172,24.0310078 46.4655172,25.0215332 C46.4655172,36.8647717 36.8103448,46.5116279 24.9568965,46.5116279 C13.1034483,46.5116279 3.49137933,36.8217054 3.49137933,24.9784668 C3.49137933,13.1352283 13.1465517,3.48837212 25,3.48837212 C33.4913793,3.48837212 41.0775862,8.44099913 44.5258621,16.0206718 L32.1551724,16.0206718 C31.1637931,16.0206718 30.3879311,16.7958657 30.3879311,17.7863911 C30.3879311,18.7769164 31.1637931,19.5521103 32.1551724,19.5521103 L48.2327587,19.5521103 C49.2241379,19.5521103 50,18.7769164 50,17.7863911 L50,1.72265288 C50,0.775193846 49.2241379,0 48.2758621,0 L48.2758621,0 L48.2758621,0 Z" id="Shape"></path>'}});var fx={name:"vc-zoomControl",components:{VcIconSvg:BM},props:{defaultResetView:Object,zoomAmount:Number,overrideCamera:Boolean},mounted:function(){var o=this;this.$parent.createPromise.then(function(e){var t=e.Cesium,r=e.viewer;e.cesiumObject;if(o.viewer=r,o.overrideCamera){var i=o.defaultResetView;if(i&&i.lng)r.camera.setView({destination:t.Cartesian3.fromDegrees(i.lng,i.lat,i.height),orientation:{heading:t.Math.toRadians(i.heading||360),pitch:t.Math.toRadians(i.pitch||-90),roll:t.Math.toRadians(i.roll||0)}});else if(i&&i.west)try{var n=t.Rectangle.fromDegrees(i.west,i.south,i.east,i.north);t.Rectangle.validate(n),r.camera.setView({destination:n,orientation:{heading:t.Math.toRadians(5.729578)}})}catch(e){console.error("[VueCesium] ERROR: options.defaultResetView Cesium rectangle is invalid!")}}})},methods:{zoomIn:function(){this.zoom(1/this.zoomAmount)},zoomOut:function(){this.zoom(this.zoomAmount)},zoom:function(e){var t=Cesium,r=t.Cartesian3,i=t.defined,n=t.IntersectionTests,o=t.Ray,a=t.SceneMode;if(i(this.viewer)){var s=this.viewer.scene,c=s.screenSpaceCameraController;if(!c.enableInputs||!c.enableZoom)return;var l,u,h,d=s.camera;switch(s.mode){case a.MORPHING:break;case a.SCENE2D:d.zoomIn(d.positionCartographic.height*(1-e));break;default:u=i(this.viewer.trackedEntity)?new Cesium.Cartesian3:this.getCameraFocus(this.viewer,!1),h=Cesium.defined(u)?{direction:d.direction,up:d.up}:(l=new o(d.worldToCameraCoordinatesPoint(s.globe.ellipsoid.cartographicToCartesian(d.positionCartographic)),d.directionWC),u=n.grazingAltitudeLocation(l,s.globe.ellipsoid),{heading:d.heading,pitch:d.pitch,roll:d.roll});var p=new r,m=r.subtract(d.position,u,p),f=r.multiplyByScalar(m,e,m),v=r.add(u,f,u);Cesium.defined(this.viewer.trackedEntity)||s.mode===a.COLUMBUS_VIEW?d.position=v:d.flyTo({destination:v,orientation:h,duration:.5,convert:!1})}}},zoomReset:function(){var e=this.viewer.scene;if(e.screenSpaceCameraController.enableInputs){var t=Cesium,r=t.Cartesian3,i=t.Math,n=t.Rectangle,o=e.camera;if(Cesium.defined(this.viewer.trackedEntity)){var a=this.viewer.trackedEntity;this.viewer.trackedEntity=void 0,this.viewer.trackedEntity=a}else{var s=this.defaultResetView;if(s&&s.lng)o.flyTo({destination:r.fromDegrees(s.lng,s.lat,s.height),orientation:{heading:Cesium.Math.toRadians(s.heading||360),pitch:Cesium.Math.toRadians(s.pitch||-90),roll:Cesium.Math.toRadians(s.roll||0)}});else if(s&&s.west)try{var c=n.fromDegrees(s.west,s.south,s.east,s.north);n.validate(c),o.flyTo({destination:c,orientation:{heading:i.toRadians(5.729578)}})}catch(e){console.error("[VueCesium] ERROR: options.defaultResetView Cesium rectangle is invalid!")}else o.flyTo({destination:r.fromDegrees(105,29.999999999999993,19059568.497290563)})}}},getCameraFocus:function(e){var t=Cesium,r=t.defined,i=t.Ellipsoid,n=t.IntersectionTests,o=t.Ray,a=new o(e.camera.positionWC,e.camera.directionWC),s=n.rayEllipsoid(a,i.WGS84);return r(s)?o.getPoint(a,s.start):n.grazingAltitudeLocation(a,i.WGS84)}}};var vx,gx,yx,bx,wx,_x=(yx=void 0,bx=!(vx={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"vc-zoom-control"},[r("ul",{staticClass:"vc-list"},[r("li",[r("button",{staticClass:"vc-increase",attrs:{title:e.$vc.lang.navigation.zoomCotrol.zoomIn,type:"button"},on:{click:e.zoomIn}},[r("vc-icon-svg",{attrs:{name:"increase"}})],1)]),e._v(" "),r("li",[r("button",{staticClass:"vc-refresh",attrs:{title:e.$vc.lang.navigation.zoomCotrol.zoomReset,type:"button"},on:{click:e.zoomReset}},[r("vc-icon-svg",{attrs:{name:"refresh"}})],1)]),e._v(" "),r("li",[r("button",{staticClass:"vc-decrease",attrs:{title:e.$vc.lang.navigation.zoomCotrol.zoomOut,type:"button"},on:{click:e.zoomOut}},[r("vc-icon-svg",{attrs:{name:"decrease"}})],1)])])])},staticRenderFns:[]}),(wx=("function"==typeof(gx=fx)?gx.options:gx)||{}).__file="VcZoomControl.vue",wx.render||(wx.render=vx.render,wx.staticRenderFns=vx.staticRenderFns,wx._compiled=!0,bx&&(wx.functional=!0)),wx._scopeId=yx,wx),Cx={name:"vc-legend-distance",data:function(){return{barWidth:0,distance:0,distanceLabel:void 0}},computed:{barStyle:function(){return{width:this.barWidth+"px",left:5+(125-this.barWidth)/2+"px",height:"2px"}}},mounted:function(){var i=this;this.$parent.createPromise.then(function(e){var t=e.Cesium,r=e.viewer;i.viewer=r,i.viewerSubscriptions=[],i.removeUpdateSubscription=void 0,i._lastLegendUpdate=void 0,i.viewerSubscriptions.push(i.viewer.beforeViewerChanged.addEventListener(function(){t.defined(i.removeUpdateSubscription)&&(i.removeUpdateSubscription(),i.removeUpdateSubscription=void 0)})),i.addUpdateSubscription(),i.viewerSubscriptions.push(i.viewer.afterViewerChanged.addEventListener(function(){i.addUpdateSubscription()}))})},methods:{addUpdateSubscription:function(){var e,t=this;(0,Cesium.defined)(this.viewer)&&(e=this.viewer.scene,this.removeUpdateSubscription=e.postRender.addEventListener(function(){t.updateDistanceLegendCesium(e)}))},updateDistanceLegendCesium:function(e){var t=Cesium,r=t.Cartesian2,i=t.defined,n=(0,t.getTimestamp)();if(!(n<this._lastLegendUpdate+250)){this._lastLegendUpdate=n;var o=new Cesium.EllipsoidGeodesic,a=e.canvas.clientWidth,s=e.canvas.clientHeight,c=e.camera.getPickRay(new r(a/2|0,s-1)),l=e.camera.getPickRay(new r(1+a/2|0,s-1)),u=e.globe,h=u.pick(c,e),d=u.pick(l,e);if(!i(h)||!i(d))return this.barWidth=void 0,void(this.distanceLabel=void 0);var p=u.ellipsoid.cartesianToCartographic(h),m=u.ellipsoid.cartesianToCartographic(d);o.setEndPoints(p,m);for(var f,v,g=o.surfaceDistance,y=Mx.length-1;!i(f)&&0<=y;--y)Mx[y]/g<100&&(f=Mx[y],this.distance!==f&&(this.distance=f,this.$emit("legendChanged",f)));i(f)?(v=1e3<=f?(f/1e3).toString()+" km":f.toString()+" m",this.barWidth=f/g|0,this.distanceLabel=v):(this.barWidth=void 0,this.distanceLabel=void 0)}}}},Mx=[1,2,3,5,10,20,30,50,100,200,300,500,1e3,2e3,3e3,5e3,1e4,2e4,3e4,5e4,1e5,2e5,3e5,5e5,1e6,2e6,3e6,5e6,1e7,2e7,3e7,5e7];var xx,Px,Sx,Ex,Tx,Ox=(Sx=void 0,Ex=!(xx={render:function(){var e=this.$createElement,t=this._self._c||e;return this.distanceLabel?t("div",{staticClass:"vc-legend vc-legend-distance"},[t("label",[this._v(this._s(this.distanceLabel))]),this._v(" "),t("div",{staticClass:"vc-bar",style:this.barStyle})]):this._e()},staticRenderFns:[]}),(Tx=("function"==typeof(Px=Cx)?Px.options:Px)||{}).__file="VcDistanceLegend.vue",Tx.render||(Tx.render=xx.render,Tx.staticRenderFns=xx.staticRenderFns,Tx._compiled=!0,Ex&&(Tx.functional=!0)),Tx._scopeId=Sx,Tx),kx={name:"vc-bar-location",data:function(){return{cameraHeight:0}},props:{showUtmZone:{type:Boolean,default:!0},mouseCoords:Object},mounted:function(){var r=this;this.$parent.createPromise.then(function(e){e.Cesium;var t=e.viewer;r.viewer=t,r.lastMouseX=-1,r.lastMouseY=-1,r.viewer._element.addEventListener("mousemove",r.onMouseMove,!1),r.viewer._element.addEventListener("touchmove",r.onMouseMove,!1),r.cameraHeight=r.viewer.camera.positionCartographic.height.toFixed(2),r.viewer.camera.changed.addEventListener(function(){r.cameraHeight=r.viewer.camera.positionCartographic.height.toFixed(2)})})},methods:{toggleUseProjection:function(){this.mouseCoords.toggleUseProjection()},onMouseMove:function(e){var t,r,i=Cesium.Cartesian2,n="mousemove"===e.type?e.clientX:e.changedTouches[0].clientX,o="mousemove"===e.type?e.clientY:e.changedTouches[0].clientY;n===this.lastMouseX&&o===this.lastMouseY||(this.lastMouseX=n,this.lastMouseY=o,this.viewer&&(r=new i(n-(t=this.viewer._element.getBoundingClientRect()).left,o-t.top),this.mouseCoords.updateCoordinatesFromCesium(this.viewer,r)))}},destroyed:function(){this.viewer._element.removeEventListener("mousemove",this.onMouseMove,!1),this.viewer._element.removeEventListener("touchmove",this.onMouseMove,!1)}};var Rx,Fx,Lx,Ix,jx,Ax=(Lx=void 0,Ix=!(Rx={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("button",{staticClass:"vc-legend vc-bar-location",attrs:{type:"button"},on:{click:e.toggleUseProjection}},[e.mouseCoords.useProjection?[r("div",{staticClass:"vc-section-short"},[r("span",[e._v(e._s(e.$vc.lang.navigation.legend.zone))]),e._v(" "),r("span",[e._v(e._s(e.mouseCoords.utmZone))])]),e._v(" "),r("div",{staticClass:"vc-section"},[r("span",[e._v(e._s(e.$vc.lang.navigation.legend.e))]),e._v(" "),r("span",[e._v(e._s(e.mouseCoords.east))])]),e._v(" "),r("div",{staticClass:"vc-section"},[r("span",[e._v(e._s(e.$vc.lang.navigation.legend.n))]),e._v(" "),r("span",[e._v(e._s(e.mouseCoords.north))])])]:[r("div",{staticClass:"vc-section"},[r("span",[e._v(e._s(e.$vc.lang.navigation.legend.lon))]),e._v(" "),r("span",[e._v(e._s(e.mouseCoords.longitude))])]),e._v(" "),r("div",{staticClass:"vc-section"},[r("span",[e._v(e._s(e.$vc.lang.navigation.legend.lat))]),e._v(" "),r("span",[e._v(e._s(e.mouseCoords.latitude))])])],e._v(" "),e.mouseCoords.elevation?r("div",{staticClass:"vc-section-long"},[r("span",[e._v(e._s(e.$vc.lang.navigation.legend.elev))]),e._v(" "),r("span",[e._v(e._s(e.mouseCoords.elevation))])]):e._e(),e._v(" "),e.cameraHeight<2e7?r("div",{staticClass:"vc-section-long"},[r("span",[e._v(e._s(e.$vc.lang.navigation.legend.cameraHeight))]),e._v(" "),r("span",[e._v(e._s(e.cameraHeight))])]):e._e()],2)},staticRenderFns:[]}),(jx=("function"==typeof(Fx=kx)?Fx.options:Fx)||{}).__file="VcLocationBar.vue",jx.render||(jx.render=Rx.render,jx.staticRenderFns=Rx.staticRenderFns,jx._compiled=!0,Ix&&(jx.functional=!0)),jx._scopeId=Lx,jx);BM.register({share:{width:16,height:16,viewBox:"0 0 16 16",data:'\n \x3c!-- Generator: Sketch 43.2 (39069) - http://www.bohemiancoding.com/sketch --\x3e\n \x3c!-- <title>Mask</title> --\x3e\n <desc>Created with Sketch.</desc>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill-rule="evenodd">\n <g id="share-20" fill-rule="nonzero">\n <g id="Mask">\n <path d="M5.97733131,7.62936833 C5.99229467,7.75081434 6,7.87450733 6,8 C6,8.1254927 5.99229467,8.2491857 5.97733131,8.3706317 L10.9173886,10.8406603 C11.456951,10.3201529 12.1910876,10 13,10 C14.6568542,10 16,11.3431458 16,13 C16,14.6568542 14.6568542,16 13,16 C11.3431458,16 10,14.6568542 10,13 C10,12.8745073 10.0077053,12.7508143 10.0226687,12.6293683 L5.08261143,10.1593397 C4.54304902,10.6798471 3.80891237,11 3,11 C1.34314575,11 0,9.6568542 0,8 C0,6.34314575 1.34314575,5 3,5 C3.80891237,5 4.54304902,5.32015293 5.08261143,5.84066029 L10.0226687,3.37063167 C10.0077053,3.24918566 10,3.12549267 10,3 C10,1.34314575 11.3431458,0 13,0 C14.6568542,0 16,1.34314575 16,3 C16,4.65685425 14.6568542,6 13,6 C12.1910876,6 11.456951,5.67984707 10.9173886,5.15933971 L5.97733131,7.62936833 Z M13,14 C13.5522847,14 14,13.5522847 14,13 C14,12.4477153 13.5522847,12 13,12 C12.4477153,12 12,12.4477153 12,13 C12,13.5522847 12.4477153,14 13,14 Z M13,4 C13.5522847,4 14,3.55228475 14,3 C14,2.44771525 13.5522847,2 13,2 C12.4477153,2 12,2.44771525 12,3 C12,3.55228475 12.4477153,4 13,4 Z M3,9 C3.55228475,9 4,8.5522847 4,8 C4,7.44771525 3.55228475,7 3,7 C2.44771525,7 2,7.44771525 2,8 C2,8.5522847 2.44771525,9 3,9 Z" id="path-1"></path>\n </g>\n </g>\n </g>'}});var Dx={props:{options:Object},data:function(){return{mapImageDataUrl:void 0,ready:!1,credits:[]}},mounted:function(){var e,o=this;(function(t){var r=Cesium.when.defer(),e=t.scene,i=e.postRender.addEventListener(function(){i();try{var e=t.scene.canvas;r.resolve(e.toDataURL("image/png"))}catch(e){r.reject(e)}},this);return e.render(t.clock.currentTime),r.promise})(this.options.viewer).then(function(e){var t=o.options.printWindow,r=window,i=t.setInterval(o.checkForImagesReady,200),n=r.setInterval(o.checkForImagesReady,200);o._stopCheckingForImages=function(){t.clearInterval(i),r.clearInterval(n),o._stopCheckingForImages=void 0},o.mapImageDataUrl=e}),this.credits=(e=this.options.viewer).scene.frameState.creditDisplay._currentFrameCredits.screenCredits.values.concat(e.scene.frameState.creditDisplay._currentFrameCredits.lightboxCredits.values).map(function(e){return e.html})},methods:{checkForImagesReady:function(){if(!this.ready){var e=this.options.printWindow.document.getElementsByTagName("img");if(0!==e.length){for(var t=!0,r=0;t&&r<e.length;++r)t=e[r].complete;t&&(this.stopCheckingForImages(),this.ready=t,this.$emit("ready",this.options.printWindow))}}},stopCheckingForImages:function(){this._stopCheckingForImages&&this._stopCheckingForImages()}},destroyed:function(){this.stopCheckingForImages()}};var Nx,Gx,zx,Bx,Vx,qx=(zx=void 0,Bx=!(Nx={render:function(){var r=this,e=r.$createElement,i=r._self._c||e;return i("div",[i("p",[i("img",{staticClass:"vc-map-image",attrs:{src:r.mapImageDataUrl,alt:"Map snaphot"}})]),r._v(" "),0<r.credits.length&&r.options.showCredit?i("h1",[r._v("Map Credits")]):r._e(),r._v(" "),0<r.credits.length&&r.options.showCredit?i("ul",[r._l(r.credits,function(e,t){return[i("li",{key:"credit"+t,domProps:{innerHTML:r._s(e)}})]})],2):r._e()])},staticRenderFns:[]}),(Vx=("function"==typeof(Gx=Dx)?Gx.options:Gx)||{}).__file="VcPrintView.vue",Vx.render||(Vx.render=Nx.render,Vx.staticRenderFns=Nx.staticRenderFns,Vx._compiled=!0,Bx&&(Vx.functional=!0)),Vx._scopeId=zx,Vx),Wx={name:"vc-view-print",components:{VcIconSvg:BM,VcPrintView:qx},props:{printAutomatically:Boolean,showCredit:{type:Boolean,default:!0}},mounted:function(){var r=this;this.$parent.createPromise.then(function(e){e.Cesium;var t=e.viewer;r.viewer=t})},methods:{handleCick:function(){this.createPrintView()},createPrintView:function(){var t=this,e=this.viewer,r=this.showCredit,i=this.printAutomatically;this.creatingPrintView=!0,i&&(this.iframe=document.createElement("iframe"),document.body.appendChild(this.iframe));var n=function(e){var t=e.printWindow,r=void 0===t?window.open():t,i=e.closeCallback;i&&r.addEventListener("unload",function(){i(r)});return r.document.open(),r.document.close(),r.document.head.innerHTML='\n <meta charset="UTF-8">\n <title>VueCesium Print View</title>\n <style>\n .background {\n width: 100%;\n fill: rgba(255, 255, 255, 1.0);\n }\n .map-image {\n max-width: 95vw;\n max-height: 95vh;\n }\n h1, h2, h3 {\n clear: both;\n }\n </style>\n ',r.document.body.innerHTML='<div id="print"></div>',r}({printWindow:this.iframe?this.iframe.contentWindow:void 0,closeCallback:function(){i&&(t.creatingPrintView=!1)}}),o={viewer:e,printWindow:n,showCredit:r};new a({render:function(e){return e(qx,{props:{options:o},on:{ready:t.printViewReady}})}}).$mount(n.document.getElementById("print")),i||(this.creatingPrintView=!1)},printViewReady:function(e){var t,r,i,n,o=this,a=this.printAutomatically,s=this.iframe;function c(){clearTimeout(n)}function l(){i<=0&&r.resolve()}a&&(t=e,r=Cesium.when.defer(),i=0,n=setTimeout(function(){r.reject(!1)},1e4),t.matchMedia&&t.matchMedia("print").addListener(function(e){c(),e.matches?++i:(--i,l())}),t.onbeforeprint=function(){c(),++i},t.onafterprint=function(){c(),--i,l()},t.document.execCommand("print",!0,null)||t.print(),r.promise.otherwise(function(e){console.error(e)}).always(function(){s&&document.body.removeChild(s),a&&(o.creatingPrintView=!1)}))},printViewClosed:function(){this.printAutomatically&&(this.creatingPrintView=!1)}}};var Ux,Hx,$x,Zx,Kx,Xx=($x=void 0,Zx=!(Ux={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"vc-tool-btn"},[t("button",{staticClass:"vc-btn",attrs:{title:this.$vc.lang.navigation.printView,type:"button"},on:{click:this.handleCick}},[t("vc-icon-svg",{attrs:{name:"share"}})],1)])},staticRenderFns:[]}),(Kx=("function"==typeof(Hx=Wx)?Hx.options:Hx)||{}).__file="VcPrintViewBtn.vue",Kx.render||(Kx.render=Ux.render,Kx.staticRenderFns=Ux.staticRenderFns,Kx._compiled=!0,Zx&&(Kx.functional=!0)),Kx._scopeId=$x,Kx);BM.register({geolocation:{width:50,height:50,viewBox:"0 0 50 50",data:'\n \x3c!-- Generator: Sketch 3.4.3 (16044) - http://www.bohemiancoding.com/sketch --\x3e\n \x3c!-- <title>geolocation</title> --\x3e\n <path d="M25.2083333,40.9848485 L25.2083333,40.9848485 C33.9214621,40.9848485 40.9848485,33.9214621 40.9848485,25.2083333 C40.9848485,16.4952046 33.9214621,9.43181817 25.2083333,9.43181817 C16.4952046,9.43181817 9.43181817,16.4952046 9.43181817,25.2083333 C9.43181817,33.9214621 16.4952046,40.9848485 25.2083333,40.9848485 L25.2083333,40.9848485 L25.2083333,40.9848485 Z M6.485903,23.7069504 C7.21162342,14.5314545 14.5314545,7.21162342 23.7069504,6.485903 C23.7061912,6.46628533 23.7058081,6.44657125 23.7058081,6.42676767 L23.7058081,1.91919192 C23.7058081,1.08937017 24.3785116,0.416666667 25.2083333,0.416666667 C26.0381551,0.416666667 26.7108586,1.08937017 26.7108586,1.91919192 L26.7108586,6.42676767 C26.7108586,6.44657125 26.7104755,6.46628533 26.7097162,6.485903 C35.8852122,7.21162342 43.2050433,14.5314545 43.9307637,23.7069504 C43.9503813,23.7061912 43.9700954,23.7058081 43.989899,23.7058081 L48.4974747,23.7058081 C49.3272965,23.7058081 50,24.3785116 50,25.2083333 C50,26.0381551 49.3272965,26.7108586 48.4974747,26.7108586 L43.989899,26.7108586 C43.9700954,26.7108586 43.9503813,26.7104755 43.9307637,26.7097162 C43.2050433,35.8852122 35.8852122,43.2050433 26.7097162,43.9307637 C26.7104755,43.9503813 26.7108586,43.9700954 26.7108586,43.989899 L26.7108586,48.4974747 C26.7108586,49.3272965 26.0381551,50 25.2083333,50 C24.3785116,50 23.7058081,49.3272965 23.7058081,48.4974747 L23.7058081,43.989899 C23.7058081,43.9700954 23.7061912,43.9503813 23.7069504,43.9307637 C14.5314545,43.2050433 7.21162342,35.8852122 6.485903,26.7097162 C6.46628533,26.7104755 6.44657125,26.7108586 6.42676767,26.7108586 L1.91919192,26.7108586 C1.08937017,26.7108586 0.416666667,26.0381551 0.416666667,25.2083333 C0.416666667,24.3785116 1.08937017,23.7058081 1.91919192,23.7058081 L6.42676767,23.7058081 C6.44657125,23.7058081 6.46628533,23.7061912 6.485903,23.7069504 L6.485903,23.7069504 Z M25.2083333,29.7159091 C27.6977987,29.7159091 29.7159091,27.6977987 29.7159091,25.2083333 C29.7159091,22.718868 27.6977987,20.7007576 25.2083333,20.7007576 C22.718868,20.7007576 20.7007576,22.718868 20.7007576,25.2083333 C20.7007576,27.6977987 22.718868,29.7159091 25.2083333,29.7159091 L25.2083333,29.7159091 Z" id="Shape"></path>'}});var Jx=t(function(e,t){e.exports=function(){function t(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}));r.push.apply(r,i)}return r}function l(r){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?t(Object(i),!0).forEach(function(e){var t=i[e];e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(i,e))})}return r}if(!window)throw Error("AMap JSAPI can only be used in Browser.");var u="notload",h={key:"",version:"1.4.15",plugins:[]},d=[],p=function(e){"function"==typeof e&&("loaded"==u?e(window.AMap):d.push(e))};return{load:function(c){return new Promise(function(t,r){if("notload"==u){var e=l({},h,{},c),i=e.key,n=e.version;e=e.plugins;if(i){window.AMap&&r("禁止多种API加载方式混用");h={key:i,version:n,plugins:e};u="loading";var o=document.body||document.head;window.___onAPILoaded=function(e){delete window.___onAPILoaded;e?(u="failed",r(e)):(u="loaded",t(window.AMap));for(;d.length;)d.splice(0,1)[0]()};var a=document.createElement("script");a.type="text/javascript";a.src="https://webapi.amap.com/maps?callback=___onAPILoaded&v="+n+"&key="+i+"&plugin="+e.join(",");a.onerror=function(e){u="failed";r(e)};o.appendChild(a)}else r("请填写key")}else if(c.key&&c.key!==h.key)r("多个不一致的 key");else if(c.version&&c.version!==h.version)r("不允许多个版本 JSAPI 混用");else{"failed"==u&&r("前次加载已经失败");var s=[];if(c.plugins)for(i=0;i<c.plugins.length;i+=1)-1==h.plugins.indexOf(c.plugins[i])&&s.push(c.plugins[i]);"loaded"==u?s.length?window.AMap.plugin(s,function(){t(window.AMap)}):t(window.AMap):"loading"==u&&p(function(){s.length?window.AMap.plugin(s,function(){t(window.AMap)}):t(window.AMap)})}})}}}()}),Yx={components:{VcIconSvg:BM},props:{enableMyLocation:Object|Boolean},mounted:function(){var n=this;this.$parent.createPromise.then(function(e){var t=e.Cesium,r=e.viewer;n.viewer=r,n.viewer.dataSources.add(new t.CustomDataSource("vc-myLocation")).then(function(e){n.datasource=e});var i=n.enableMyLocation;i.amap&&i.amap.key&&Jx.load({key:i.amap.key,version:"2.0",plugins:["AMap.Geolocation"]}).then(function(e){n.AMap=e,n.amapGeolocation=new e.Geolocation({enableHighAccuracy:!0,convert:!1,timeout:2e4})}).catch(function(e){console.error("[VueCesium] ERROR: "+e)})})},destroyed:function(){if(this.viewer.dataSources.remove(this.datasource,!0),this.amapGeolocation){var e=document.getElementsByTagName("script"),t=[],r=!0,i=!1,n=void 0;try{for(var o,a=Kt(e);!(r=(o=a.next()).done);r=!0){var s=o.value;-1<s.src.indexOf("/webapi.amap.com/maps")&&t.push(s)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}t.forEach(function(e){document.getElementsByTagName("body")[0].removeChild(e)})}},methods:{handleCick:function(){var r=this,e=this.enableMyLocation,t=this.getLocation;e.amap&&e.amap.key?this.amapGeolocation.getCurrentPosition(function(e,t){"complete"===e?(r.$emit("geolocation",t),r.zoomToMyLocation({lng:t.position.lng,lat:t.position.lat})):console.error("[VueCesium] ERROR: "+t.message)}):t()},getLocation:function(){var t=this;navigator.geolocation?navigator.geolocation.getCurrentPosition(function(e){t.$emit("geolocation",e),t.zoomToMyLocation({lng:e.coords.longitude,lat:e.coords.latitude})},this.handleLocationError,{enableHighAccuracy:!0,timeout:5e3,maximumAge:0}):console.error("[VueCesium] ERROR: Your browser cannot provide your location.")},describeWithoutUnderscores:function(e,t){var r="";for(var i in e instanceof Cesium.PropertyBag&&(e=e.getValue(Cesium.JulianDate.now())),e)if(e.hasOwnProperty(i)){if(i===t)continue;var n=e[i];"object"===ci(n)&&(n=this.describeWithoutUnderscores(n)),i=i.replace(/_/g," "),Cesium.defined(n)&&(r+="<tr><th>"+i+"</th><td>"+n+"</td></tr>")}return 0<r.length&&(r='<table class="cesium-infoBox-defaultTable"><tbody>'+r+"</tbody></table>"),r},zoomToMyLocation:function(e){var t=e.lng,r=e.lat,i=Cesium,n=i.Cartesian3,o=i.Rectangle,a=i.Ellipsoid,s=i.sampleTerrain,c=this.datasource,l=this.describeWithoutUnderscores;c.entities.removeAll(),c.entities.add({id:"My Location",position:n.fromDegrees(t,r),point:{color:Cesium.Color.fromCssColorString("#08ABD5"),pixelSize:12.5,outlineWidth:3,outlineColor:Cesium.Color.fromCssColorString("#ffffff")},description:l({longitude:t,latitude:r})});var u=o.fromDegrees(t-.01,r-.01,t+.01,r+.01),h=this.viewer.scene.camera,d=h.getRectangleCameraCoordinates(u),p=a.WGS84.cartesianToCartographic(d);return s(this.viewer.scene.globe.terrainProvider,6,[o.center(u)]).then(function(e){var t={longitude:p.longitude,latitude:p.latitude,height:p.height+e[0].height},r=a.WGS84.cartographicToCartesian(t);h.flyTo({duration:3,destination:r})})},handleLocationError:function(e){console.error("[VueCesium] ERROR: "+e.message)}}};var Qx,eP,tP,rP,iP,nP={name:"vc-navigation",components:{VcCompass:mx,VcZoomControl:_x,VcDistanceLegend:Ox,VcLocationBar:Ax,VcPrintViewBtn:Xx,VcMyLocation:(tP=void 0,rP=!(Qx={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"vc-tool-btn"},[t("button",{staticClass:"vc-btn",attrs:{title:this.$vc.lang.navigation.centreMap,type:"button"},on:{click:this.handleCick}},[t("vc-icon-svg",{attrs:{name:"geolocation"}})],1)])},staticRenderFns:[]}),(iP=("function"==typeof(eP=Yx)?eP.options:eP)||{}).__file="VcMyLocation.vue",iP.render||(iP.render=Qx.render,iP.staticRenderFns=Qx.staticRenderFns,iP._compiled=!0,rP&&(iP.functional=!0)),iP._scopeId=tP,iP)},mixins:[Yi],props:{options:Object},data:function(){return{defaultOptions:{enableCompass:!0,enableCompassOuterRing:!0,enableZoomControl:{zoomAmount:2,defaultResetView:{lng:105,lat:29.999999999999993,height:19059568.497290563},overrideCamera:!1},enableDistanceLegend:!0,enableLocationBar:{gridFileUrl:"https://zouyaoji.top/vue-cesium/statics/SampleData/WW15MGH.DAC"},enablePrintView:{showCredit:!0,printAutomatically:!1},enableMyLocation:{amap:{key:void 0}}},ldBottom:2,ldRight:3,mouseCoords:void 0,canRender:!1}},computed:{ldStyle:function(){return{bottom:this.ldBottom+"px",right:this.ldRight+"px"}}},watch:{options:{handler:function(){this.reload()},deep:!0}},methods:{createCesiumObject:function(){var t=this;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:this.viewer.afterViewerChanged=new Cesium.Event,this.viewer.beforeViewerChanged=new Cesium.Event,this.viewer.widgetResized.addEventListener(this.widgetResized),Di(this.defaultOptions,this.options),this.widgetResized(),this.mouseCoords=new wM({gridFileUrl:this.defaultOptions.enableLocationBar.gridFileUrl}),this.canRender=!0,this.$nextTick(function(){t.viewer._element.appendChild(t.$el)});case 8:case"end":return e.stop()}},null,this)},widgetResized:function(){var e;this.ldBottom=this.viewer.timeline?this.viewer.timeline.container.getBoundingClientRect().height+2:2,2===this.ldBottom&&(e=3,this.viewer.fullscreenButton&&(e+=this.viewer.fullscreenButton.container.getBoundingClientRect().width),this.viewer.vrButton&&(e+=this.viewer.vrButton.container.getBoundingClientRect().width),this.ldRight=e)},mount:function(){return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}})},unmount:function(){return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return this.cesiumNavigation&&this.viewer.cesiumWidget.cesiumNavigation.destroy(),e.abrupt("return",!0);case 2:case"end":return e.stop()}},null,this)},legendChanged:function(e){this.$listeners.legendChanged&&this.$emit("legendChanged",e)},geolocation:function(e){this.$listeners.geolocation&&this.$emit("geolocation",e)}},stubVNode:{empty:function(){return this.$options.name}},created:function(){var e=this;te(this,{cesiumNavigation:{enumerable:!0,get:function(){return e.$services&&e.cesiumObject}}})}};var oP,aP,sP,cP,lP,uP=(sP=void 0,cP=!(oP={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.canRender?r("div",{staticClass:"vc-navigationContainer"},[r("div",{staticClass:"vc-navigation"},[r("div",{staticClass:"vc-navigation-navs"},[e.defaultOptions.enableCompass?r("div",{staticClass:"vc-navigation-control"},[r("vc-compass",{attrs:{enableCompassOuterRing:e.defaultOptions.enableCompassOuterRing}})],1):e._e(),e._v(" "),e.defaultOptions.enableZoomControl?r("div",{staticClass:"vc-navigation-control"},[r("vc-zoom-control",{attrs:{defaultResetView:e.defaultOptions.enableZoomControl.defaultResetView,overrideCamera:e.defaultOptions.enableZoomControl.overrideCamera||!1,zoomAmount:e.defaultOptions.enableZoomControl.zoomAmount||2}})],1):e._e()]),e._v(" "),r("div",{staticClass:"vc-navigation-controls"},[e.defaultOptions.enablePrintView?r("div",{staticClass:"vc-navigation-control"},[r("vc-print-view-btn",{attrs:{printAutomatically:e.defaultOptions.enablePrintView.printAutomatically,showCredit:e.defaultOptions.enablePrintView.showCredit}})],1):e._e(),e._v(" "),e.defaultOptions.enableMyLocation?r("div",{staticClass:"vc-navigation-control"},[r("vc-my-location",{attrs:{enableMyLocation:e.defaultOptions.enableMyLocation},on:{geolocation:e.geolocation}})],1):e._e()])]),e._v(" "),r("div",{staticClass:"vc-location-distance",style:e.ldStyle},[void 0!==e.mouseCoords&&e.defaultOptions.enableLocationBar?r("vc-location-bar",{attrs:{mouseCoords:e.mouseCoords}}):e._e(),e._v(" "),e.defaultOptions.enableDistanceLegend?r("vc-distance-legend",{on:{legendChanged:e.legendChanged}}):e._e()],1)]):e._e()},staticRenderFns:[]}),(lP=("function"==typeof(aP=nP)?aP.options:aP)||{}).__file="VcNavigation.vue",lP.render||(lP.render=oP.render,lP.staticRenderFns=oP.staticRenderFns,lP._compiled=!0,cP&&(lP.functional=!0)),lP._scopeId=sP,lP);function hP(e){hP.installed||(hP.installed=!0,e.component(uP.name,uP))}var dP=Object.freeze({__proto__:null,default:hP,VcNavigation:uP,install:hP}),pP={name:"vc-compass-sm",props:{enableCompassOuterRing:Boolean},data:function(){return{tiltbarLeft:56,tiltbarTop:3,heading:0}},computed:{tiltbarStyle:function(){return{left:this.tiltbarLeft+"px",top:this.tiltbarTop+"px"}},outerRingStyle:function(){return{transform:"rotate(-"+this.heading+"rad)","-webkit-transform":"rotate(-"+this.heading+"rad)"}}},mounted:function(){var s=this;this.$parent.createPromise.then(function(e){var i,t,r,n,o=e.Cesium,a=e.viewer;s.viewer=a,s.heading=a.scene.camera.heading,s.screenSpaceEventHandler=new o.ScreenSpaceEventHandler(s.$parent.$refs.navigationContainer),s.isRotating=!1,s.rotateInitialCursorAngle=void 0,s.rotateFrame=void 0,s.rotateMouseMoveFunction=void 0,s.rotateMouseUpFunction=void 0,s._unsubcribeFromPostRender=void 0,s.isTilting=!1,s.tiltInitialCursorAngle=0,function(){var e=Cesium.Math.PI_OVER_TWO+this.viewer.scene.camera.pitch,t=Math.PI/2/20,r=Math.floor(e/t);r=(r=19<r?19:r)<0?0:r,this.tiltbarLeft=yP[r].x,this.tiltbarTop=yP[r].y}.call(s),i=s,t=Cesium,r=t.defined,n=t.Math,r(i.viewer)?(i._unsubcribeFromPostRender&&(i._unsubcribeFromPostRender(),i._unsubcribeFromPostRender=void 0),i._unsubcribeFromPostRender=i.viewer.scene.postRender.addEventListener(function(){var e,t,r;i.heading=i.viewer.scene.camera.heading,i.isTilting||(e=i.viewer.scene.camera.pitch+n.PI_OVER_TWO,t=n.PI_OVER_TWO/20,r=(r=19<(r=Math.floor(e/t))?19:r)<0?0:r,i.tiltbarLeft=yP[r].x,i.tiltbarTop=yP[r].y)})):i._unsubcribeFromPostRender&&(i._unsubcribeFromPostRender(),i._unsubcribeFromPostRender=void 0),vi().isPc||(document.querySelector(".vc-compass-tiltbar-sm").style.visibility="visible",document.querySelector(".vc-compass-arrows-sm").style.visibility="visible",document.querySelector(".vc-compass-tilt-sm").style.visibility="visible")})},methods:{handleMouseDown:function(e){var t=Cesium,r=t.Cartesian2,i=t.Math,n=t.SceneMode;if(this.viewer.scene.mode===n.MORPHING)return!0;var o=e.currentTarget,a=e.currentTarget.getBoundingClientRect(),s=new r((a.right-a.left)/2,(a.bottom-a.top)/2),c="mousedown"===e.type?new r(e.clientX-a.left,e.clientY-a.top):new r(e.changedTouches[0].clientX-a.left,e.changedTouches[0].clientY-a.top),l=r.subtract(c,s,mP);this.clickStartPosition=new r(e.clientX,e.clientY);var u,h=r.magnitude(l);30<h&&h<45?function(c,l,e){if(!c.enableCompassOuterRing)return;var t=Cesium,u=t.Cartesian2,r=t.Cartesian3,i=t.defined,h=t.Math,d=t.Matrix4,n=t.Ellipsoid,o=t.Ray,a=t.Transforms;document.removeEventListener("mousemove",c.rotateMouseMoveFunction,!1),document.removeEventListener("touchmove",c.rotateMouseMoveFunction,!1),document.removeEventListener("mouseup",c.rotateMouseUpFunction,!1),document.removeEventListener("touchend",c.rotateMouseUpFunction,!1),c.rotateMouseMoveFunction=void 0,c.rotateMouseUpFunction=void 0,c.isRotating=!0,c.rotateInitialCursorAngle=Math.atan2(-e.y,e.x);var s=c.viewer.scene,p=s.camera,m=new u;m.x=s.canvas.clientWidth/2,m.y=s.canvas.clientHeight/2;var f=new o,v=p.getPickRay(m,f),g=s.globe.pick(v,s,gP);i(g)?(c.rotateFrame=a.eastNorthUpToFixedFrame(g,n.WGS84,vP),c.rotateIsLook=!1):(c.rotateFrame=a.eastNorthUpToFixedFrame(p.positionWC,n.WGS84,vP),c.rotateIsLook=!0);var y=d.clone(p.transform,fP);p.lookAtTransform(c.rotateFrame),c.rotateInitialCameraAngle=Math.atan2(p.position.y,p.position.x),c.rotateInitialCameraDistance=r.magnitude(new r(p.position.x,p.position.y,0)),p.lookAtTransform(y),c.rotateMouseMoveFunction=function(e){var t=l.getBoundingClientRect(),r=new u((t.right-t.left)/2,(t.bottom-t.top)/2),i="mousedown"===e.type||"mousemove"===e.type?new u(e.clientX-t.left,e.clientY-t.top):new u(e.changedTouches[0].clientX-t.left,e.changedTouches[0].clientY-t.top),n=u.subtract(i,r,mP),o=Math.atan2(-n.y,n.x)-c.rotateInitialCursorAngle,a=h.zeroToTwoPi(c.rotateInitialCameraAngle-o);p=c.viewer.scene.camera,y=d.clone(p.transform,fP),p.lookAtTransform(c.rotateFrame);var s=Math.atan2(p.position.y,p.position.x);p.rotateRight(a-s),p.lookAtTransform(y)},c.rotateMouseUpFunction=function(){c.isRotating=!1,document.removeEventListener("mousemove",c.rotateMouseMoveFunction,!1),document.removeEventListener("touchmove",c.rotateMouseMoveFunction,!1),document.removeEventListener("mouseup",c.rotateMouseUpFunction,!1),document.removeEventListener("touchend",c.rotateMouseUpFunction,!1),c.rotateMouseMoveFunction=void 0,c.rotateMouseUpFunction=void 0},document.addEventListener("mousemove",c.rotateMouseMoveFunction,!1),document.addEventListener("touchmove",c.rotateMouseMoveFunction,!1),document.addEventListener("mouseup",c.rotateMouseUpFunction,!1),document.addEventListener("touchend",c.rotateMouseUpFunction,!1)}(this,o,l):50<h&&h<70?0<=(u=i.PI_OVER_TWO-Math.atan2(-l.y,l.x))&&u<=i.PI_OVER_TWO&&function(d,p,e){var t=Cesium,m=t.Cartesian2,r=t.defined,f=t.Math,v=t.Matrix4,i=t.ScreenSpaceEventType,n=t.Transforms;d.screenSpaceEventHandler.removeInputAction(i.MOUSE_MOVE),d.screenSpaceEventHandler.removeInputAction(i.LEFT_UP),d.tiltMouseMoveFunction=void 0,d.tiltMouseUpFunction=void 0;var o=f.PI_OVER_TWO-Math.atan2(-e.y,e.x);o=(o=o<0?0:o)>f.PI_OVER_TWO?f.PI_OVER_TWO:o,d.tiltInitialCursorAngle=o,d.isTilting=!0;var a=d.viewer.scene,s=a.camera,c=new m;c.x=a.canvas.clientWidth/2,c.y=a.canvas.clientHeight/2;var l=s.pickEllipsoid(c,a.ellipsoid);if(!r(l))for(;c.y<a.canvas.clientHeight;)c.y+=5,l=s.pickEllipsoid(c,a.globe.ellipsoid);r(l)&&(d.tiltFrame=n.eastNorthUpToFixedFrame(l,a.globe.ellipsoid)),d.tiltMouseMoveFunction=function(e,t){d.isTilting=!0;var r=p.getBoundingClientRect(),i=new Cesium.Cartesian2((r.right-r.left)/2,(r.bottom-r.top)/2),n=m.clone(e.endPosition),o=m.subtract(n,i,mP),a=f.PI_OVER_TWO-Math.atan2(-o.y,o.x);a=(a=a<0?0:a)>f.PI_OVER_TWO?f.PI_OVER_TWO:a;var s=d.viewer.scene.camera,c=v.clone(s.transform,fP);s.lookAtTransform(d.tiltFrame);var l=a-d.tiltInitialCursorAngle;s.rotateUp(l),d.tiltInitialCursorAngle=a,s.lookAtTransform(c);var u=Math.ceil(a/(Math.PI/40)),h=yP[u=19<u?19:u];d.tiltbarLeft=h.x,d.tiltbarTop=h.y},d.tiltMouseUpFunction=function(e){d.isTilting=!1,d.screenSpaceEventHandler.removeInputAction(i.MOUSE_MOVE),d.screenSpaceEventHandler.removeInputAction(i.LEFT_UP),d.tiltMouseMoveFunction=void 0,d.tiltMouseUpFunction=void 0},d.screenSpaceEventHandler.setInputAction(d.tiltMouseMoveFunction,i.MOUSE_MOVE),d.screenSpaceEventHandler.setInputAction(d.tiltMouseUpFunction,i.LEFT_UP)}(this,o,l):function(r,e){var t=Cesium,i=t.defined,n=t.getTimestamp,o=t.Math,a=t.ScreenSpaceEventType;r.screenSpaceEventHandler.removeInputAction(a.LEFT_UP),i(r.rotateEastTickFunction)&&r.viewer.clock.onTick.removeEventListener(r.rotateEastTickFunction),r.rotateEastMouseUpFunction=void 0,r.rotateEastTickFunction=void 0,r.isrotateEasting=!0,r.rotateEastLastTimestamp=n();var s,c=o.PI_OVER_TWO-Math.atan2(-e.y,e.x),l=Math.PI/4,u=1,h=2,d=3,p=4;s=-l<=c&&c<=l?p:l<=c&&c<=3*l?h:3*l<=c&&c<=5*l?d:u,r.rotateEastTickFunction=function(){var e=r.viewer.scene.camera,t=n();switch(c=20*Math.abs(e.positionCartographic.height/6378317)*5e-4,s){case u:e.rotateLeft(c);break;case h:e.rotateRight(c);break;case d:e.rotate(e.right,-c);break;case p:e.rotate(e.right,c)}r.rotateLastTimestamp=t},r.rotateEastMouseUpFunction=function(){r.isRotateEasting=!1,r.screenSpaceEventHandler.removeInputAction(a.LEFT_UP),i(r.rotateEastTickFunction)&&r.viewer.clock.onTick.removeEventListener(r.rotateEastTickFunction),r.rotateEastMouseUpFunction=void 0,r.rotateEastTickFunction=void 0},r.screenSpaceEventHandler.setInputAction(r.rotateEastMouseUpFunction,a.LEFT_UP),r.viewer.clock.onTick.addEventListener(r.rotateEastTickFunction)}(this,l)},handleDoubleClick:function(e){var t=Cesium,r=t.Cartesian2,i=t.Cartesian3,n=t.defined,o=t.Ellipsoid,a=t.Matrix4,s=t.Ray,c=t.SceneMode,l=t.Transforms,u=this.viewer.scene,h=u.camera;if(u.mode===c.MORPHING)return!0;var d=e.currentTarget.getBoundingClientRect(),p=new r((d.right-d.left)/2,(d.bottom-d.top)/2),m="dblclick"===e.type?new r(e.clientX-d.left,e.clientY-d.top):new r(e.changedTouches[0].clientX-d.left,e.changedTouches[0].clientY-d.top),f=r.subtract(m,p,mP);this.clickStartPosition=new r(e.clientX,e.clientY);var v=r.magnitude(f);if(30<v&&v<45){var g=new r;g.x=u.canvas.clientWidth/2,g.y=u.canvas.clientHeight/2;var y=new s,b=h.getPickRay(g,y),w=u.globe.pick(b,u,gP);if(!n(w))return;var _=l.eastNorthUpToFixedFrame(w,o.WGS84),C=i.subtract(w,h.position,new i),M=VM.createTween(u,{destination:a.multiplyByPoint(_,new i(0,0,i.magnitude(C)),new i),direction:a.multiplyByPointAsVector(_,new i(0,0,-1),new i),up:a.multiplyByPointAsVector(_,new i(0,1,0),new i),duration:1.5});u.tweens.add(M)}},handleMouseUp:function(e){var t=Cesium,r=t.Cartesian2,i=t.Math,n=e.currentTarget.getBoundingClientRect(),o=new r((n.right-n.left)/2,(n.bottom-n.top)/2),a="mouseup"===e.type?new r(e.clientX-n.left,e.clientY-n.top):new r(e.changedTouches[0].clientX-n.left,e.changedTouches[0].clientY-n.top),s=r.subtract(a,o,mP),c=r.magnitude(s);if(30<c&&c<45){var l=i.toDegrees(Math.atan2(-s.y,s.x)),u=new r(e.clientX,e.clientY),h=u.x-this.clickStartPosition.x,d=u.y-this.clickStartPosition.y;if(5<Math.sqrt(h*h+d*d))return;var p=i.toDegrees(this.heading),m=Math.abs(l-p),f=this.viewer.scene;(0<l&&0<p&&p<90&&80<m&&m<100||260<m&&m<280)&&f.camera.flyTo({destination:f.camera.position,orientation:{heading:0,pitch:f.camera.pitch}})}}},destroyed:function(){this.screenSpaceEventHandler&&this.screenSpaceEventHandler.destroy()}},mP={},fP={},vP={},gP={},yP=[{x:56,y:3},{x:59,y:4},{x:64,y:5},{x:69,y:6},{x:74,y:7},{x:79,y:9},{x:84,y:12},{x:89,y:15},{x:92,y:19},{x:94,y:20},{x:99,y:25},{x:104,y:34},{x:106,y:40},{x:107,y:44},{x:107,y:46},{x:107,y:48},{x:107,y:50},{x:107,y:52},{x:107,y:54},{x:107,y:56}];var bP,wP,_P,CP,MP,xP=(_P=void 0,CP=!(bP={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"vc-compass-sm",attrs:{title:e.$vc.lang.navigation.compass.description},on:{dblclick:e.handleDoubleClick,mousedown:e.handleMouseDown,mouseup:e.handleMouseUp,touchend:e.handleMouseUp,touchstart:e.handleMouseDown}},[r("div",{staticClass:"vc-compass-tilt-sm"}),e._v(" "),r("div",{staticClass:"vc-compass-tiltbar-sm",style:e.tiltbarStyle}),e._v(" "),r("div",{staticClass:"vc-compass-arrows-sm"}),e._v(" "),r("div",{staticClass:"vc-compass-outer-ring-sm",style:e.outerRingStyle}),e._v(" "),r("div",{staticClass:"vc-arrows-e-sm"}),e._v(" "),r("div",{staticClass:"vc-arrows-n-sm"}),e._v(" "),r("div",{staticClass:"vc-arrows-s-sm"}),e._v(" "),r("div",{staticClass:"vc-arrows-w-sm"})])},staticRenderFns:[]}),(MP=("function"==typeof(wP=pP)?wP.options:wP)||{}).__file="VcCompassSM.vue",MP.render||(MP.render=bP.render,MP.staticRenderFns=bP.staticRenderFns,MP._compiled=!0,CP&&(MP.functional=!0)),MP._scopeId=_P,MP);function PP(e,t){var r=Cesium,i=r.Cartesian2,n=r.Cartesian3,o=r.defined,a=r.Ellipsoid,s=r.Math,c=e.viewer.scene,l=c.camera,u=c.canvas,h=new i;h.x=u.clientWidth/2,h.y=u.clientHeight/2;var d,p,m,f,v,g,y,b,w,_,C,M,x,P=function(e,t){var r,i=Cesium,n=i.defined,o=i.Cartesian3,a=e.viewer.scene,s=a.globe,c=a.camera;if(n(s)){a.pickPositionSupported&&(r=a.pickPositionWorldCoordinates(t));var l=c.getPickRay(t),u=s.pick(l,a),h=n(r)?o.distance(r,c.positionWC):Number.POSITIVE_INFINITY,d=n(u)?o.distance(u,c.positionWC):Number.POSITIVE_INFINITY;return h<d?r:u}}(e,h);o(P)&&(p=.0618*t*.2,m=(d=n.distance(l.position,P))*(p=300<d?p:2*p),f={},n.subtract(P,l.position,f),v=n.clone(l.right),g=n.dot(f,v),y={},n.multiplyByScalar(v,g,y),n.subtract(f,y,f),n.normalize(f,f),l.move(f,m),b={},n.normalize(P,b),w=n.magnitude(P),_=a.fromCartesian3(w),!o(C=l.pickEllipsoid(h,_))||isNaN(C.x)||isNaN(C.y)||isNaN(C.z)||l.positionCartographic.height<0||(n.normalize(C,C),M=n.angleBetween(b,C),s.equalsEpsilon(M,0,s.EPSILON10)||(x=n.cross(b,C),l.rotate(x,M))))}var SP,EP,TP,OP,kP,RP={name:"vc-navigation-sm",components:{"vc-compass-sm":xP,"vc-zoom-control-sm":(TP=void 0,OP=!(SP={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"vc-zoom-sm"},[r("div",{staticClass:"vc-zoomin-sm",attrs:{title:e.$vc.lang.navigation.zoomCotrol.zoomIn},on:{mousedown:e.handleZoomInMouseDown,touchstart:e.handleZoomInMouseDown}}),e._v(" "),r("div",{staticClass:"vc-zoomout-sm",attrs:{title:e.$vc.lang.navigation.zoomCotrol.zoomOut},on:{mousedown:e.handleZoomOutMouseDown,touchstart:e.handleZoomOutMouseDown}}),e._v(" "),r("div",{staticClass:"vc-zoombar-sm",style:e.zoombarStyle,on:{mousedown:e.handleZoomBarScrollMouseDown,touchstart:e.handleZoomBarScrollMouseDown}})])},staticRenderFns:[]}),(kP=("function"==typeof(EP={data:function(){return{zoombarTop:65}},computed:{zoombarStyle:function(){return{top:this.zoombarTop+"px"}}},mounted:function(){var i=this;this.$parent.createPromise.then(function(e){var t=e.Cesium,r=e.viewer;i.viewer=r,i.container=i.$parent.$refs.navigationContainer,i.screenSpaceEventHandler=new t.ScreenSpaceEventHandler(i.container),vi().isPc||(document.querySelector(".sm-zoom").style.visibility="visible")})},methods:{handleZoomBarScrollMouseDown:function(e,t){var s=1<arguments.length&&void 0!==t?t:this,r=Cesium,c=r.Cartesian2,i=r.defined,l=r.SceneMode;document.removeEventListener("mousemove",s.zoomBarScrollMouseMoveFunction,!1),document.removeEventListener("touchmove",s.zoomBarScrollMouseMoveFunction,!1),document.removeEventListener("mouseup",s.zoomBarScrollMouseUpFunction,!1),document.removeEventListener("touchend",s.zoomBarScrollMouseUpFunction,!1),i(s.zoombarTickFunction)&&s.viewer.clock.onTick.removeEventListener(s.zoombarTickFunction),s.zoomBarScrollMouseUpFunction=void 0,s.zoombarTickFunction=void 0,s.isZoomBarScrolling=!0;var u=s.viewer.scene.camera;s.zoombarTickFunction=function(){var e=s.zoombarTop-65;0<e?s.viewer.scene.mode===l.COLUMBUS_VIEW?u.zoomOut():PP(s,-1):e<0&&(s.viewer.scene.mode===l.COLUMBUS_VIEW?u.zoomIn():PP(s,1))},s.zoomBarScrollMouseMoveFunction=function(e){var t=s.zoombarTop,r=e.target.parentElement.getBoundingClientRect(),i=s.container.getBoundingClientRect(),n={};n.x="touchmove"===e.type?e.changedTouches[0].clientX-i.left:e.clientX-i.left,n.y="touchmove"===e.type?e.changedTouches[0].clientY-i.top:e.clientY-i.top;var o=s.viewer._element.getBoundingClientRect(),a=new c(n.x-r.left,n.y-r.top+o.top).y-16;a=120<(a=a<0?0:a)?120:a,s.zoombarTop=a,0<s.zoombarTop-t?s.viewer.scene.mode===l.COLUMBUS_VIEW?u.zoomOut():PP(s,-1):s.viewer.scene.mode===l.COLUMBUS_VIEW?u.zoomIn():PP(s,1)},s.zoomBarScrollMouseUpFunction=function(){s.isZoomBarScrolling=!1,document.removeEventListener("mousemove",s.zoomBarScrollMouseMoveFunction,!1),document.removeEventListener("touchmove",s.zoomBarScrollMouseMoveFunction,!1),document.removeEventListener("mouseup",s.zoomBarScrollMouseUpFunction,!1),document.removeEventListener("touchend",s.zoomBarScrollMouseUpFunction,!1),i(s.zoombarTickFunction)&&s.viewer.clock.onTick.removeEventListener(s.zoombarTickFunction),s.zoomBarScrollMouseUpFunction=void 0,s.zoomBarScrollMouseMoveFunction=void 0,s.zoombarTickFunction=void 0,s.zoombarTop=65},document.addEventListener("mousemove",s.zoomBarScrollMouseMoveFunction,!1),document.addEventListener("touchmove",s.zoomBarScrollMouseMoveFunction,!1),document.addEventListener("mouseup",s.zoomBarScrollMouseUpFunction,!1),document.addEventListener("touchend",s.zoomBarScrollMouseUpFunction,!1),s.viewer.clock.onTick.addEventListener(s.zoombarTickFunction)},handleZoomInMouseDown:function(e,t){var r=1<arguments.length&&void 0!==t?t:this,i=Cesium,n=i.defined,o=i.getTimestamp,a=i.SceneMode,s=i.ScreenSpaceEventType;r.screenSpaceEventHandler.removeInputAction(s.LEFT_UP),n(r.zoominTickFunction)&&r.viewer.clock.onTick.removeEventListener(r.zoominTickFunction),r.zoominMouseUpFunction=void 0,r.zoominTickFunction=void 0,r.isZoomin=!0,r.zoominLastTimestamp=o();var c=r.viewer.scene.camera;r.zoominTickFunction=function(){r.viewer.scene.mode===a.COLUMBUS_VIEW?c.zoomIn():PP(r,1)},r.zoominMouseUpFunction=function(){r.isZoomin=!1,r.screenSpaceEventHandler.removeInputAction(s.LEFT_UP),n(r.zoominTickFunction)&&r.viewer.clock.onTick.removeEventListener(r.zoominTickFunction),r.zoominMouseUpFunction=void 0,r.zoominTickFunction=void 0},r.screenSpaceEventHandler.setInputAction(r.zoominMouseUpFunction,s.LEFT_UP),r.viewer.clock.onTick.addEventListener(r.zoominTickFunction)},handleZoomOutMouseDown:function(e,t){var r=1<arguments.length&&void 0!==t?t:this,i=Cesium,n=i.defined,o=i.getTimestamp,a=i.SceneMode,s=i.ScreenSpaceEventType;r.screenSpaceEventHandler.removeInputAction(s.LEFT_UP),n(r.zoomoutTickFunction)&&r.viewer.clock.onTick.removeEventListener(r.zoomoutTickFunction),r.zoomoutMouseUpFunction=void 0,r.zoomoutTickFunction=void 0,r.iszoomout=!1,r.zoomoutLastTimestamp=o();var c=r.viewer.scene.camera;r.zoomoutTickFunction=function(){r.viewer.scene.mode===a.COLUMBUS_VIEW?c.zoomOut():PP(r,-1)},r.zoomoutMouseUpFunction=function(){r.iszoomout=!1,r.screenSpaceEventHandler.removeInputAction(s.LEFT_UP),n(r.zoomoutTickFunction)&&r.viewer.clock.onTick.removeEventListener(r.zoomoutTickFunction),r.zoomoutMouseUpFunction=void 0,r.zoomoutTickFunction=void 0},r.screenSpaceEventHandler.setInputAction(r.zoomoutMouseUpFunction,s.LEFT_UP),r.viewer.clock.onTick.addEventListener(r.zoomoutTickFunction)}},destroyed:function(){this.screenSpaceEventHandler&&this.screenSpaceEventHandler.destroy()}})?EP.options:EP)||{}).__file="VcZoomControlSM.vue",kP.render||(kP.render=SP.render,kP.staticRenderFns=SP.staticRenderFns,kP._compiled=!0,OP&&(kP.functional=!0)),kP._scopeId=TP,kP)},data:function(){return{defaultOptions:{enableCompass:!0,enableCompassOuterRing:!0,enableZoomControl:!0},ncTop:0}},mixins:[Yi],props:{options:Object},computed:{navigationContainerStyle:function(){return{top:this.ncTop+"px"}}},watch:{options:{handler:function(){this.reload()},deep:!0}},methods:{createCesiumObject:function(){return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:Di(this.defaultOptions,this.options),this.viewer.widgetResized.addEventListener(this.widgetResized),this.widgetResized();case 3:case"end":return e.stop()}},null,this)},mount:function(){return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}})},unmount:function(){return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}})},widgetResized:function(){var e=this.viewer,t=0;e._toolbar&&(t+=e._toolbar.getBoundingClientRect().height),this.ncTop=t}},stubVNode:{empty:function(){return this.$options.name}},created:function(){var e=this;te(this,{cesiumNavigation:{enumerable:!0,get:function(){return e.$services&&e.cesiumObject}}})}};var FP,LP,IP,jP,AP,DP=(IP=void 0,jP=!(FP={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{ref:"navigationContainer",staticClass:"vc-navigationContainer-sm",style:this.navigationContainerStyle},[this.defaultOptions.enableCompass?t("vc-compass-sm",{attrs:{enableCompassOuterRing:this.defaultOptions.enableCompassOuterRing}}):this._e(),this._v(" "),this.defaultOptions.enableZoomControl?t("vc-zoom-control-sm"):this._e()],1)},staticRenderFns:[]}),(AP=("function"==typeof(LP=RP)?LP.options:LP)||{}).__file="VcNavigationSM.vue",AP.render||(AP.render=FP.render,AP.staticRenderFns=FP.staticRenderFns,AP._compiled=!0,jP&&(AP.functional=!0)),AP._scopeId=IP,AP);function NP(e){NP.installed||(NP.installed=!0,e.component(DP.name,DP))}var GP=Object.freeze({__proto__:null,default:NP,VcNavigationSM:DP,install:NP}),zP={name:"vc-analytics-flood",data:function(){return{geometry:null,attributes:null,extrudedHeight:.1,flooding:!1,floodDone:!1,appearance:null}},mixins:[Yi],props:{minHeight:{type:Number,default:0},maxHeight:Number,polygonHierarchy:Array,speed:{type:Number,default:10},color:{type:Object|Array|String,default:"rgba(40,150,200,0.6)"}},watch:{flooding:function(e){var t=this.$listeners.activeEvt;e?(this.floodDone&&(this.extrudedHeight=this.extrudedHeight>=this.minHeight?this.minHeight:.1,this.floodDone=!1),this.viewer.clock.onTick.addEventListener(this.onTick)):this.viewer.clock.onTick.removeEventListener(this.onTick),t&&this.$emit("activeEvt",{isActive:e})},minHeight:function(e){this.extrudedHeight=e}},methods:{createCesiumObject:function(){var t,r,i;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.Cesium,r=this.minHeight,i=this.color,this.attributes={color:t.ColorGeometryInstanceAttribute.fromColor(Ui(i))},this.extrudedHeight=r,e.abrupt("return",!0);case 4:case"end":return e.stop()}},null,this)},onTick:function(){var e=this.maxHeight,t=this.speed;this.extrudedHeight<e?this.extrudedHeight=this.extrudedHeight+t:(this.floodDone=!0,this.flooding=!1)},mount:function(){return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}})},unmount:function(){return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:this.extrudedHeight=this.minHeight,this.flooding=!1,this.$refs.primitive&&this.$refs.primitive.unload();case 3:case"end":return e.stop()}},null,this)}},created:function(){var e=this;te(this,{floodObject:{enumerable:!0,get:function(){return e.$services&&e.cesiumObject}}})}};var BP,VP,qP,WP,UP,HP=(qP=void 0,WP=!(BP={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("i",{class:t.$options.name,staticStyle:{display:"none !important"}},[r("vc-primitive-classification",{ref:"primitive",attrs:{appearance:t.appearance,asynchronous:!1,show:0!==t.extrudedHeight&&""!==t.extrudedHeight}},[r("vc-instance-geometry",{attrs:{attributes:t.attributes,geometry:t.geometry},on:{"update:geometry":function(e){t.geometry=e}}},[r("vc-geometry-polygon",{attrs:{extrudedHeight:t.extrudedHeight,polygonHierarchy:t.polygonHierarchy}})],1)],1)],1)},staticRenderFns:[]}),(UP=("function"==typeof(VP=zP)?VP.options:VP)||{}).__file="VcFlood.vue",UP.render||(UP.render=BP.render,UP.staticRenderFns=BP.staticRenderFns,UP._compiled=!0,WP&&(UP.functional=!0)),UP._scopeId=qP,UP);function $P(e){$P.installed||($P.installed=!0,e.component(HP.name,HP))}var ZP=Object.freeze({__proto__:null,default:$P,CesiumFlood:HP,install:$P}),KP=w.JSON||(w.JSON={stringify:JSON.stringify}),XP=function(e){return KP.stringify.apply(KP,arguments)},JP=t(function(e){var t,r;t=i,r=function(){var h,s={defaultRadius:40,defaultRenderer:"canvas2d",defaultGradient:{.25:"rgb(0,0,255)",.55:"rgb(0,255,0)",.85:"yellow",1:"rgb(255,0,0)"},defaultMaxOpacity:1,defaultMinOpacity:0,defaultBlur:.85,defaultXField:"x",defaultYField:"y",defaultValueField:"value",plugins:{}},c=(h=s.defaultRadius,e.prototype={_organiseData:function(e,t){var r=e[this._xField],i=e[this._yField],n=this._radi,o=this._data,a=this._max,s=this._min,c=e[this._valueField]||1,l=e.radius||this._cfgRadius||h;o[r]||(o[r]=[],n[r]=[]),o[r][i]?o[r][i]+=c:(o[r][i]=c,n[r][i]=l);var u=o[r][i];return a<u?(t?this.setDataMax(u):this._max=u,!1):u<s?(t?this.setDataMin(u):this._min=u,!1):{x:r,y:i,value:c,radius:l,min:s,max:a}},_unOrganizeData:function(){var e=[],t=this._data,r=this._radi;for(var i in t)for(var n in t[i])e.push({x:i,y:n,radius:r[i][n],value:t[i][n]});return{min:this._min,max:this._max,data:e}},_onExtremaChange:function(){this._coordinator.emit("extremachange",{min:this._min,max:this._max})},addData:function(){if(0<arguments[0].length)for(var e=arguments[0],t=e.length;t--;)this.addData.call(this,e[t]);else{var r=this._organiseData(arguments[0],!0);r&&(0===this._data.length&&(this._min=this._max=r.value),this._coordinator.emit("renderpartial",{min:this._min,max:this._max,data:[r]}))}return this},setData:function(e){var t=e.data,r=t.length;this._data=[],this._radi=[];for(var i=0;i<r;i++)this._organiseData(t[i],!1);return this._max=e.max,this._min=e.min||0,this._onExtremaChange(),this._coordinator.emit("renderall",this._getInternalData()),this},removeData:function(){},setDataMax:function(e){return this._max=e,this._onExtremaChange(),this._coordinator.emit("renderall",this._getInternalData()),this},setDataMin:function(e){return this._min=e,this._onExtremaChange(),this._coordinator.emit("renderall",this._getInternalData()),this},setCoordinator:function(e){this._coordinator=e},_getInternalData:function(){return{max:this._max,min:this._min,data:this._data,radi:this._radi}},getData:function(){return this._unOrganizeData()}},e);function e(e){this._coordinator={},this._data=[],this._radi=[],this._min=10,this._max=1,this._xField=e.xField||e.defaultXField,this._yField=e.yField||e.defaultYField,this._valueField=e.valueField||e.defaultValueField,e.radius&&(this._cfgRadius=e.radius)}var t=(r.prototype={renderPartial:function(e){0<e.data.length&&(this._drawAlpha(e),this._colorize())},renderAll:function(e){this._clear(),0<e.data.length&&(this._drawAlpha(function(e){for(var t=[],r=e.min,i=e.max,n=e.radi,e=e.data,o=Object.keys(e),a=o.length;a--;)for(var s=o[a],c=Object.keys(e[s]),l=c.length;l--;){var u=c[l],h=e[s][u],d=n[s][u];t.push({x:s,y:u,value:h,radius:d})}return{min:r,max:i,data:t}}(e)),this._colorize())},_updateGradient:function(e){this._palette=o(e)},updateConfig:function(e){e.gradient&&this._updateGradient(e),this._setStyles(e)},setDimensions:function(e,t){this._width=e,this._height=t,this.canvas.width=this.shadowCanvas.width=e,this.canvas.height=this.shadowCanvas.height=t},_clear:function(){this.shadowCtx.clearRect(0,0,this._width,this._height),this.ctx.clearRect(0,0,this._width,this._height)},_setStyles:function(e){this._blur=0==e.blur?0:e.blur||e.defaultBlur,e.backgroundColor&&(this.canvas.style.backgroundColor=e.backgroundColor),this._width=this.canvas.width=this.shadowCanvas.width=e.width||this._width,this._height=this.canvas.height=this.shadowCanvas.height=e.height||this._height,this._opacity=255*(e.opacity||0),this._maxOpacity=255*(e.maxOpacity||e.defaultMaxOpacity),this._minOpacity=255*(e.minOpacity||e.defaultMinOpacity),this._useGradientOpacity=!!e.useGradientOpacity},_drawAlpha:function(e){for(var t,r,i,n,o,a,s,c=this._min=e.min,l=this._max=e.max,u=(e=e.data||[]).length,h=1-this._blur;u--;){var d,p=e[u],m=p.x,f=p.y,v=p.radius,g=Math.min(p.value,l),y=m-v,b=f-v,w=this.shadowCtx;this._templates[v]?d=this._templates[v]:this._templates[v]=(t=v,r=h,s=o=n=i=void 0,n=document.createElement("canvas"),o=n.getContext("2d"),s=a=t,n.width=n.height=2*t,1==r?(o.beginPath(),o.arc(a,s,t,0,2*Math.PI,!1),o.fillStyle="rgba(0,0,0,1)",o.fill()):((i=o.createRadialGradient(a,s,t*r,a,s,t)).addColorStop(0,"rgba(0,0,0,1)"),i.addColorStop(1,"rgba(0,0,0,0)"),o.fillStyle=i,o.fillRect(0,0,2*t,2*t)),d=n);var _=(g-c)/(l-c);w.globalAlpha=_<.01?.01:_,w.drawImage(d,y,b),y<this._renderBoundaries[0]&&(this._renderBoundaries[0]=y),b<this._renderBoundaries[1]&&(this._renderBoundaries[1]=b),y+2*v>this._renderBoundaries[2]&&(this._renderBoundaries[2]=y+2*v),b+2*v>this._renderBoundaries[3]&&(this._renderBoundaries[3]=b+2*v)}},_colorize:function(){var e=this._renderBoundaries[0],t=this._renderBoundaries[1],r=this._renderBoundaries[2]-e,i=this._renderBoundaries[3]-t,n=this._width,o=this._height,a=this._opacity,s=this._maxOpacity,c=this._minOpacity,l=this._useGradientOpacity;e<0&&(e=0),t<0&&(t=0),n<e+r&&(r=n-e),o<t+i&&(i=o-t);for(var u=this.shadowCtx.getImageData(e,t,r,i),h=u.data,d=h.length,p=this._palette,m=3;m<d;m+=4){var f,v=h[m],g=4*v;g&&(f=0<a?a:v<s?v<c?c:v:s,h[m-3]=p[g],h[m-2]=p[1+g],h[m-1]=p[2+g],h[m]=l?p[3+g]:f)}u.data=h,this.ctx.putImageData(u,e,t),this._renderBoundaries=[1e3,1e3,0,0]},getValueAt:function(e){var t=this.shadowCtx.getImageData(e.x,e.y,1,1).data[3],r=this._max,i=this._min;return Math.abs(r-i)*(t/255)>>0},getDataURL:function(){return this.canvas.toDataURL()}},r);function o(e){var t=e.gradient||e.defaultGradient,r=document.createElement("canvas"),i=r.getContext("2d");r.width=256,r.height=1;var n=i.createLinearGradient(0,0,256,1);for(var o in t)n.addColorStop(o,t[o]);return i.fillStyle=n,i.fillRect(0,0,256,1),i.getImageData(0,0,256,1).data}function r(e){var t=e.container,r=this.shadowCanvas=document.createElement("canvas"),i=this.canvas=e.canvas||document.createElement("canvas"),n=(this._renderBoundaries=[1e4,1e4,0,0],getComputedStyle(e.container)||{});i.className="heatmap-canvas",this._width=i.width=r.width=e.width||+n.width.replace(/px/,""),this._height=i.height=r.height=e.height||+n.height.replace(/px/,""),this.shadowCtx=r.getContext("2d"),this.ctx=i.getContext("2d"),i.style.cssText=r.style.cssText="position:absolute;left:0;top:0;",t.style.position="relative",t.appendChild(i),this._palette=o(e),this._templates={},this._setStyles(e)}var i,l,u=(i=!1,"canvas2d"===s.defaultRenderer&&(i=t),i),d=function(){for(var e={},t=arguments.length,r=0;r<t;r++){var i=arguments[r];for(var n in i)e[n]=i[n]}return e},n=(a.prototype={on:function(e,t,r){var i=this.cStore;i[e]||(i[e]=[]),i[e].push(function(e){return t.call(r,e)})},emit:function(e,t){var r=this.cStore;if(r[e])for(var i=r[e].length,n=0;n<i;n++)(0,r[e][n])(t)}},l=a,p.prototype={addData:function(){return this._store.addData.apply(this._store,arguments),this},removeData:function(){return this._store.removeData&&this._store.removeData.apply(this._store,arguments),this},setData:function(){return this._store.setData.apply(this._store,arguments),this},setDataMax:function(){return this._store.setDataMax.apply(this._store,arguments),this},setDataMin:function(){return this._store.setDataMin.apply(this._store,arguments),this},configure:function(e){return this._config=d(this._config,e),this._renderer.updateConfig(this._config),this._coordinator.emit("renderall",this._store._getInternalData()),this},repaint:function(){return this._coordinator.emit("renderall",this._store._getInternalData()),this},getData:function(){return this._store.getData()},getDataURL:function(){return this._renderer.getDataURL()},getValueAt:function(e){return this._store.getValueAt?this._store.getValueAt(e):this._renderer.getValueAt?this._renderer.getValueAt(e):null}},p);function a(){this.cStore={}}function p(){var t,e,r,i,n=this._config=d(s,arguments[0]||{});if(this._coordinator=new l,n.plugin){var o=n.plugin;if(!s.plugins[o])throw new Error("Plugin '"+o+"' not found. Maybe it was not registered.");var a=s.plugins[o];this._renderer=new a.renderer(n),this._store=new a.store(n)}else this._renderer=new u(n),this._store=new c(n);e=(t=this)._renderer,r=t._coordinator,i=t._store,r.on("renderpartial",e.renderPartial,e),r.on("renderall",e.renderAll,e),r.on("extremachange",function(e){t._config.onExtremaChange&&t._config.onExtremaChange({min:e.min,max:e.max,gradient:t._config.gradient||t._config.defaultGradient})}),i.setCoordinator(r)}return{create:function(e){return new n(e)},register:function(e,t){s.plugins[e]=t}}},e.exports?e.exports=r():t.h337=r()}),YP={name:"vc-heatmap",data:function(){return{defaultOptions:{useEntitiesIfAvailable:!0,minCanvasSize:700,maxCanvasSize:2e3,radiusFactor:60,spacingFactor:1.5,maxOpacity:.8,minOpacity:.1,blur:.85,gradient:{".3":"blue",".65":"yellow",".8":"orange",".95":"red"}},material:null,appearance:null,geometry:null,coordinates:{west:0,south:0,east:0,north:0},layerUrl:""}},mixins:[Yi],props:{type:{type:Number,default:0},bounds:Object,options:Object,min:Number,max:Number,data:Array,show:{type:Boolean,default:!0}},computed:{changeProps:function(){return{bounds:this.bounds,options:this.options,min:this.min,max:this.max,data:this.data}}},watch:{changeProps:{handler:function(e,t){var r;XP(e)!==XP(t)&&(r=this._heatmapInstance,XP(e.bounds)!==XP(t.bounds)&&this.setBounds(e.bounds),e.min!==t.min&&r.setDataMin(e.min),e.max!==t.max&&r.setDataMin(e.max),XP(e.options)!==XP(t.options)&&r.configure(e.options),XP(e.data)!==XP(t.data)&&this.setWGS84Data(e.min,e.max,e.data),this.layerUrl=r.getDataURL(),this.appearance.material.uniforms.image=this.layerUrl)},deep:!0}},methods:{createCesiumObject:function(){var t,r,i,n,o,a,s;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.Cesium,r=this.bounds,i=this.options,n=this.min,o=this.max,a=this.data,s=this.defaultOptions,this._WMP=new t.WebMercatorProjection,this._id=this.getID(),i.gradient=i.gradient?i.gradient:s.gradient,i.maxOpacity=i.maxOpacity?i.maxOpacity:s.maxOpacity,i.minOpacity=i.minOpacity?i.minOpacity:s.minOpacity,i.blur=i.blur?i.blur:s.blur,this.setBounds(r),this._container=this.getContainer(this.width,this.height,this._id),this.options.container=this._container,this._heatmapInstance=JP.create(this.options),this._container.children[0].setAttribute("id",this._id+"-hm"),this.setWGS84Data(n,o,a)&&(this.layerUrl=this._heatmapInstance.getDataURL()),this.material=new t.ImageMaterialProperty({image:new t.CallbackProperty(this.materialCallback,!1),transparent:!0}),this.appearance=new t.MaterialAppearance({material:new t.Material({fabric:{type:"Image",uniforms:{image:this.layerUrl}}})}),e.abrupt("return",this._heatmapInstance);case 16:case"end":return e.stop()}},null,this)},materialCallback:function(){return this.layerUrl},setBounds:function(e){var t=this.options,r=this.defaultOptions;this._mBounds=this.wgs84ToMercatorBounds(e),this.setWidthAndHeight(this._mBounds),t.radius=Math.round(t.radius?t.radius:this.width>this.height?this.width/r.radiusFactor:this.height/r.radiusFactor),this._spacing=t.radius*r.spacingFactor,this._xoffset=this._mBounds.west,this._yoffset=this._mBounds.south,this.width=Math.round(this.width+2*this._spacing),this.height=Math.round(this.height+2*this._spacing),this._mBounds.west-=this._spacing*this._factor,this._mBounds.east+=this._spacing*this._factor,this._mBounds.south-=this._spacing*this._factor,this._mBounds.north+=this._spacing*this._factor,this._bounds=this.mercatorToWgs84Bounds(this._mBounds),this.coordinates=this._bounds},mount:function(){return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}})},unmount:function(){var t;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return document.body.removeChild(this._container),t=this.type,e.abrupt("return",this.$refs[t]&&this.$refs[t].unload());case 3:case"end":return e.stop()}},null,this)},setWidthAndHeight:function(e){var t=this.defaultOptions;this.width=0<e.east&&e.west<0?e.east+Math.abs(e.west):Math.abs(e.east-e.west),this.height=0<e.north&&e.south<0?e.north+Math.abs(e.south):Math.abs(e.north-e.south),this._factor=1,this.width>this.height&&this.width>t.maxCanvasSize?(this._factor=this.width/t.maxCanvasSize,this.height/this._factor<t.minCanvasSize&&(this._factor=this.height/t.minCanvasSize)):this.height>this.width&&this.height>t.maxCanvasSize?(this._factor=this.height/t.maxCanvasSize,this.width/this._factor<t.minCanvasSize&&(this._factor=this.width/t.minCanvasSize)):this.width<this.height&&this.width<t.minCanvasSize?(this._factor=this.width/t.minCanvasSize,this.height/this._factor>t.maxCanvasSize&&(this._factor=this.height/t.maxCanvasSize)):this.height<this.width&&this.height<t.minCanvasSize&&(this._factor=this.height/t.minCanvasSize,this.width/this._factor>t.maxCanvasSize&&(this._factor=this.width/t.maxCanvasSize)),this.width=this.width/this._factor,this.height=this.height/this._factor},getContainer:function(e,t,r){var i=document.createElement("div");return r&&i.setAttribute("id",r),i.setAttribute("style","width: "+e+"px; height: "+t+"px; margin: 0px; display: none;"),document.body.appendChild(i),i},getID:function(e){for(var t="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=0;i<(e||8);i++)t+=r.charAt(Math.floor(Math.random()*r.length));return t},wgs84ToMercator:function(e){var t=this._WMP.project(Cesium.Cartographic.fromDegrees(e.x,e.y));return{x:t.x,y:t.y}},wgs84ToMercatorBounds:function(e){var t=this._WMP.project(Cesium.Cartographic.fromDegrees(e.west,e.south)),r=this._WMP.project(Cesium.Cartographic.fromDegrees(e.east,e.north));return{north:r.y,east:r.x,south:t.y,west:t.x}},mercatorToWgs84:function(e){var t=this._WMP.unproject(new Cesium.Cartesian3(e.x,e.y));return{x:t.longitude,y:t.latitude}},mercatorToWgs84Bounds:function(e){var t=this._WMP.unproject(new Cesium.Cartesian3(e.west,e.south)),r=this._WMP.unproject(new Cesium.Cartesian3(e.east,e.north));return{north:this.rad2deg(r.latitude),east:this.rad2deg(r.longitude),south:this.rad2deg(t.latitude),west:this.rad2deg(t.longitude)}},deg2rad:function(e){return e*(Math.PI/180)},rad2deg:function(e){return e/(Math.PI/180)},setData:function(e,t,r){return!!(r&&0<r.length&&null!==e&&!1!==e&&null!==t&&!1!==t)&&(this._heatmapInstance.setData({min:e,max:t,data:r}),!0)},setWGS84Data:function(e,t,r){if(r&&0<r.length&&null!==e&&!1!==e&&null!==t&&!1!==t){for(var i=[],n=0;n<r.length;n++){var o=r[n],a=this.wgs84PointToHeatmapPoint(o);!o.value&&0!==o.value||(a.value=o.value),i.push(a)}return this.setData(e,t,i)}return!1},wgs84PointToHeatmapPoint:function(e){return this.mercatorPointToHeatmapPoint(this.wgs84ToMercator(e))},mercatorPointToHeatmapPoint:function(e){var t={};return t.x=Math.round((e.x-this._xoffset)/this._factor+this._spacing),t.y=Math.round((e.y-this._yoffset)/this._factor+this._spacing),t.y=this.height-t.y,t}},created:function(){var e=this;te(this,{heatMapInstance:{enumerable:!0,get:function(){return e.$services&&e.cesiumObject}}})}};var QP,eS,tS,rS,iS,nS=(tS=void 0,rS=!(QP={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("i",{class:t.$options.name,staticStyle:{display:"none !important"}},[1===t.type?r("vc-entity",{ref:"1",attrs:{show:t.show}},[r("vc-graphics-rectangle",{attrs:{coordinates:t.coordinates,material:t.material}})],1):0===t.type?r("vc-primitive-ground",{ref:"0",attrs:{show:t.show,appearance:t.appearance}},[r("vc-instance-geometry",{attrs:{geometry:t.geometry},on:{"update:geometry":function(e){t.geometry=e}}},[r("vc-geometry-rectangle",{attrs:{rectangle:t.coordinates}})],1)],1):2===t.type?r("vc-layer-imagery",{ref:"2",attrs:{show:t.show}},[r("vc-provider-imagery-tile-single",{attrs:{url:t.layerUrl,rectangle:t.coordinates}})],1):t._e()],1)},staticRenderFns:[]}),(iS=("function"==typeof(eS=YP)?eS.options:eS)||{}).__file="VcHeatMap.vue",iS.render||(iS.render=QP.render,iS.staticRenderFns=QP.staticRenderFns,iS._compiled=!0,rS&&(iS.functional=!0)),iS._scopeId=tS,iS);function oS(e){oS.installed||(oS.installed=!0,e.component(nS.name,nS))}var aS=Object.freeze({__proto__:null,default:oS,CesiumHeatMap:nS,install:oS}),sS=e(t(function(e,t){function y(e){return Math.max.apply(null,e)}function b(e){return Math.min.apply(null,e)}function O(e,t){for(var r=[],i=0;i<t;i++)r.push(e);return r}function w(e,t,r){for(var i=0,n=e.length-1,o=!1,a=e.length;i<a;n=i++)e[i][1]>r!=e[n][1]>r&&t<(e[n][0]-e[i][0])*(r-e[i][1])/(e[n][1]-e[i][1])+e[i][0]&&(o=!o);return o}function k(e,t){for(var r=0,i=O(0,t*t);r<t;r++)i[r*t+r]=e;return i}function R(e,t,r){for(var i,n=0,o=Array(r*t);n<t;n++)for(i=0;i<r;i++)o[i*t+n]=e[n*r+i];return o}function F(e,t,r,i){for(var n,o=0,a=Array(r*i);o<r;o++)for(n=0;n<i;n++)a[o*i+n]=e[o*i+n]+t[o*i+n];return a}function L(e,t,r,i,n){for(var o,a,s=0,c=Array(r*n);s<r;s++)for(o=0;o<n;o++)for(a=c[s*n+o]=0;a<i;a++)c[s*n+o]+=e[s*i+a]*t[a*n+o];return c}function I(e,t){for(var r,i,n=Array(t),o=0;o<t;o++)n[o]=e[o*t+o];for(o=0;o<t;o++){for(r=0;r<o;r++)n[o]-=e[o*t+r]*e[o*t+r];if(n[o]<=0)return!1;for(n[o]=Math.sqrt(n[o]),r=o+1;r<t;r++){for(i=0;i<o;i++)e[r*t+o]-=e[r*t+i]*e[o*t+i];e[r*t+o]/=n[o]}}for(o=0;o<t;o++)e[o*t+o]=n[o];return!0}function j(e,t){for(var r,i,n,o=0;o<t;o++)for(e[o*t+o]=1/e[o*t+o],r=o+1;r<t;r++){for(n=0,i=o;i<r;i++)n-=e[r*t+i]*e[i*t+o];e[r*t+o]=n/e[r*t+r]}for(o=0;o<t;o++)for(r=o+1;r<t;r++)e[o*t+r]=0;for(o=0;o<t;o++){for(e[o*t+o]*=e[o*t+o],i=o+1;i<t;i++)e[o*t+o]+=e[i*t+o]*e[i*t+o];for(r=o+1;r<t;r++)for(i=r;i<t;i++)e[o*t+r]+=e[i*t+o]*e[i*t+r]}for(o=0;o<t;o++)for(r=0;r<o;r++)e[o*t+r]=e[r*t+o]}function A(e,t){for(var r,i,n,o,a,s,c,l,u=t,h=Array(t*t),d=Array(t),p=Array(t),m=Array(t),f=0,v=0,g=0;g<t;g++)for(r=0;r<t;r++)h[g*t+r]=g===r?1:0;for(r=0;r<t;r++)m[r]=0;for(g=0;g<t;g++){for(r=a=0;r<t;r++)if(1!==m[r])for(i=0;i<t;i++)0===m[i]&&Math.abs(e[r*t+i])>=a&&(a=Math.abs(e[r*t+i]),v=r,f=i);if(++m[f],v!==f){for(n=0;n<t;n++)l=e[v*t+n],e[v*t+n]=e[f*t+n],e[f*t+n]=l;for(n=0;n<u;n++)l=h[v*t+n],h[v*t+n]=h[f*t+n],h[f*t+n]=l}if(p[g]=v,0===e[(d[g]=f)*t+f])return!1;for(c=1/e[f*t+f],e[f*t+f]=1,n=0;n<t;n++)e[f*t+n]*=c;for(n=0;n<u;n++)h[f*t+n]*=c;for(o=0;o<t;o++)if(o!==f){for(s=e[o*t+f],n=e[o*t+f]=0;n<t;n++)e[o*t+n]-=e[f*t+n]*s;for(n=0;n<u;n++)h[o*t+n]-=h[f*t+n]*s}}for(n=t-1;0<=n;n--)if(p[n]!==d[n])for(i=0;i<t;i++)l=e[i*t+p[n]],e[i*t+p[n]]=e[i*t+d[n]],e[i*t+d[n]]=l;return!0}function D(e,t,r,i,n){return t+(i-t)/r*(1-Math.exp(-1/n*Math.pow(e/r,2)))}function N(e,t,r,i,n){return t+(i-t)/r*(1-Math.exp(-1/n*(e/r)))}function G(e,t,r,i){return r<e?t+(i-t)/r:t+(i-t)/r*(e/r*1.5-.5*Math.pow(e/r,3))}function r(e,t,r,i,n,o){var a,s,c={t:e,x:t,y:r,nugget:0,range:0,sill:0,A:1/3,n:0,model:N,K:[],M:[]};switch(i){case"gaussian":c.model=D;break;case"exponential":c.model=N;break;case"spherical":c.model=G;break;default:c.model=N}for(var l=e.length,u=Array((l*l-l)/2),h=0,d=0;h<l;h++)for(a=0;a<h;a++,d++)u[d]=Array(2),u[d][0]=Math.pow(Math.pow(t[h]-t[a],2)+Math.pow(r[h]-r[a],2),.5),u[d][1]=Math.abs(e[h]-e[a]);u.sort(function(e,t){return e[0]-t[0]}),c.range=u[(l*l-l)/2-1][0];var p=30<(l*l-l)/2?30:(l*l-l)/2,m=c.range/p,f=O(0,p),v=O(0,p);if(p<30)for(s=0;s<p;s++)f[s]=u[s][0],v[s]=u[s][1];else{for(s=d=a=h=0;h<p&&a<(l*l-l)/2;h++,d=0){for(;u[a][0]<=(h+1)*m&&(f[s]+=u[a][0],v[s]+=u[a][1],d++,!((l*l-l)/2<=++a)););0<d&&(f[s]/=d,v[s]/=d,s++)}if(s<2)return c}l=s,c.range=f[l-1]-f[0];var g=O(1,2*l),y=Array(l),b=c.A;for(h=0;h<l;h++){switch(i){case"gaussian":g[2*h+1]=1-Math.exp(-1/b*Math.pow(f[h]/c.range,2));break;case"exponential":g[2*h+1]=1-Math.exp(-1/b*f[h]/c.range);break;case"spherical":g[2*h+1]=f[h]/c.range*1.5-.5*Math.pow(f[h]/c.range,3)}y[h]=v[h]}var w=R(g,l,2),_=L(w,g,2,l,2),C=(_=F(_,k(1/o,2),2,2)).slice(0);I(_,2)?j(_,2):(A(C,2),_=C);var M=L(L(_,w,2,2,l),y,2,l,1);c.nugget=M[0],c.sill=M[1]*c.range+c.nugget,c.n=t.length,l=t.length;var x=Array(l*l);for(h=0;h<l;h++){for(a=0;a<h;a++)x[h*l+a]=c.model(Math.pow(Math.pow(t[h]-t[a],2)+Math.pow(r[h]-r[a],2),.5),c.nugget,c.range,c.sill,c.A),x[a*l+h]=x[h*l+a];x[h*l+h]=c.model(0,c.nugget,c.range,c.sill,c.A)}var P=F(x,k(n,l),l,l),S=P.slice(0);I(P,l)?j(P,l):(A(S,l),P=S);var E=P.slice(0),T=L(P,e,l,l,1);return c.K=E,c.M=T,c}function _(e,t,r){for(var i=Array(r.n),n=0;n<r.n;n++)i[n]=r.model(Math.pow(Math.pow(e-r.x[n],2)+Math.pow(t-r.y[n],2),.5),r.nugget,r.range,r.sill,r.A);return L(i,r.M,1,r.n,1)[0]}function i(e,t,r){for(var i=Array(r.n),n=0;n<r.n;n++)i[n]=r.model(Math.pow(Math.pow(e-r.x[n],2)+Math.pow(t-r.y[n],2),.5),r.nugget,r.range,r.sill,r.A);var o=L(L(i,r.K,1,r.n,r.n),i,1,r.n,1)[0];return r.model(0,r.nugget,r.range,r.sill,r.A)+o}function n(e,t,r){var i,n,o=e.length;if(0!==o){for(var a,s,c=[e[0][0][0],e[0][0][0]],l=[e[0][0][1],e[0][0][1]],u=0;u<o;u++)for(i=0;i<e[u].length;i++)e[u][i][0]<c[0]&&(c[0]=e[u][i][0]),e[u][i][0]>c[1]&&(c[1]=e[u][i][0]),e[u][i][1]<l[0]&&(l[0]=e[u][i][1]),e[u][i][1]>l[1]&&(l[1]=e[u][i][1]);var h=Array(2),d=Array(2),p=Array(2),m=Array(2),f=Math.ceil((c[1]-c[0])/r),v=Math.ceil((l[1]-l[0])/r),g=Array(f+1);for(u=0;u<=f;u++)g[u]=Array(v+1);for(u=0;u<o;u++){for(p[0]=e[u][0][0],p[1]=p[0],m[0]=e[u][0][1],m[1]=m[0],i=1;i<e[u].length;i++)e[u][i][0]<p[0]&&(p[0]=e[u][i][0]),e[u][i][0]>p[1]&&(p[1]=e[u][i][0]),e[u][i][1]<m[0]&&(m[0]=e[u][i][1]),e[u][i][1]>m[1]&&(m[1]=e[u][i][1]);for(h[0]=Math.floor((p[0]-(p[0]-c[0])%r-c[0])/r),h[1]=Math.ceil((p[1]-(p[1]-c[1])%r-c[0])/r),d[0]=Math.floor((m[0]-(m[0]-l[0])%r-l[0])/r),d[1]=Math.ceil((m[1]-(m[1]-l[1])%r-l[0])/r),i=h[0];i<=h[1];i++)for(n=d[0];n<=d[1];n++)a=c[0]+i*r,s=l[0]+n*r,w(e[u],a,s)&&(g[i][n]=_(a,s,t))}return{xlim:c,ylim:l,width:r,data:g,zlim:[b(t.t),y(t.t)]}}}function o(e,t,r,i,n){var o=e.getContext("2d"),a=t.data,s=t.zlim,c=t.width;if(o){o.clearRect(0,0,e.width,e.height);for(var l=[r[1]-r[0],i[1]-i[0],s[1]-s[0]],u=void 0,h=void 0,d=void 0,p=void 0,m=void 0,f=a.length,v=a[0].length,g=Math.ceil(c*e.width/(r[1]-r[0])),y=Math.ceil(c*e.height/(i[1]-i[0])),u=0;u<f;u++)for(h=0;h<v;h++)void 0!==a[u][h]&&(d=e.width*(u*c+t.xlim[0]-r[0])/l[0],p=e.height*(1-(h*c+t.ylim[0]-i[0])/l[1]),(m=(a[u][h]-s[0])/l[2])<0&&(m=0),1<m&&(m=1),o.fillStyle=n[Math.floor((n.length-1)*m)],o.fillRect(Math.round(d-g/2),Math.round(p-y/2),g,y))}}var a,s;s={train:r,predict:_,variance:i,grid:n,plot:o,max:y,min:b,pip:w,rep:O,matrixDiag:k,matrixTranspose:R,matrixAdd:F,matrixMultiply:L,matrixChol:I,matrixChol2inv:j,matrixSolve:A,variogramGaussian:D,variogramExponential:N,variogramSpherical:G},(a=t).default=s,a.grid=n,a.matrixAdd=F,a.matrixChol=I,a.matrixChol2inv=j,a.matrixDiag=k,a.matrixMultiply=L,a.matrixSolve=A,a.matrixTranspose=R,a.max=y,a.min=b,a.pip=w,a.plot=o,a.predict=_,a.rep=O,a.train=r,a.variance=i,a.variogramExponential=N,a.variogramGaussian=D,a.variogramSpherical=G,Object.defineProperty(a,"__esModule",{value:!0})})),cS=t(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=6371008.8,i={meters:r,metres:r,millimeters:1e3*r,millimetres:1e3*r,centimeters:100*r,centimetres:100*r,kilometers:r/1e3,kilometres:r/1e3,miles:r/1609.344,nauticalmiles:r/1852,inches:39.37*r,yards:r/1.0936,feet:3.28084*r,radians:1,degrees:r/111325},n={meters:1,metres:1,millimeters:1e3,millimetres:1e3,centimeters:100,centimetres:100,kilometers:.001,kilometres:.001,miles:1/1609.344,nauticalmiles:1/1852,inches:39.37,yards:1/1.0936,feet:3.28084,radians:1/r,degrees:1/111325},o={meters:1,metres:1,millimeters:1e6,millimetres:1e6,centimeters:1e4,centimetres:1e4,kilometers:1e-6,kilometres:1e-6,acres:247105e-9,miles:386e-9,yards:1.195990046,feet:10.763910417,inches:1550.003100006};function a(e,t,r){if(!y(r=r||{}))throw new Error("options is invalid");var i=r.bbox,n=r.id;if(void 0===e)throw new Error("geometry is required");if(t&&t.constructor!==Object)throw new Error("properties must be an Object");i&&b(i),n&&w(n);var o={type:"Feature"};return n&&(o.id=n),i&&(o.bbox=i),o.properties=t||{},o.geometry=e,o}function s(e,t,r){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!g(e[0])||!g(e[1]))throw new Error("coordinates must contain numbers");return a({type:"Point",coordinates:e},t,r)}function c(e,t,r){if(!e)throw new Error("coordinates is required");for(var i=0;i<e.length;i++){var n=e[i];if(n.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var o=0;o<n[n.length-1].length;o++){if(0===i&&0===o&&!g(n[0][0])||!g(n[0][1]))throw new Error("coordinates must contain numbers");if(n[n.length-1][o]!==n[0][o])throw new Error("First and last Position are not equivalent.")}}return a({type:"Polygon",coordinates:e},t,r)}function l(e,t,r){if(!e)throw new Error("coordinates is required");if(e.length<2)throw new Error("coordinates must be an array of two or more positions");if(!g(e[0][1])||!g(e[0][1]))throw new Error("coordinates must contain numbers");return a({type:"LineString",coordinates:e},t,r)}function u(e,t){if(!y(t=t||{}))throw new Error("options is invalid");var r=t.bbox,i=t.id;if(!e)throw new Error("No features passed");if(!Array.isArray(e))throw new Error("features must be an Array");r&&b(r),i&&w(i);var n={type:"FeatureCollection"};return i&&(n.id=i),r&&(n.bbox=r),n.features=e,n}function h(e,t,r){if(!e)throw new Error("coordinates is required");return a({type:"MultiLineString",coordinates:e},t,r)}function d(e,t,r){if(!e)throw new Error("coordinates is required");return a({type:"MultiPoint",coordinates:e},t,r)}function p(e,t,r){if(!e)throw new Error("coordinates is required");return a({type:"MultiPolygon",coordinates:e},t,r)}function m(e,t){if(null==e)throw new Error("radians is required");if(t&&"string"!=typeof t)throw new Error("units must be a string");var r=i[t||"kilometers"];if(!r)throw new Error(t+" units is invalid");return e*r}function f(e,t){if(null==e)throw new Error("distance is required");if(t&&"string"!=typeof t)throw new Error("units must be a string");var r=i[t||"kilometers"];if(!r)throw new Error(t+" units is invalid");return e/r}function v(e){if(null==e)throw new Error("radians is required");return 180*(e%(2*Math.PI))/Math.PI}function g(e){return!isNaN(e)&&null!==e&&!Array.isArray(e)}function y(e){return!!e&&e.constructor===Object}function b(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(4!==e.length&&6!==e.length)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(function(e){if(!g(e))throw new Error("bbox must only contain numbers")})}function w(e){if(!e)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof e))throw new Error("id must be a number or a string")}t.earthRadius=r,t.factors=i,t.unitsFactors=n,t.areaFactors=o,t.feature=a,t.geometry=function(e,t,r){if(!y(r=r||{}))throw new Error("options is invalid");var i,n=r.bbox;if(!e)throw new Error("type is required");if(!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");switch(n&&b(n),e){case"Point":i=s(t).geometry;break;case"LineString":i=l(t).geometry;break;case"Polygon":i=c(t).geometry;break;case"MultiPoint":i=d(t).geometry;break;case"MultiLineString":i=h(t).geometry;break;case"MultiPolygon":i=p(t).geometry;break;default:throw new Error(e+" is invalid")}return n&&(i.bbox=n),i},t.point=s,t.points=function(e,t,r){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");return u(e.map(function(e){return s(e,t)}),r)},t.polygon=c,t.polygons=function(e,t,r){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");return u(e.map(function(e){return c(e,t)}),r)},t.lineString=l,t.lineStrings=function(e,t,r){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");return u(e.map(function(e){return l(e,t)}),r)},t.featureCollection=u,t.multiLineString=h,t.multiPoint=d,t.multiPolygon=p,t.geometryCollection=function(e,t,r){if(!e)throw new Error("geometries is required");if(!Array.isArray(e))throw new Error("geometries must be an Array");return a({type:"GeometryCollection",geometries:e},t,r)},t.round=function(e,t){if(null==e||isNaN(e))throw new Error("num is required");if(t&&!(0<=t))throw new Error("precision must be a positive number");var r=Math.pow(10,t||0);return Math.round(e*r)/r},t.radiansToLength=m,t.lengthToRadians=f,t.lengthToDegrees=function(e,t){return v(f(e,t))},t.bearingToAzimuth=function(e){if(null==e)throw new Error("bearing is required");var t=e%360;return t<0&&(t+=360),t},t.radiansToDegrees=v,t.degreesToRadians=function(e){if(null==e)throw new Error("degrees is required");return e%360*Math.PI/180},t.convertLength=function(e,t,r){if(null==e)throw new Error("length is required");if(!(0<=e))throw new Error("length must be a positive number");return m(f(e,t),r||"kilometers")},t.convertArea=function(e,t,r){if(null==e)throw new Error("area is required");if(!(0<=e))throw new Error("area must be a positive number");var i=o[t||"meters"];if(!i)throw new Error("invalid original units");var n=o[r||"kilometers"];if(!n)throw new Error("invalid final units");return e/i*n},t.isNumber=g,t.isObject=y,t.validateBBox=b,t.validateId=w,t.radians2degrees=function(){throw new Error("method has been renamed to `radiansToDegrees`")},t.degrees2radians=function(){throw new Error("method has been renamed to `degreesToRadians`")},t.distanceToDegrees=function(){throw new Error("method has been renamed to `lengthToDegrees`")},t.distanceToRadians=function(){throw new Error("method has been renamed to `lengthToRadians`")},t.radiansToDistance=function(){throw new Error("method has been renamed to `radiansToLength`")},t.bearingToAngle=function(){throw new Error("method has been renamed to `bearingToAzimuth`")},t.convertDistance=function(){throw new Error("method has been renamed to `convertLength`")}});e(cS);cS.earthRadius,cS.factors,cS.unitsFactors,cS.areaFactors,cS.feature,cS.geometry,cS.point,cS.points,cS.polygon,cS.polygons,cS.lineString,cS.lineStrings,cS.featureCollection,cS.multiLineString,cS.multiPoint,cS.multiPolygon,cS.geometryCollection,cS.round,cS.radiansToLength,cS.lengthToRadians,cS.lengthToDegrees,cS.bearingToAzimuth,cS.radiansToDegrees,cS.degreesToRadians,cS.convertLength,cS.convertArea,cS.isNumber,cS.isObject,cS.validateBBox,cS.validateId,cS.radians2degrees,cS.degrees2radians,cS.distanceToDegrees,cS.distanceToRadians,cS.radiansToDistance,cS.bearingToAngle,cS.convertDistance;var lS=t(function(e,t){function C(e,t,r){if(null!==e)for(var i,n,o,a,s,c,l,u=0,h=0,d=e.type,p="FeatureCollection"===d,m="Feature"===d,f=p?e.features.length:1,v=0;v<f;v++){a=(l=!!(c=p?e.features[v].geometry:m?e.geometry:e)&&"GeometryCollection"===c.type)?c.geometries.length:1;for(var g=0;g<a;g++){var y,b=0,w=0;if(null!==(y=l?c.geometries[g]:c)){s=y.coordinates;var _=y.type,u=!r||"Polygon"!==_&&"MultiPolygon"!==_?0:1;switch(_){case null:break;case"Point":if(!1===t(s,h,v,b,w))return!1;h++,b++;break;case"LineString":case"MultiPoint":for(i=0;i<s.length;i++){if(!1===t(s[i],h,v,b,w))return!1;h++,"MultiPoint"===_&&b++}"LineString"===_&&b++;break;case"Polygon":case"MultiLineString":for(i=0;i<s.length;i++){for(n=0;n<s[i].length-u;n++){if(!1===t(s[i][n],h,v,b,w))return!1;h++}"MultiLineString"===_&&b++,"Polygon"===_&&w++}"Polygon"===_&&b++;break;case"MultiPolygon":for(i=0;i<s.length;i++){for("MultiPolygon"===_&&(w=0),n=0;n<s[i].length;n++){for(o=0;o<s[i][n].length-u;o++){if(!1===t(s[i][n][o],h,v,b,w))return!1;h++}w++}b++}break;case"GeometryCollection":for(i=0;i<y.geometries.length;i++)if(!1===C(y.geometries[i],t,r))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function o(e,t){var r;switch(e.type){case"FeatureCollection":for(r=0;r<e.features.length&&!1!==t(e.features[r].properties,r);r++);break;case"Feature":t(e.properties,0)}}function a(e,t){if("Feature"===e.type)t(e,0);else if("FeatureCollection"===e.type)for(var r=0;r<e.features.length&&!1!==t(e.features[r],r);r++);}function r(e,t){for(var r,i,n,o,a,s,c,l,u,h=0,d="FeatureCollection"===e.type,p="Feature"===e.type,m=d?e.features.length:1,f=0;f<m;f++){for(a=d?e.features[f].geometry:p?e.geometry:e,c=d?e.features[f].properties:p?e.properties:{},l=d?e.features[f].bbox:p?e.bbox:void 0,u=d?e.features[f].id:p?e.id:void 0,o=(s=!!a&&"GeometryCollection"===a.type)?a.geometries.length:1,i=0;i<o;i++)if(null!==(n=s?a.geometries[i]:a))switch(n.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===t(n,h,c,l,u))return!1;break;case"GeometryCollection":for(r=0;r<n.geometries.length;r++)if(!1===t(n.geometries[r],h,c,l,u))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===t(null,h,c,l,u))return!1;h++}}function s(e,l){r(e,function(e,t,r,i,n){var o,a=null===e?null:e.type;switch(a){case null:case"Point":case"LineString":case"Polygon":return!1===l(cS.feature(e,r,{bbox:i,id:n}),t,0)?!1:void 0}switch(a){case"MultiPoint":o="Point";break;case"MultiLineString":o="LineString";break;case"MultiPolygon":o="Polygon"}for(var s=0;s<e.coordinates.length;s++){var c={type:o,coordinates:e.coordinates[s]};if(!1===l(cS.feature(c,r),t,s))return!1}})}function i(e,h){s(e,function(a,s,c){var l=0;if(a.geometry){var u,e=a.geometry.type;if("Point"!==e&&"MultiPoint"!==e)return!1!==C(a,function(e,t,r,i,n){if(void 0!==u){var o=cS.lineString([u,e],a.properties);if(!1===h(o,s,c,n,l))return!1;l++,u=e}else u=e})&&void 0}})}function c(e,a){if(!e)throw new Error("geojson is required");s(e,function(e,t,r){if(null!==e.geometry){var i=e.geometry.type,n=e.geometry.coordinates;switch(i){case"LineString":if(!1===a(e,t,r,0,0))return!1;break;case"Polygon":for(var o=0;o<n.length;o++)if(!1===a(cS.lineString(n[o],e.properties),t,r,o))return!1}}})}Object.defineProperty(t,"__esModule",{value:!0}),t.coordEach=C,t.coordReduce=function(e,o,a,t){var s=a;return C(e,function(e,t,r,i,n){s=0===t&&void 0===a?e:o(s,e,t,r,i,n)},t),s},t.propEach=o,t.propReduce=function(e,r,i){var n=i;return o(e,function(e,t){n=0===t&&void 0===i?e:r(n,e,t)}),n},t.featureEach=a,t.featureReduce=function(e,r,i){var n=i;return a(e,function(e,t){n=0===t&&void 0===i?e:r(n,e,t)}),n},t.coordAll=function(e){var t=[];return C(e,function(e){t.push(e)}),t},t.geomEach=r,t.geomReduce=function(e,o,a){var s=a;return r(e,function(e,t,r,i,n){s=0===t&&void 0===a?e:o(s,e,t,r,i,n)}),s},t.flattenEach=s,t.flattenReduce=function(e,i,n){var o=n;return s(e,function(e,t,r){o=0===t&&0===r&&void 0===n?e:i(o,e,t,r)}),o},t.segmentEach=i,t.segmentReduce=function(e,o,a){var s=a,c=!1;return i(e,function(e,t,r,i,n){s=!1===c&&void 0===a?e:o(s,e,t,r,i,n),c=!0}),s},t.lineEach=c,t.lineReduce=function(e,n,o){var a=o;return c(e,function(e,t,r,i){a=0===t&&void 0===o?e:n(a,e,t,r,i)}),a},t.findSegment=function(e,t){if(t=t||{},!cS.isObject(t))throw new Error("options is invalid");var r,i=t.featureIndex||0,n=t.multiFeatureIndex||0,o=t.geometryIndex||0,a=t.segmentIndex||0,s=t.properties;switch(e.type){case"FeatureCollection":i<0&&(i=e.features.length+i),s=s||e.features[i].properties,r=e.features[i].geometry;break;case"Feature":s=s||e.properties,r=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":r=e;break;default:throw new Error("geojson is invalid")}if(null===r)return null;var c=r.coordinates;switch(r.type){case"Point":case"MultiPoint":return null;case"LineString":return a<0&&(a=c.length+a-1),cS.lineString([c[a],c[a+1]],s,t);case"Polygon":return o<0&&(o=c.length+o),a<0&&(a=c[o].length+a-1),cS.lineString([c[o][a],c[o][a+1]],s,t);case"MultiLineString":return n<0&&(n=c.length+n),a<0&&(a=c[n].length+a-1),cS.lineString([c[n][a],c[n][a+1]],s,t);case"MultiPolygon":return n<0&&(n=c.length+n),o<0&&(o=c[n].length+o),a<0&&(a=c[n][o].length-a-1),cS.lineString([c[n][o][a],c[n][o][a+1]],s,t)}throw new Error("geojson is invalid")},t.findPoint=function(e,t){if(t=t||{},!cS.isObject(t))throw new Error("options is invalid");var r,i=t.featureIndex||0,n=t.multiFeatureIndex||0,o=t.geometryIndex||0,a=t.coordIndex||0,s=t.properties;switch(e.type){case"FeatureCollection":i<0&&(i=e.features.length+i),s=s||e.features[i].properties,r=e.features[i].geometry;break;case"Feature":s=s||e.properties,r=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":r=e;break;default:throw new Error("geojson is invalid")}if(null===r)return null;var c=r.coordinates;switch(r.type){case"Point":return cS.point(c,s,t);case"MultiPoint":return n<0&&(n=c.length+n),cS.point(c[n],s,t);case"LineString":return a<0&&(a=c.length+a),cS.point(c[a],s,t);case"Polygon":return o<0&&(o=c.length+o),a<0&&(a=c[o].length+a),cS.point(c[o][a],s,t);case"MultiLineString":return n<0&&(n=c.length+n),a<0&&(a=c[n].length+a),cS.point(c[n][a],s,t);case"MultiPolygon":return n<0&&(n=c.length+n),o<0&&(o=c[n].length+o),a<0&&(a=c[n][o].length-a),cS.point(c[n][o][a],s,t)}throw new Error("geojson is invalid")}});e(lS);lS.coordEach,lS.coordReduce,lS.propEach,lS.propReduce,lS.featureEach,lS.featureReduce,lS.coordAll,lS.geomEach,lS.geomReduce,lS.flattenEach,lS.flattenReduce,lS.segmentEach,lS.segmentReduce,lS.lineEach,lS.lineReduce,lS.findSegment,lS.findPoint;function uS(e){var t=[1/0,1/0,-1/0,-1/0];return lS.coordEach(e,function(e){t[0]>e[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]<e[0]&&(t[2]=e[0]),t[3]<e[1]&&(t[3]=e[1])}),t}var hS=uS;hS.default=uS;var dS=t(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=6371008.8,i={meters:r,metres:r,millimeters:1e3*r,millimetres:1e3*r,centimeters:100*r,centimetres:100*r,kilometers:r/1e3,kilometres:r/1e3,miles:r/1609.344,nauticalmiles:r/1852,inches:39.37*r,yards:r/1.0936,feet:3.28084*r,radians:1,degrees:r/111325},n={meters:1,metres:1,millimeters:1e3,millimetres:1e3,centimeters:100,centimetres:100,kilometers:.001,kilometres:.001,miles:1/1609.344,nauticalmiles:1/1852,inches:39.37,yards:1/1.0936,feet:3.28084,radians:1/r,degrees:1/111325},o={meters:1,metres:1,millimeters:1e6,millimetres:1e6,centimeters:1e4,centimetres:1e4,kilometers:1e-6,kilometres:1e-6,acres:247105e-9,miles:386e-9,yards:1.195990046,feet:10.763910417,inches:1550.003100006};function a(e,t,r){if(!y(r=r||{}))throw new Error("options is invalid");var i=r.bbox,n=r.id;if(void 0===e)throw new Error("geometry is required");if(t&&t.constructor!==Object)throw new Error("properties must be an Object");i&&b(i),n&&w(n);var o={type:"Feature"};return n&&(o.id=n),i&&(o.bbox=i),o.properties=t||{},o.geometry=e,o}function s(e,t,r){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!g(e[0])||!g(e[1]))throw new Error("coordinates must contain numbers");return a({type:"Point",coordinates:e},t,r)}function c(e,t,r){if(!e)throw new Error("coordinates is required");for(var i=0;i<e.length;i++){var n=e[i];if(n.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var o=0;o<n[n.length-1].length;o++){if(0===i&&0===o&&!g(n[0][0])||!g(n[0][1]))throw new Error("coordinates must contain numbers");if(n[n.length-1][o]!==n[0][o])throw new Error("First and last Position are not equivalent.")}}return a({type:"Polygon",coordinates:e},t,r)}function l(e,t,r){if(!e)throw new Error("coordinates is required");if(e.length<2)throw new Error("coordinates must be an array of two or more positions");if(!g(e[0][1])||!g(e[0][1]))throw new Error("coordinates must contain numbers");return a({type:"LineString",coordinates:e},t,r)}function u(e,t){if(!y(t=t||{}))throw new Error("options is invalid");var r=t.bbox,i=t.id;if(!e)throw new Error("No features passed");if(!Array.isArray(e))throw new Error("features must be an Array");r&&b(r),i&&w(i);var n={type:"FeatureCollection"};return i&&(n.id=i),r&&(n.bbox=r),n.features=e,n}function h(e,t,r){if(!e)throw new Error("coordinates is required");return a({type:"MultiLineString",coordinates:e},t,r)}function d(e,t,r){if(!e)throw new Error("coordinates is required");return a({type:"MultiPoint",coordinates:e},t,r)}function p(e,t,r){if(!e)throw new Error("coordinates is required");return a({type:"MultiPolygon",coordinates:e},t,r)}function m(e,t){if(null==e)throw new Error("radians is required");if(t&&"string"!=typeof t)throw new Error("units must be a string");var r=i[t||"kilometers"];if(!r)throw new Error(t+" units is invalid");return e*r}function f(e,t){if(null==e)throw new Error("distance is required");if(t&&"string"!=typeof t)throw new Error("units must be a string");var r=i[t||"kilometers"];if(!r)throw new Error(t+" units is invalid");return e/r}function v(e){if(null==e)throw new Error("radians is required");return 180*(e%(2*Math.PI))/Math.PI}function g(e){return!isNaN(e)&&null!==e&&!Array.isArray(e)}function y(e){return!!e&&e.constructor===Object}function b(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(4!==e.length&&6!==e.length)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(function(e){if(!g(e))throw new Error("bbox must only contain numbers")})}function w(e){if(!e)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof e))throw new Error("id must be a number or a string")}t.earthRadius=r,t.factors=i,t.unitsFactors=n,t.areaFactors=o,t.feature=a,t.geometry=function(e,t,r){if(!y(r=r||{}))throw new Error("options is invalid");var i,n=r.bbox;if(!e)throw new Error("type is required");if(!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");switch(n&&b(n),e){case"Point":i=s(t).geometry;break;case"LineString":i=l(t).geometry;break;case"Polygon":i=c(t).geometry;break;case"MultiPoint":i=d(t).geometry;break;case"MultiLineString":i=h(t).geometry;break;case"MultiPolygon":i=p(t).geometry;break;default:throw new Error(e+" is invalid")}return n&&(i.bbox=n),i},t.point=s,t.points=function(e,t,r){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");return u(e.map(function(e){return s(e,t)}),r)},t.polygon=c,t.polygons=function(e,t,r){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");return u(e.map(function(e){return c(e,t)}),r)},t.lineString=l,t.lineStrings=function(e,t,r){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");return u(e.map(function(e){return l(e,t)}),r)},t.featureCollection=u,t.multiLineString=h,t.multiPoint=d,t.multiPolygon=p,t.geometryCollection=function(e,t,r){if(!e)throw new Error("geometries is required");if(!Array.isArray(e))throw new Error("geometries must be an Array");return a({type:"GeometryCollection",geometries:e},t,r)},t.round=function(e,t){if(null==e||isNaN(e))throw new Error("num is required");if(t&&!(0<=t))throw new Error("precision must be a positive number");var r=Math.pow(10,t||0);return Math.round(e*r)/r},t.radiansToLength=m,t.lengthToRadians=f,t.lengthToDegrees=function(e,t){return v(f(e,t))},t.bearingToAzimuth=function(e){if(null==e)throw new Error("bearing is required");var t=e%360;return t<0&&(t+=360),t},t.radiansToDegrees=v,t.degreesToRadians=function(e){if(null==e)throw new Error("degrees is required");return e%360*Math.PI/180},t.convertLength=function(e,t,r){if(null==e)throw new Error("length is required");if(!(0<=e))throw new Error("length must be a positive number");return m(f(e,t),r||"kilometers")},t.convertArea=function(e,t,r){if(null==e)throw new Error("area is required");if(!(0<=e))throw new Error("area must be a positive number");var i=o[t||"meters"];if(!i)throw new Error("invalid original units");var n=o[r||"kilometers"];if(!n)throw new Error("invalid final units");return e/i*n},t.isNumber=g,t.isObject=y,t.validateBBox=b,t.validateId=w,t.radians2degrees=function(){throw new Error("method has been renamed to `radiansToDegrees`")},t.degrees2radians=function(){throw new Error("method has been renamed to `degreesToRadians`")},t.distanceToDegrees=function(){throw new Error("method has been renamed to `lengthToDegrees`")},t.distanceToRadians=function(){throw new Error("method has been renamed to `lengthToRadians`")},t.radiansToDistance=function(){throw new Error("method has been renamed to `radiansToLength`")},t.bearingToAngle=function(){throw new Error("method has been renamed to `bearingToAzimuth`")},t.convertDistance=function(){throw new Error("method has been renamed to `convertLength`")}});e(dS);dS.earthRadius,dS.factors,dS.unitsFactors,dS.areaFactors,dS.feature,dS.geometry,dS.point,dS.points,dS.polygon,dS.polygons,dS.lineString,dS.lineStrings,dS.featureCollection,dS.multiLineString,dS.multiPoint,dS.multiPolygon,dS.geometryCollection,dS.round,dS.radiansToLength,dS.lengthToRadians,dS.lengthToDegrees,dS.bearingToAzimuth,dS.radiansToDegrees,dS.degreesToRadians,dS.convertLength,dS.convertArea,dS.isNumber,dS.isObject,dS.validateBBox,dS.validateId,dS.radians2degrees,dS.degrees2radians,dS.distanceToDegrees,dS.distanceToRadians,dS.radiansToDistance,dS.bearingToAngle,dS.convertDistance;var pS=t(function(e,t){function C(e,t,r){if(null!==e)for(var i,n,o,a,s,c,l,u=0,h=0,d=e.type,p="FeatureCollection"===d,m="Feature"===d,f=p?e.features.length:1,v=0;v<f;v++){a=(l=!!(c=p?e.features[v].geometry:m?e.geometry:e)&&"GeometryCollection"===c.type)?c.geometries.length:1;for(var g=0;g<a;g++){var y,b=0,w=0;if(null!==(y=l?c.geometries[g]:c)){s=y.coordinates;var _=y.type,u=!r||"Polygon"!==_&&"MultiPolygon"!==_?0:1;switch(_){case null:break;case"Point":if(!1===t(s,h,v,b,w))return!1;h++,b++;break;case"LineString":case"MultiPoint":for(i=0;i<s.length;i++){if(!1===t(s[i],h,v,b,w))return!1;h++,"MultiPoint"===_&&b++}"LineString"===_&&b++;break;case"Polygon":case"MultiLineString":for(i=0;i<s.length;i++){for(n=0;n<s[i].length-u;n++){if(!1===t(s[i][n],h,v,b,w))return!1;h++}"MultiLineString"===_&&b++,"Polygon"===_&&w++}"Polygon"===_&&b++;break;case"MultiPolygon":for(i=0;i<s.length;i++){for("MultiPolygon"===_&&(w=0),n=0;n<s[i].length;n++){for(o=0;o<s[i][n].length-u;o++){if(!1===t(s[i][n][o],h,v,b,w))return!1;h++}w++}b++}break;case"GeometryCollection":for(i=0;i<y.geometries.length;i++)if(!1===C(y.geometries[i],t,r))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function o(e,t){var r;switch(e.type){case"FeatureCollection":for(r=0;r<e.features.length&&!1!==t(e.features[r].properties,r);r++);break;case"Feature":t(e.properties,0)}}function a(e,t){if("Feature"===e.type)t(e,0);else if("FeatureCollection"===e.type)for(var r=0;r<e.features.length&&!1!==t(e.features[r],r);r++);}function r(e,t){for(var r,i,n,o,a,s,c,l,u,h=0,d="FeatureCollection"===e.type,p="Feature"===e.type,m=d?e.features.length:1,f=0;f<m;f++){for(a=d?e.features[f].geometry:p?e.geometry:e,c=d?e.features[f].properties:p?e.properties:{},l=d?e.features[f].bbox:p?e.bbox:void 0,u=d?e.features[f].id:p?e.id:void 0,o=(s=!!a&&"GeometryCollection"===a.type)?a.geometries.length:1,i=0;i<o;i++)if(null!==(n=s?a.geometries[i]:a))switch(n.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===t(n,h,c,l,u))return!1;break;case"GeometryCollection":for(r=0;r<n.geometries.length;r++)if(!1===t(n.geometries[r],h,c,l,u))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===t(null,h,c,l,u))return!1;h++}}function s(e,l){r(e,function(e,t,r,i,n){var o,a=null===e?null:e.type;switch(a){case null:case"Point":case"LineString":case"Polygon":return!1===l(dS.feature(e,r,{bbox:i,id:n}),t,0)?!1:void 0}switch(a){case"MultiPoint":o="Point";break;case"MultiLineString":o="LineString";break;case"MultiPolygon":o="Polygon"}for(var s=0;s<e.coordinates.length;s++){var c={type:o,coordinates:e.coordinates[s]};if(!1===l(dS.feature(c,r),t,s))return!1}})}function i(e,h){s(e,function(a,s,c){var l=0;if(a.geometry){var u,e=a.geometry.type;if("Point"!==e&&"MultiPoint"!==e)return!1!==C(a,function(e,t,r,i,n){if(void 0!==u){var o=dS.lineString([u,e],a.properties);if(!1===h(o,s,c,n,l))return!1;l++,u=e}else u=e})&&void 0}})}function c(e,a){if(!e)throw new Error("geojson is required");s(e,function(e,t,r){if(null!==e.geometry){var i=e.geometry.type,n=e.geometry.coordinates;switch(i){case"LineString":if(!1===a(e,t,r,0,0))return!1;break;case"Polygon":for(var o=0;o<n.length;o++)if(!1===a(dS.lineString(n[o],e.properties),t,r,o))return!1}}})}Object.defineProperty(t,"__esModule",{value:!0}),t.coordEach=C,t.coordReduce=function(e,o,a,t){var s=a;return C(e,function(e,t,r,i,n){s=0===t&&void 0===a?e:o(s,e,t,r,i,n)},t),s},t.propEach=o,t.propReduce=function(e,r,i){var n=i;return o(e,function(e,t){n=0===t&&void 0===i?e:r(n,e,t)}),n},t.featureEach=a,t.featureReduce=function(e,r,i){var n=i;return a(e,function(e,t){n=0===t&&void 0===i?e:r(n,e,t)}),n},t.coordAll=function(e){var t=[];return C(e,function(e){t.push(e)}),t},t.geomEach=r,t.geomReduce=function(e,o,a){var s=a;return r(e,function(e,t,r,i,n){s=0===t&&void 0===a?e:o(s,e,t,r,i,n)}),s},t.flattenEach=s,t.flattenReduce=function(e,i,n){var o=n;return s(e,function(e,t,r){o=0===t&&0===r&&void 0===n?e:i(o,e,t,r)}),o},t.segmentEach=i,t.segmentReduce=function(e,o,a){var s=a,c=!1;return i(e,function(e,t,r,i,n){s=!1===c&&void 0===a?e:o(s,e,t,r,i,n),c=!0}),s},t.lineEach=c,t.lineReduce=function(e,n,o){var a=o;return c(e,function(e,t,r,i){a=0===t&&void 0===o?e:n(a,e,t,r,i)}),a},t.findSegment=function(e,t){if(t=t||{},!dS.isObject(t))throw new Error("options is invalid");var r,i=t.featureIndex||0,n=t.multiFeatureIndex||0,o=t.geometryIndex||0,a=t.segmentIndex||0,s=t.properties;switch(e.type){case"FeatureCollection":i<0&&(i=e.features.length+i),s=s||e.features[i].properties,r=e.features[i].geometry;break;case"Feature":s=s||e.properties,r=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":r=e;break;default:throw new Error("geojson is invalid")}if(null===r)return null;var c=r.coordinates;switch(r.type){case"Point":case"MultiPoint":return null;case"LineString":return a<0&&(a=c.length+a-1),dS.lineString([c[a],c[a+1]],s,t);case"Polygon":return o<0&&(o=c.length+o),a<0&&(a=c[o].length+a-1),dS.lineString([c[o][a],c[o][a+1]],s,t);case"MultiLineString":return n<0&&(n=c.length+n),a<0&&(a=c[n].length+a-1),dS.lineString([c[n][a],c[n][a+1]],s,t);case"MultiPolygon":return n<0&&(n=c.length+n),o<0&&(o=c[n].length+o),a<0&&(a=c[n][o].length-a-1),dS.lineString([c[n][o][a],c[n][o][a+1]],s,t)}throw new Error("geojson is invalid")},t.findPoint=function(e,t){if(t=t||{},!dS.isObject(t))throw new Error("options is invalid");var r,i=t.featureIndex||0,n=t.multiFeatureIndex||0,o=t.geometryIndex||0,a=t.coordIndex||0,s=t.properties;switch(e.type){case"FeatureCollection":i<0&&(i=e.features.length+i),s=s||e.features[i].properties,r=e.features[i].geometry;break;case"Feature":s=s||e.properties,r=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":r=e;break;default:throw new Error("geojson is invalid")}if(null===r)return null;var c=r.coordinates;switch(r.type){case"Point":return dS.point(c,s,t);case"MultiPoint":return n<0&&(n=c.length+n),dS.point(c[n],s,t);case"LineString":return a<0&&(a=c.length+a),dS.point(c[a],s,t);case"Polygon":return o<0&&(o=c.length+o),a<0&&(a=c[o].length+a),dS.point(c[o][a],s,t);case"MultiLineString":return n<0&&(n=c.length+n),a<0&&(a=c[n].length+a),dS.point(c[n][a],s,t);case"MultiPolygon":return n<0&&(n=c.length+n),o<0&&(o=c[n].length+o),a<0&&(a=c[n][o].length-a),dS.point(c[n][o][a],s,t)}throw new Error("geojson is invalid")}});e(pS);pS.coordEach,pS.coordReduce,pS.propEach,pS.propReduce,pS.featureEach,pS.featureReduce,pS.coordAll,pS.geomEach,pS.geomReduce,pS.flattenEach,pS.flattenReduce,pS.segmentEach,pS.segmentReduce,pS.lineEach,pS.lineReduce,pS.findSegment,pS.findPoint;function mS(e){return pS.geomReduce(e,function(e,t){return e+function e(t){var r,i=0;switch(t.type){case"Polygon":return vS(t.coordinates);case"MultiPolygon":for(r=0;r<t.coordinates.length;r++)i+=vS(t.coordinates[r]);return i;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0;case"GeometryCollection":for(r=0;r<t.geometries.length;r++)i+=e(t.geometries[r]);return i}}(t)},0)}var fS=6378137;function vS(e){var t=0;if(e&&0<e.length){t+=Math.abs(gS(e[0]));for(var r=1;r<e.length;r++)t-=Math.abs(gS(e[r]))}return t}function gS(e){var t,r,i,n,o,a,s=0,c=e.length;if(2<c){for(a=0;a<c;a++)o=a===c-2?(i=c-2,n=c-1,0):a===c-1?(i=c-1,n=0,1):(n=(i=a)+1,a+2),t=e[i],r=e[n],s+=(yS(e[o][0])-yS(t[0]))*Math.sin(yS(r[1]));s=s*fS*fS/2}return s}function yS(e){return e*Math.PI/180}var bS=mS;bS.default=mS;var wS=t(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=6371008.8,i={meters:r,metres:r,millimeters:1e3*r,millimetres:1e3*r,centimeters:100*r,centimetres:100*r,kilometers:r/1e3,kilometres:r/1e3,miles:r/1609.344,nauticalmiles:r/1852,inches:39.37*r,yards:r/1.0936,feet:3.28084*r,radians:1,degrees:r/111325},n={meters:1,metres:1,millimeters:1e3,millimetres:1e3,centimeters:100,centimetres:100,kilometers:.001,kilometres:.001,miles:1/1609.344,nauticalmiles:1/1852,inches:39.37,yards:1/1.0936,feet:3.28084,radians:1/r,degrees:1/111325},o={meters:1,metres:1,millimeters:1e6,millimetres:1e6,centimeters:1e4,centimetres:1e4,kilometers:1e-6,kilometres:1e-6,acres:247105e-9,miles:386e-9,yards:1.195990046,feet:10.763910417,inches:1550.003100006};function a(e,t,r){if(!y(r=r||{}))throw new Error("options is invalid");var i=r.bbox,n=r.id;if(void 0===e)throw new Error("geometry is required");if(t&&t.constructor!==Object)throw new Error("properties must be an Object");i&&b(i),n&&w(n);var o={type:"Feature"};return n&&(o.id=n),i&&(o.bbox=i),o.properties=t||{},o.geometry=e,o}function s(e,t,r){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!g(e[0])||!g(e[1]))throw new Error("coordinates must contain numbers");return a({type:"Point",coordinates:e},t,r)}function c(e,t,r){if(!e)throw new Error("coordinates is required");for(var i=0;i<e.length;i++){var n=e[i];if(n.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var o=0;o<n[n.length-1].length;o++){if(0===i&&0===o&&!g(n[0][0])||!g(n[0][1]))throw new Error("coordinates must contain numbers");if(n[n.length-1][o]!==n[0][o])throw new Error("First and last Position are not equivalent.")}}return a({type:"Polygon",coordinates:e},t,r)}function l(e,t,r){if(!e)throw new Error("coordinates is required");if(e.length<2)throw new Error("coordinates must be an array of two or more positions");if(!g(e[0][1])||!g(e[0][1]))throw new Error("coordinates must contain numbers");return a({type:"LineString",coordinates:e},t,r)}function u(e,t){if(!y(t=t||{}))throw new Error("options is invalid");var r=t.bbox,i=t.id;if(!e)throw new Error("No features passed");if(!Array.isArray(e))throw new Error("features must be an Array");r&&b(r),i&&w(i);var n={type:"FeatureCollection"};return i&&(n.id=i),r&&(n.bbox=r),n.features=e,n}function h(e,t,r){if(!e)throw new Error("coordinates is required");return a({type:"MultiLineString",coordinates:e},t,r)}function d(e,t,r){if(!e)throw new Error("coordinates is required");return a({type:"MultiPoint",coordinates:e},t,r)}function p(e,t,r){if(!e)throw new Error("coordinates is required");return a({type:"MultiPolygon",coordinates:e},t,r)}function m(e,t){if(null==e)throw new Error("radians is required");if(t&&"string"!=typeof t)throw new Error("units must be a string");var r=i[t||"kilometers"];if(!r)throw new Error(t+" units is invalid");return e*r}function f(e,t){if(null==e)throw new Error("distance is required");if(t&&"string"!=typeof t)throw new Error("units must be a string");var r=i[t||"kilometers"];if(!r)throw new Error(t+" units is invalid");return e/r}function v(e){if(null==e)throw new Error("radians is required");return 180*(e%(2*Math.PI))/Math.PI}function g(e){return!isNaN(e)&&null!==e&&!Array.isArray(e)}function y(e){return!!e&&e.constructor===Object}function b(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(4!==e.length&&6!==e.length)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(function(e){if(!g(e))throw new Error("bbox must only contain numbers")})}function w(e){if(!e)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof e))throw new Error("id must be a number or a string")}t.earthRadius=r,t.factors=i,t.unitsFactors=n,t.areaFactors=o,t.feature=a,t.geometry=function(e,t,r){if(!y(r=r||{}))throw new Error("options is invalid");var i,n=r.bbox;if(!e)throw new Error("type is required");if(!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");switch(n&&b(n),e){case"Point":i=s(t).geometry;break;case"LineString":i=l(t).geometry;break;case"Polygon":i=c(t).geometry;break;case"MultiPoint":i=d(t).geometry;break;case"MultiLineString":i=h(t).geometry;break;case"MultiPolygon":i=p(t).geometry;break;default:throw new Error(e+" is invalid")}return n&&(i.bbox=n),i},t.point=s,t.points=function(e,t,r){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");return u(e.map(function(e){return s(e,t)}),r)},t.polygon=c,t.polygons=function(e,t,r){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");return u(e.map(function(e){return c(e,t)}),r)},t.lineString=l,t.lineStrings=function(e,t,r){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");return u(e.map(function(e){return l(e,t)}),r)},t.featureCollection=u,t.multiLineString=h,t.multiPoint=d,t.multiPolygon=p,t.geometryCollection=function(e,t,r){if(!e)throw new Error("geometries is required");if(!Array.isArray(e))throw new Error("geometries must be an Array");return a({type:"GeometryCollection",geometries:e},t,r)},t.round=function(e,t){if(null==e||isNaN(e))throw new Error("num is required");if(t&&!(0<=t))throw new Error("precision must be a positive number");var r=Math.pow(10,t||0);return Math.round(e*r)/r},t.radiansToLength=m,t.lengthToRadians=f,t.lengthToDegrees=function(e,t){return v(f(e,t))},t.bearingToAzimuth=function(e){if(null==e)throw new Error("bearing is required");var t=e%360;return t<0&&(t+=360),t},t.radiansToDegrees=v,t.degreesToRadians=function(e){if(null==e)throw new Error("degrees is required");return e%360*Math.PI/180},t.convertLength=function(e,t,r){if(null==e)throw new Error("length is required");if(!(0<=e))throw new Error("length must be a positive number");return m(f(e,t),r||"kilometers")},t.convertArea=function(e,t,r){if(null==e)throw new Error("area is required");if(!(0<=e))throw new Error("area must be a positive number");var i=o[t||"meters"];if(!i)throw new Error("invalid original units");var n=o[r||"kilometers"];if(!n)throw new Error("invalid final units");return e/i*n},t.isNumber=g,t.isObject=y,t.validateBBox=b,t.validateId=w,t.radians2degrees=function(){throw new Error("method has been renamed to `radiansToDegrees`")},t.degrees2radians=function(){throw new Error("method has been renamed to `degreesToRadians`")},t.distanceToDegrees=function(){throw new Error("method has been renamed to `lengthToDegrees`")},t.distanceToRadians=function(){throw new Error("method has been renamed to `lengthToRadians`")},t.radiansToDistance=function(){throw new Error("method has been renamed to `radiansToLength`")},t.bearingToAngle=function(){throw new Error("method has been renamed to `bearingToAzimuth`")},t.convertDistance=function(){throw new Error("method has been renamed to `convertLength`")}});e(wS);wS.earthRadius,wS.factors,wS.unitsFactors,wS.areaFactors,wS.feature,wS.geometry,wS.point,wS.points,wS.polygon,wS.polygons,wS.lineString,wS.lineStrings,wS.featureCollection,wS.multiLineString,wS.multiPoint,wS.multiPolygon,wS.geometryCollection,wS.round,wS.radiansToLength,wS.lengthToRadians,wS.lengthToDegrees,wS.bearingToAzimuth,wS.radiansToDegrees,wS.degreesToRadians,wS.convertLength,wS.convertArea,wS.isNumber,wS.isObject,wS.validateBBox,wS.validateId,wS.radians2degrees,wS.degrees2radians,wS.distanceToDegrees,wS.distanceToRadians,wS.radiansToDistance,wS.bearingToAngle,wS.convertDistance;var _S=t(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getCoord=function(e){if(!e)throw new Error("coord is required");if("Feature"===e.type&&null!==e.geometry&&"Point"===e.geometry.type)return e.geometry.coordinates;if("Point"===e.type)return e.coordinates;if(Array.isArray(e)&&2<=e.length&&void 0===e[0].length&&void 0===e[1].length)return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")},t.getCoords=function(e){if(!e)throw new Error("coords is required");if("Feature"===e.type&&null!==e.geometry)return e.geometry.coordinates;if(e.coordinates)return e.coordinates;if(Array.isArray(e))return e;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")},t.containsNumber=function e(t){if(1<t.length&&wS.isNumber(t[0])&&wS.isNumber(t[1]))return!0;if(Array.isArray(t[0])&&t[0].length)return e(t[0]);throw new Error("coordinates must only contain numbers")},t.geojsonType=function(e,t,r){if(!t||!r)throw new Error("type and name required");if(!e||e.type!==t)throw new Error("Invalid input to "+r+": must be a "+t+", given "+e.type)},t.featureOf=function(e,t,r){if(!e)throw new Error("No feature passed");if(!r)throw new Error(".featureOf() requires a name");if(!e||"Feature"!==e.type||!e.geometry)throw new Error("Invalid input to "+r+", Feature with geometry required");if(!e.geometry||e.geometry.type!==t)throw new Error("Invalid input to "+r+": must be a "+t+", given "+e.geometry.type)},t.collectionOf=function(e,t,r){if(!e)throw new Error("No featureCollection passed");if(!r)throw new Error(".collectionOf() requires a name");if(!e||"FeatureCollection"!==e.type)throw new Error("Invalid input to "+r+", FeatureCollection required");for(var i=0;i<e.features.length;i++){var n=e.features[i];if(!n||"Feature"!==n.type||!n.geometry)throw new Error("Invalid input to "+r+", Feature with geometry required");if(!n.geometry||n.geometry.type!==t)throw new Error("Invalid input to "+r+": must be a "+t+", given "+n.geometry.type)}},t.getGeom=function(e){if(!e)throw new Error("geojson is required");if(void 0!==e.geometry)return e.geometry;if(e.coordinates||e.geometries)return e;throw new Error("geojson must be a valid Feature or Geometry Object")},t.getGeomType=function(){throw new Error("invariant.getGeomType has been deprecated in v5.0 in favor of invariant.getType")},t.getType=function(e,t){if(!e)throw new Error((t||"geojson")+" is required");if(e.geometry&&e.geometry.type)return e.geometry.type;if(e.type)return e.type;throw new Error((t||"geojson")+" is invalid")}});e(_S);_S.getCoord,_S.getCoords,_S.containsNumber,_S.geojsonType,_S.featureOf,_S.collectionOf,_S.getGeom,_S.getGeomType,_S.getType;function CS(e,t,r){if("object"!=typeof(r=r||{}))throw new Error("options is invalid");var i=r.ignoreBoundary;if(!e)throw new Error("point is required");if(!t)throw new Error("polygon is required");var n,o,a=_S.getCoord(e),s=_S.getCoords(t),c=t.geometry?t.geometry.type:t.type,l=t.bbox;if(l&&!1==(n=a,(o=l)[0]<=n[0]&&o[1]<=n[1]&&o[2]>=n[0]&&o[3]>=n[1]))return!1;"Polygon"===c&&(s=[s]);for(var u=0,h=!1;u<s.length&&!h;u++)if(MS(a,s[u][0],i)){for(var d=!1,p=1;p<s[u].length&&!d;)MS(a,s[u][p],!i)&&(d=!0),p++;d||(h=!0)}return h}function MS(e,t,r){var i=!1;t[0][0]===t[t.length-1][0]&&t[0][1]===t[t.length-1][1]&&(t=t.slice(0,t.length-1));for(var n=0,o=t.length-1;n<t.length;o=n++){var a=t[n][0],s=t[n][1],c=t[o][0],l=t[o][1];if(e[1]*(a-c)+s*(c-e[0])+l*(e[0]-a)==0&&(a-e[0])*(c-e[0])<=0&&(s-e[1])*(l-e[1])<=0)return!r;s>e[1]!=l>e[1]&&e[0]<(c-a)*(e[1]-s)/(l-s)+a&&(i=!i)}return i}var xS=CS;xS.default=CS;var PS=t(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=6371008.8,i={meters:r,metres:r,millimeters:1e3*r,millimetres:1e3*r,centimeters:100*r,centimetres:100*r,kilometers:r/1e3,kilometres:r/1e3,miles:r/1609.344,nauticalmiles:r/1852,inches:39.37*r,yards:r/1.0936,feet:3.28084*r,radians:1,degrees:r/111325},n={meters:1,metres:1,millimeters:1e3,millimetres:1e3,centimeters:100,centimetres:100,kilometers:.001,kilometres:.001,miles:1/1609.344,nauticalmiles:1/1852,inches:39.37,yards:1/1.0936,feet:3.28084,radians:1/r,degrees:1/111325},o={meters:1,metres:1,millimeters:1e6,millimetres:1e6,centimeters:1e4,centimetres:1e4,kilometers:1e-6,kilometres:1e-6,acres:247105e-9,miles:386e-9,yards:1.195990046,feet:10.763910417,inches:1550.003100006};function a(e,t,r){if(!y(r=r||{}))throw new Error("options is invalid");var i=r.bbox,n=r.id;if(void 0===e)throw new Error("geometry is required");if(t&&t.constructor!==Object)throw new Error("properties must be an Object");i&&b(i),n&&w(n);var o={type:"Feature"};return n&&(o.id=n),i&&(o.bbox=i),o.properties=t||{},o.geometry=e,o}function s(e,t,r){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!g(e[0])||!g(e[1]))throw new Error("coordinates must contain numbers");return a({type:"Point",coordinates:e},t,r)}function c(e,t,r){if(!e)throw new Error("coordinates is required");for(var i=0;i<e.length;i++){var n=e[i];if(n.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var o=0;o<n[n.length-1].length;o++){if(0===i&&0===o&&!g(n[0][0])||!g(n[0][1]))throw new Error("coordinates must contain numbers");if(n[n.length-1][o]!==n[0][o])throw new Error("First and last Position are not equivalent.")}}return a({type:"Polygon",coordinates:e},t,r)}function l(e,t,r){if(!e)throw new Error("coordinates is required");if(e.length<2)throw new Error("coordinates must be an array of two or more positions");if(!g(e[0][1])||!g(e[0][1]))throw new Error("coordinates must contain numbers");return a({type:"LineString",coordinates:e},t,r)}function u(e,t){if(!y(t=t||{}))throw new Error("options is invalid");var r=t.bbox,i=t.id;if(!e)throw new Error("No features passed");if(!Array.isArray(e))throw new Error("features must be an Array");r&&b(r),i&&w(i);var n={type:"FeatureCollection"};return i&&(n.id=i),r&&(n.bbox=r),n.features=e,n}function h(e,t,r){if(!e)throw new Error("coordinates is required");return a({type:"MultiLineString",coordinates:e},t,r)}function d(e,t,r){if(!e)throw new Error("coordinates is required");return a({type:"MultiPoint",coordinates:e},t,r)}function p(e,t,r){if(!e)throw new Error("coordinates is required");return a({type:"MultiPolygon",coordinates:e},t,r)}function m(e,t){if(null==e)throw new Error("radians is required");if(t&&"string"!=typeof t)throw new Error("units must be a string");var r=i[t||"kilometers"];if(!r)throw new Error(t+" units is invalid");return e*r}function f(e,t){if(null==e)throw new Error("distance is required");if(t&&"string"!=typeof t)throw new Error("units must be a string");var r=i[t||"kilometers"];if(!r)throw new Error(t+" units is invalid");return e/r}function v(e){if(null==e)throw new Error("radians is required");return 180*(e%(2*Math.PI))/Math.PI}function g(e){return!isNaN(e)&&null!==e&&!Array.isArray(e)}function y(e){return!!e&&e.constructor===Object}function b(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(4!==e.length&&6!==e.length)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(function(e){if(!g(e))throw new Error("bbox must only contain numbers")})}function w(e){if(!e)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof e))throw new Error("id must be a number or a string")}t.earthRadius=r,t.factors=i,t.unitsFactors=n,t.areaFactors=o,t.feature=a,t.geometry=function(e,t,r){if(!y(r=r||{}))throw new Error("options is invalid");var i,n=r.bbox;if(!e)throw new Error("type is required");if(!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");switch(n&&b(n),e){case"Point":i=s(t).geometry;break;case"LineString":i=l(t).geometry;break;case"Polygon":i=c(t).geometry;break;case"MultiPoint":i=d(t).geometry;break;case"MultiLineString":i=h(t).geometry;break;case"MultiPolygon":i=p(t).geometry;break;default:throw new Error(e+" is invalid")}return n&&(i.bbox=n),i},t.point=s,t.points=function(e,t,r){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");return u(e.map(function(e){return s(e,t)}),r)},t.polygon=c,t.polygons=function(e,t,r){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");return u(e.map(function(e){return c(e,t)}),r)},t.lineString=l,t.lineStrings=function(e,t,r){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");return u(e.map(function(e){return l(e,t)}),r)},t.featureCollection=u,t.multiLineString=h,t.multiPoint=d,t.multiPolygon=p,t.geometryCollection=function(e,t,r){if(!e)throw new Error("geometries is required");if(!Array.isArray(e))throw new Error("geometries must be an Array");return a({type:"GeometryCollection",geometries:e},t,r)},t.round=function(e,t){if(null==e||isNaN(e))throw new Error("num is required");if(t&&!(0<=t))throw new Error("precision must be a positive number");var r=Math.pow(10,t||0);return Math.round(e*r)/r},t.radiansToLength=m,t.lengthToRadians=f,t.lengthToDegrees=function(e,t){return v(f(e,t))},t.bearingToAzimuth=function(e){if(null==e)throw new Error("bearing is required");var t=e%360;return t<0&&(t+=360),t},t.radiansToDegrees=v,t.degreesToRadians=function(e){if(null==e)throw new Error("degrees is required");return e%360*Math.PI/180},t.convertLength=function(e,t,r){if(null==e)throw new Error("length is required");if(!(0<=e))throw new Error("length must be a positive number");return m(f(e,t),r||"kilometers")},t.convertArea=function(e,t,r){if(null==e)throw new Error("area is required");if(!(0<=e))throw new Error("area must be a positive number");var i=o[t||"meters"];if(!i)throw new Error("invalid original units");var n=o[r||"kilometers"];if(!n)throw new Error("invalid final units");return e/i*n},t.isNumber=g,t.isObject=y,t.validateBBox=b,t.validateId=w,t.radians2degrees=function(){throw new Error("method has been renamed to `radiansToDegrees`")},t.degrees2radians=function(){throw new Error("method has been renamed to `degreesToRadians`")},t.distanceToDegrees=function(){throw new Error("method has been renamed to `lengthToDegrees`")},t.distanceToRadians=function(){throw new Error("method has been renamed to `lengthToRadians`")},t.radiansToDistance=function(){throw new Error("method has been renamed to `radiansToLength`")},t.bearingToAngle=function(){throw new Error("method has been renamed to `bearingToAzimuth`")},t.convertDistance=function(){throw new Error("method has been renamed to `convertLength`")}});e(PS);PS.earthRadius,PS.factors,PS.unitsFactors,PS.areaFactors,PS.feature,PS.geometry,PS.point,PS.points,PS.polygon,PS.polygons,PS.lineString,PS.lineStrings,PS.featureCollection,PS.multiLineString,PS.multiPoint,PS.multiPolygon,PS.geometryCollection,PS.round,PS.radiansToLength,PS.lengthToRadians,PS.lengthToDegrees,PS.bearingToAzimuth,PS.radiansToDegrees,PS.degreesToRadians,PS.convertLength,PS.convertArea,PS.isNumber,PS.isObject,PS.validateBBox,PS.validateId,PS.radians2degrees,PS.degrees2radians,PS.distanceToDegrees,PS.distanceToRadians,PS.radiansToDistance,PS.bearingToAngle,PS.convertDistance;var SS=t(function(e,t){function C(e,t,r){if(null!==e)for(var i,n,o,a,s,c,l,u=0,h=0,d=e.type,p="FeatureCollection"===d,m="Feature"===d,f=p?e.features.length:1,v=0;v<f;v++){a=(l=!!(c=p?e.features[v].geometry:m?e.geometry:e)&&"GeometryCollection"===c.type)?c.geometries.length:1;for(var g=0;g<a;g++){var y,b=0,w=0;if(null!==(y=l?c.geometries[g]:c)){s=y.coordinates;var _=y.type,u=!r||"Polygon"!==_&&"MultiPolygon"!==_?0:1;switch(_){case null:break;case"Point":if(!1===t(s,h,v,b,w))return!1;h++,b++;break;case"LineString":case"MultiPoint":for(i=0;i<s.length;i++){if(!1===t(s[i],h,v,b,w))return!1;h++,"MultiPoint"===_&&b++}"LineString"===_&&b++;break;case"Polygon":case"MultiLineString":for(i=0;i<s.length;i++){for(n=0;n<s[i].length-u;n++){if(!1===t(s[i][n],h,v,b,w))return!1;h++}"MultiLineString"===_&&b++,"Polygon"===_&&w++}"Polygon"===_&&b++;break;case"MultiPolygon":for(i=0;i<s.length;i++){for("MultiPolygon"===_&&(w=0),n=0;n<s[i].length;n++){for(o=0;o<s[i][n].length-u;o++){if(!1===t(s[i][n][o],h,v,b,w))return!1;h++}w++}b++}break;case"GeometryCollection":for(i=0;i<y.geometries.length;i++)if(!1===C(y.geometries[i],t,r))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function o(e,t){var r;switch(e.type){case"FeatureCollection":for(r=0;r<e.features.length&&!1!==t(e.features[r].properties,r);r++);break;case"Feature":t(e.properties,0)}}function a(e,t){if("Feature"===e.type)t(e,0);else if("FeatureCollection"===e.type)for(var r=0;r<e.features.length&&!1!==t(e.features[r],r);r++);}function r(e,t){for(var r,i,n,o,a,s,c,l,u,h=0,d="FeatureCollection"===e.type,p="Feature"===e.type,m=d?e.features.length:1,f=0;f<m;f++){for(a=d?e.features[f].geometry:p?e.geometry:e,c=d?e.features[f].properties:p?e.properties:{},l=d?e.features[f].bbox:p?e.bbox:void 0,u=d?e.features[f].id:p?e.id:void 0,o=(s=!!a&&"GeometryCollection"===a.type)?a.geometries.length:1,i=0;i<o;i++)if(null!==(n=s?a.geometries[i]:a))switch(n.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===t(n,h,c,l,u))return!1;break;case"GeometryCollection":for(r=0;r<n.geometries.length;r++)if(!1===t(n.geometries[r],h,c,l,u))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===t(null,h,c,l,u))return!1;h++}}function s(e,l){r(e,function(e,t,r,i,n){var o,a=null===e?null:e.type;switch(a){case null:case"Point":case"LineString":case"Polygon":return!1===l(PS.feature(e,r,{bbox:i,id:n}),t,0)?!1:void 0}switch(a){case"MultiPoint":o="Point";break;case"MultiLineString":o="LineString";break;case"MultiPolygon":o="Polygon"}for(var s=0;s<e.coordinates.length;s++){var c={type:o,coordinates:e.coordinates[s]};if(!1===l(PS.feature(c,r),t,s))return!1}})}function i(e,h){s(e,function(a,s,c){var l=0;if(a.geometry){var u,e=a.geometry.type;if("Point"!==e&&"MultiPoint"!==e)return!1!==C(a,function(e,t,r,i,n){if(void 0!==u){var o=PS.lineString([u,e],a.properties);if(!1===h(o,s,c,n,l))return!1;l++,u=e}else u=e})&&void 0}})}function c(e,a){if(!e)throw new Error("geojson is required");s(e,function(e,t,r){if(null!==e.geometry){var i=e.geometry.type,n=e.geometry.coordinates;switch(i){case"LineString":if(!1===a(e,t,r,0,0))return!1;break;case"Polygon":for(var o=0;o<n.length;o++)if(!1===a(PS.lineString(n[o],e.properties),t,r,o))return!1}}})}Object.defineProperty(t,"__esModule",{value:!0}),t.coordEach=C,t.coordReduce=function(e,o,a,t){var s=a;return C(e,function(e,t,r,i,n){s=0===t&&void 0===a?e:o(s,e,t,r,i,n)},t),s},t.propEach=o,t.propReduce=function(e,r,i){var n=i;return o(e,function(e,t){n=0===t&&void 0===i?e:r(n,e,t)}),n},t.featureEach=a,t.featureReduce=function(e,r,i){var n=i;return a(e,function(e,t){n=0===t&&void 0===i?e:r(n,e,t)}),n},t.coordAll=function(e){var t=[];return C(e,function(e){t.push(e)}),t},t.geomEach=r,t.geomReduce=function(e,o,a){var s=a;return r(e,function(e,t,r,i,n){s=0===t&&void 0===a?e:o(s,e,t,r,i,n)}),s},t.flattenEach=s,t.flattenReduce=function(e,i,n){var o=n;return s(e,function(e,t,r){o=0===t&&0===r&&void 0===n?e:i(o,e,t,r)}),o},t.segmentEach=i,t.segmentReduce=function(e,o,a){var s=a,c=!1;return i(e,function(e,t,r,i,n){s=!1===c&&void 0===a?e:o(s,e,t,r,i,n),c=!0}),s},t.lineEach=c,t.lineReduce=function(e,n,o){var a=o;return c(e,function(e,t,r,i){a=0===t&&void 0===o?e:n(a,e,t,r,i)}),a},t.findSegment=function(e,t){if(t=t||{},!PS.isObject(t))throw new Error("options is invalid");var r,i=t.featureIndex||0,n=t.multiFeatureIndex||0,o=t.geometryIndex||0,a=t.segmentIndex||0,s=t.properties;switch(e.type){case"FeatureCollection":i<0&&(i=e.features.length+i),s=s||e.features[i].properties,r=e.features[i].geometry;break;case"Feature":s=s||e.properties,r=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":r=e;break;default:throw new Error("geojson is invalid")}if(null===r)return null;var c=r.coordinates;switch(r.type){case"Point":case"MultiPoint":return null;case"LineString":return a<0&&(a=c.length+a-1),PS.lineString([c[a],c[a+1]],s,t);case"Polygon":return o<0&&(o=c.length+o),a<0&&(a=c[o].length+a-1),PS.lineString([c[o][a],c[o][a+1]],s,t);case"MultiLineString":return n<0&&(n=c.length+n),a<0&&(a=c[n].length+a-1),PS.lineString([c[n][a],c[n][a+1]],s,t);case"MultiPolygon":return n<0&&(n=c.length+n),o<0&&(o=c[n].length+o),a<0&&(a=c[n][o].length-a-1),PS.lineString([c[n][o][a],c[n][o][a+1]],s,t)}throw new Error("geojson is invalid")},t.findPoint=function(e,t){if(t=t||{},!PS.isObject(t))throw new Error("options is invalid");var r,i=t.featureIndex||0,n=t.multiFeatureIndex||0,o=t.geometryIndex||0,a=t.coordIndex||0,s=t.properties;switch(e.type){case"FeatureCollection":i<0&&(i=e.features.length+i),s=s||e.features[i].properties,r=e.features[i].geometry;break;case"Feature":s=s||e.properties,r=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":r=e;break;default:throw new Error("geojson is invalid")}if(null===r)return null;var c=r.coordinates;switch(r.type){case"Point":return PS.point(c,s,t);case"MultiPoint":return n<0&&(n=c.length+n),PS.point(c[n],s,t);case"LineString":return a<0&&(a=c.length+a),PS.point(c[a],s,t);case"Polygon":return o<0&&(o=c.length+o),a<0&&(a=c[o].length+a),PS.point(c[o][a],s,t);case"MultiLineString":return n<0&&(n=c.length+n),a<0&&(a=c[n].length+a),PS.point(c[n][a],s,t);case"MultiPolygon":return n<0&&(n=c.length+n),o<0&&(o=c[n].length+o),a<0&&(a=c[n][o].length-a),PS.point(c[n][o][a],s,t)}throw new Error("geojson is invalid")}});e(SS);SS.coordEach,SS.coordReduce,SS.propEach,SS.propReduce,SS.featureEach,SS.featureReduce,SS.coordAll,SS.geomEach,SS.geomReduce,SS.flattenEach,SS.flattenReduce,SS.segmentEach,SS.segmentReduce,SS.lineEach,SS.lineReduce,SS.findSegment,SS.findPoint;function ES(t){var r=[];return"FeatureCollection"===t.type?SS.featureEach(t,function(t){SS.coordEach(t,function(e){r.push(PS.point(e,t.properties))})}):SS.coordEach(t,function(e){r.push(PS.point(e,t.properties))}),PS.featureCollection(r)}var TS=ES;function OS(e){return e&&"object"==typeof e&&"default"in e?e.default:e}TS.default=ES;var kS=OS(hS),RS=OS(bS),FS=OS(xS),LS=OS(TS);function IS(e,t){if(t=t||{},!dS.isObject(t))throw new Error("options is invalid");var r=t.zProperty||"elevation",i=t.flip,n=t.flags;_S.collectionOf(e,"Point","input must contain Points");for(var o,a,s,c=(o=e,a=i,s={},pS.featureEach(o,function(e){var t=_S.getCoords(e)[1];s[t]||(s[t]=[]),s[t].push(e)}),Object.keys(s).map(function(e){return s[e].sort(function(e,t){return _S.getCoords(e)[0]-_S.getCoords(t)[0]})}).sort(function(e,t){return a?_S.getCoords(e[0])[1]-_S.getCoords(t[0])[1]:_S.getCoords(t[0])[1]-_S.getCoords(e[0])[1]})),l=[],u=0;u<c.length;u++){for(var h=c[u],d=[],p=0;p<h.length;p++){var m=h[p];m.properties[r]?d.push(m.properties[r]):d.push(0),!0===n&&(m.properties.matrixPosition=[u,p])}l.push(d)}return l}var jS={successCallback:null,verbose:!1,polygons:!1},AS={};function DS(e,t,r,i){i=i||{};for(var n=Object.keys(jS),o=0;o<n.length;o++){var a=n[o],s=null!=(s=i[a])?s:jS[a];AS[a]=s}AS.verbose&&console.log("MarchingSquaresJS-isoBands: computing isobands for ["+t+":"+(t+r)+"]");var c,l,u=function(e,t,r){for(var i,n,o,a,s,c,l,u,h=e.length-1,d=e[0].length-1,p={rows:h,cols:d,cells:[]},m=t+Math.abs(r),f=0;f<h;++f){p.cells[f]=[];for(var v=0;v<d;++v){var g,y,b,w,_=0,C=e[f+1][v],M=e[f+1][v+1],x=e[f][v+1],P=e[f][v];isNaN(C)||isNaN(M)||isNaN(x)||isNaN(P)||(_|=C<t?0:m<C?128:64,_|=M<t?0:m<M?32:16,_|=x<t?0:m<x?8:4,g=+(_|=P<t?0:m<P?2:1),y=0,17!==_&&18!==_&&33!==_&&34!==_&&38!==_&&68!==_&&72!==_&&98!==_&&102!==_&&132!==_&&136!==_&&137!==_&&152!==_&&153!==_||(y=m<(b=(C+M+x+P)/4)?2:b<t?0:1,34===_?1===y?_=35:0===y&&(_=136):136===_?1===y?(_=35,y=4):0===y&&(_=34):17===_?1===y?(_=155,y=4):0===y&&(_=153):68===_?1===y?(_=103,y=4):0===y&&(_=102):153===_?1===y&&(_=155):102===_?1===y&&(_=103):152===_?y<2&&(_=156,y=1):137===_?y<2&&(_=139,y=1):98===_?y<2&&(_=99,y=1):38===_?y<2&&(_=39,y=1):18===_?0<y?(_=156,y=4):_=152:33===_?0<y?(_=139,y=4):_=137:72===_?0<y?(_=99,y=4):_=98:132===_&&(0<y?(_=39,y=4):_=38)),0!=_&&170!=_&&(i=n=o=a=s=c=l=u=.5,w=[],1===_?(o=1-OE(t,x,P),u=1-OE(t,C,P),w.push(ME[_])):169===_?(o=OE(m,P,x),u=OE(m,P,C),w.push(ME[_])):4===_?(c=1-OE(t,M,x),a=OE(t,P,x),w.push(_E[_])):166===_?(c=OE(m,x,M),a=1-OE(m,x,P),w.push(_E[_])):16===_?(s=OE(t,x,M),n=OE(t,C,M),w.push(wE[_])):154===_?(s=1-OE(m,M,x),n=1-OE(m,M,C),w.push(wE[_])):64===_?(l=OE(t,P,C),i=1-OE(t,M,C),w.push(PE[_])):106===_?(l=1-OE(m,C,P),i=OE(m,C,M),w.push(PE[_])):168===_?(a=OE(m,P,x),o=OE(t,P,x),u=OE(t,P,C),l=OE(m,P,C),w.push(CE[_]),w.push(ME[_])):2===_?(a=1-OE(t,x,P),o=1-OE(m,x,P),u=1-OE(m,C,P),l=1-OE(t,C,P),w.push(CE[_]),w.push(ME[_])):162===_?(s=OE(m,x,M),c=OE(t,x,M),a=1-OE(t,x,P),o=1-OE(m,x,P),w.push(CE[_]),w.push(ME[_])):8===_?(s=1-OE(t,M,x),c=1-OE(m,M,x),a=OE(m,P,x),o=OE(t,P,x),w.push(wE[_]),w.push(_E[_])):138===_?(s=1-OE(t,M,x),c=1-OE(m,M,x),i=1-OE(m,M,C),n=1-OE(t,M,C),w.push(wE[_]),w.push(_E[_])):32===_?(s=OE(m,x,M),c=OE(t,x,M),i=OE(t,C,M),n=OE(m,C,M),w.push(wE[_]),w.push(_E[_])):42===_?(u=1-OE(m,C,P),l=1-OE(t,C,P),i=OE(t,C,M),n=OE(m,C,M),w.push(xE[_]),w.push(PE[_])):128===_&&(u=OE(t,P,C),l=OE(m,P,C),i=1-OE(m,M,C),n=1-OE(t,M,C),w.push(xE[_]),w.push(PE[_])),5===_?(c=1-OE(t,M,x),u=1-OE(t,C,P),w.push(_E[_])):165===_?(c=OE(m,x,M),u=OE(m,P,C),w.push(_E[_])):20===_?(a=OE(t,P,x),n=OE(t,C,M),w.push(CE[_])):150===_?(a=1-OE(m,x,P),n=1-OE(m,M,C),w.push(CE[_])):80===_?(s=OE(t,x,M),l=OE(t,P,C),w.push(wE[_])):90===_?(s=1-OE(m,M,x),l=1-OE(m,C,P),w.push(wE[_])):65===_?(o=1-OE(t,x,P),i=1-OE(t,M,C),w.push(ME[_])):105===_?(o=OE(m,P,x),i=OE(m,C,M),w.push(ME[_])):160===_?(s=OE(m,x,M),c=OE(t,x,M),u=OE(t,P,C),l=OE(m,P,C),w.push(wE[_]),w.push(_E[_])):10===_?(s=1-OE(t,M,x),c=1-OE(m,M,x),u=1-OE(m,C,P),l=1-OE(t,C,P),w.push(wE[_]),w.push(_E[_])):130===_?(a=1-OE(t,x,P),o=1-OE(m,x,P),i=1-OE(m,M,C),n=1-OE(t,M,C),w.push(CE[_]),w.push(ME[_])):40===_?(a=OE(m,P,x),o=OE(t,P,x),i=OE(t,C,M),n=OE(m,C,M),w.push(CE[_]),w.push(ME[_])):101===_?(c=OE(m,x,M),i=OE(m,C,M),w.push(_E[_])):69===_?(c=1-OE(t,M,x),i=1-OE(t,M,C),w.push(_E[_])):149===_?(u=OE(m,P,C),n=1-OE(m,M,C),w.push(xE[_])):21===_?(u=1-OE(t,C,P),n=OE(t,C,M),w.push(xE[_])):86===_?(a=1-OE(m,x,P),l=1-OE(m,C,P),w.push(CE[_])):84===_?(a=OE(t,P,x),l=OE(t,P,C),w.push(CE[_])):89===_?(s=1-OE(m,M,x),o=OE(m,P,x),w.push(ME[_])):81===_?(s=OE(t,x,M),o=1-OE(t,x,P),w.push(ME[_])):96===_?(s=OE(m,x,M),c=OE(t,x,M),l=OE(t,P,C),i=OE(m,C,M),w.push(wE[_]),w.push(_E[_])):74===_?(s=1-OE(t,M,x),c=1-OE(m,M,x),l=1-OE(m,C,P),i=1-OE(t,M,C),w.push(wE[_]),w.push(_E[_])):24===_?(s=1-OE(m,M,x),a=OE(m,P,x),o=OE(t,P,x),n=OE(t,C,M),w.push(wE[_]),w.push(ME[_])):146===_?(s=OE(t,x,M),a=1-OE(t,x,P),o=1-OE(m,x,P),n=1-OE(m,M,C),w.push(wE[_]),w.push(ME[_])):6===_?(c=1-OE(t,M,x),a=1-OE(m,x,P),u=1-OE(m,C,P),l=1-OE(t,C,P),w.push(_E[_]),w.push(CE[_])):164===_?(c=OE(m,x,M),a=OE(t,P,x),u=OE(t,P,C),l=OE(m,P,C),w.push(_E[_]),w.push(CE[_])):129===_?(o=1-OE(t,x,P),u=OE(m,P,C),i=1-OE(m,M,C),n=1-OE(t,M,C),w.push(ME[_]),w.push(xE[_])):41===_?(o=OE(m,P,x),u=1-OE(t,C,P),i=OE(t,C,M),n=OE(m,C,M),w.push(ME[_]),w.push(xE[_])):66===_?(a=1-OE(t,x,P),o=1-OE(m,x,P),l=1-OE(m,C,P),i=1-OE(t,M,C),w.push(CE[_]),w.push(ME[_])):104===_?(a=OE(m,P,x),o=OE(t,P,x),l=OE(t,P,C),i=OE(m,C,M),w.push(ME[_]),w.push(SE[_])):144===_?(s=OE(t,x,M),u=OE(t,P,C),l=OE(m,P,C),n=1-OE(m,M,C),w.push(wE[_]),w.push(PE[_])):26===_?(s=1-OE(m,M,x),u=1-OE(m,C,P),l=1-OE(t,C,P),n=OE(t,C,M),w.push(wE[_]),w.push(PE[_])):36===_?(c=OE(m,x,M),a=OE(t,P,x),i=OE(t,C,M),n=OE(m,C,M),w.push(_E[_]),w.push(CE[_])):134===_?(c=1-OE(t,M,x),a=1-OE(m,x,P),i=1-OE(m,M,C),n=1-OE(t,M,C),w.push(_E[_]),w.push(CE[_])):9===_?(s=1-OE(t,M,x),c=1-OE(m,M,x),o=OE(m,P,x),u=1-OE(t,C,P),w.push(wE[_]),w.push(_E[_])):161===_?(s=OE(m,x,M),c=OE(t,x,M),o=1-OE(t,x,P),u=OE(m,P,C),w.push(wE[_]),w.push(_E[_])):37===_?(c=OE(m,x,M),u=1-OE(t,C,P),i=OE(t,C,M),n=OE(m,C,M),w.push(_E[_]),w.push(xE[_])):133===_?(c=1-OE(t,M,x),u=OE(m,P,C),i=1-OE(m,M,C),n=1-OE(t,M,C),w.push(_E[_]),w.push(xE[_])):148===_?(a=OE(t,P,x),u=OE(t,P,C),l=OE(m,P,C),n=1-OE(m,M,C),w.push(CE[_]),w.push(PE[_])):22===_?(a=1-OE(m,x,P),u=1-OE(m,C,P),l=1-OE(t,C,P),n=OE(t,C,M),w.push(CE[_]),w.push(PE[_])):82===_?(s=OE(t,x,M),a=1-OE(t,x,P),o=1-OE(m,x,P),l=1-OE(m,C,P),w.push(wE[_]),w.push(ME[_])):88===_?(s=1-OE(m,M,x),a=OE(m,P,x),o=OE(t,P,x),l=OE(t,P,C),w.push(wE[_]),w.push(ME[_])):73===_?(s=1-OE(t,M,x),c=1-OE(m,M,x),o=OE(m,P,x),i=1-OE(t,M,C),w.push(wE[_]),w.push(_E[_])):97===_?(s=OE(m,x,M),c=OE(t,x,M),o=1-OE(t,x,P),i=OE(m,C,M),w.push(wE[_]),w.push(_E[_])):145===_?(s=OE(t,x,M),o=1-OE(t,x,P),u=OE(m,P,C),n=1-OE(m,M,C),w.push(wE[_]),w.push(xE[_])):25===_?(s=1-OE(m,M,x),o=OE(m,P,x),u=1-OE(t,C,P),n=OE(t,C,M),w.push(wE[_]),w.push(xE[_])):70===_?(c=1-OE(t,M,x),a=1-OE(m,x,P),l=1-OE(m,C,P),i=1-OE(t,M,C),w.push(_E[_]),w.push(CE[_])):100===_?(c=OE(m,x,M),a=OE(t,P,x),l=OE(t,P,C),i=OE(m,C,M),w.push(_E[_]),w.push(CE[_])):34===_?(n=0===y?(s=1-OE(t,M,x),c=1-OE(m,M,x),a=OE(m,P,x),o=OE(t,P,x),u=OE(t,P,C),l=OE(m,P,C),i=1-OE(m,M,C),1-OE(t,M,C)):(s=OE(m,x,M),c=OE(t,x,M),a=1-OE(t,x,P),o=1-OE(m,x,P),u=1-OE(m,C,P),l=1-OE(t,C,P),i=OE(t,C,M),OE(m,C,M)),w.push(wE[_]),w.push(_E[_]),w.push(xE[_]),w.push(PE[_])):35===_?(n=4===y?(s=1-OE(t,M,x),c=1-OE(m,M,x),a=OE(m,P,x),o=OE(t,P,x),u=OE(t,P,C),l=OE(m,P,C),i=1-OE(m,M,C),1-OE(t,M,C)):(s=OE(m,x,M),c=OE(t,x,M),a=1-OE(t,x,P),o=1-OE(m,x,P),u=1-OE(m,C,P),l=1-OE(t,C,P),i=OE(t,C,M),OE(m,C,M)),w.push(wE[_]),w.push(_E[_]),w.push(ME[_]),w.push(PE[_])):136===_?(n=0===y?(s=OE(m,x,M),c=OE(t,x,M),a=1-OE(t,x,P),o=1-OE(m,x,P),u=1-OE(m,C,P),l=1-OE(t,C,P),i=OE(t,C,M),OE(m,C,M)):(s=1-OE(t,M,x),c=1-OE(m,M,x),a=OE(m,P,x),o=OE(t,P,x),u=OE(t,P,C),l=OE(m,P,C),i=1-OE(m,M,C),1-OE(t,M,C)),w.push(wE[_]),w.push(_E[_]),w.push(xE[_]),w.push(PE[_])):153===_?(n=0===y?(s=OE(t,x,M),o=1-OE(t,x,P),u=1-OE(t,C,P),OE(t,C,M)):(s=1-OE(m,M,x),o=OE(m,P,x),u=OE(m,P,C),1-OE(m,M,C)),w.push(wE[_]),w.push(ME[_])):102===_?(i=0===y?(c=1-OE(t,M,x),a=OE(t,P,x),l=OE(t,P,C),1-OE(t,M,C)):(c=OE(m,x,M),a=1-OE(m,x,P),l=1-OE(m,C,P),OE(m,C,M)),w.push(_E[_]),w.push(PE[_])):155===_?(n=4===y?(s=OE(t,x,M),o=1-OE(t,x,P),u=1-OE(t,C,P),OE(t,C,M)):(s=1-OE(m,M,x),o=OE(m,P,x),u=OE(m,P,C),1-OE(m,M,C)),w.push(wE[_]),w.push(xE[_])):103===_?(i=4===y?(c=1-OE(t,M,x),a=OE(t,P,x),l=OE(t,P,C),1-OE(t,M,C)):(c=OE(m,x,M),a=1-OE(m,x,P),l=1-OE(m,C,P),OE(m,C,M)),w.push(_E[_]),w.push(CE[_])):152===_?(n=0===y?(s=OE(t,x,M),a=1-OE(t,x,P),o=1-OE(m,x,P),u=1-OE(m,C,P),l=1-OE(t,C,P),OE(t,C,M)):(s=1-OE(m,M,x),a=OE(m,P,x),o=OE(t,P,x),u=OE(t,P,C),l=OE(m,P,C),1-OE(m,M,C)),w.push(wE[_]),w.push(CE[_]),w.push(ME[_])):156===_?(n=4===y?(s=OE(t,x,M),a=1-OE(t,x,P),o=1-OE(m,x,P),u=1-OE(m,C,P),l=1-OE(t,C,P),OE(t,C,M)):(s=1-OE(m,M,x),a=OE(m,P,x),o=OE(t,P,x),u=OE(t,P,C),l=OE(m,P,C),1-OE(m,M,C)),w.push(wE[_]),w.push(ME[_]),w.push(PE[_])):137===_?(n=0===y?(s=OE(m,x,M),c=OE(t,x,M),o=1-OE(t,x,P),u=1-OE(t,C,P),i=OE(t,C,M),OE(m,C,M)):(s=1-OE(t,M,x),c=1-OE(m,M,x),o=OE(m,P,x),u=OE(m,P,C),i=1-OE(m,M,C),1-OE(t,M,C)),w.push(wE[_]),w.push(_E[_]),w.push(ME[_])):139===_?(n=4===y?(s=OE(m,x,M),c=OE(t,x,M),o=1-OE(t,x,P),u=1-OE(t,C,P),i=OE(t,C,M),OE(m,C,M)):(s=1-OE(t,M,x),c=1-OE(m,M,x),o=OE(m,P,x),u=OE(m,P,C),i=1-OE(m,M,C),1-OE(t,M,C)),w.push(wE[_]),w.push(_E[_]),w.push(xE[_])):98===_?(i=0===y?(s=1-OE(t,M,x),c=1-OE(m,M,x),a=OE(m,P,x),o=OE(t,P,x),l=OE(t,P,C),1-OE(t,M,C)):(s=OE(m,x,M),c=OE(t,x,M),a=1-OE(t,x,P),o=1-OE(m,x,P),l=1-OE(m,C,P),OE(m,C,M)),w.push(wE[_]),w.push(_E[_]),w.push(PE[_])):99===_?(i=4===y?(s=1-OE(t,M,x),c=1-OE(m,M,x),a=OE(m,P,x),o=OE(t,P,x),l=OE(t,P,C),1-OE(t,M,C)):(s=OE(m,x,M),c=OE(t,x,M),a=1-OE(t,x,P),o=1-OE(m,x,P),l=1-OE(m,C,P),OE(m,C,M)),w.push(wE[_]),w.push(_E[_]),w.push(ME[_])):38===_?(n=0===y?(c=1-OE(t,M,x),a=OE(t,P,x),u=OE(t,P,C),l=OE(m,P,C),i=1-OE(m,M,C),1-OE(t,M,C)):(c=OE(m,x,M),a=1-OE(m,x,P),u=1-OE(m,C,P),l=1-OE(t,C,P),i=OE(t,C,M),OE(m,C,M)),w.push(_E[_]),w.push(xE[_]),w.push(PE[_])):39===_?(n=4===y?(c=1-OE(t,M,x),a=OE(t,P,x),u=OE(t,P,C),l=OE(m,P,C),i=1-OE(m,M,C),1-OE(t,M,C)):(c=OE(m,x,M),a=1-OE(m,x,P),u=1-OE(m,C,P),l=1-OE(t,C,P),i=OE(t,C,M),OE(m,C,M)),w.push(_E[_]),w.push(CE[_]),w.push(PE[_])):85===_&&(i=u=o=c=0,n=l=a=s=1),(i<0||1<i||n<0||1<n||s<0||1<s||a<0||1<a||u<0||1<u||l<0||1<l)&&console.log("MarchingSquaresJS-isoBands: "+_+" "+g+" "+C+","+M+","+x+","+P+" "+y+" "+i+" "+n+" "+s+" "+c+" "+a+" "+o+" "+u+" "+l),p.cells[f][v]={cval:_,cval_real:g,flipped:y,topleft:i,topright:n,righttop:s,rightbottom:c,bottomright:a,bottomleft:o,leftbottom:u,lefttop:l,edges:w}))}}return p}(e,t,r),h=AS.polygons?(AS.verbose&&console.log("MarchingSquaresJS-isoBands: returning single polygons for each grid cell"),c=[],l=0,u.cells.forEach(function(e,i){e.forEach(function(e,t){var r;void 0!==e&&("object"==typeof(r=TE[e.cval](e))&&kE(r)?"object"==typeof r[0]&&kE(r[0])?"object"==typeof r[0][0]&&kE(r[0][0])?r.forEach(function(e){e.forEach(function(e){e[0]+=t,e[1]+=i}),c[l++]=e}):(r.forEach(function(e){e[0]+=t,e[1]+=i}),c[l++]=r):console.log("MarchingSquaresJS-isoBands: bandcell polygon with malformed coordinates"):console.log("MarchingSquaresJS-isoBands: bandcell polygon with null coordinates"))})}),c):(AS.verbose&&console.log("MarchingSquaresJS-isoBands: returning polygon paths for entire data grid"),function(e){for(var t=[],r=e.rows,i=e.cols,n=[],o=0;o<r;o++)for(var a=0;a<i;a++)if(void 0!==e.cells[o][a]&&0<e.cells[o][a].edges.length){var s=FE(e.cells[o][a]),c=null,l=a,u=o;null!==s&&n.push([s.p[0]+l,s.p[1]+u]);do{if(null===(c=LE(e.cells[u][l],s.x,s.y,s.o)))break;if(n.push([c.p[0]+l,c.p[1]+u]),l+=c.x,u+=c.y,s=c,u<0||r<=u||l<0||i<=l||void 0===e.cells[u][l]){l-=c.x,u-=c.y;var h=RE(e,l,u,c.x,c.y,c.o);if(null===h)break;h.path.forEach(function(e){n.push(e)}),l=h.i,u=h.j,s=h}}while(void 0!==e.cells[u][l]&&0<e.cells[u][l].edges.length);t.push(n),n=[],0<e.cells[o][a].edges.length&&a--}return t}(u));return"function"==typeof AS.successCallback&&AS.successCallback(h),h}var NS=64,GS=16,zS=4,BS=1,VS=[],qS=[],WS=[],US=[],HS=[],$S=[],ZS=[],KS=[],XS=[],JS=[],YS=[],QS=[],eE=[],tE=[],rE=[],iE=[],nE=[],oE=[],aE=[],sE=[],cE=[],lE=[],uE=[],hE=[];ZS[85]=JS[85]=-1,KS[85]=YS[85]=0,XS[85]=QS[85]=1,aE[85]=lE[85]=1,sE[85]=uE[85]=0,cE[85]=hE[85]=1,VS[85]=US[85]=0,qS[85]=HS[85]=-1,WS[85]=rE[85]=0,iE[85]=eE[85]=0,nE[85]=tE[85]=1,$S[85]=oE[85]=1,lE[1]=lE[169]=0,uE[1]=uE[169]=-1,hE[1]=hE[169]=0,eE[1]=eE[169]=-1,tE[1]=tE[169]=0,rE[1]=rE[169]=0,JS[4]=JS[166]=0,YS[4]=YS[166]=-1,QS[4]=QS[166]=1,iE[4]=iE[166]=1,nE[4]=nE[166]=0,oE[4]=oE[166]=0,ZS[16]=ZS[154]=0,KS[16]=KS[154]=1,XS[16]=XS[154]=1,US[16]=US[154]=1,HS[16]=HS[154]=0,$S[16]=$S[154]=1,aE[64]=aE[106]=0,sE[64]=sE[106]=1,cE[64]=cE[106]=0,VS[64]=VS[106]=-1,qS[64]=qS[106]=0,WS[64]=WS[106]=1,aE[2]=aE[168]=0,sE[2]=sE[168]=-1,cE[2]=cE[168]=1,lE[2]=lE[168]=0,uE[2]=uE[168]=-1,hE[2]=hE[168]=0,eE[2]=eE[168]=-1,tE[2]=tE[168]=0,rE[2]=rE[168]=0,iE[2]=iE[168]=-1,nE[2]=nE[168]=0,oE[2]=oE[168]=1,ZS[8]=ZS[162]=0,KS[8]=KS[162]=-1,XS[8]=XS[162]=0,JS[8]=JS[162]=0,YS[8]=YS[162]=-1,QS[8]=QS[162]=1,eE[8]=eE[162]=1,tE[8]=tE[162]=0,rE[8]=rE[162]=1,iE[8]=iE[162]=1,nE[8]=nE[162]=0,oE[8]=oE[162]=0,ZS[32]=ZS[138]=0,KS[32]=KS[138]=1,XS[32]=XS[138]=1,JS[32]=JS[138]=0,YS[32]=YS[138]=1,QS[32]=QS[138]=0,VS[32]=VS[138]=1,qS[32]=qS[138]=0,WS[32]=WS[138]=0,US[32]=US[138]=1,HS[32]=HS[138]=0,$S[32]=$S[138]=1,lE[128]=lE[42]=0,uE[128]=uE[42]=1,hE[128]=hE[42]=1,aE[128]=aE[42]=0,sE[128]=sE[42]=1,cE[128]=cE[42]=0,VS[128]=VS[42]=-1,qS[128]=qS[42]=0,WS[128]=WS[42]=1,US[128]=US[42]=-1,HS[128]=HS[42]=0,$S[128]=$S[42]=0,JS[5]=JS[165]=-1,YS[5]=YS[165]=0,QS[5]=QS[165]=0,lE[5]=lE[165]=1,uE[5]=uE[165]=0,hE[5]=hE[165]=0,iE[20]=iE[150]=0,nE[20]=nE[150]=1,oE[20]=oE[150]=1,US[20]=US[150]=0,HS[20]=HS[150]=-1,$S[20]=$S[150]=1,ZS[80]=ZS[90]=-1,KS[80]=KS[90]=0,XS[80]=XS[90]=1,aE[80]=aE[90]=1,sE[80]=sE[90]=0,cE[80]=cE[90]=1,eE[65]=eE[105]=0,tE[65]=tE[105]=1,rE[65]=rE[105]=0,VS[65]=VS[105]=0,qS[65]=qS[105]=-1,WS[65]=WS[105]=0,ZS[160]=ZS[10]=-1,KS[160]=KS[10]=0,XS[160]=XS[10]=1,JS[160]=JS[10]=-1,YS[160]=YS[10]=0,QS[160]=QS[10]=0,lE[160]=lE[10]=1,uE[160]=uE[10]=0,hE[160]=hE[10]=0,aE[160]=aE[10]=1,sE[160]=sE[10]=0,cE[160]=cE[10]=1,iE[130]=iE[40]=0,nE[130]=nE[40]=1,oE[130]=oE[40]=1,eE[130]=eE[40]=0,tE[130]=tE[40]=1,rE[130]=rE[40]=0,VS[130]=VS[40]=0,qS[130]=qS[40]=-1,WS[130]=WS[40]=0,US[130]=US[40]=0,HS[130]=HS[40]=-1,$S[130]=$S[40]=1,JS[37]=JS[133]=0,YS[37]=YS[133]=1,QS[37]=QS[133]=1,lE[37]=lE[133]=0,uE[37]=uE[133]=1,hE[37]=hE[133]=0,VS[37]=VS[133]=-1,qS[37]=qS[133]=0,WS[37]=WS[133]=0,US[37]=US[133]=1,HS[37]=HS[133]=0,$S[37]=$S[133]=0,iE[148]=iE[22]=-1,nE[148]=nE[22]=0,oE[148]=oE[22]=0,lE[148]=lE[22]=0,uE[148]=uE[22]=-1,hE[148]=hE[22]=1,aE[148]=aE[22]=0,sE[148]=sE[22]=1,cE[148]=cE[22]=1,US[148]=US[22]=-1,HS[148]=HS[22]=0,$S[148]=$S[22]=1,ZS[82]=ZS[88]=0,KS[82]=KS[88]=-1,XS[82]=XS[88]=1,iE[82]=iE[88]=1,nE[82]=nE[88]=0,oE[82]=oE[88]=1,eE[82]=eE[88]=-1,tE[82]=tE[88]=0,rE[82]=rE[88]=1,aE[82]=aE[88]=0,sE[82]=sE[88]=-1,cE[82]=cE[88]=0,ZS[73]=ZS[97]=0,KS[73]=KS[97]=1,XS[73]=XS[97]=0,JS[73]=JS[97]=0,YS[73]=YS[97]=-1,QS[73]=QS[97]=0,eE[73]=eE[97]=1,tE[73]=tE[97]=0,rE[73]=rE[97]=0,VS[73]=VS[97]=1,qS[73]=qS[97]=0,WS[73]=WS[97]=1,ZS[145]=ZS[25]=0,KS[145]=KS[25]=-1,XS[145]=XS[25]=0,eE[145]=eE[25]=1,tE[145]=tE[25]=0,rE[145]=rE[25]=1,lE[145]=lE[25]=0,uE[145]=uE[25]=1,hE[145]=hE[25]=1,US[145]=US[25]=-1,HS[145]=HS[25]=0,$S[145]=$S[25]=0,JS[70]=JS[100]=0,YS[70]=YS[100]=1,QS[70]=QS[100]=0,iE[70]=iE[100]=-1,nE[70]=nE[100]=0,oE[70]=oE[100]=1,aE[70]=aE[100]=0,sE[70]=sE[100]=-1,cE[70]=cE[100]=1,VS[70]=VS[100]=1,qS[70]=qS[100]=0,WS[70]=WS[100]=0,JS[101]=JS[69]=0,YS[101]=YS[69]=1,QS[101]=QS[69]=0,VS[101]=VS[69]=1,qS[101]=qS[69]=0,WS[101]=WS[69]=0,lE[149]=lE[21]=0,uE[149]=uE[21]=1,hE[149]=hE[21]=1,US[149]=US[21]=-1,HS[149]=HS[21]=0,$S[149]=$S[21]=0,iE[86]=iE[84]=-1,nE[86]=nE[84]=0,oE[86]=oE[84]=1,aE[86]=aE[84]=0,sE[86]=sE[84]=-1,cE[86]=cE[84]=1,ZS[89]=ZS[81]=0,KS[89]=KS[81]=-1,XS[89]=XS[81]=0,eE[89]=eE[81]=1,tE[89]=tE[81]=0,rE[89]=rE[81]=1,ZS[96]=ZS[74]=0,KS[96]=KS[74]=1,XS[96]=XS[74]=0,JS[96]=JS[74]=-1,YS[96]=YS[74]=0,QS[96]=QS[74]=1,aE[96]=aE[74]=1,sE[96]=sE[74]=0,cE[96]=cE[74]=0,VS[96]=VS[74]=1,qS[96]=qS[74]=0,WS[96]=WS[74]=1,ZS[24]=ZS[146]=0,KS[24]=KS[146]=-1,XS[24]=XS[146]=1,iE[24]=iE[146]=1,nE[24]=nE[146]=0,oE[24]=oE[146]=1,eE[24]=eE[146]=0,tE[24]=tE[146]=1,rE[24]=rE[146]=1,US[24]=US[146]=0,HS[24]=HS[146]=-1,$S[24]=$S[146]=0,JS[6]=JS[164]=-1,YS[6]=YS[164]=0,QS[6]=QS[164]=1,iE[6]=iE[164]=-1,nE[6]=nE[164]=0,oE[6]=oE[164]=0,lE[6]=lE[164]=0,uE[6]=uE[164]=-1,hE[6]=hE[164]=1,aE[6]=aE[164]=1,sE[6]=sE[164]=0,cE[6]=cE[164]=0,eE[129]=eE[41]=0,tE[129]=tE[41]=1,rE[129]=rE[41]=1,lE[129]=lE[41]=0,uE[129]=uE[41]=1,hE[129]=hE[41]=0,VS[129]=VS[41]=-1,qS[129]=qS[41]=0,WS[129]=WS[41]=0,US[129]=US[41]=0,HS[129]=HS[41]=-1,$S[129]=$S[41]=0,iE[66]=iE[104]=0,nE[66]=nE[104]=1,oE[66]=oE[104]=0,eE[66]=eE[104]=-1,tE[66]=tE[104]=0,rE[66]=rE[104]=1,aE[66]=aE[104]=0,sE[66]=sE[104]=-1,cE[66]=cE[104]=0,VS[66]=VS[104]=0,qS[66]=qS[104]=-1,WS[66]=WS[104]=1,ZS[144]=ZS[26]=-1,KS[144]=KS[26]=0,XS[144]=XS[26]=0,lE[144]=lE[26]=1,uE[144]=uE[26]=0,hE[144]=hE[26]=1,aE[144]=aE[26]=0,sE[144]=sE[26]=1,cE[144]=cE[26]=1,US[144]=US[26]=-1,HS[144]=HS[26]=0,$S[144]=$S[26]=1,JS[36]=JS[134]=0,YS[36]=YS[134]=1,QS[36]=QS[134]=1,iE[36]=iE[134]=0,nE[36]=nE[134]=1,oE[36]=oE[134]=0,VS[36]=VS[134]=0,qS[36]=qS[134]=-1,WS[36]=WS[134]=1,US[36]=US[134]=1,HS[36]=HS[134]=0,$S[36]=$S[134]=0,ZS[9]=ZS[161]=-1,KS[9]=KS[161]=0,XS[9]=XS[161]=0,JS[9]=JS[161]=0,YS[9]=YS[161]=-1,QS[9]=QS[161]=0,eE[9]=eE[161]=1,tE[9]=tE[161]=0,rE[9]=rE[161]=0,lE[9]=lE[161]=1,uE[9]=uE[161]=0,hE[9]=hE[161]=1,ZS[136]=0,KS[136]=1,XS[136]=1,JS[136]=0,YS[136]=1,QS[136]=0,iE[136]=-1,nE[136]=0,oE[136]=1,eE[136]=-1,tE[136]=0,rE[136]=0,lE[136]=0,uE[136]=-1,hE[136]=0,aE[136]=0,sE[136]=-1,cE[136]=1,VS[136]=1,qS[136]=0,WS[136]=0,US[136]=1,HS[136]=0,$S[136]=1,ZS[34]=0,KS[34]=-1,XS[34]=0,JS[34]=0,YS[34]=-1,QS[34]=1,iE[34]=1,nE[34]=0,oE[34]=0,eE[34]=1,tE[34]=0,rE[34]=1,lE[34]=0,uE[34]=1,hE[34]=1,aE[34]=0,sE[34]=1,cE[34]=0,VS[34]=-1,qS[34]=0,WS[34]=1,US[34]=-1,HS[34]=0,$S[34]=0,ZS[35]=0,KS[35]=1,XS[35]=1,JS[35]=0,YS[35]=-1,QS[35]=1,iE[35]=1,nE[35]=0,oE[35]=0,eE[35]=-1,tE[35]=0,rE[35]=0,lE[35]=0,uE[35]=-1,hE[35]=0,aE[35]=0,sE[35]=1,cE[35]=0,VS[35]=-1,qS[35]=0,WS[35]=1,US[35]=1,HS[35]=0,$S[35]=1,ZS[153]=0,KS[153]=1,XS[153]=1,eE[153]=-1,tE[153]=0,rE[153]=0,lE[153]=0,uE[153]=-1,hE[153]=0,US[153]=1,HS[153]=0,$S[153]=1,JS[102]=0,YS[102]=-1,QS[102]=1,iE[102]=1,nE[102]=0,oE[102]=0,aE[102]=0,sE[102]=1,cE[102]=0,VS[102]=-1,qS[102]=0,WS[102]=1,ZS[155]=0,KS[155]=-1,XS[155]=0,eE[155]=1,tE[155]=0,rE[155]=1,lE[155]=0,uE[155]=1,hE[155]=1,US[155]=-1,HS[155]=0,$S[155]=0,JS[103]=0,YS[103]=1,QS[103]=0,iE[103]=-1,nE[103]=0,oE[103]=1,aE[103]=0,sE[103]=-1,cE[103]=1,VS[103]=1,qS[103]=0,WS[103]=0,ZS[152]=0,KS[152]=1,XS[152]=1,iE[152]=-1,nE[152]=0,oE[152]=1,eE[152]=-1,tE[152]=0,rE[152]=0,lE[152]=0,uE[152]=-1,hE[152]=0,aE[152]=0,sE[152]=-1,cE[152]=1,US[152]=1,HS[152]=0,$S[152]=1,ZS[156]=0,KS[156]=-1,XS[156]=1,iE[156]=1,nE[156]=0,oE[156]=1,eE[156]=-1,tE[156]=0,rE[156]=0,lE[156]=0,uE[156]=-1,hE[156]=0,aE[156]=0,sE[156]=1,cE[156]=1,US[156]=-1,HS[156]=0,$S[156]=1,ZS[137]=0,KS[137]=1,XS[137]=1,JS[137]=0,YS[137]=1,QS[137]=0,eE[137]=-1,tE[137]=0,rE[137]=0,lE[137]=0,uE[137]=-1,hE[137]=0,VS[137]=1,qS[137]=0,WS[137]=0,US[137]=1,HS[137]=0,$S[137]=1,ZS[139]=0,KS[139]=1,XS[139]=1,JS[139]=0,YS[139]=-1,QS[139]=0,eE[139]=1,tE[139]=0,rE[139]=0,lE[139]=0,uE[139]=1,hE[139]=0,VS[139]=-1,qS[139]=0,WS[139]=0,US[139]=1,HS[139]=0,$S[139]=1,ZS[98]=0,KS[98]=-1,XS[98]=0,JS[98]=0,YS[98]=-1,QS[98]=1,iE[98]=1,nE[98]=0,oE[98]=0,eE[98]=1,tE[98]=0,rE[98]=1,aE[98]=0,sE[98]=1,cE[98]=0,VS[98]=-1,qS[98]=0,WS[98]=1,ZS[99]=0,KS[99]=1,XS[99]=0,JS[99]=0,YS[99]=-1,QS[99]=1,iE[99]=1,nE[99]=0,oE[99]=0,eE[99]=-1,tE[99]=0,rE[99]=1,aE[99]=0,sE[99]=-1,cE[99]=0,VS[99]=1,qS[99]=0,WS[99]=1,JS[38]=0,YS[38]=-1,QS[38]=1,iE[38]=1,nE[38]=0,oE[38]=0,lE[38]=0,uE[38]=1,hE[38]=1,aE[38]=0,sE[38]=1,cE[38]=0,VS[38]=-1,qS[38]=0,WS[38]=1,US[38]=-1,HS[38]=0,$S[38]=0,JS[39]=0,YS[39]=1,QS[39]=1,iE[39]=-1,nE[39]=0,oE[39]=0,lE[39]=0,uE[39]=-1,hE[39]=1,aE[39]=0,sE[39]=1,cE[39]=0,VS[39]=-1,qS[39]=0,WS[39]=1,US[39]=1,HS[39]=0,$S[39]=0;function dE(e){return[[e.bottomleft,0],[0,0],[0,e.leftbottom]]}function pE(e){return[[1,e.rightbottom],[1,0],[e.bottomright,0]]}function mE(e){return[[e.topright,1],[1,1],[1,e.righttop]]}function fE(e){return[[0,e.lefttop],[0,1],[e.topleft,1]]}function vE(e){return[[e.bottomright,0],[e.bottomleft,0],[0,e.leftbottom],[0,e.lefttop]]}function gE(e){return[[e.bottomright,0],[e.bottomleft,0],[1,e.righttop],[1,e.rightbottom]]}function yE(e){return[[1,e.righttop],[1,e.rightbottom],[e.topleft,1],[e.topright,1]]}function bE(e){return[[0,e.leftbottom],[0,e.lefttop],[e.topleft,1],[e.topright,1]]}var wE=[],_E=[],CE=[],ME=[],xE=[],PE=[],SE=[],EE=[];ME[1]=xE[1]=18,ME[169]=xE[169]=18,CE[4]=_E[4]=12,CE[166]=_E[166]=12,wE[16]=EE[16]=4,wE[154]=EE[154]=4,PE[64]=SE[64]=22,PE[106]=SE[106]=22,CE[2]=PE[2]=17,ME[2]=xE[2]=18,CE[168]=PE[168]=17,ME[168]=xE[168]=18,wE[8]=ME[8]=9,_E[8]=CE[8]=12,wE[162]=ME[162]=9,_E[162]=CE[162]=12,wE[32]=EE[32]=4,_E[32]=SE[32]=1,wE[138]=EE[138]=4,_E[138]=SE[138]=1,xE[128]=EE[128]=21,PE[128]=SE[128]=22,xE[42]=EE[42]=21,PE[42]=SE[42]=22,_E[5]=xE[5]=14,_E[165]=xE[165]=14,CE[20]=EE[20]=6,CE[150]=EE[150]=6,wE[80]=PE[80]=11,wE[90]=PE[90]=11,ME[65]=SE[65]=3,ME[105]=SE[105]=3,wE[160]=PE[160]=11,_E[160]=xE[160]=14,wE[10]=PE[10]=11,_E[10]=xE[10]=14,CE[130]=EE[130]=6,ME[130]=SE[130]=3,CE[40]=EE[40]=6,ME[40]=SE[40]=3,_E[101]=SE[101]=1,_E[69]=SE[69]=1,xE[149]=EE[149]=21,xE[21]=EE[21]=21,CE[86]=PE[86]=17,CE[84]=PE[84]=17,wE[89]=ME[89]=9,wE[81]=ME[81]=9,wE[96]=SE[96]=0,_E[96]=PE[96]=15,wE[74]=SE[74]=0,_E[74]=PE[74]=15,wE[24]=CE[24]=8,ME[24]=EE[24]=7,wE[146]=CE[146]=8,ME[146]=EE[146]=7,_E[6]=PE[6]=15,CE[6]=xE[6]=16,_E[164]=PE[164]=15,CE[164]=xE[164]=16,ME[129]=EE[129]=7,xE[129]=SE[129]=20,ME[41]=EE[41]=7,xE[41]=SE[41]=20,CE[66]=SE[66]=2,ME[66]=PE[66]=19,CE[104]=SE[104]=2,ME[104]=PE[104]=19,wE[144]=xE[144]=10,PE[144]=EE[144]=23,wE[26]=xE[26]=10,PE[26]=EE[26]=23,_E[36]=EE[36]=5,CE[36]=SE[36]=2,_E[134]=EE[134]=5,CE[134]=SE[134]=2,wE[9]=xE[9]=10,_E[9]=ME[9]=13,wE[161]=xE[161]=10,_E[161]=ME[161]=13,_E[37]=EE[37]=5,xE[37]=SE[37]=20,_E[133]=EE[133]=5,xE[133]=SE[133]=20,CE[148]=xE[148]=16,PE[148]=EE[148]=23,CE[22]=xE[22]=16,PE[22]=EE[22]=23,wE[82]=CE[82]=8,ME[82]=PE[82]=19,wE[88]=CE[88]=8,ME[88]=PE[88]=19,wE[73]=SE[73]=0,_E[73]=ME[73]=13,wE[97]=SE[97]=0,_E[97]=ME[97]=13,wE[145]=ME[145]=9,xE[145]=EE[145]=21,wE[25]=ME[25]=9,xE[25]=EE[25]=21,_E[70]=SE[70]=1,CE[70]=PE[70]=17,_E[100]=SE[100]=1,CE[100]=PE[100]=17,wE[34]=ME[34]=9,_E[34]=CE[34]=12,xE[34]=EE[34]=21,PE[34]=SE[34]=22,wE[136]=EE[136]=4,_E[136]=SE[136]=1,CE[136]=PE[136]=17,ME[136]=xE[136]=18,wE[35]=EE[35]=4,_E[35]=CE[35]=12,ME[35]=xE[35]=18,PE[35]=SE[35]=22,wE[153]=EE[153]=4,ME[153]=xE[153]=18,_E[102]=CE[102]=12,PE[102]=SE[102]=22,wE[155]=ME[155]=9,xE[155]=EE[155]=23,_E[103]=SE[103]=1,CE[103]=PE[103]=17,wE[152]=EE[152]=4,CE[152]=PE[152]=17,ME[152]=xE[152]=18,wE[156]=CE[156]=8,ME[156]=xE[156]=18,PE[156]=EE[156]=23,wE[137]=EE[137]=4,_E[137]=SE[137]=1,ME[137]=xE[137]=18,wE[139]=EE[139]=4,_E[139]=ME[139]=13,xE[139]=SE[139]=20,wE[98]=ME[98]=9,_E[98]=CE[98]=12,PE[98]=SE[98]=22,wE[99]=SE[99]=0,_E[99]=CE[99]=12,ME[99]=PE[99]=19,_E[38]=CE[38]=12,xE[38]=EE[38]=21,PE[38]=SE[38]=22,_E[39]=EE[39]=5,CE[39]=xE[39]=16,PE[39]=SE[39]=22;var TE=[];function OE(e,t,r){return(e-t)/(r-t)}function kE(e){return-1<e.constructor.toString().indexOf("Array")}function RE(e,t,r,i,n,o){for(var a=e.cells[r][t],s=a.cval_real,c=t+i,l=r+n,u=[],h=!1;!h;){if(void 0===e.cells[l]||void 0===e.cells[l][c])if(l-=n,c-=i,s=(a=e.cells[l][c]).cval_real,-1===n)if(0===o)if(s&BS)u.push([c,l]),i=-1,o=n=0;else{if(!(s&zS)){u.push([c+a.bottomright,l]),o=n=1,h=!(i=0);break}u.push([c+1,l]),i=1,o=n=0}else{if(!(s&BS)){if(s&zS){u.push([c+a.bottomright,l]),o=n=1,h=!(i=0);break}u.push([c+a.bottomleft,l]),n=1,h=!(o=i=0);break}u.push([c,l]),i=-1,o=n=0}else if(1===n)if(0===o){if(!(s&GS)){if(s&NS){u.push([c+a.topleft,l+1]),n=-1,h=!(o=i=0);break}u.push([c+a.topright,l+1]),n=-1,o=1,h=!(i=0);break}u.push([c+1,l+1]),n=0,o=i=1}else o=i=(u.push([c+1,l+1]),n=0,1);else if(-1===i)if(0===o){if(!(s&NS)){if(s&BS){u.push([c,l+a.leftbottom]),i=1,h=!(o=n=0);break}u.push([c,l+a.lefttop]),o=i=1,h=!(n=0);break}u.push([c,l+1]),n=1,o=i=0}else{if(!(s&NS)){console.log("MarchingSquaresJS-isoBands: wtf");break}u.push([c,l+1]),n=1,o=i=0}else{if(1!==i){console.log("MarchingSquaresJS-isoBands: we came from nowhere!");break}if(0===o){if(!(s&zS)){u.push([c+1,l+a.rightbottom]),i=-1,h=!(o=n=0);break}u.push([c+1,l]),i=0,n=-1,o=1}else{if(!(s&zS)){if(s&GS){u.push([c+1,l+a.righttop]),i=-1,n=0,o=1;break}u.push([c+1,l+a.rightbottom]),i=-1,h=!(o=n=0);break}u.push([c+1,l]),i=0,n=-1,o=1}}else if(s=(a=e.cells[l][c]).cval_real,-1===i)if(0===o)if(void 0!==e.cells[l-1]&&void 0!==e.cells[l-1][c])i=0,n=-1,o=1;else{if(!(s&BS)){u.push([c+a.bottomright,l]),o=n=1,h=!(i=0);break}u.push([c,l])}else{if(!(s&NS)){console.log("MarchingSquaresJS-isoBands: found entry from top at "+c+","+l);break}console.log("MarchingSquaresJS-isoBands: proceeding in x-direction!")}else if(1===i){if(0===o){console.log("MarchingSquaresJS-isoBands: wtf");break}if(void 0!==e.cells[l+1]&&void 0!==e.cells[l+1][c])n=1,o=i=0;else{if(!(s&GS)){u.push([c+a.topleft,l+1]),n=-1,h=!(o=i=0);break}u.push([c+1,l+1]),n=0,o=i=1}}else if(-1===n){if(1!==o){console.log("MarchingSquaresJS-isoBands: wtf");break}if(void 0!==e.cells[l][c+1])n=0,o=i=1;else{if(!(s&zS)){u.push([c+1,l+a.righttop]),i=-1,o=1,h=!(n=0);break}u.push([c+1,l]),i=0,n=-1,o=1}}else{if(1!==n){console.log("MarchingSquaresJS-isoBands: where did we came from???");break}if(0!==o){console.log("MarchingSquaresJS-isoBands: wtf");break}if(void 0!==e.cells[l][c-1])i=-1,o=n=0;else{if(!(s&NS)){u.push([c,l+a.leftbottom]),i=1,h=!(o=n=0);break}u.push([c,l+1]),n=1,o=i=0}}if(l+=n,(c+=i)===t&&l===r)break}return{path:u,i:c,j:l,x:i,y:n,o:o}}function FE(e){if(0<e.edges.length){var t=e.edges[e.edges.length-1],r=e.cval_real;switch(t){case 0:return r&GS?{p:[1,e.righttop],x:-1,y:0,o:1}:{p:[e.topleft,1],x:0,y:-1,o:0};case 1:return r&zS?{p:[e.topleft,1],x:0,y:-1,o:0}:{p:[1,e.rightbottom],x:-1,y:0,o:0};case 2:return r&zS?{p:[e.bottomright,0],x:0,y:1,o:1}:{p:[e.topleft,1],x:0,y:-1,o:0};case 3:return r&BS?{p:[e.topleft,1],x:0,y:-1,o:0}:{p:[e.bottomleft,0],x:0,y:1,o:0};case 4:return r&GS?{p:[1,e.righttop],x:-1,y:0,o:1}:{p:[e.topright,1],x:0,y:-1,o:1};case 5:return r&zS?{p:[e.topright,1],x:0,y:-1,o:1}:{p:[1,e.rightbottom],x:-1,y:0,o:0};case 6:return r&zS?{p:[e.bottomright,0],x:0,y:1,o:1}:{p:[e.topright,1],x:0,y:-1,o:1};case 7:return r&BS?{p:[e.topright,1],x:0,y:-1,o:1}:{p:[e.bottomleft,0],x:0,y:1,o:0};case 8:return r&zS?{p:[e.bottomright,0],x:0,y:1,o:1}:{p:[1,e.righttop],x:-1,y:0,o:1};case 9:return r&BS?{p:[1,e.righttop],x:-1,y:0,o:1}:{p:[e.bottomleft,0],x:0,y:1,o:0};case 10:return r&BS?{p:[0,e.leftbottom],x:1,y:0,o:0}:{p:[1,e.righttop],x:-1,y:0,o:1};case 11:return r&NS?{p:[1,e.righttop],x:-1,y:0,o:1}:{p:[0,e.lefttop],x:1,y:0,o:1};case 12:return r&zS?{p:[e.bottomright,0],x:0,y:1,o:1}:{p:[1,e.rightbottom],x:-1,y:0,o:0};case 13:return r&BS?{p:[1,e.rightbottom],x:-1,y:0,o:0}:{p:[e.bottomleft,0],x:0,y:1,o:0};case 14:return r&BS?{p:[0,e.leftbottom],x:1,y:0,o:0}:{p:[1,e.rightbottom],x:-1,y:0,o:0};case 15:return r&NS?{p:[1,e.rightbottom],x:-1,y:0,o:0}:{p:[0,e.lefttop],x:1,y:0,o:1};case 16:return r&zS?{p:[e.bottomright,0],x:0,y:1,o:1}:{p:[0,e.leftbottom],x:1,y:0,o:0};case 17:return r&NS?{p:[e.bottomright,0],x:0,y:1,o:1}:{p:[0,e.lefttop],x:1,y:0,o:1};case 18:return r&BS?{p:[0,e.leftbottom],x:1,y:0,o:0}:{p:[e.bottomleft,0],x:0,y:1,o:0};case 19:return r&NS?{p:[e.bottomleft,0],x:0,y:1,o:0}:{p:[0,e.lefttop],x:1,y:0,o:1};case 20:return r&NS?{p:[e.topleft,1],x:0,y:-1,o:0}:{p:[0,e.leftbottom],x:1,y:0,o:0};case 21:return r&GS?{p:[0,e.leftbottom],x:1,y:0,o:0}:{p:[e.topright,1],x:0,y:-1,o:1};case 22:return r&NS?{p:[e.topleft,1],x:0,y:-1,o:0}:{p:[0,e.lefttop],x:1,y:0,o:1};case 23:return r&GS?{p:[0,e.lefttop],x:1,y:0,o:1}:{p:[e.topright,1],x:0,y:-1,o:1};default:console.log("MarchingSquaresJS-isoBands: edge index out of range!"),console.log(e)}}return null}function LE(e,t,r,i){var n,o,a,s,c,l=e.cval;switch(t){case-1:switch(i){case 0:n=_E[l],a=JS[l],s=YS[l],c=QS[l];break;default:n=wE[l],a=ZS[l],s=KS[l],c=XS[l]}break;case 1:switch(i){case 0:n=xE[l],a=lE[l],s=uE[l],c=hE[l];break;default:n=PE[l],a=aE[l],s=sE[l],c=cE[l]}break;default:switch(r){case-1:switch(i){case 0:n=SE[l],a=VS[l],s=qS[l],c=WS[l];break;default:n=EE[l],a=US[l],s=HS[l],c=$S[l]}break;case 1:switch(i){case 0:n=ME[l],a=eE[l],s=tE[l],c=rE[l];break;default:n=CE[l],a=iE[l],s=nE[l],c=oE[l]}}}if(o=e.edges.indexOf(n),void 0===e.edges[o])return null;switch(!function(e,t){delete e.edges[t];for(var r=t+1;r<e.edges.length;r++)e.edges[r-1]=e.edges[r];e.edges.pop()}(e,o),l=e.cval_real,n){case 0:r=l&GS?(t=e.topleft,1):(t=1,e.righttop);break;case 1:r=l&zS?(t=1,e.rightbottom):(t=e.topleft,1);break;case 2:r=l&zS?(t=e.topleft,1):(t=e.bottomright,0);break;case 3:r=l&BS?(t=e.bottomleft,0):(t=e.topleft,1);break;case 4:r=l&GS?(t=e.topright,1):(t=1,e.righttop);break;case 5:r=l&zS?(t=1,e.rightbottom):(t=e.topright,1);break;case 6:r=l&zS?(t=e.topright,1):(t=e.bottomright,0);break;case 7:r=l&BS?(t=e.bottomleft,0):(t=e.topright,1);break;case 8:r=l&zS?(t=1,e.righttop):(t=e.bottomright,0);break;case 9:r=l&BS?(t=e.bottomleft,0):(t=1,e.righttop);break;case 10:r=l&BS?(t=1,e.righttop):(t=0,e.leftbottom);break;case 11:r=l&NS?(t=0,e.lefttop):(t=1,e.righttop);break;case 12:r=l&zS?(t=1,e.rightbottom):(t=e.bottomright,0);break;case 13:r=l&BS?(t=e.bottomleft,0):(t=1,e.rightbottom);break;case 14:r=l&BS?(t=1,e.rightbottom):(t=0,e.leftbottom);break;case 15:r=l&NS?(t=0,e.lefttop):(t=1,e.rightbottom);break;case 16:r=l&zS?(t=0,e.leftbottom):(t=e.bottomright,0);break;case 17:r=l&NS?(t=0,e.lefttop):(t=e.bottomright,0);break;case 18:r=l&BS?(t=e.bottomleft,0):(t=0,e.leftbottom);break;case 19:r=l&NS?(t=0,e.lefttop):(t=e.bottomleft,0);break;case 20:r=l&NS?(t=0,e.leftbottom):(t=e.topleft,1);break;case 21:r=l&GS?(t=e.topright,1):(t=0,e.leftbottom);break;case 22:r=l&NS?(t=0,e.lefttop):(t=e.topleft,1);break;case 23:r=l&GS?(t=e.topright,1):(t=0,e.lefttop);break;default:return console.log("MarchingSquaresJS-isoBands: edge index out of range!"),console.log(e),null}return void 0!==t&&void 0!==r&&void 0!==a&&void 0!==s&&void 0!==c||(console.log("MarchingSquaresJS-isoBands: undefined value!"),console.log(e),console.log(t+" "+r+" "+a+" "+s+" "+c)),{p:[t,r],x:a,y:s,o:c}}function IE(e,t,r){if(r=r||{},!dS.isObject(r))throw new Error("options is invalid");var i=r.zProperty||"elevation",n=r.commonProperties||{},o=r.breaksProperties||[];if(_S.collectionOf(e,"Point","Input must contain Points"),!t)throw new Error("breaks is required");if(!Array.isArray(t))throw new Error("breaks is not an Array");if(!dS.isObject(n))throw new Error("commonProperties is not an Object");if(!Array.isArray(o))throw new Error("breaksProperties is not an Array");var a,s,c,l,u,h,d,p,m,f,v,g=IS(e,{zProperty:i,flip:!0}),y=function(e,t,r){for(var i=[],n=1;n<t.length;n++){var o=+t[n-1],a=+t[n],s=AE(jE(DS(e,o,a-o))),c={};c.groupedRings=s,c[r]=o+"-"+a,i.push(c)}return i}(g,t,i);function b(e){e[0]=e[0]*f+h,e[1]=e[1]*v+d}a=y,s=g,c=kS(e),l=c[2]-c[0],u=c[3]-c[1],h=c[0],d=c[1],p=s[0].length-1,m=s.length-1,f=l/p,v=u/m,a.forEach(function(e){e.groupedRings.forEach(function(e){e.forEach(function(e){e.forEach(b)})})});var w=(y=a).map(function(e,t){if(o[t]&&!dS.isObject(o[t]))throw new Error("Each mappedProperty is required to be an Object");var r=Object.assign({},n,o[t]);return r[i]=e[i],dS.multiPolygon(e.groupedRings,r)});return dS.featureCollection(w)}function jE(e){var r=[],i=[];e.forEach(function(e){var t=RS(dS.polygon([e]));i.push(t),r.push({ring:e,area:t})}),i.sort(function(e,t){return t-e});var n=[];return i.forEach(function(e){for(var t=0;t<r.length;t++)if(r[t].area===e){n.push(r[t].ring),r.splice(t,1);break}}),n}function AE(e){for(var t=e.map(function(e){return{lrCoordinates:e,grouped:!1}}),r=[];!NE(t);)for(var i=0;i<t.length;i++)if(!t[i].grouped){var n=[];n.push(t[i].lrCoordinates),t[i].grouped=!0;for(var o=dS.polygon([t[i].lrCoordinates]),a=i+1;a<t.length;a++){t[a].grouped||DE(dS.polygon([t[a].lrCoordinates]),o)&&(n.push(t[a].lrCoordinates),t[a].grouped=!0)}r.push(n)}return r}function DE(e,t){for(var r=LS(e),i=0;i<r.features.length;i++)if(!FS(r.features[i],t))return;return 1}function NE(e){for(var t=0;t<e.length;t++)if(!1===e[t].grouped)return;return 1}TE[1]=TE[169]=dE,TE[4]=TE[166]=pE,TE[16]=TE[154]=mE,TE[64]=TE[106]=fE,TE[168]=TE[2]=vE,TE[162]=TE[8]=gE,TE[138]=TE[32]=yE,TE[42]=TE[128]=bE,TE[5]=TE[165]=function(e){return[[0,0],[0,e.leftbottom],[1,e.rightbottom],[1,0]]},TE[20]=TE[150]=function(e){return[[1,0],[e.bottomright,0],[e.topright,1],[1,1]]},TE[80]=TE[90]=function(e){return[[1,1],[1,e.righttop],[0,e.lefttop],[0,1]]},TE[65]=TE[105]=function(e){return[[e.bottomleft,0],[0,0],[0,1],[e.topleft,1]]},TE[160]=TE[10]=function(e){return[[1,e.righttop],[1,e.rightbottom],[0,e.leftbottom],[0,e.lefttop]]},TE[130]=TE[40]=function(e){return[[e.topleft,1],[e.topright,1],[e.bottomright,0],[e.bottomleft,0]]},TE[85]=function(){return[[0,0],[0,1],[1,1],[1,0]]},TE[101]=TE[69]=function(e){return[[1,e.rightbottom],[1,0],[0,0],[0,1],[e.topleft,1]]},TE[149]=TE[21]=function(e){return[[e.topright,1],[1,1],[1,0],[0,0],[0,e.leftbottom]]},TE[86]=TE[84]=function(e){return[[1,0],[e.bottomright,0],[0,e.lefttop],[0,1],[1,1]]},TE[89]=TE[81]=function(e){return[[1,1],[1,e.righttop],[e.bottomleft,0],[0,0],[0,1]]},TE[96]=TE[74]=function(e){return[[1,e.righttop],[1,e.rightbottom],[0,e.lefttop],[0,1],[e.topleft,1]]},TE[24]=TE[146]=function(e){return[[1,1],[1,e.righttop],[e.bottomright,0],[e.bottomleft,0],[e.topright,1]]},TE[6]=TE[164]=function(e){return[[1,e.rightbottom],[1,0],[e.bottomright,0],[0,e.leftbottom],[0,e.lefttop]]},TE[129]=TE[41]=function(e){return[[e.topright,1],[e.bottomleft,0],[0,0],[0,e.leftbottom],[e.topleft,1]]},TE[66]=TE[104]=function(e){return[[e.bottomright,0],[e.bottomleft,0],[0,e.lefttop],[0,1],[e.topleft,1]]},TE[144]=TE[26]=function(e){return[[1,1],[1,e.righttop],[0,e.leftbottom],[0,e.lefttop],[e.topright,1]]},TE[36]=TE[134]=function(e){return[[1,e.rightbottom],[1,0],[e.bottomright,0],[e.topleft,1],[e.topright,1]]},TE[9]=TE[161]=function(e){return[[1,e.righttop],[1,e.rightbottom],[e.bottomleft,0],[0,0],[0,e.leftbottom]]},TE[37]=TE[133]=function(e){return[[1,e.rightbottom],[1,0],[0,0],[0,e.leftbottom],[e.topleft,1],[e.topright,1]]},TE[148]=TE[22]=function(e){return[[1,1],[1,0],[e.bottomright,0],[0,e.leftbottom],[0,e.lefttop],[e.topright,1]]},TE[82]=TE[88]=function(e){return[[1,1],[1,e.righttop],[e.bottomright,0],[e.bottomleft,0],[0,e.lefttop],[0,1]]},TE[73]=TE[97]=function(e){return[[1,e.righttop],[1,e.rightbottom],[e.bottomleft,0],[0,0],[0,1],[e.topleft,1]]},TE[145]=TE[25]=function(e){return[[1,1],[1,e.righttop],[e.bottomleft,0],[0,0],[0,e.leftbottom],[e.topright,1]]},TE[70]=TE[100]=function(e){return[[1,e.rightbottom],[1,0],[e.bottomright,0],[0,e.lefttop],[0,1],[e.topleft,1]]},TE[34]=function(e){return[bE(e),gE(e)]},TE[35]=function(e){return[[1,e.righttop],[1,e.rightbottom],[e.bottomright,0],[e.bottomleft,0],[0,e.leftbottom],[0,e.lefttop],[e.topleft,1],[e.topright,1]]},TE[136]=function(e){return[yE(e),vE(e)]},TE[153]=function(e){return[mE(e),dE(e)]},TE[102]=function(e){return[pE(e),fE(e)]},TE[155]=function(e){return[[1,1],[1,e.righttop],[e.bottomleft,0],[0,0],[0,e.leftbottom],[e.topright,1]]},TE[103]=function(e){return[[1,e.rightbottom],[1,0],[e.bottomright,0],[0,e.lefttop],[0,1],[e.topleft,1]]},TE[152]=function(e){return[mE(e),vE(e)]},TE[156]=function(e){return[[1,1],[1,e.righttop],[e.bottomright,0],[e.bottomleft,0],[0,e.leftbottom],[0,e.lefttop],[e.topright,1]]},TE[137]=function(e){return[yE(e),dE(e)]},TE[139]=function(e){return[[1,e.righttop],[1,e.rightbottom],[e.bottomleft,0],[0,0],[0,e.leftbottom],[e.topleft,1],[e.topright,1]]},TE[98]=function(e){return[gE(e),fE(e)]},TE[99]=function(e){return[[1,e.righttop],[1,e.rightbottom],[e.bottomright,0],[e.bottomleft,0],[0,e.lefttop],[0,1],[e.topleft,1]]},TE[38]=function(e){return[pE(e),bE(e)]},TE[39]=function(e){return[[1,e.rightbottom],[1,0],[e.bottomright,0],[0,e.leftbottom],[0,e.lefttop],[e.topleft,1],[e.topright,1]]};var GE=IE;GE.default=IE;var zE={name:"vc-kriging-map",data:function(){return{material1:{},hierarchy1:{},data:null,datasourceOptions:{clampToGround:!0}}},mixins:[Yi],props:{values:Array,lngs:Array,lats:Array,krigingModel:{type:String,default:"exponential"},krigingSigma2:{type:Number,default:0},krigingAlpha:{type:Number,default:100},canvasAlpha:{type:Number,default:.75},colors:{type:Array,default:function(){return["#006837","#1a9850","#66bd63","#a6d96a","#d9ef8b","#ffffbf","#fee08b","#fdae61","#f46d43","#d73027","#a50026"]}},breaks:{type:Array,default:function(){return[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]}},clipCoords:{type:Array|String,default:function(){return[]}},show:{type:Boolean,default:!0}},watch:{},methods:{createCesiumObject:function(){var t,r,i,n,o,a,s,c,l,u,h,d,p,m,f,v,g,y,b,w;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.values,r=this.lngs,i=this.lats,n=this.krigingModel,o=this.krigingSigma2,a=this.krigingAlpha,s=this.breaks,c=this.clipCoords,l=sS.train(t,r,i,n,o,a),u=[],!(c instanceof Array)){e.next=7;break}u=c,e.next=12;break;case 7:if("string"==typeof c)return e.next=10,Xt.awrap(Cesium.Resource.fetchJson(c));e.next=12;break;case 10:h=e.sent,u=h.features[0].geometry.coordinates;case 12:for(d=[],p=0;p<u[0].length;p++)for(m=0;m<2;m++)d.push(u[0][p][m]);return f=4<d.length?Cesium.PolygonGeometry.computeRectangle({polygonHierarchy:new Cesium.PolygonHierarchy(Cesium.Cartesian3.fromDegreesArray(d))}):Cesium.Rectangle.fromDegrees(d[0],d[1],d[2],d[3]),v=[Cesium.Math.toDegrees(f.west),Cesium.Math.toDegrees(f.south),Cesium.Math.toDegrees(f.east),Cesium.Math.toDegrees(f.north)],g=sS.grid(u,l,(v[2]-v[0])/200),y=this.gridFeatureCollection(g,[v[0],v[2]],[v[1],v[3]]),b=H_(y),w=GE(b,s,{zProperty:"value"}),this.data=w,e.abrupt("return",w);case 22:case"end":return e.stop()}},null,this)},gridFeatureCollection:function(e){for(var t,r,i,n,o=e.data.length,a=e.data[0].length,s=[],c=0;c<o;c++)for(t=0;t<a;t++)r=c*e.width+e.xlim[0],i=t*e.width+e.ylim[0],n=e.data[c][t],s.push(U_([r,i],{value:n}));return s},datasourceReady:function(e){var i=e.Cesium,t=e.viewer,r=e.cesiumObject,n=this.breaks,o=this.colors;r.entities.values.reduce(function(e,t){var r=n.indexOf(ol(t.properties.getValue().value.split("-")[0]));t.polygon.material=i.Color.fromCssColorString(o[r]),t.polygon.outline=!1},[]),this.$emit("ready",{Cesium:i,viewer:t,cesiumObject:r})},mount:function(){return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}})},unmount:function(){return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.$refs.geojson&&this.$refs.geojson.unload());case 1:case"end":return e.stop()}},null,this)}}};var BE,VE,qE,WE,UE,HE=(qE=void 0,WE=!(BE={render:function(){var e=this.$createElement,t=this._self._c||e;return t("i",{class:this.$options.name,staticStyle:{display:"none !important"}},[t("vc-datasource-geojson",{ref:"geojson",attrs:{data:this.data,options:this.datasourceOptions,show:this.show},on:{ready:this.datasourceReady}})],1)},staticRenderFns:[]}),(UE=("function"==typeof(VE=zE)?VE.options:VE)||{}).__file="VcKrigingMap.vue",UE.render||(UE.render=BE.render,UE.staticRenderFns=BE.staticRenderFns,UE._compiled=!0,WE&&(UE.functional=!0)),UE._scopeId=qE,UE);function $E(e){$E.installed||($E.installed=!0,e.component(HE.name,HE))}var ZE,KE=Object.freeze({__proto__:null,default:$E,VcKrigingMap:HE,install:$E}),XE={ncolors:16,colorTable:[.015686,.054902,.847059,.12549,.313725,1,.254902,.588235,1,.427451,.756863,1,.52549,.85098,1,.611765,.933333,1,.686275,.960784,1,.807843,1,1,1,.996078,.278431,1,.921569,0,1,.768627,0,1,.564706,0,1,.282353,0,1,0,0,.835294,0,0,.619608,0,0]},JE=(ZE=null,{getFullscreenQuad:function(){return Cesium.defined(ZE)||(ZE=new Cesium.Geometry({attributes:new Cesium.GeometryAttributes({position:new Cesium.GeometryAttribute({componentDatatype:Cesium.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:new Float32Array([-1,-1,0,1,-1,0,1,1,0,-1,1,0])}),st:new Cesium.GeometryAttribute({componentDatatype:Cesium.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:new Float32Array([0,0,1,0,1,1,0,1])})}),indices:new Uint32Array([3,2,0,0,2,1])})),ZE},createTexture:function(e,t){var r;return Cesium.defined(t)&&((r={}).arrayBufferView=t,e.source=r),new Cesium.Texture(e)},createFramebuffer:function(e,t,r){return new Cesium.Framebuffer({context:e,colorTextures:[t],depthTexture:r})},createRawRenderState:function(e){var t={viewport:e.viewport,depthTest:e.depthTest,depthMask:e.depthMask,blending:e.blending};return Cesium.Appearance.getDefaultRenderState(!0,!1,t)},viewRectangleToLonLatRange:function(e){var t,r={},i=Cesium.Math.mod(e.west,Cesium.Math.TWO_PI),n=Cesium.Math.mod(e.east,Cesium.Math.TWO_PI),o=e.width,a=o>Cesium.Math.THREE_PI_OVER_TWO?(t=0,Cesium.Math.TWO_PI):n-i<o?(t=i)+o:(t=i,n);r.lon={min:Cesium.Math.toDegrees(t),max:Cesium.Math.toDegrees(a)};var s=e.south,c=e.north,l=e.height,u=l>Cesium.Math.PI/12?l/2:0,h=Cesium.Math.clampToLatitudeRange(s-u),d=Cesium.Math.clampToLatitudeRange(c+u);return h<-Cesium.Math.PI_OVER_THREE&&(h=-Cesium.Math.PI_OVER_TWO),d>Cesium.Math.PI_OVER_THREE&&(d=Cesium.Math.PI_OVER_TWO),r.lat={min:Cesium.Math.toDegrees(h),max:Cesium.Math.toDegrees(d)},r}}),YE=function(){function t(e){Oc(this,t),this.commandType=e.commandType,this.geometry=e.geometry,this.attributeLocations=e.attributeLocations,this.primitiveType=e.primitiveType,this.uniformMap=e.uniformMap,this.vertexShaderSource=e.vertexShaderSource,this.fragmentShaderSource=e.fragmentShaderSource,this.rawRenderState=e.rawRenderState,this.framebuffer=e.framebuffer,this.outputTexture=e.outputTexture,this.autoClear=Cesium.defaultValue(e.autoClear,!1),this.preExecute=e.preExecute,this.show=!0,this.commandToExecute=void 0,this.clearCommand=void 0,this.autoClear&&(this.clearCommand=new Cesium.ClearCommand({color:new Cesium.Color(0,0,0,0),depth:1,framebuffer:this.framebuffer,pass:Cesium.Pass.OPAQUE}))}return Rc(t,[{key:"createCommand",value:function(e){switch(this.commandType){case"Draw":var t=Cesium.VertexArray.fromGeometry({context:e,geometry:this.geometry,attributeLocations:this.attributeLocations,bufferUsage:Cesium.BufferUsage.STATIC_DRAW}),r=Cesium.ShaderProgram.fromCache({context:e,attributeLocations:this.attributeLocations,vertexShaderSource:this.vertexShaderSource,fragmentShaderSource:this.fragmentShaderSource}),i=Cesium.RenderState.fromCache(this.rawRenderState);return new Cesium.DrawCommand({owner:this,vertexArray:t,primitiveType:this.primitiveType,uniformMap:this.uniformMap,modelMatrix:Cesium.Matrix4.IDENTITY,shaderProgram:r,framebuffer:this.framebuffer,renderState:i,pass:Cesium.Pass.OPAQUE});case"Compute":return new Cesium.ComputeCommand({owner:this,fragmentShaderSource:this.fragmentShaderSource,uniformMap:this.uniformMap,outputTexture:this.outputTexture,persists:!0})}}},{key:"setGeometry",value:function(e,t){this.geometry=t;var r=Cesium.VertexArray.fromGeometry({context:e,geometry:this.geometry,attributeLocations:this.attributeLocations,bufferUsage:Cesium.BufferUsage.STATIC_DRAW});this.commandToExecute.vertexArray=r}},{key:"update",value:function(e){this.show&&(Cesium.defined(this.commandToExecute)||(this.commandToExecute=this.createCommand(e.context)),Cesium.defined(this.preExecute)&&this.preExecute(),Cesium.defined(this.clearCommand)&&e.commandList.push(this.clearCommand),e.commandList.push(this.commandToExecute))}},{key:"isDestroyed",value:function(){return!1}},{key:"destroy",value:function(){return Cesium.defined(this.commandToExecute)&&(this.commandToExecute.shaderProgram=this.commandToExecute.shaderProgram&&this.commandToExecute.shaderProgram.destroy()),Cesium.destroyObject(this)}}]),t}(),QE="\nattribute vec3 position;\nattribute vec2 st;\n\nvarying vec2 textureCoordinate;\n\nvoid main() {\n textureCoordinate = st;\n gl_Position = vec4(position, 1.0);\n}\n",eT=function(){function n(e,t,r,i){Oc(this,n),this.data=t,this.createWindTextures(e,t),this.createParticlesTextures(e,r,i),this.createComputingPrimitives(t,r,i)}return Rc(n,[{key:"createWindTextures",value:function(e,t){var r={context:e,width:t.dimensions.lon,height:t.dimensions.lat*t.dimensions.lev,pixelFormat:Cesium.PixelFormat.LUMINANCE,pixelDatatype:Cesium.PixelDatatype.FLOAT,flipY:!1,sampler:new Cesium.Sampler({minificationFilter:Cesium.TextureMinificationFilter.NEAREST,magnificationFilter:Cesium.TextureMagnificationFilter.NEAREST})};this.windTextures={U:JE.createTexture(r,t.U.array),V:JE.createTexture(r,t.V.array)}}},{key:"randomizeParticles",value:function(e,t){for(var r=new Float32Array(4*e),i=0;i<e;i++)r[4*i]=Cesium.Math.randomBetween(t.lonRange.x,t.lonRange.y),r[4*i+1]=Cesium.Math.randomBetween(t.latRange.x,t.latRange.y),r[4*i+2]=Cesium.Math.randomBetween(this.data.lev.min,this.data.lev.max),r[4*i+3]=0;return r}},{key:"createParticlesTextures",value:function(e,t,r){var i={context:e,width:t.particlesTextureSize,height:t.particlesTextureSize,pixelFormat:Cesium.PixelFormat.RGBA,pixelDatatype:Cesium.PixelDatatype.FLOAT,flipY:!1,sampler:new Cesium.Sampler({minificationFilter:Cesium.TextureMinificationFilter.NEAREST,magnificationFilter:Cesium.TextureMagnificationFilter.NEAREST})},n=this.randomizeParticles(t.maxParticles,r);this.particlesTextures={particlesWind:JE.createTexture(i),currentParticlesPosition:JE.createTexture(i,n),nextParticlesPosition:JE.createTexture(i,n),currentParticlesSpeed:JE.createTexture(i),nextParticlesSpeed:JE.createTexture(i),postProcessingPosition:JE.createTexture(i,n),postProcessingSpeed:JE.createTexture(i)}}},{key:"destroyParticlesTextures",value:function(){var t=this;vt(this.particlesTextures).forEach(function(e){t.particlesTextures[e].destroy()})}},{key:"createComputingPrimitives",value:function(e,t,r){var i=new Cesium.Cartesian3(e.dimensions.lon,e.dimensions.lat,e.dimensions.lev),n=new Cesium.Cartesian3(e.lon.min,e.lat.min,e.lev.min),o=new Cesium.Cartesian3(e.lon.max,e.lat.max,e.lev.max),a=new Cesium.Cartesian3((o.x-n.x)/(i.x-1),(o.y-n.y)/(i.y-1),1<i.z?(o.z-n.z)/(i.z-1):1),s=new Cesium.Cartesian2(e.U.min,e.U.max),c=new Cesium.Cartesian2(e.V.min,e.V.max),l=this;this.primitives={getWind:new YE({commandType:"Compute",uniformMap:{U:function(){return l.windTextures.U},V:function(){return l.windTextures.V},currentParticlesPosition:function(){return l.particlesTextures.currentParticlesPosition},dimension:function(){return i},minimum:function(){return n},maximum:function(){return o},interval:function(){return a}},fragmentShaderSource:new Cesium.ShaderSource({sources:["\n// the size of UV textures: width = lon, height = lat*lev\nuniform sampler2D U; // eastward wind\nuniform sampler2D V; // northward wind\n\nuniform sampler2D currentParticlesPosition; // (lon, lat, lev)\n\nuniform vec3 dimension; // (lon, lat, lev)\nuniform vec3 minimum; // minimum of each dimension\nuniform vec3 maximum; // maximum of each dimension\nuniform vec3 interval; // interval of each dimension\n\nvarying vec2 v_textureCoordinates;\n\nvec2 mapPositionToNormalizedIndex2D(vec3 lonLatLev) {\n // ensure the range of longitude and latitude\n lonLatLev.x = mod(lonLatLev.x, 360.0);\n lonLatLev.y = clamp(lonLatLev.y, -90.0, 90.0);\n\n vec3 index3D = vec3(0.0);\n index3D.x = (lonLatLev.x - minimum.x) / interval.x;\n index3D.y = (lonLatLev.y - minimum.y) / interval.y;\n index3D.z = (lonLatLev.z - minimum.z) / interval.z;\n\n // the st texture coordinate corresponding to (col, row) index\n // example\n // data array is [0, 1, 2, 3, 4, 5], width = 3, height = 2\n // the content of texture will be\n // t 1.0\n // | 3 4 5\n // |\n // | 0 1 2\n // 0.0------1.0 s\n\n vec2 index2D = vec2(index3D.x, index3D.z * dimension.y + index3D.y);\n vec2 normalizedIndex2D = vec2(index2D.x / dimension.x, index2D.y / (dimension.y * dimension.z));\n return normalizedIndex2D;\n}\n\nfloat getWind(sampler2D windTexture, vec3 lonLatLev) {\n vec2 normalizedIndex2D = mapPositionToNormalizedIndex2D(lonLatLev);\n float result = texture2D(windTexture, normalizedIndex2D).r;\n return result;\n}\n\nconst mat4 kernelMatrix = mat4(\n 0.0, -1.0, 2.0, -1.0, // first column\n 2.0, 0.0, -5.0, 3.0, // second column\n 0.0, 1.0, 4.0, -3.0, // third column\n 0.0, 0.0, -1.0, 1.0 // fourth column\n);\nfloat oneDimensionInterpolation(float t, float p0, float p1, float p2, float p3) {\n vec4 tVec4 = vec4(1.0, t, t * t, t * t * t);\n tVec4 = tVec4 / 2.0;\n vec4 pVec4 = vec4(p0, p1, p2, p3);\n return dot((tVec4 * kernelMatrix), pVec4);\n}\n\nfloat calculateB(sampler2D windTexture, float t, float lon, float lat, float lev) {\n float lon0 = floor(lon) - 1.0 * interval.x;\n float lon1 = floor(lon);\n float lon2 = floor(lon) + 1.0 * interval.x;\n float lon3 = floor(lon) + 2.0 * interval.x;\n\n float p0 = getWind(windTexture, vec3(lon0, lat, lev));\n float p1 = getWind(windTexture, vec3(lon1, lat, lev));\n float p2 = getWind(windTexture, vec3(lon2, lat, lev));\n float p3 = getWind(windTexture, vec3(lon3, lat, lev));\n\n return oneDimensionInterpolation(t, p0, p1, p2, p3);\n}\n\nfloat interpolateOneTexture(sampler2D windTexture, vec3 lonLatLev) {\n float lon = lonLatLev.x;\n float lat = lonLatLev.y;\n float lev = lonLatLev.z;\n\n float lat0 = floor(lat) - 1.0 * interval.y;\n float lat1 = floor(lat);\n float lat2 = floor(lat) + 1.0 * interval.y;\n float lat3 = floor(lat) + 2.0 * interval.y;\n\n vec2 coef = lonLatLev.xy - floor(lonLatLev.xy);\n float b0 = calculateB(windTexture, coef.x, lon, lat0, lev);\n float b1 = calculateB(windTexture, coef.x, lon, lat1, lev);\n float b2 = calculateB(windTexture, coef.x, lon, lat2, lev);\n float b3 = calculateB(windTexture, coef.x, lon, lat3, lev);\n\n return oneDimensionInterpolation(coef.y, b0, b1, b2, b3);\n}\n\nvec3 bicubic(vec3 lonLatLev) {\n // https://en.wikipedia.org/wiki/Bicubic_interpolation#Bicubic_convolution_algorithm\n float u = interpolateOneTexture(U, lonLatLev);\n float v = interpolateOneTexture(V, lonLatLev);\n float w = 0.0;\n return vec3(u, v, w);\n}\n\nconst float h = 1.0;\nvec3 rungeKutta4(vec3 lonLatLev) {\n vec3 p1 = lonLatLev;\n vec3 k1 = bicubic(p1);\n\n vec3 p2 = p1;\n p2.xy = p2.xy + 0.5 * h * k1.xy;\n vec3 k2 = bicubic(p2);\n\n vec3 p3 = p1;\n p3.xy = p3.xy + 0.5 * h * k2.xy;\n vec3 k3 = bicubic(p3);\n\n vec3 p4 = p1;\n p4.xy = p4.xy + h * k3.xy;\n vec3 k4 = bicubic(p4);\n\n vec3 rk4 = (k1 + 2.0 * k2 + 2.0 * k3 + k4) / 6.0;\n return rk4;\n}\n\nvoid main() {\n // texture coordinate must be normalized\n vec3 lonLatLev = texture2D(currentParticlesPosition, v_textureCoordinates).rgb;\n vec3 windVector = rungeKutta4(lonLatLev);\n gl_FragColor = vec4(windVector, 0.0);\n}\n"]}),outputTexture:this.particlesTextures.particlesWind,preExecute:function(){l.primitives.getWind.commandToExecute.outputTexture=l.particlesTextures.particlesWind}}),updateSpeed:new YE({commandType:"Compute",uniformMap:{currentParticlesSpeed:function(){return l.particlesTextures.currentParticlesSpeed},particlesWind:function(){return l.particlesTextures.particlesWind},uSpeedRange:function(){return s},vSpeedRange:function(){return c},pixelSize:function(){return r.pixelSize},speedFactor:function(){return t.speedFactor}},fragmentShaderSource:new Cesium.ShaderSource({sources:["\nuniform sampler2D currentParticlesSpeed; // (u, v, w, normalization)\nuniform sampler2D particlesWind;\n\n// use to calculate the relative speed\nuniform vec2 uSpeedRange; // (min, max);\nuniform vec2 vSpeedRange;\nuniform float pixelSize;\nuniform float speedFactor;\n\nvarying vec2 v_textureCoordinates;\n\nvec4 calcRelativeSpeed(vec3 speed) {\n vec3 percent = vec3(0.0);\n percent.x = (speed.x - uSpeedRange.x) / (uSpeedRange.y - uSpeedRange.x);\n percent.y = (speed.y - vSpeedRange.x) / (vSpeedRange.y - vSpeedRange.x);\n float normalization = length(percent);\n\n float minRelativeSpeed = -speedFactor * pixelSize;\n float maxRelativeSpeed = speedFactor * pixelSize;\n\n vec3 relativeSpeed = vec3(0.0);\n relativeSpeed.x = mix(minRelativeSpeed, maxRelativeSpeed, percent.x);\n relativeSpeed.y = mix(minRelativeSpeed, maxRelativeSpeed, percent.y);\n\n return vec4(relativeSpeed, normalization);\n}\n\nvoid main() {\n // texture coordinate must be normalized\n vec3 currentSpeed = texture2D(currentParticlesSpeed, v_textureCoordinates).rgb;\n vec3 windVector = texture2D(particlesWind, v_textureCoordinates).rgb;\n\n vec4 nextSpeed = calcRelativeSpeed(windVector);\n gl_FragColor = nextSpeed;\n}\n"]}),outputTexture:this.particlesTextures.nextParticlesSpeed,preExecute:function(){var e=l.particlesTextures.currentParticlesSpeed;l.particlesTextures.currentParticlesSpeed=l.particlesTextures.postProcessingSpeed,l.particlesTextures.postProcessingSpeed=e,l.primitives.updateSpeed.commandToExecute.outputTexture=l.particlesTextures.nextParticlesSpeed}}),updatePosition:new YE({commandType:"Compute",uniformMap:{currentParticlesPosition:function(){return l.particlesTextures.currentParticlesPosition},currentParticlesSpeed:function(){return l.particlesTextures.currentParticlesSpeed}},fragmentShaderSource:new Cesium.ShaderSource({sources:["\nuniform sampler2D currentParticlesPosition; // (lon, lat, lev)\nuniform sampler2D currentParticlesSpeed; // (u, v, w, normalization)\n\nvarying vec2 v_textureCoordinates;\n\nvec2 lengthOfLonLat(vec3 lonLatLev) {\n // unit conversion: meters -> longitude latitude degrees\n // see https://en.wikipedia.org/wiki/Geographic_coordinate_system#Length_of_a_degree for detail\n\n // Calculate the length of a degree of latitude and longitude in meters\n float latitude = radians(lonLatLev.y);\n\n float term1 = 111132.92;\n float term2 = 559.82 * cos(2.0 * latitude);\n float term3 = 1.175 * cos(4.0 * latitude);\n float term4 = 0.0023 * cos(6.0 * latitude);\n float latLength = term1 - term2 + term3 - term4;\n\n float term5 = 111412.84 * cos(latitude);\n float term6 = 93.5 * cos(3.0 * latitude);\n float term7 = 0.118 * cos(5.0 * latitude);\n float longLength = term5 - term6 + term7;\n\n return vec2(longLength, latLength);\n}\n\nvoid updatePosition(vec3 lonLatLev, vec3 speed) {\n vec2 lonlatLengthgth = lengthOfLonLat(lonLatLev);\n float u = speed.x / lonlatLengthgth.x;\n float v = speed.y / lonlatLengthgth.y;\n float w = 0.0;\n vec3 windVectorInLonLatLev = vec3(u, v, w);\n\n vec3 nextParticle = lonLatLev + windVectorInLonLatLev;\n\n gl_FragColor = vec4(nextParticle, 0.0);\n}\n\nvoid main() {\n // texture coordinate must be normalized\n vec3 lonLatLev = texture2D(currentParticlesPosition, v_textureCoordinates).rgb;\n vec3 speed = texture2D(currentParticlesSpeed, v_textureCoordinates).rgb;\n\n updatePosition(lonLatLev, speed);\n}\n"]}),outputTexture:this.particlesTextures.nextParticlesPosition,preExecute:function(){var e=l.particlesTextures.currentParticlesPosition;l.particlesTextures.currentParticlesPosition=l.particlesTextures.postProcessingPosition,l.particlesTextures.postProcessingPosition=e,l.primitives.updatePosition.commandToExecute.outputTexture=l.particlesTextures.nextParticlesPosition}}),postProcessingPosition:new YE({commandType:"Compute",uniformMap:{nextParticlesPosition:function(){return l.particlesTextures.nextParticlesPosition},nextParticlesSpeed:function(){return l.particlesTextures.nextParticlesSpeed},lonRange:function(){return r.lonRange},latRange:function(){return r.latRange},lonDataRange:function(){return r.lonDataRange},latDataRange:function(){return r.latDataRange},randomCoef:function(){var e=Math.random();return e},dropRate:function(){return t.dropRate},dropRateBump:function(){return t.dropRateBump}},fragmentShaderSource:new Cesium.ShaderSource({sources:["\nuniform sampler2D nextParticlesPosition;\nuniform sampler2D nextParticlesSpeed; // (u, v, w, normalization)\n\n// range (min, max)\nuniform vec2 lonRange;\nuniform vec2 latRange;\nuniform vec2 lonDataRange;\nuniform vec2 latDataRange;\n\nuniform float randomCoef; // use to improve the pseudo-random generator\nuniform float dropRate; // drop rate is a chance a particle will restart at random position to avoid degeneration\nuniform float dropRateBump;\n\nvarying vec2 v_textureCoordinates;\n\n// pseudo-random generator\nconst vec3 randomConstants = vec3(12.9898, 78.233, 4375.85453);\nconst vec2 normalRange = vec2(0.0, 1.0);\nfloat rand(vec2 seed, vec2 range) {\n vec2 randomSeed = randomCoef * seed;\n float temp = dot(randomConstants.xy, randomSeed);\n temp = fract(sin(temp) * (randomConstants.z + temp));\n return temp * (range.y - range.x) + range.x;\n}\n\nvec3 generateRandomParticle(vec2 seed, float lev) {\n // ensure the longitude is in [0, 360]\n float randomLon = mod(rand(seed, lonRange), 360.0);\n float randomLat = rand(-seed, latRange);\n\n return vec3(randomLon, randomLat, lev);\n}\n\nbool particleOutbound(vec3 particle) {\n return particle.y < -90.0 || particle.y > 90.0 || particle.y < latDataRange.x || particle.y > latDataRange.y || particle.x < lonDataRange.x || particle.x > lonDataRange.y;\n}\n\nvoid main() {\n vec3 nextParticle = texture2D(nextParticlesPosition, v_textureCoordinates).rgb;\n vec4 nextSpeed = texture2D(nextParticlesSpeed, v_textureCoordinates);\n float particleDropRate = dropRate + dropRateBump * nextSpeed.a;\n\n vec2 seed1 = nextParticle.xy + v_textureCoordinates;\n vec2 seed2 = nextSpeed.xy + v_textureCoordinates;\n vec3 randomParticle = generateRandomParticle(seed1, nextParticle.z);\n float randomNumber = rand(seed2, normalRange);\n\n if (randomNumber < particleDropRate || particleOutbound(nextParticle)) {\n gl_FragColor = vec4(randomParticle, 1.0); // 1.0 means this is a random particle\n } else {\n gl_FragColor = vec4(nextParticle, 0.0);\n }\n}\n"]}),outputTexture:this.particlesTextures.postProcessingPosition,preExecute:function(){l.primitives.postProcessingPosition.commandToExecute.outputTexture=l.particlesTextures.postProcessingPosition}}),postProcessingSpeed:new YE({commandType:"Compute",uniformMap:{postProcessingPosition:function(){return l.particlesTextures.postProcessingPosition},nextParticlesSpeed:function(){return l.particlesTextures.nextParticlesSpeed}},fragmentShaderSource:new Cesium.ShaderSource({sources:["\nuniform sampler2D postProcessingPosition;\nuniform sampler2D nextParticlesSpeed;\n\nvarying vec2 v_textureCoordinates;\n\nvoid main() {\n vec4 randomParticle = texture2D(postProcessingPosition, v_textureCoordinates);\n vec4 particleSpeed = texture2D(nextParticlesSpeed, v_textureCoordinates);\n\n if (randomParticle.a > 0.0) {\n gl_FragColor = vec4(0.0);\n } else {\n gl_FragColor = particleSpeed;\n }\n}\n"]}),outputTexture:this.particlesTextures.postProcessingSpeed,preExecute:function(){l.primitives.postProcessingSpeed.commandToExecute.outputTexture=l.particlesTextures.postProcessingSpeed}})}}}]),n}(),tT=function(){function o(e,t,r,i,n){Oc(this,o),this.createRenderingTextures(e,t),this.createRenderingFramebuffers(e),this.createRenderingPrimitives(e,r,i,n)}return Rc(o,[{key:"createRenderingTextures",value:function(e,t){var r={context:e,width:e.drawingBufferWidth,height:e.drawingBufferHeight,pixelFormat:Cesium.PixelFormat.RGBA,pixelDatatype:Cesium.PixelDatatype.UNSIGNED_BYTE},i={context:e,width:e.drawingBufferWidth,height:e.drawingBufferHeight,pixelFormat:Cesium.PixelFormat.DEPTH_COMPONENT,pixelDatatype:Cesium.PixelDatatype.UNSIGNED_INT},n={context:e,width:t.colorTable.colorNum,height:1,pixelFormat:Cesium.PixelFormat.RGB,pixelDatatype:Cesium.PixelDatatype.FLOAT,sampler:new Cesium.Sampler({minificationFilter:Cesium.TextureMinificationFilter.LINEAR,magnificationFilter:Cesium.TextureMagnificationFilter.LINEAR})};this.textures={segmentsColor:JE.createTexture(r),segmentsDepth:JE.createTexture(i),currentTrailsColor:JE.createTexture(r),currentTrailsDepth:JE.createTexture(i),nextTrailsColor:JE.createTexture(r),nextTrailsDepth:JE.createTexture(i),colorTable:JE.createTexture(n,t.colorTable.array)}}},{key:"createRenderingFramebuffers",value:function(e){this.framebuffers={segments:JE.createFramebuffer(e,this.textures.segmentsColor,this.textures.segmentsDepth),currentTrails:JE.createFramebuffer(e,this.textures.currentTrailsColor,this.textures.currentTrailsDepth),nextTrails:JE.createFramebuffer(e,this.textures.nextTrailsColor,this.textures.nextTrailsDepth)}}},{key:"createSegmentsGeometry",value:function(e){for(var t=[],r=0;r<e.particlesTextureSize;r++)for(var i=0;i<e.particlesTextureSize;i++)for(var n=0;n<4;n++)t.push(r/e.particlesTextureSize),t.push(i/e.particlesTextureSize);t=new Float32Array(t);for(var o=[],a=[-1,1],s=[-1,1],c=0;c<e.maxParticles;c++)for(var l=0;l<2;l++)for(var u=0;u<2;u++)o.push(a[l]),o.push(s[u]),o.push(0);o=new Float32Array(o);for(var h=6*e.maxParticles,d=new Uint32Array(h),p=0,m=0,f=0;p<e.maxParticles;p++)d[m++]=f+0,d[m++]=f+1,d[m++]=f+2,d[m++]=f+2,d[m++]=f+1,d[m++]=f+3,f+=4;return new Cesium.Geometry({attributes:new Cesium.GeometryAttributes({st:new Cesium.GeometryAttribute({componentDatatype:Cesium.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:t}),normal:new Cesium.GeometryAttribute({componentDatatype:Cesium.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:o})}),indices:d})}},{key:"createRenderingPrimitives",value:function(e,t,r,i){var n=this;this.primitives={segments:new YE({commandType:"Draw",attributeLocations:{st:0,normal:1},geometry:this.createSegmentsGeometry(t),primitiveType:Cesium.PrimitiveType.TRIANGLES,uniformMap:{currentParticlesPosition:function(){return i.particlesTextures.currentParticlesPosition},postProcessingPosition:function(){return i.particlesTextures.postProcessingPosition},postProcessingSpeed:function(){return i.particlesTextures.postProcessingSpeed},colorTable:function(){return n.textures.colorTable},aspect:function(){return e.drawingBufferWidth/e.drawingBufferHeight},pixelSize:function(){return r.pixelSize},lineWidth:function(){return t.lineWidth},particleHeight:function(){return t.particleHeight}},vertexShaderSource:new Cesium.ShaderSource({sources:["\nattribute vec2 st;\n// it is not normal itself, but used to control normal\nattribute vec3 normal; // (point to use, offset sign, not used component)\n\nuniform sampler2D currentParticlesPosition;\nuniform sampler2D postProcessingPosition;\nuniform sampler2D postProcessingSpeed;\n\nuniform float particleHeight;\n\nuniform float aspect;\nuniform float pixelSize;\nuniform float lineWidth;\n\nvarying float speedNormalization;\n\nvec3 convertCoordinate(vec3 lonLatLev) {\n // WGS84 (lon, lat, lev) -> ECEF (x, y, z)\n // see https://en.wikipedia.org/wiki/Geographic_coordinate_conversion#From_geodetic_to_ECEF_coordinates for detail\n\n // WGS 84 geometric constants\n float a = 6378137.0; // Semi-major axis\n float b = 6356752.3142; // Semi-minor axis\n float e2 = 6.69437999014e-3; // First eccentricity squared\n\n float latitude = radians(lonLatLev.y);\n float longitude = radians(lonLatLev.x);\n\n float cosLat = cos(latitude);\n float sinLat = sin(latitude);\n float cosLon = cos(longitude);\n float sinLon = sin(longitude);\n\n float N_Phi = a / sqrt(1.0 - e2 * sinLat * sinLat);\n float h = particleHeight; // it should be high enough otherwise the particle may not pass the terrain depth test\n\n vec3 cartesian = vec3(0.0);\n cartesian.x = (N_Phi + h) * cosLat * cosLon;\n cartesian.y = (N_Phi + h) * cosLat * sinLon;\n cartesian.z = ((b * b) / (a * a) * N_Phi + h) * sinLat;\n return cartesian;\n}\n\nvec4 calcProjectedCoord(vec3 lonLatLev) {\n // the range of longitude in Cesium is [-180, 180] but the range of longitude in the NetCDF file is [0, 360]\n // [0, 180] is corresponding to [0, 180] and [180, 360] is corresponding to [-180, 0]\n lonLatLev.x = mod(lonLatLev.x + 180.0, 360.0) - 180.0;\n vec3 particlePosition = convertCoordinate(lonLatLev);\n vec4 projectedCoord = czm_modelViewProjection * vec4(particlePosition, 1.0);\n return projectedCoord;\n}\n\nvec4 calcOffset(vec4 currentProjectedCoord, vec4 nextProjectedCoord, float offsetSign) {\n vec2 aspectVec2 = vec2(aspect, 1.0);\n vec2 currentXY = (currentProjectedCoord.xy / currentProjectedCoord.w) * aspectVec2;\n vec2 nextXY = (nextProjectedCoord.xy / nextProjectedCoord.w) * aspectVec2;\n\n float offsetLength = lineWidth / 2.0;\n vec2 direction = normalize(nextXY - currentXY);\n vec2 normalVector = vec2(-direction.y, direction.x);\n normalVector.x = normalVector.x / aspect;\n normalVector = offsetLength * normalVector;\n\n vec4 offset = vec4(offsetSign * normalVector, 0.0, 0.0);\n return offset;\n}\n\nvoid main() {\n vec2 particleIndex = st;\n\n vec3 currentPosition = texture2D(currentParticlesPosition, particleIndex).rgb;\n vec4 nextPosition = texture2D(postProcessingPosition, particleIndex);\n\n vec4 currentProjectedCoord = vec4(0.0);\n vec4 nextProjectedCoord = vec4(0.0);\n if (nextPosition.w > 0.0) {\n currentProjectedCoord = calcProjectedCoord(currentPosition);\n nextProjectedCoord = calcProjectedCoord(currentPosition);\n } else {\n currentProjectedCoord = calcProjectedCoord(currentPosition);\n nextProjectedCoord = calcProjectedCoord(nextPosition.xyz);\n }\n\n float pointToUse = normal.x; // -1 is currentProjectedCoord and +1 is nextProjectedCoord\n float offsetSign = normal.y;\n\n vec4 offset = pixelSize * calcOffset(currentProjectedCoord, nextProjectedCoord, offsetSign);\n if (pointToUse < 0.0) {\n gl_Position = currentProjectedCoord + offset;\n } else {\n gl_Position = nextProjectedCoord + offset;\n }\n\n speedNormalization = texture2D(postProcessingSpeed, particleIndex).a;\n}\n"]}),fragmentShaderSource:new Cesium.ShaderSource({sources:["\nuniform sampler2D colorTable;\n\nvarying float speedNormalization;\n\nvoid main() {\n gl_FragColor = texture2D(colorTable, vec2(speedNormalization, 0.0));\n}\n"]}),rawRenderState:JE.createRawRenderState({viewport:void 0,depthTest:{enabled:!0},depthMask:!0}),framebuffer:this.framebuffers.segments,autoClear:!0}),trails:new YE({commandType:"Draw",attributeLocations:{position:0,st:1},geometry:JE.getFullscreenQuad(),primitiveType:Cesium.PrimitiveType.TRIANGLES,uniformMap:{segmentsColorTexture:function(){return n.textures.segmentsColor},segmentsDepthTexture:function(){return n.textures.segmentsDepth},currentTrailsColor:function(){return n.framebuffers.currentTrails.getColorTexture(0)},trailsDepthTexture:function(){return n.framebuffers.currentTrails.depthTexture},fadeOpacity:function(){return t.fadeOpacity}},vertexShaderSource:new Cesium.ShaderSource({defines:["DISABLE_GL_POSITION_LOG_DEPTH"],sources:[QE]}),fragmentShaderSource:new Cesium.ShaderSource({defines:["DISABLE_LOG_DEPTH_FRAGMENT_WRITE"],sources:["\nuniform sampler2D segmentsColorTexture;\nuniform sampler2D segmentsDepthTexture;\n\nuniform sampler2D currentTrailsColor;\nuniform sampler2D trailsDepthTexture;\n\nuniform float fadeOpacity;\n\nvarying vec2 textureCoordinate;\n\nvoid main() {\n vec4 pointsColor = texture2D(segmentsColorTexture, textureCoordinate);\n vec4 trailsColor = texture2D(currentTrailsColor, textureCoordinate);\n\n trailsColor = floor(fadeOpacity * 255.0 * trailsColor) / 255.0; // make sure the trailsColor will be strictly decreased\n\n float pointsDepth = texture2D(segmentsDepthTexture, textureCoordinate).r;\n float trailsDepth = texture2D(trailsDepthTexture, textureCoordinate).r;\n float globeDepth = czm_unpackDepth(texture2D(czm_globeDepthTexture, textureCoordinate));\n\n gl_FragColor = vec4(0.0);\n if (pointsDepth < globeDepth) {\n gl_FragColor = gl_FragColor + pointsColor;\n }\n if (trailsDepth < globeDepth) {\n gl_FragColor = gl_FragColor + trailsColor;\n }\n gl_FragDepthEXT = min(pointsDepth, trailsDepth);\n}\n"]}),rawRenderState:JE.createRawRenderState({viewport:void 0,depthTest:{enabled:!0,func:Cesium.DepthFunction.ALWAYS},depthMask:!0}),framebuffer:this.framebuffers.nextTrails,autoClear:!0,preExecute:function(){var e=n.framebuffers.currentTrails;n.framebuffers.currentTrails=n.framebuffers.nextTrails,n.framebuffers.nextTrails=e,n.primitives.trails.commandToExecute.framebuffer=n.framebuffers.nextTrails,n.primitives.trails.clearCommand.framebuffer=n.framebuffers.nextTrails}}),screen:new YE({commandType:"Draw",attributeLocations:{position:0,st:1},geometry:JE.getFullscreenQuad(),primitiveType:Cesium.PrimitiveType.TRIANGLES,uniformMap:{trailsColorTexture:function(){return n.framebuffers.nextTrails.getColorTexture(0)},trailsDepthTexture:function(){return n.framebuffers.nextTrails.depthTexture}},vertexShaderSource:new Cesium.ShaderSource({defines:["DISABLE_GL_POSITION_LOG_DEPTH"],sources:[QE]}),fragmentShaderSource:new Cesium.ShaderSource({defines:["DISABLE_LOG_DEPTH_FRAGMENT_WRITE"],sources:["\nuniform sampler2D trailsColorTexture;\nuniform sampler2D trailsDepthTexture;\n\nvarying vec2 textureCoordinate;\n\nvoid main() {\n vec4 trailsColor = texture2D(trailsColorTexture, textureCoordinate);\n float trailsDepth = texture2D(trailsDepthTexture, textureCoordinate).r;\n float globeDepth = czm_unpackDepth(texture2D(czm_globeDepthTexture, textureCoordinate));\n\n if (trailsDepth < globeDepth) {\n gl_FragColor = trailsColor;\n } else {\n gl_FragColor = vec4(0.0);\n }\n}\n"]}),rawRenderState:JE.createRawRenderState({viewport:void 0,depthTest:{enabled:!1},depthMask:!0,blending:{enabled:!0}}),framebuffer:void 0})}}}]),o}(),rT=function(){function n(e,t,r,i){Oc(this,n),this.context=e,this.data=t,this.particleSystemOptions=r,this.viewerParameters=i,this.particlesComputing=new eT(this.context,this.data,this.particleSystemOptions,this.viewerParameters),this.particlesRendering=new tT(this.context,this.data,this.particleSystemOptions,this.viewerParameters,this.particlesComputing)}return Rc(n,[{key:"canvasResize",value:function(e){var t=this;this.particlesComputing.destroyParticlesTextures(),vt(this.particlesComputing.windTextures).forEach(function(e){t.particlesComputing.windTextures[e].destroy()}),this.particlesRendering.textures.colorTable.destroy(),vt(this.particlesRendering.framebuffers).forEach(function(e){t.particlesRendering.framebuffers[e].destroy()}),this.context=e,this.particlesComputing=new eT(this.context,this.data,this.particleSystemOptions,this.viewerParameters),this.particlesRendering=new tT(this.context,this.data,this.particleSystemOptions,this.viewerParameters,this.particlesComputing)}},{key:"clearFramebuffers",value:function(){var t=this,r=new Cesium.ClearCommand({color:new Cesium.Color(0,0,0,0),depth:1,framebuffer:void 0,pass:Cesium.Pass.OPAQUE});vt(this.particlesRendering.framebuffers).forEach(function(e){r.framebuffer=t.particlesRendering.framebuffers[e],r.execute(t.context)})}},{key:"refreshParticles",value:function(e){var t,r;this.clearFramebuffers(),this.particlesComputing.destroyParticlesTextures(),this.particlesComputing.createParticlesTextures(this.context,this.particleSystemOptions,this.viewerParameters),e&&(t=this.particlesRendering.createSegmentsGeometry(this.particleSystemOptions),this.particlesRendering.primitives.segments.geometry=t,r=Cesium.VertexArray.fromGeometry({context:this.context,geometry:t,attributeLocations:this.particlesRendering.primitives.segments.attributeLocations,bufferUsage:Cesium.BufferUsage.STATIC_DRAW}),this.particlesRendering.primitives.segments.commandToExecute.vertexArray=r)}},{key:"applyParticleSystemOptions",value:function(t){var r=this,e=!1;this.particleSystemOptions.maxParticles!==t.maxParticles&&(e=!0),vt(t).forEach(function(e){r.particleSystemOptions[e]=t[e]}),this.refreshParticles(e)}},{key:"applyViewerParameters",value:function(t){var r=this;vt(t).forEach(function(e){r.viewerParameters[e]=t[e]}),this.refreshParticles(!1)}}]),n}(),iT=function(){function i(e,t,r){Oc(this,i),this.viewer=e,this.scene=this.viewer.scene,this.camera=this.viewer.camera,this.data=t,this.viewerParameters={lonRange:new Cesium.Cartesian2,latRange:new Cesium.Cartesian2,pixelSize:0,lonDataRange:new Cesium.Cartesian2,latDataRange:new Cesium.Cartesian2},this.globeBoundingSphere=new Cesium.BoundingSphere(Cesium.Cartesian3.ZERO,6314355.63),this.updateViewerParameters(),this.particleSystem=new rT(this.scene.context,t,r,this.viewerParameters),this.addPrimitives(),this.setupEventListeners(),this.imageryLayers=this.viewer.imageryLayers}return Rc(i,[{key:"addPrimitives",value:function(){this.scene.primitives.add(this.particleSystem.particlesComputing.primitives.getWind),this.scene.primitives.add(this.particleSystem.particlesComputing.primitives.updateSpeed),this.scene.primitives.add(this.particleSystem.particlesComputing.primitives.updatePosition),this.scene.primitives.add(this.particleSystem.particlesComputing.primitives.postProcessingPosition),this.scene.primitives.add(this.particleSystem.particlesComputing.primitives.postProcessingSpeed),this.scene.primitives.add(this.particleSystem.particlesRendering.primitives.segments),this.scene.primitives.add(this.particleSystem.particlesRendering.primitives.trails),this.scene.primitives.add(this.particleSystem.particlesRendering.primitives.screen)}},{key:"removePrimitives",value:function(){this.scene.primitives.remove(this.particleSystem.particlesRendering.primitives.screen),this.scene.primitives.remove(this.particleSystem.particlesRendering.primitives.trails),this.scene.primitives.remove(this.particleSystem.particlesRendering.primitives.segments),this.scene.primitives.remove(this.particleSystem.particlesComputing.primitives.postProcessingSpeed),this.scene.primitives.remove(this.particleSystem.particlesComputing.primitives.postProcessingPosition),this.scene.primitives.remove(this.particleSystem.particlesComputing.primitives.updatePosition),this.scene.primitives.remove(this.particleSystem.particlesComputing.primitives.updateSpeed),this.scene.primitives.remove(this.particleSystem.particlesComputing.primitives.getWind)}},{key:"updateViewerParameters",value:function(){var e=this.camera.computeViewRectangle(this.scene.globe.ellipsoid),t=JE.viewRectangleToLonLatRange(e);this.viewerParameters.lonRange.x=t.lon.min,this.viewerParameters.lonRange.y=t.lon.max,this.viewerParameters.latRange.x=t.lat.min,this.viewerParameters.latRange.y=t.lat.max,this.viewerParameters.lonDataRange.x=this.data.lon.min,this.viewerParameters.lonDataRange.y=this.data.lon.max,this.viewerParameters.latDataRange.x=this.data.lat.min,this.viewerParameters.latDataRange.y=this.data.lat.max;var r=this.camera.getPixelSize(this.globeBoundingSphere,this.scene.drawingBufferWidth,this.scene.drawingBufferHeight);0<r&&(this.viewerParameters.pixelSize=r)}},{key:"moveStartListener",value:function(){this.scene.primitives.show=!1}},{key:"moveEndListener",value:function(){this.updateViewerParameters(),this.particleSystem.applyViewerParameters(this.viewerParameters),this.scene.primitives.show=!0}},{key:"preRenderListener",value:function(){this.resized&&(this.particleSystem.canvasResize(this.scene.context),this.resized=!1,this.addPrimitives(),this.scene.primitives.show=!0)}},{key:"setupEventListeners",value:function(){var e=this;this.camera.moveStart.addEventListener(this.moveStartListener,this),this.camera.moveEnd.addEventListener(this.moveEndListener,this),this.resized=!1,window.addEventListener("resize",function(){e.resized=!0,e.scene.primitives.show=!1,e.scene.primitives.removeAll()}),this.scene.preRender.addEventListener(this.preRenderListener,this)}},{key:"destroy",value:function(){this.removePrimitives(),this.camera.moveStart.removeEventListener(this.moveStartListener,this),this.camera.moveEnd.removeEventListener(this.moveEndListener,this),this.scene.preRender.removeEventListener(this.preRenderListener,this)}}]),i}(),nT={name:"vc-windmap",mixins:[Yi],props:{data:Object,colorTable:{type:Object,default:function(){return XE}},particleSystemOptions:{type:Object,default:function(){return{particlesTextureSize:128,maxParticles:16384,particleHeight:100,fadeOpacity:.996,dropRate:.003,dropRateBump:.01,speedFactor:4,lineWidth:4}}}},watch:{data:function(){this.reload()},particleSystemOptions:{handler:function(e){this.windMap.particleSystem.applyParticleSystemOptions(e)},deep:!0}},methods:{createCesiumObject:function(){var t,r,i;return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.viewer,r=this.particleSystemOptions,this.isEmptyObj(this.data)){e.next=5;break}return this.data.colorTable=this.loadColorTable(),i=new iT(t,this.data,r),e.abrupt("return",i);case 5:return e.abrupt("return",!0);case 6:case"end":return e.stop()}},null,this)},loadColorTable:function(){for(var e=this.colorTable,t=e.ncolors,r=e.colorTable,i=new Float32Array(3*t),n=0;n<t;n++)i[3*n]=r[3*n],i[3*n+1]=r[3*n+1],i[3*n+2]=r[3*n+2];var o={};return o.colorNum=t,o.array=i,o},mount:function(){return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}})},unmount:function(){return Xt.async(function(e){for(;;)switch(e.prev=e.next){case 0:return this.isEmptyObj(this.windMap)||this.windMap.destroy(),e.abrupt("return",!0);case 2:case"end":return e.stop()}},null,this)}},stubVNode:{empty:function(){return this.$options.name}},created:function(){var e=this;te(this,{windMap:{enumerable:!0,get:function(){return e.$services&&e.cesiumObject}}})}};var oT,aT,sT,cT,lT,uT=(oT={},cT=sT=void 0,(lT=("function"==typeof(aT=nT)?aT.options:aT)||{}).__file="VcWindMap.vue",lT.render||(lT.render=oT.render,lT.staticRenderFns=oT.staticRenderFns,lT._compiled=!0,cT&&(lT.functional=!0)),lT._scopeId=sT,lT);function hT(e){hT.installed||(hT.installed=!0,e.component(uT.name,uT))}var dT=Object.freeze({__proto__:null,default:hT,CesiumWindMap:uT,install:hT}),pT={isoName:"zh-hans",nativeName:"中文(简体)",measure:{distance:"距离",area:"面积",horizontalDistance:"水平距离",spaceDistance:"空间距离",verticalHeight:"垂直高度"},navigation:{compass:{description:"拖拽罗盘外环: 旋转视图。\n拖拽罗盘陀螺仪: 翻转视图。\n双击罗盘: 重置视图。\n提示: 您也可以通过按住Ctrl键的同时拖拽地图来改变地图倾角。",title:"旋转相机"},zoomCotrol:{zoomIn:"放大",zoomReset:"重置视图",zoomOut:"缩小"},legend:{lat:"纬度",lon:"经度",zone:"带号",e:"X",n:"Y",elev:"高程",cameraHeight:"相机高度"},printView:"打印分享",centreMap:"定位您的位置"}},mT={install:function(r,e){var i=this;this.set=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:pT;e.set=i.set,e.getLocale=i.getLocale,e.rtl=!0===e.rtl||!1;var t=document.documentElement;t.setAttribute("dir",e.rtl?"rtl":"ltr"),t.setAttribute("lang",e.isoName),void 0!==r.lang?r.lang=e:a.util.defineReactive(r,"lang",e),i.isoName=e.isoName,i.nativeName=e.nativeName,i.props=e},this.set(e)},getLocale:function(){var e=navigator.language||navigator.languages[0]||navigator.browserLanguage||navigator.userLanguage||navigator.systemLanguage;if(e)return e.toLowerCase()}},fT={VERSION:"2.1.4"};function vT(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};vT.installed||(vT.installed=!0,e.use(Fi,t),e.use(cn,t),e.use(Ea,t),e.use(Aa,t),e.use(Ua,t),e.use(es,t),e.use(ls,t),e.use(ys,t),e.use(Es,t),e.use(js,t),e.use(Ws,t),e.use(Qs,t),e.use(cc,t),e.use(gc,t),e.use(Sc,t),e.use(Kc,t),e.use(Fl,t),e.use(Bl,t),e.use(Jl,t),e.use(au,t),e.use(gu,t),e.use(Su,t),e.use(ju,t),e.use(Wu,t),e.use(Qu,t),e.use(uh,t),e.use(yh,t),e.use(Eh,t),e.use(Ah,t),e.use(Uh,t),e.use(ed,t),e.use(ld,t),e.use(bd,t),e.use(Td,t),e.use(Dd,t),e.use(Hd,t),e.use(tp,t),e.use(hp,t),e.use(_p,t),e.use(kp,t),e.use(zp,t),e.use(Kp,t),e.use(am,t),e.use(fm,t),e.use(xm,t),e.use(Lm,t),e.use(Vm,t),e.use(Qm,t),e.use(cf,t),e.use(xf,t),e.use(vf,t),e.use(Lf,t),e.use(Vf,t),e.use(Xf,t),e.use(nv,t),e.use(pv,t),e.use(Cv,t),e.use(Rv,t),e.use(zv,t),e.use(Kv,t),e.use(ig,t),e.use(hg,t),e.use(bg,t),e.use(Eg,t),e.use(jg,t),e.use(qg,t),e.use(Jg,t),e.use(oy,t),e.use(py,t),e.use(_y,t),e.use(Oy,t),e.use(Dy,t),e.use(Hy,t),e.use(eb,t),e.use(cb,t),e.use(vb,t),e.use(xb,t),e.use(Fb,t),e.use(Bb,t),e.use(Kb,t),e.use(nw,t),e.use(pw,t),e.use(Cw,t),e.use(kw,t),e.use(Nw,t),e.use($w,t),e.use(t_,t),e.use(l_,t),e.use(g_,t),e.use(P_,t),e.use(I_,t),e.use(q_,t),e.use(oC,t),e.use(mC,t),e.use(CC,t),e.use(FC,t),e.use(BC,t),e.use(XC,t),e.use(ZP,t),e.use(aS,t),e.use(dT,t),e.use(KE,t),e.use(dP,t),e.use(GP,t),mT.install(fT,t.lang),e.prototype.$vc=fT)}function gT(t,e){var r,i=vt(t);return ft&&(r=ft(t),e&&(r=r.filter(function(e){return xe(t,e).enumerable})),i.push.apply(i,r)),i}return function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?gT(r,!0).forEach(function(e){gt(t,e,r[e])}):he?te(t,he(r)):gT(r).forEach(function(e){D(t,e,xe(r,e))})}return t}({},Object.freeze({__proto__:null,default:vT,VERSION:"2.1.4",lang:mT,install:vT,Viewer:Fi,ImageryLayer:cn,ArcGisMapServerImageryProvider:Ea,BingMapsImageryProvider:Aa,GoogleEarthEnterpriseImageryProvider:Ua,GridImageryProvider:es,IonImageryProvider:ls,MapboxImageryProvider:ys,OpenStreetMapImageryProvider:Es,SingleTileImageryProvider:js,TileCoordinatesImageryProvider:Ws,TileMapServiceImageryProvider:Qs,UrlTemplateImageryProvider:cc,WebMapServiceImageryProvider:gc,WebMapTileServiceImageryProvider:Sc,TiandituImageryProvider:Kc,SuperMapImageryProvider:Fl,TiledCacheImageryProvider:Bl,ArcGISTiledElevationTerrainProvider:Jl,CesiumTerrainProvider:au,CustomDataSource:gu,CzmlDataSource:Su,GeoJsonDataSource:ju,KmlDataSource:Wu,Entity:Qu,BillboardGraphics:uh,BoxGraphics:yh,CorridorGraphics:Eh,CylinderGraphics:Ah,EllipseGraphics:Uh,EllipsoidGraphics:ed,LabelGraphics:ld,ModelGraphics:bd,Cesium3DTilesetGraphics:Td,PathGraphics:Dd,PlaneGraphics:Hd,PointGraphics:tp,PolygonGraphics:hp,PolylineGraphics:_p,PolylineVolumeGraphics:kp,RectangleGraphics:zp,WallGraphics:Kp,PrimitiveCollection:am,BillboardCollection:fm,LabelCollection:xm,PointPrimitiveCollection:Lm,PolylineCollection:Vm,Primitive:Qm,ClassificationPrimitive:cf,GroundPolylinePrimitive:xf,GroundPrimitive:vf,Billboard:Lf,Label:Vf,PointPrimitive:Xf,Polyline:nv,Model:pv,Cesium3DTileset:Cv,ParticleSystem:Rv,GeometryInstance:zv,BoxGeometry:Kv,BoxOutlineGeometry:ig,CircleGeometry:hg,CircleOutlineGeometry:bg,CoplanarPolygonGeometry:Eg,CoplanarPolygonOutlineGeometry:jg,CorridorGeometry:qg,CorridorOutlineGeometry:Jg,CylinderGeometry:oy,CylinderOutlineGeometry:py,EllipseGeometry:_y,EllipseOutlineGeometry:Oy,EllipsoidGeometry:Dy,EllipsoidOutlineGeometry:Hy,FrustumGeometry:eb,FrustumOutlineGeometry:cb,GroundPolylineGeometry:vb,PlaneGeometry:xb,PlaneOutlineGeometry:Fb,PolygonGeometry:Bb,PolygonOutlineGeometry:Kb,PolylineGeometry:nw,PolylineVolumeGeometry:pw,PolylineVolumeOutlineGeometry:Cw,RectangleGeometry:kw,RectangleOutlineGeometry:Nw,SimplePolylineGeometry:$w,SphereGeometry:t_,SphereOutlineGeometry:l_,WallGeometry:g_,WallOutlineGeometry:P_,PostProcessStageCollection:I_,PostProcessStage:q_,VcMeasureArea:oC,VcMeasureDistance:mC,VcMeasureHeight:CC,VcDrawHandlerPoint:FC,VcDrawHandlerPolyline:BC,VcDrawHandlerPolygon:XC,VcFlood:ZP,VcHeatMap:aS,VcWindMap:dT,VcKrigingMap:KE,VcNavigation:dP,VcNavigationSM:GP}))});