UNPKG

ol-cesium

Version:

OpenLayers Cesium integration library

1 lines 520 kB
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],[function(t,e,i){"use strict";i.d(e,"a",function(){return r}),i.d(e,"c",function(){return o}),i.d(e,"d",function(){return s}),i.d(e,"e",function(){return a}),i.d(e,"f",function(){return h}),i.d(e,"p",function(){return c}),i.d(e,"g",function(){return l}),i.d(e,"h",function(){return u}),i.d(e,"l",function(){return p}),i.d(e,"k",function(){return d}),i.d(e,"j",function(){return f}),i.d(e,"i",function(){return g}),i.d(e,"n",function(){return _}),i.d(e,"b",function(){return v}),i.d(e,"m",function(){return y}),i.d(e,"o",function(){return m}),i.d(e,"q",function(){return b}),i.d(e,"r",function(){return O}),i.d(e,"s",function(){return E});var n=i(10),r=document.implementation.createDocument("","",null),o="http://www.w3.org/2001/XMLSchema-instance";function s(t,e){return r.createElementNS(t,e)}function a(t,e){return function t(e,i,n){if(e.nodeType==Node.CDATA_SECTION_NODE||e.nodeType==Node.TEXT_NODE)i?n.push(String(e.nodeValue).replace(/(\r\n|\r|\n)/g,"")):n.push(e.nodeValue);else{var r;for(r=e.firstChild;r;r=r.nextSibling)t(r,i,n)}return n}(t,e,[]).join("")}function h(t){return"documentElement"in t}function c(t){return(new DOMParser).parseFromString(t,"application/xml")}function l(t,e){return function(i,r){var o=t.call(void 0!==e?e:this,i,r);if(void 0!==o){var s=r[r.length-1];Object(n.c)(s,o)}}}function u(t,e){return function(i,n){var r=t.call(void 0!==e?e:this,i,n);void 0!==r&&n[n.length-1].push(r)}}function p(t,e){return function(i,n){var r=t.call(void 0!==e?e:this,i,n);void 0!==r&&(n[n.length-1]=r)}}function d(t,e,i){return function(n,r){var o=t.call(void 0!==i?i:this,n,r);void 0!==o&&(r[r.length-1][void 0!==e?e:n.localName]=o)}}function f(t,e){return function(i,n,r){t.call(void 0!==e?e:this,i,n,r),r[r.length-1].node.appendChild(i)}}function g(t,e){var i,n;return function(e,r,o){if(void 0===i){i={};var s={};s[e.localName]=t,i[e.namespaceURI]=s,n=_(e.localName)}C(i,n,r,o)}}function _(t,e){var i=t;return function(t,n,r){var o=n[n.length-1].node,a=i;return void 0===a&&(a=r),s(void 0!==e?e:o.namespaceURI,a)}}var v=_();function y(t,e){for(var i=e.length,n=new Array(i),r=0;r<i;++r)n[r]=t[e[r]];return n}function m(t,e,i){var n,r,o=void 0!==i?i:{};for(n=0,r=t.length;n<r;++n)o[t[n]]=e;return o}function b(t,e,i,n){var r;for(r=e.firstElementChild;r;r=r.nextElementSibling){var o=t[r.namespaceURI];if(void 0!==o){var s=o[r.localName];void 0!==s&&s.call(n,r,i)}}}function O(t,e,i,n,r){return n.push(t),b(e,i,n,r),n.pop()}function C(t,e,i,n,r,o){for(var s,a,h=(void 0!==r?r:i).length,c=0;c<h;++c)void 0!==(s=i[c])&&void 0!==(a=e.call(void 0!==o?o:this,s,n,void 0!==r?r[c]:void 0))&&t[a.namespaceURI][a.localName].call(o,a,s,n)}function E(t,e,i,n,r,o,s){return r.push(t),C(e,i,n,r,o,s),r.pop()}},function(t,e,i){"use strict";i.d(e,"b",function(){return s}),i.d(e,"c",function(){return a}),i.d(e,"d",function(){return h}),i.d(e,"e",function(){return c}),i.d(e,"f",function(){return l}),i.d(e,"g",function(){return u}),i.d(e,"h",function(){return p}),i.d(e,"i",function(){return d}),i.d(e,"j",function(){return f}),i.d(e,"k",function(){return g}),i.d(e,"l",function(){return _}),i.d(e,"m",function(){return v}),i.d(e,"n",function(){return y}),i.d(e,"o",function(){return m}),i.d(e,"p",function(){return b}),i.d(e,"q",function(){return O}),i.d(e,"r",function(){return C}),i.d(e,"s",function(){return j}),i.d(e,"t",function(){return M}),i.d(e,"u",function(){return T}),i.d(e,"v",function(){return S}),i.d(e,"w",function(){return R}),i.d(e,"x",function(){return w}),i.d(e,"y",function(){return I}),i.d(e,"z",function(){return P}),i.d(e,"A",function(){return L}),i.d(e,"B",function(){return A}),i.d(e,"C",function(){return F}),i.d(e,"D",function(){return k}),i.d(e,"E",function(){return N}),i.d(e,"F",function(){return G}),i.d(e,"H",function(){return D}),i.d(e,"I",function(){return z}),i.d(e,"J",function(){return U}),i.d(e,"G",function(){return X}),i.d(e,"a",function(){return Y});var n=i(12),r=i(103),o=i(48);function s(t){for(var e=f(),i=0,n=t.length;i<n;++i)C(e,t[i]);return e}function a(t,e,i){return i?(i[0]=t[0]-e,i[1]=t[1]-e,i[2]=t[2]+e,i[3]=t[3]+e,i):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function h(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function c(t,e,i){var n,r;return(n=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0)*n+(r=i<t[1]?t[1]-i:t[3]<i?i-t[3]:0)*r}function l(t,e){return p(t,e[0],e[1])}function u(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function p(t,e,i){return t[0]<=e&&e<=t[2]&&t[1]<=i&&i<=t[3]}function d(t,e){var i=t[0],n=t[1],r=t[2],s=t[3],a=e[0],h=e[1],c=o.a.UNKNOWN;return a<i?c|=o.a.LEFT:a>r&&(c|=o.a.RIGHT),h<n?c|=o.a.BELOW:h>s&&(c|=o.a.ABOVE),c===o.a.UNKNOWN&&(c=o.a.INTERSECTING),c}function f(){return[1/0,1/0,-1/0,-1/0]}function g(t,e,i,n,r){return r?(r[0]=t,r[1]=e,r[2]=i,r[3]=n,r):[t,e,i,n]}function _(t){return g(1/0,1/0,-1/0,-1/0,t)}function v(t,e){var i=t[0],n=t[1];return g(i,n,i,n,e)}function y(t,e){return E(_(e),t)}function m(t,e,i,n,r){return j(_(r),t,e,i,n)}function b(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function O(t,e){return e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t}function C(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function E(t,e){for(var i=0,n=e.length;i<n;++i)C(t,e[i]);return t}function j(t,e,i,n,r){for(;i<n;i+=r)x(t,e[i],e[i+1]);return t}function x(t,e,i){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],i),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],i)}function M(t,e,i){var n;return(n=e.call(i,S(t)))?n:(n=e.call(i,R(t)))?n:(n=e.call(i,k(t)))?n:(n=e.call(i,F(t)))||!1}function T(t){var e=0;return D(t)||(e=N(t)*L(t)),e}function S(t){return[t[0],t[1]]}function R(t){return[t[2],t[1]]}function w(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function I(t,e){var i;return e===r.a.BOTTOM_LEFT?i=S(t):e===r.a.BOTTOM_RIGHT?i=R(t):e===r.a.TOP_LEFT?i=F(t):e===r.a.TOP_RIGHT?i=k(t):Object(n.a)(!1,13),i}function P(t,e,i,n,r){var o=e*n[0]/2,s=e*n[1]/2,a=Math.cos(i),h=Math.sin(i),c=o*a,l=o*h,u=s*a,p=s*h,d=t[0],f=t[1],_=d-c+p,v=d-c-p,y=d+c-p,m=d+c+p,b=f-l-u,O=f-l+u,C=f+l+u,E=f+l-u;return g(Math.min(_,v,y,m),Math.min(b,O,C,E),Math.max(_,v,y,m),Math.max(b,O,C,E),r)}function L(t){return t[3]-t[1]}function A(t,e,i){var n=i||[1/0,1/0,-1/0,-1/0];return G(t,e)?(t[0]>e[0]?n[0]=t[0]:n[0]=e[0],t[1]>e[1]?n[1]=t[1]:n[1]=e[1],t[2]<e[2]?n[2]=t[2]:n[2]=e[2],t[3]<e[3]?n[3]=t[3]:n[3]=e[3]):_(n),n}function F(t){return[t[0],t[3]]}function k(t){return[t[2],t[3]]}function N(t){return t[2]-t[0]}function G(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function D(t){return t[2]<t[0]||t[3]<t[1]}function z(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t}function U(t,e){var i=(t[2]-t[0])/2*(e-1),n=(t[3]-t[1])/2*(e-1);t[0]-=i,t[2]+=i,t[1]-=n,t[3]+=n}function X(t,e,i){var n=!1,r=d(t,e),s=d(t,i);if(r===o.a.INTERSECTING||s===o.a.INTERSECTING)n=!0;else{var a,h,c=t[0],l=t[1],u=t[2],p=t[3],f=e[0],g=e[1],_=i[0],v=i[1],y=(v-g)/(_-f);s&o.a.ABOVE&&!(r&o.a.ABOVE)&&(n=(a=_-(v-p)/y)>=c&&a<=u),n||!(s&o.a.RIGHT)||r&o.a.RIGHT||(n=(h=v-(_-u)*y)>=l&&h<=p),n||!(s&o.a.BELOW)||r&o.a.BELOW||(n=(a=_-(v-l)/y)>=c&&a<=u),n||!(s&o.a.LEFT)||r&o.a.LEFT||(n=(h=v-(_-c)*y)>=l&&h<=p)}return n}function Y(t,e,i){var n=[t[0],t[1],t[0],t[3],t[2],t[1],t[2],t[3]];return e(n,n,2),function(t,e,i){return g(Math.min.apply(null,t),Math.min.apply(null,e),Math.max.apply(null,t),Math.max.apply(null,e),i)}([n[0],n[2],n[4],n[6]],[n[1],n[3],n[5],n[7]],i)}},function(t,e,i){"use strict";i.d(e,"a",function(){return h}),i.d(e,"b",function(){return c}),i.d(e,"c",function(){return l}),i.d(e,"e",function(){return u}),i.d(e,"d",function(){return p});var n=i(13);function r(t,e,i,n){for(var r,o=0,s=t.length;o<s;++o)if((r=t[o]).listener===e&&r.bindTo===i)return n&&(r.deleteIndex=o),r}function o(t,e){var i=s(t);return i?i[e]:void 0}function s(t,e){var i=t.ol_lm;return!i&&e&&(i=t.ol_lm={}),i}function a(t,e){var i=o(t,e);if(i){for(var r=0,a=i.length;r<a;++r)t.removeEventListener(e,i[r].boundListener),Object(n.b)(i[r]);i.length=0;var h=s(t);h&&(delete h[e],0===Object.keys(h).length&&function(t){delete t.ol_lm}(t))}}function h(t,e,i,n,o){var a=s(t,!0),h=a[e];h||(h=a[e]=[]);var c=r(h,i,n,!1);return c?o||(c.callOnce=!1):(c={bindTo:n,callOnce:!!o,listener:i,target:t,type:e},t.addEventListener(e,function(t){var e=function(e){var i=t.listener,n=t.bindTo||t.target;return t.callOnce&&u(t),i.call(n,e)};return t.boundListener=e,e}(c)),h.push(c)),c}function c(t,e,i,n){return h(t,e,i,n,!0)}function l(t,e,i,n){var s=o(t,e);if(s){var a=r(s,i,n,!0);a&&u(a)}}function u(t){if(t&&t.target){t.target.removeEventListener(t.type,t.boundListener);var e=o(t.target,t.type);if(e){var i="deleteIndex"in t?t.deleteIndex:e.indexOf(t);-1!==i&&e.splice(i,1),0===e.length&&a(t.target,t.type)}Object(n.b)(t)}}function p(t){var e=s(t);if(e)for(var i in e)a(t,i)}},function(t,e,i){"use strict";function n(){return function(){throw new Error("Unimplemented abstract method.")}()}i.d(e,"b",function(){return n}),i.d(e,"c",function(){return o}),i.d(e,"a",function(){return s});var r=0;function o(t){return t.ol_uid||(t.ol_uid=String(++r))}var s="5.3.1"},function(t,e,i){"use strict";i.d(e,"a",function(){return o}),i.d(e,"b",function(){return s}),i.d(e,"c",function(){return a}),i.d(e,"d",function(){return h}),i.d(e,"e",function(){return c}),i.d(e,"f",function(){return l}),i.d(e,"g",function(){return u}),i.d(e,"h",function(){return p}),i.d(e,"i",function(){return d}),i.d(e,"j",function(){return f}),i.d(e,"k",function(){return g});var n=i(0),r=i(71);function o(t){var e,i=Object(n.e)(t,!1);return(e=/^\s*(true|1)|(false|0)\s*$/.exec(i))?void 0!==e[1]||!1:void 0}function s(t){var e=Object(n.e)(t,!1),i=Date.parse(e);return isNaN(i)?void 0:i/1e3}function a(t){var e,i=Object(n.e)(t,!1);return(e=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(i))?parseFloat(e[1]):void 0}function h(t){var e,i=Object(n.e)(t,!1);return(e=/^\s*(\d+)\s*$/.exec(i))?parseInt(e[1],10):void 0}function c(t){return Object(n.e)(t,!1).trim()}function l(t,e){g(t,e?"1":"0")}function u(t,e){t.appendChild(n.a.createCDATASection(e))}function p(t,e){var i=new Date(1e3*e),o=i.getUTCFullYear()+"-"+Object(r.b)(i.getUTCMonth()+1,2)+"-"+Object(r.b)(i.getUTCDate(),2)+"T"+Object(r.b)(i.getUTCHours(),2)+":"+Object(r.b)(i.getUTCMinutes(),2)+":"+Object(r.b)(i.getUTCSeconds(),2)+"Z";t.appendChild(n.a.createTextNode(o))}function d(t,e){var i=e.toPrecision();t.appendChild(n.a.createTextNode(i))}function f(t,e){var i=e.toString();t.appendChild(n.a.createTextNode(i))}function g(t,e){t.appendChild(n.a.createTextNode(e))}},function(t,e,i){"use strict";var n=i(115),r=i(1),o=i(9),s=i(90),a=i(49),h=6378137,c=Math.PI*h,l=[-c,-c,c,c],u=[-180,-85,180,85],p=function(t){function e(e){t.call(this,{code:e,units:a.b.METERS,extent:l,global:!0,worldExtent:u,getPointResolution:function(t,e){return t/Object(o.b)(e[1]/h)}})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(s.a),d=[new p("EPSG:3857"),new p("EPSG:102100"),new p("EPSG:102113"),new p("EPSG:900913"),new p("urn:ogc:def:crs:EPSG:6.18:3:3857"),new p("urn:ogc:def:crs:EPSG::3857"),new p("http://www.opengis.net/gml/srs/epsg.xml#3857")];function f(t,e,i){var n=t.length,r=i>1?i:2,o=e;void 0===o&&(o=r>2?t.slice():new Array(n));for(var s=c,a=0;a<n;a+=r){o[a]=s*t[a]/180;var l=h*Math.log(Math.tan(Math.PI*(t[a+1]+90)/360));l>s?l=s:l<-s&&(l=-s),o[a+1]=l}return o}function g(t,e,i){var n=t.length,r=i>1?i:2,o=e;void 0===o&&(o=r>2?t.slice():new Array(n));for(var s=0;s<n;s+=r)o[s]=180*t[s]/c,o[s+1]=360*Math.atan(Math.exp(t[s+1]/h))/Math.PI-90;return o}var _=[-180,-90,180,90],v=6378137*Math.PI/180,y=function(t){function e(e,i){t.call(this,{code:e,units:a.b.DEGREES,extent:_,axisOrientation:i,global:!0,metersPerUnit:v,worldExtent:_})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(s.a),m=[new y("CRS:84"),new y("EPSG:4326","neu"),new y("urn:ogc:def:crs:EPSG::4326","neu"),new y("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new y("urn:ogc:def:crs:OGC:1.3:CRS84"),new y("urn:ogc:def:crs:OGC:2:84"),new y("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new y("urn:x-ogc:def:crs:EPSG:4326","neu")],b={};var O,C,E,j=i(80);function x(t,e,i){var n;if(void 0!==e){for(var r=0,o=t.length;r<o;++r)e[r]=t[r];n=e}else n=t.slice();return n}function M(t,e,i){if(void 0!==e&&t!==e){for(var n=0,r=t.length;n<r;++n)e[n]=t[n];t=e}return t}function T(t){!function(t,e){b[t]=e}(t.getCode(),t),Object(j.a)(t,t,x)}function S(t){return"string"==typeof t?b[t]||null:t||null}function R(t,e,i,r){var o,s=(t=S(t)).getPointResolutionFunc();if(s)o=s(e,i);else if(t.getUnits()==a.b.DEGREES&&!r||r==a.b.DEGREES)o=e;else{var h=k(t,S("EPSG:4326")),c=[i[0]-e/2,i[1],i[0]+e/2,i[1],i[0],i[1]-e/2,i[0],i[1]+e/2];c=h(c,c,2),o=(Object(n.a)(c.slice(0,2),c.slice(2,4))+Object(n.a)(c.slice(4,6),c.slice(6,8)))/2;var l=r?a.a[r]:t.getMetersPerUnit();void 0!==l&&(o/=l)}return o}function w(t){!function(t){t.forEach(T)}(t),t.forEach(function(e){t.forEach(function(t){e!==t&&Object(j.a)(e,t,x)})})}function I(t,e){return t?"string"==typeof t?S(t):t:S(e)}function P(t){return function(e,i,n){for(var r=e.length,o=void 0!==n?n:2,s=void 0!==i?i:new Array(r),a=0;a<r;a+=o){var h=t([e[a],e[a+1]]);s[a]=h[0],s[a+1]=h[1];for(var c=o-1;c>=2;--c)s[a+c]=e[a+c]}return s}}function L(t,e,i,n){var r=S(t),o=S(e);Object(j.a)(r,o,P(i)),Object(j.a)(o,r,P(n))}function A(t,e){return G(t,"EPSG:4326",void 0!==e?e:"EPSG:3857")}function F(t,e){if(t===e)return!0;var i=t.getUnits()===e.getUnits();return t.getCode()===e.getCode()?i:k(t,e)===x&&i}function k(t,e){var i=t.getCode(),n=e.getCode(),r=Object(j.c)(i,n);return r||(r=M),r}function N(t,e){return k(S(t),S(e))}function G(t,e,i){return N(e,i)(t,void 0,t.length)}function D(t,e,i){var n=N(e,i);return Object(r.a)(t,n)}i.d(e,"d",function(){return T}),i.d(e,"h",function(){return S}),i.d(e,"i",function(){return R}),i.d(e,"c",function(){return w}),i.d(e,"e",function(){return I}),i.d(e,"b",function(){return L}),i.d(e,"g",function(){return A}),i.d(e,"f",function(){return F}),i.d(e,"k",function(){return k}),i.d(e,"j",function(){return N}),i.d(e,"l",function(){return G}),i.d(e,"m",function(){return D}),i.d(e,"a",function(){return a.a}),w(d),w(m),O=d,C=f,E=g,m.forEach(function(t){O.forEach(function(e){Object(j.a)(t,e,C),Object(j.a)(e,t,E)})})},function(t,e,i){"use strict";e.a={POINT:"Point",LINE_STRING:"LineString",LINEAR_RING:"LinearRing",POLYGON:"Polygon",MULTI_POINT:"MultiPoint",MULTI_LINE_STRING:"MultiLineString",MULTI_POLYGON:"MultiPolygon",GEOMETRY_COLLECTION:"GeometryCollection",CIRCLE:"Circle"}},function(t,e,i){"use strict";e.a={CHANGE:"change",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",ERROR:"error",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",MOUSEDOWN:"mousedown",MOUSEMOVE:"mousemove",MOUSEOUT:"mouseout",MOUSEUP:"mouseup",MOUSEWHEEL:"mousewheel",MSPOINTERDOWN:"MSPointerDown",RESIZE:"resize",TOUCHSTART:"touchstart",TOUCHMOVE:"touchmove",TOUCHEND:"touchend",WHEEL:"wheel"}},function(t,e,i){"use strict";i.d(e,"c",function(){return h}),i.d(e,"b",function(){return c}),i.d(e,"d",function(){return l}),i.d(e,"e",function(){return u}),i.d(e,"f",function(){return p}),i.d(e,"g",function(){return d}),i.d(e,"i",function(){return f}),i.d(e,"k",function(){return g}),i.d(e,"l",function(){return _}),i.d(e,"m",function(){return v}),i.d(e,"j",function(){return y}),i.d(e,"h",function(){return m}),i.d(e,"o",function(){return b}),i.d(e,"a",function(){return j}),i.d(e,"p",function(){return S}),i.d(e,"q",function(){return R}),i.d(e,"s",function(){return w}),i.d(e,"r",function(){return I}),i.d(e,"n",function(){return P});var n=i(44),r=i(19),o=i(13),s=i(125),a=i(14),h="10px sans-serif",c=[0,0,0,1],l="round",u=[],p=0,d="round",f=10,g=[0,0,0,1],_="center",v="middle",y=[0,0,0,0],m=1,b=new s.a,O={},C=null,E={},j=function(){var t,e,i=60,r=O,s="32px ",a=["monospace","serif"],h=a.length,c="wmytzilWMYTZIL@#/&?$%10";function l(t){for(var i=x(),n=100;n<=700;n+=300){for(var r=n+" ",o=!0,l=0;l<h;++l){var u=a[l];if(i.font=r+s+u,e=i.measureText(c).width,t!=u){i.font=r+s+t+","+u;var p=i.measureText(c).width;o=o&&p!=e}}if(o)return!0}return!1}function u(){var e=!0;for(var n in r)r[n]<i&&(l(n)?(r[n]=i,Object(o.b)(E),C=null,b.clear()):(++r[n],e=!1));e&&(clearInterval(t),t=void 0)}return function(e){var o=Object(n.f)(e);if(o)for(var s=0,a=o.length;s<a;++s){var h=o[s];h in r||(r[h]=i,l(h)||(r[h]=0,void 0===t&&(t=setInterval(u,32))))}}}();function x(){return C||(C=Object(r.a)(1,1)),C}var M,T,S=(T=E,function(t){var e=T[t];return null==e&&(M||((M=document.createElement("span")).textContent="M",M.style.margin=M.style.padding="0 !important",M.style.position="absolute !important",M.style.left="-99999px !important"),M.style.font=t,document.body.appendChild(M),e=T[t]=M.offsetHeight,document.body.removeChild(M)),e});function R(t,e){var i=x();return t!=i.font&&(i.font=t),i.measureText(e).width}function w(t,e,i,n){0!==e&&(t.translate(i,n),t.rotate(e),t.translate(-i,-n))}var I=Object(a.c)();function P(t,e,i,n,r,o,s,a,h,c,l){var u;1!=i&&(u=t.globalAlpha,t.globalAlpha=u*i),e&&t.setTransform.apply(t,e),t.drawImage(n,r,o,s,a,h,c,s*l,a*l),u&&(t.globalAlpha=u),e&&t.setTransform.apply(t,I)}},function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r}),i.d(e,"g",function(){return o}),i.d(e,"f",function(){return s}),i.d(e,"e",function(){return a}),i.d(e,"h",function(){return h}),i.d(e,"i",function(){return c}),i.d(e,"d",function(){return l}),i.d(e,"c",function(){return u});i(12);function n(t,e,i){return Math.min(Math.max(t,e),i)}var r="cosh"in Math?Math.cosh:function(t){var e=Math.exp(t);return(e+1/e)/2};function o(t,e,i,n,r,o){var a=r-i,h=o-n;if(0!==a||0!==h){var c=((t-i)*a+(e-n)*h)/(a*a+h*h);c>1?(i=r,n=o):c>0&&(i+=a*c,n+=h*c)}return s(t,e,i,n)}function s(t,e,i,n){var r=i-t,o=n-e;return r*r+o*o}function a(t){for(var e=t.length,i=0;i<e;i++){for(var n=i,r=Math.abs(t[i][i]),o=i+1;o<e;o++){var s=Math.abs(t[o][i]);s>r&&(r=s,n=o)}if(0===r)return null;var a=t[n];t[n]=t[i],t[i]=a;for(var h=i+1;h<e;h++)for(var c=-t[h][i]/t[i][i],l=i;l<e+1;l++)i==l?t[h][l]=0:t[h][l]+=c*t[i][l]}for(var u=new Array(e),p=e-1;p>=0;p--){u[p]=t[p][e]/t[p][p];for(var d=p-1;d>=0;d--)t[d][e]-=t[d][p]*u[p]}return u}function h(t){return 180*t/Math.PI}function c(t){return t*Math.PI/180}function l(t,e){var i=t%e;return i*e<0?i+e:i}function u(t,e,i){return t+i*(e-t)}},function(t,e,i){"use strict";function n(t,e,i){for(var n,o,s=i||r,a=0,h=t.length,c=!1;a<h;)(o=+s(t[n=a+(h-a>>1)],e))<0?a=n+1:(h=n,c=!o);return c?a:~a}function r(t,e){return t>e?1:t<e?-1:0}function o(t,e){return t.indexOf(e)>=0}function s(t,e,i){var n,r=t.length;if(t[0]<=e)return 0;if(e<=t[r-1])return r-1;if(i>0){for(n=1;n<r;++n)if(t[n]<e)return n-1}else if(i<0){for(n=1;n<r;++n)if(t[n]<=e)return n}else for(n=1;n<r;++n){if(t[n]==e)return n;if(t[n]<e)return t[n-1]-e<e-t[n]?n-1:n}return r-1}function a(t,e,i){for(;e<i;){var n=t[e];t[e]=t[i],t[i]=n,++e,--i}}function h(t,e){for(var i=Array.isArray(e)?e:[e],n=i.length,r=0;r<n;r++)t[t.length]=i[r]}function c(t,e){var i=t.indexOf(e),n=i>-1;return n&&t.splice(i,1),n}function l(t,e){var i=t.length;if(i!==e.length)return!1;for(var n=0;n<i;n++)if(t[n]!==e[n])return!1;return!0}function u(t,e){var i,n=t.length,r=Array(t.length);for(i=0;i<n;i++)r[i]={index:i,value:t[i]};for(r.sort(function(t,i){return e(t.value,i.value)||t.index-i.index}),i=0;i<t.length;i++)t[i]=r[i].value}function p(t,e,i){var n=e||r;return t.every(function(e,r){if(0===r)return!0;var o=n(t[r-1],e);return!(o>0||i&&0===o)})}i.d(e,"a",function(){return n}),i.d(e,"g",function(){return r}),i.d(e,"d",function(){return o}),i.d(e,"f",function(){return s}),i.d(e,"i",function(){return a}),i.d(e,"c",function(){return h}),i.d(e,"h",function(){return c}),i.d(e,"b",function(){return l}),i.d(e,"j",function(){return u}),i.d(e,"e",function(){return p})},function(t,e,i){"use strict";e.a={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4,ABORT:5}},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i(119);function r(t,e){if(!t)throw new n.a(e)}},function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r}),i.d(e,"c",function(){return o}),i.d(e,"d",function(){return s});var n="function"==typeof Object.assign?Object.assign:function(t,e){var i=arguments;if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),r=1,o=arguments.length;r<o;++r){var s=i[r];if(null!=s)for(var a in s)s.hasOwnProperty(a)&&(n[a]=s[a])}return n};function r(t){for(var e in t)delete t[e]}function o(t){var e=[];for(var i in t)e.push(t[i]);return e}function s(t){var e;for(e in t)return!1;return!e}},function(t,e,i){"use strict";i.d(e,"c",function(){return o}),i.d(e,"e",function(){return s}),i.d(e,"g",function(){return c}),i.d(e,"a",function(){return l}),i.d(e,"f",function(){return u}),i.d(e,"h",function(){return p}),i.d(e,"b",function(){return d}),i.d(e,"d",function(){return f});var n=i(12),r=new Array(6);function o(){return[1,0,0,1,0,0]}function s(t){return h(t,1,0,0,1,0,0)}function a(t,e){var i=t[0],n=t[1],r=t[2],o=t[3],s=t[4],a=t[5],h=e[0],c=e[1],l=e[2],u=e[3],p=e[4],d=e[5];return t[0]=i*h+r*c,t[1]=n*h+o*c,t[2]=i*l+r*u,t[3]=n*l+o*u,t[4]=i*p+r*d+s,t[5]=n*p+o*d+a,t}function h(t,e,i,n,r,o,s){return t[0]=e,t[1]=i,t[2]=n,t[3]=r,t[4]=o,t[5]=s,t}function c(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function l(t,e){var i=e[0],n=e[1];return e[0]=t[0]*i+t[2]*n+t[4],e[1]=t[1]*i+t[3]*n+t[5],e}function u(t,e,i){return a(t,h(r,e,0,0,i,0,0))}function p(t,e,i){return a(t,h(r,1,0,0,1,e,i))}function d(t,e,i,n,r,o,s,a){var h=Math.sin(o),c=Math.cos(o);return t[0]=n*c,t[1]=r*h,t[2]=-n*h,t[3]=r*c,t[4]=s*n*c-a*n*h+e,t[5]=s*r*h+a*r*c+i,t}function f(t){var e,i=(e=t)[0]*e[3]-e[1]*e[2];Object(n.a)(0!==i,32);var r=t[0],o=t[1],s=t[2],a=t[3],h=t[4],c=t[5];return t[0]=a/i,t[1]=-o/i,t[2]=-s/i,t[3]=r/i,t[4]=(s*c-a*h)/i,t[5]=-(r*c-o*h)/i,t}},function(t,e,i){"use strict";e.a={IDLE:0,LOADING:1,LOADED:2,ERROR:3}},function(t,e,i){"use strict";i.d(e,"d",function(){return r}),i.d(e,"b",function(){return s}),i.d(e,"g",function(){return a}),i.d(e,"f",function(){return h}),i.d(e,"e",function(){return c}),i.d(e,"c",function(){return l});var n={};function r(t,e,i){return t.on(e,i)}n.obj=function(t){return t},n.supportsImageRenderingPixelatedResult_=void 0,n.imageRenderingValueResult_=void 0,n.supportsImageRenderingPixelated=function(){if(void 0===n.supportsImageRenderingPixelatedResult_){var t=document.createElement("canvas");t.setAttribute("style","image-rendering: -moz-crisp-edges; image-rendering: pixelated;");var e=t.style.imageRendering;n.supportsImageRenderingPixelatedResult_=!!e,n.supportsImageRenderingPixelatedResult_&&(n.imageRenderingValueResult_=e)}return n.supportsImageRenderingPixelatedResult_},n.imageRenderingValue=function(){return n.supportsImageRenderingPixelated(),n.imageRenderingValueResult_||""},n.getSourceProjection=function(t){return t.get("olcs.projection")||t.getProjection()};var o=0;function s(t){return t.olcs_uid||(t.olcs_uid=++o)}function a(t,e){for(var i=t.length,n=Array(t.length),r=0;r<i;r++)n[r]={index:r,value:t[r]};n.sort(function(t,i){return e(t.value,i.value)||t.index-i.index});for(var o=0;o<t.length;o++)t[o]=n[o].value}function h(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function c(t){for(;t.lastChild;)t.removeChild(t.lastChild)}function l(t){var e=Cesium.GroundPolylinePrimitive;return e&&e.isSupported(t)}e.a=n},function(t,e,i){"use strict";var n=i(51),r=i(61),o=i(86),s=i(13),a=function(t){function e(e){var i=e||{},r=Object(s.a)({},i);delete r.preload,delete r.useInterimTilesOnError,t.call(this,r),this.setPreload(void 0!==i.preload?i.preload:0),this.setUseInterimTilesOnError(void 0===i.useInterimTilesOnError||i.useInterimTilesOnError),this.type=n.a.TILE}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getPreload=function(){return this.get(o.a.PRELOAD)},e.prototype.setPreload=function(t){this.set(o.a.PRELOAD,t)},e.prototype.getUseInterimTilesOnError=function(){return this.get(o.a.USE_INTERIM_TILES_ON_ERROR)},e.prototype.setUseInterimTilesOnError=function(t){this.set(o.a.USE_INTERIM_TILES_ON_ERROR,t)},e}(r.a);a.prototype.getSource,e.a=a},function(t,e,i){"use strict";e.a={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"}},function(t,e,i){"use strict";function n(t,e){var i=document.createElement("canvas");return t&&(i.width=t),e&&(i.height=e),i.getContext("2d")}function r(t){var e=t.offsetWidth,i=getComputedStyle(t);return e+=parseInt(i.marginLeft,10)+parseInt(i.marginRight,10)}function o(t){var e=t.offsetHeight,i=getComputedStyle(t);return e+=parseInt(i.marginTop,10)+parseInt(i.marginBottom,10)}function s(t,e){var i=e.parentNode;i&&i.replaceChild(t,e)}function a(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function h(t){for(;t.lastChild;)t.removeChild(t.lastChild)}i.d(e,"a",function(){return n}),i.d(e,"c",function(){return r}),i.d(e,"b",function(){return o}),i.d(e,"f",function(){return s}),i.d(e,"e",function(){return a}),i.d(e,"d",function(){return h})},function(t,e,i){"use strict";var n=i(39),r=i(17),o=i(88),s=i(5),a=i(126),h=i(106),c=i(82),l=i(124),u=i(97),p=i(16),d=function(){function t(t,e,i){var n=this;this.source_=e,this.projection_=null,this.fallbackProj_=i||null,this.ready_=!1,this.tilingScheme_=null,this.rectangle_=null,this.map_=t;var r=this.source_.get("olcs.proxy");r&&("function"==typeof r?this.proxy_={getURL:r}:"string"==typeof r&&(this.proxy_=new Cesium.DefaultProxy(r))),this.errorEvent_=new Cesium.Event,this.emptyCanvas_=document.createElement("canvas"),this.emptyCanvas_.width=1,this.emptyCanvas_.height=1,this.source_.on("change",function(t){n.handleSourceChanged_()}),this.handleSourceChanged_()}var e=t.prototype;return e.handleSourceChanged_=function(t){if(!this.ready_&&"ready"==this.source_.getState()){if(this.projection_=p.a.getSourceProjection(this.source_)||this.fallbackProj_,this.projection_==Object(s.h)("EPSG:4326"))this.tilingScheme_=new Cesium.GeographicTilingScheme;else{if(this.projection_!=Object(s.h)("EPSG:3857"))return;this.tilingScheme_=new Cesium.WebMercatorTilingScheme}this.rectangle_=this.tilingScheme_.rectangle,this.ready_=!0}},e.getTileCredits=function(t,e,i){var n=this.map_.getView().calculateExtent(this.map_.getSize()),r=this.map_.getView().getCenter(),o={viewState:{zoom:this.tilingScheme_ instanceof Cesium.GeographicTilingScheme?i+1:i,center:r},extent:n},s=this.source_.getAttributions();if(!s)return[];var a=s(o);return Array.isArray(a)||(a=[a]),a.map(function(t){return new Cesium.Credit(t,!0)})},e.requestImage=function(t,e,i){var n=this.source_.getTileUrlFunction();if(n&&this.projection_){var r=this.tilingScheme_ instanceof Cesium.GeographicTilingScheme?i+1:i,o=-e-1,s=n.call(this.source_,[r,t,o],1,this.projection_);return this.proxy_&&(s=this.proxy_.getURL(s)),s?Cesium.ImageryProvider.loadImage(this,s):this.emptyCanvas_}return this.emptyCanvas_},t}();Object.defineProperties(d.prototype,{ready:{get:function(){return this.ready_}},rectangle:{get:function(){return this.rectangle_}},tileWidth:{get:function(){var t=this.source_.getTileGrid();return t?Array.isArray(t.getTileSize(0))?t.getTileSize(0)[0]:t.getTileSize(0):256}},tileHeight:{get:function(){var t=this.source_.getTileGrid();return t?Array.isArray(t.getTileSize(0))?t.getTileSize(0)[1]:t.getTileSize(0):256}},maximumLevel:{get:function(){var t=this.source_.getTileGrid();return t?t.getMaxZoom():18}},minimumLevel:{get:function(){return 0}},tilingScheme:{get:function(){return this.tilingScheme_}},tileDiscardPolicy:{get:function(){}},errorEvent:{get:function(){return this.errorEvent_}},proxy:{get:function(){return this.proxy_}},hasAlphaChannel:{get:function(){return!0}},pickFeatures:{get:function(){}}});var f=d,g={computePixelSizeAtCoordinate:function(t,e){var i=t.camera,n=t.canvas,r=i.frustum,o=Cesium.Cartesian3.magnitude(Cesium.Cartesian3.subtract(i.position,e,new Cesium.Cartesian3)),s=new Cesium.Cartesian2;return r.getPixelDimensions(n.clientWidth,n.clientHeight,o,s)},computeBoundingBoxAtTarget:function(t,e,i){var n=g.computePixelSizeAtCoordinate(t,e),r=Cesium.Transforms.eastNorthUpToFixedFrame(e),o=Cesium.Matrix4.multiplyByPoint(r,new Cesium.Cartesian3(-n.x*i,-n.y*i,0),new Cesium.Cartesian3),s=Cesium.Matrix4.multiplyByPoint(r,new Cesium.Cartesian3(n.x*i,n.y*i,0),new Cesium.Cartesian3);return Cesium.Ellipsoid.WGS84.cartesianArrayToCartographicArray([o,s])},applyHeightOffsetToGeometry:function(t,e){t.applyTransform(function(t,i,n){if(void 0!==n&&n>=3)for(var r=0;r<i.length;r+=n)i[r+2]=i[r+2]+e;return i})},createMatrixAtCoordinates:function(t,e,i,n){void 0===e&&(e=0),void 0===i&&(i=Cesium.Cartesian3.ZERO),void 0===n&&(n=new Cesium.Cartesian3(1,1,1));var r=g.ol4326CoordinateToCesiumCartesian(t),o=Cesium.Transforms.eastNorthUpToFixedFrame(r),s=Cesium.Quaternion.fromAxisAngle(Cesium.Cartesian3.UNIT_Z,-e),a=Cesium.Matrix4.fromTranslationQuaternionRotationScale(i,s,n);return Cesium.Matrix4.multiply(o,a,new Cesium.Matrix4)},rotateAroundAxis:function(t,e,i,r,o){var s=Cesium.Math.clamp,a=Cesium.defaultValue,h=o||{},c=a(h.duration,500),l=a(h.easing,n.d),u=h.callback,p=0,d=new Cesium.Matrix4,f=Date.now();window.requestAnimationFrame(function n(){var o=Date.now(),a=l(s((o-f)/c,0,1));t.transform.clone(d);var h=(a-p)*e;p=a,t.lookAtTransform(r),t.rotate(i,h),t.lookAtTransform(d),a<1?window.requestAnimationFrame(n):u&&u()})},setHeadingUsingBottomCenter:function(t,e,i,n){var r=t.camera,o=g.computeAngleToZenith(t,i),s=r.right,a=Cesium.Quaternion.fromAxisAngle(s,o),h=Cesium.Matrix3.fromQuaternion(a),c=new Cesium.Cartesian3;Cesium.Cartesian3.subtract(r.position,i,c);var l=new Cesium.Cartesian3;Cesium.Matrix3.multiplyByVector(h,c,l),Cesium.Cartesian3.add(l,i,l);var u=Cesium.Matrix4.fromTranslation(l);(0,g.rotateAroundAxis)(r,e,l,u,n)},pickOnTerrainOrEllipsoid:function(t,e){var i=t.camera.getPickRay(e);return t.globe.pick(i,t)||t.camera.pickEllipsoid(e)},pickBottomPoint:function(t){var e=t.canvas,i=new Cesium.Cartesian2(e.clientWidth/2,e.clientHeight);return g.pickOnTerrainOrEllipsoid(t,i)},pickCenterPoint:function(t){var e=t.canvas,i=new Cesium.Cartesian2(e.clientWidth/2,e.clientHeight/2);return g.pickOnTerrainOrEllipsoid(t,i)},computeSignedTiltAngleOnGlobe:function(t){var e=t.camera,i=new Cesium.Ray(e.position,e.direction),n=t.globe.pick(i,t);if(!n){var r=Cesium.Ellipsoid.WGS84,o=Cesium.IntersectionTests.rayEllipsoid(i,r);o&&(n=Cesium.Ray.getPoint(i,o.start))}if(n){var s=new Cesium.Cartesian3;Cesium.Ellipsoid.WGS84.geocentricSurfaceNormal(n,s);var a=(0,g.signedAngleBetween)(e.direction,s,e.right)-Math.PI;return Cesium.Math.convertLongitudeRange(a)}},bottomFovRay:function(t){var e=t.camera,i=e.frustum.fovy/2,n=e.direction,r=Cesium.Quaternion.fromAxisAngle(e.right,i),o=Cesium.Matrix3.fromQuaternion(r),s=new Cesium.Cartesian3;return Cesium.Matrix3.multiplyByVector(o,n,s),new Cesium.Ray(e.position,s)},signedAngleBetween:function(t,e,i){var n=new Cesium.Cartesian3,r=new Cesium.Cartesian3,o=new Cesium.Cartesian3;Cesium.Cartesian3.normalize(t,n),Cesium.Cartesian3.normalize(e,r),Cesium.Cartesian3.cross(n,r,o);var s=Cesium.Cartesian3.dot(n,r),a=Cesium.Cartesian3.magnitude(o),h=Cesium.Cartesian3.dot(i,o),c=Math.atan2(a,s);return h>=0?c:-c},computeAngleToZenith:function(t,e){var i=t.camera,n=i.frustum.fovy/2,r=g.bottomFovRay(t),o=Cesium.Cartesian3.clone(r.direction);Cesium.Cartesian3.negate(o,o);var s=new Cesium.Cartesian3;Cesium.Ellipsoid.WGS84.geocentricSurfaceNormal(e,s);var a=new Cesium.Cartesian3;return Cesium.Cartesian3.negate(i.right,a),g.signedAngleBetween(s,o,a)+n},extentToRectangle:function(t,e){if(t&&e){var i=Object(s.m)(t,e,"EPSG:4326");return Cesium.Rectangle.fromDegrees(i[0],i[1],i[2],i[3])}return null},tileLayerToImageryLayer:function(t,e,i){if(!(e instanceof r.a||e instanceof o.a))return null;var n=null,s=e.getSource();if(s instanceof h.a&&s.getUrl()&&s.getImageLoadFunction()===u.b){var d={"olcs.proxy":s.get("olcs.proxy"),"olcs.extent":s.get("olcs.extent"),"olcs.projection":s.get("olcs.projection"),"olcs.imagesource":s};(s=new l.a({url:s.getUrl(),attributions:s.getAttributions(),projection:s.getProjection(),params:s.getParams()})).setProperties(d)}if(s instanceof c.a){var _=p.a.getSourceProjection(s);if(_||(_=i),!g.isCesiumProjection(_))return null;n=new f(t,s,i)}else{if(!(s instanceof a.a))return null;var v=p.a.getSourceProjection(s);if(v||(v=i),!g.isCesiumProjection(v))return null;n=new Cesium.SingleTileImageryProvider({url:s.getUrl(),rectangle:new Cesium.Rectangle.fromDegrees(s.getImageExtent()[0],s.getImageExtent()[1],s.getImageExtent()[2],s.getImageExtent()[3])})}var y={},m=e.get("olcs.extent")||e.getExtent();return m&&(y.rectangle=g.extentToRectangle(m,i)),new Cesium.ImageryLayer(n,y)},updateCesiumLayerProperties:function(t,e){var i=1,n=!0;[t.layer].concat(t.parents).forEach(function(t){var e=t.getOpacity();void 0!==e&&(i*=e);var r=t.getVisible();void 0!==r&&(n&=r)}),e.alpha=i,e.show=n},ol4326CoordinateToCesiumCartesian:function(t){var e=t;return e.length>2?Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]):Cesium.Cartesian3.fromDegrees(e[0],e[1])},ol4326CoordinateArrayToCsCartesians:function(t){for(var e=g.ol4326CoordinateToCesiumCartesian,i=[],n=0;n<t.length;++n)i.push(e(t[n]));return i},olGeometryCloneTo4326:function(t,e){var i=Object(s.h)("EPSG:4326"),n=Object(s.h)(e);if(n!==i){var r=t.getProperties();(t=t.clone()).transform(n,i),t.setProperties(r)}return t},convertColorToCesium:function(t){if(t=t||"black",Array.isArray(t))return new Cesium.Color(Cesium.Color.byteToFloat(t[0]),Cesium.Color.byteToFloat(t[1]),Cesium.Color.byteToFloat(t[2]),t[3]);if("string"==typeof t)return Cesium.Color.fromCssColorString(t);if(t instanceof CanvasPattern||t instanceof CanvasGradient){var e=document.createElement("canvas"),i=e.getContext("2d");return e.width=e.height=256,i.fillStyle=t,i.fillRect(0,0,e.width,e.height),new Cesium.ImageMaterialProperty({image:e})}},convertUrlToCesium:function(t){var e="",i=/\{(\d|[a-z])-(\d|[a-z])\}/,n=i.exec(t);if(n){t=t.replace(i,"{s}");var r,o=n[1].charCodeAt(0),s=n[2].charCodeAt(0);for(r=o;r<=s;++r)e+=String.fromCharCode(r)}return{url:t,subdomains:e}},resetToNorthZenith:function(t,e){return new Promise(function(i,n){var r=e.camera,o=g.pickBottomPoint(e);if(o){var s=t.getView().getRotation();if(void 0!==s){var a=g.computeAngleToZenith(e,o);g.setHeadingUsingBottomCenter(e,s,o);var h=Cesium.Matrix4.fromTranslation(o),c=r.right,l={callback:function(){var e=t.getView();g.normalizeView(e),i()}};g.rotateAroundAxis(r,-a,c,h,l)}else n("The view is not initialized")}else n("Could not get bottom pivot")})},rotateAroundBottomCenter:function(t,e){return new Promise(function(i,n){var r=t.camera,o=g.pickBottomPoint(t);if(o){var s={callback:i},a=Cesium.Matrix4.fromTranslation(o),h=r.right;(0,g.rotateAroundAxis)(r,-e,h,a,s)}else n("could not get bottom pivot")})},normalizeView:function(t,e){void 0===e&&(e=0);var i=t.getResolution();t.setRotation(e),t.setResolution(t.constrainResolution(i))},isCesiumProjection:function(t){var e=t===Object(s.h)("EPSG:3857"),i=t===Object(s.h)("EPSG:4326");return e||i}};e.a=g},function(t,e,i){"use strict";var n=i(100),r=i(3),o=i(28),s=i(9);function a(t){return t}var h=i(29),c=i(10);var l=i(85),u=i(23),p="center",d="resolution",f="rotation",g=i(12),_=i(53),v=i(39),y=i(1),m=i(6),b=i(42),O=i(13),C=i(5),E=i(49),j=0,x=function(t){function e(e){t.call(this);var i=Object(O.a)({},e);this.hints_=[0,0],this.animations_=[],this.updateAnimationKey_,this.updateAnimations_=this.updateAnimations_.bind(this),this.projection_=Object(C.e)(i.projection,"EPSG:3857"),this.applyOptions_(i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.applyOptions_=function(t){var e={};e[p]=void 0!==t.center?t.center:null;var i=function(t){var e,i,r,o=void 0!==t.minZoom?t.minZoom:j,a=void 0!==t.maxZoom?t.maxZoom:28,h=void 0!==t.zoomFactor?t.zoomFactor:2;if(void 0!==t.resolutions){var l=t.resolutions;i=l[o],r=void 0!==l[a]?l[a]:l[l.length-1],e=function(t){return function(e,i,n){if(void 0!==e){var r=Object(c.f)(t,e,n);r=Object(s.a)(r+i,0,t.length-1);var o=Math.floor(r);if(r!=o&&o<t.length-1){var a=t[o]/t[o+1];return t[o]/Math.pow(a,r-o)}return t[o]}}}(l)}else{var u=Object(C.e)(t.projection,"EPSG:3857"),p=u.getExtent(),d=p?Math.max(Object(y.E)(p),Object(y.A)(p)):360*C.a[E.b.DEGREES]/u.getMetersPerUnit(),f=d/n.b/Math.pow(2,j),g=f/Math.pow(2,28-j);void 0!==(i=t.maxResolution)?o=0:i=f/Math.pow(h,o),void 0===(r=t.minResolution)&&(r=void 0!==t.maxZoom?void 0!==t.maxResolution?i/Math.pow(h,a):f/Math.pow(h,a):g),a=o+Math.floor(Math.log(i/r)/Math.log(h)),r=i/Math.pow(h,a-o),e=function(t,e,i){return function(n,r,o){if(void 0!==n){var s=-o/2+.5,a=Math.floor(Math.log(e/n)/Math.log(t)+s),h=Math.max(a+r,0);return void 0!==i&&(h=Math.min(h,i)),e/Math.pow(t,h)}}}(h,i,a-o)}return{constraint:e,maxResolution:i,minResolution:r,minZoom:o,zoomFactor:h}}(t);this.maxResolution_=i.maxResolution,this.minResolution_=i.minResolution,this.zoomFactor_=i.zoomFactor,this.resolutions_=t.resolutions,this.minZoom_=i.minZoom;var r=function(t){return void 0!==t.extent?(e=t.extent,function(t){return t?[Object(s.a)(t[0],e[0],e[2]),Object(s.a)(t[1],e[1],e[3])]:void 0}):a;var e}(t),o=i.constraint,h=function(t){if(void 0===t.enableRotation||t.enableRotation){var e=t.constrainRotation;return void 0===e||!0===e?Object(l.b)():!1===e?l.d:"number"==typeof e?Object(l.a)(e):l.d}return l.c}(t);this.constraints_={center:r,resolution:o,rotation:h},void 0!==t.resolution?e[d]=t.resolution:void 0!==t.zoom&&(e[d]=this.constrainResolution(this.maxResolution_,t.zoom-this.minZoom_),this.resolutions_&&(e[d]=Object(s.a)(Number(this.getResolution()||e[d]),this.minResolution_,this.maxResolution_))),e[f]=void 0!==t.rotation?t.rotation:0,this.setProperties(e),this.options_=t},e.prototype.getUpdatedOptions_=function(t){var e=Object(O.a)({},this.options_);return void 0!==e.resolution?e.resolution=this.getResolution():e.zoom=this.getZoom(),e.center=this.getCenter(),e.rotation=this.getRotation(),Object(O.a)({},e,t)},e.prototype.animate=function(t){var e,i=arguments,n=arguments.length;if(n>1&&"function"==typeof arguments[n-1]&&(e=arguments[n-1],--n),!this.isDef()){var r=arguments[n-1];return r.center&&this.setCenter(r.center),void 0!==r.zoom&&this.setZoom(r.zoom),void 0!==r.rotation&&this.setRotation(r.rotation),void(e&&M(e,!0))}for(var o=Date.now(),a=this.getCenter().slice(),h=this.getResolution(),c=this.getRotation(),l=[],p=0;p<n;++p){var d=i[p],f={start:o,complete:!1,anchor:d.anchor,duration:void 0!==d.duration?d.duration:1e3,easing:d.easing||v.c};if(d.center&&(f.sourceCenter=a,f.targetCenter=d.center,a=f.targetCenter),void 0!==d.zoom?(f.sourceResolution=h,f.targetResolution=this.constrainResolution(this.maxResolution_,d.zoom-this.minZoom_,0),h=f.targetResolution):d.resolution&&(f.sourceResolution=h,f.targetResolution=d.resolution,h=f.targetResolution),void 0!==d.rotation){f.sourceRotation=c;var g=Object(s.d)(d.rotation-c+Math.PI,2*Math.PI)-Math.PI;f.targetRotation=c+g,c=f.targetRotation}f.callback=e,T(f)?f.complete=!0:o+=f.duration,l.push(f)}this.animations_.push(l),this.setHint(u.a.ANIMATING,1),this.updateAnimations_()},e.prototype.getAnimating=function(){return this.hints_[u.a.ANIMATING]>0},e.prototype.getInteracting=function(){return this.hints_[u.a.INTERACTING]>0},e.prototype.cancelAnimations=function(){this.setHint(u.a.ANIMATING,-this.hints_[u.a.ANIMATING]);for(var t=0,e=this.animations_.length;t<e;++t){var i=this.animations_[t];i[0].callback&&M(i[0].callback,!1)}this.animations_.length=0},e.prototype.updateAnimations_=function(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),this.getAnimating()){for(var t=Date.now(),e=!1,i=this.animations_.length-1;i>=0;--i){for(var n=this.animations_[i],r=!0,o=0,a=n.length;o<a;++o){var h=n[o];if(!h.complete){var c=t-h.start,l=h.duration>0?c/h.duration:1;l>=1?(h.complete=!0,l=1):r=!1;var g=h.easing(l);if(h.sourceCenter){var _=h.sourceCenter[0],v=h.sourceCenter[1],y=_+g*(h.targetCenter[0]-_),m=v+g*(h.targetCenter[1]-v);this.set(p,[y,m])}if(h.sourceResolution&&h.targetResolution){var b=1===g?h.targetResolution:h.sourceResolution+g*(h.targetResolution-h.sourceResolution);h.anchor&&this.set(p,this.calculateCenterZoom(b,h.anchor)),this.set(d,b)}if(void 0!==h.sourceRotation&&void 0!==h.targetRotation){var O=1===g?Object(s.d)(h.targetRotation+Math.PI,2*Math.PI)-Math.PI:h.sourceRotation+g*(h.targetRotation-h.sourceRotation);h.anchor&&this.set(p,this.calculateCenterRotate(O,h.anchor)),this.set(f,O)}if(e=!0,!h.complete)break}}if(r){this.animations_[i]=null,this.setHint(u.a.ANIMATING,-1);var C=n[0].callback;C&&M(C,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_))}},e.prototype.calculateCenterRotate=function(t,e){var i,n=this.getCenter();return void 0!==n&&(i=[n[0]-e[0],n[1]-e[1]],Object(_.c)(i,t-this.getRotation()),Object(_.a)(i,e)),i},e.prototype.calculateCenterZoom=function(t,e){var i,n=this.getCenter(),r=this.getResolution();void 0!==n&&void 0!==r&&(i=[e[0]-t*(e[0]-n[0])/r,e[1]-t*(e[1]-n[1])/r]);return i},e.prototype.getSizeFromViewport_=function(){var t=[100,100],e='.ol-viewport[data-view="'+Object(r.c)(this)+'"]',i=document.querySelector(e);if(i){var n=getComputedStyle(i);t[0]=parseInt(n.width,10),t[1]=parseInt(n.height,10)}return t},e.prototype.constrainCenter=function(t){return this.constraints_.center(t)},e.prototype.constrainResolution=function(t,e,i){var n=e||0,r=i||0;return this.constraints_.resolution(t,n,r)},e.prototype.constrainRotation=function(t,e){var i=e||0;return this.constraints_.rotation(t,i)},e.prototype.getCenter=function(){return this.get(p)},e.prototype.getConstraints=function(){return this.constraints_},e.prototype.getHints=function(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()},e.prototype.calculateExtent=function(t){var e=t||this.getSizeFromViewport_(),i=this.getCenter();Object(g.a)(i,1);var n=this.getResolution();Object(g.a)(void 0!==n,2);var r=this.getRotation();return Object(g.a)(void 0!==r,3),Object(y.z)(i,n,r,e)},e.prototype.getMaxResolution=function(){return this.maxResolution_},e.prototype.getMinResolution=function(){return this.minResolution_},e.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},e.prototype.setMaxZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))},e.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},e.prototype.setMinZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolution=function(){return this.get(d)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,e){var i=e||this.getSizeFromViewport_(),n=Object(y.E)(t)/i[0],r=Object(y.A)(t)/i[1];return Math.max(n,r)},e.prototype.getResolutionForValueFunction=function(t){var e=t||2,i=this.maxResolution_,n=this.minResolution_,r=Math.log(i/n)/Math.log(e);return function(t){return i/Math.pow(e,t*r)}},e.prototype.getRotation=function(){return this.get(f)},e.prototype.getValueForResolutionFunction=function(t){var e=t||2,i=this.maxResolution_,n=this.minResolution_,r=Math.log(i/n)/Math.log(e);return function(t){return Math.log(i/t)/Math.log(e)/r}},e.prototype.getState=function(t){var e=this.getCenter(),i=this.getProjection(),n=this.getResolution(),r=n/t,o=this.getRotation();return{center:[Math.round(e[0]/r)*r,Math.round(e[1]/r)*r],projection:void 0!==i?i:null,resolution:n,rotation:o,zoom:this.getZoom()}},e.prototype.getZoom=function(){var t,e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t},e.prototype.getZoomForResolution=function(t){var e,i,n=this.minZoom_||0;if(this.resolutions_){var r=Object(c.f)(this.resolutions_,t,1);n=r,e=this.resolutions_[r],i=r==this.resolutions_.length-1?2:e/this.resolutions_[r+1]}else e=this.maxResolution_,i=this.zoomFactor_;return n+Math.log(e/t)/Math.log(i)},e.prototype.getResolutionForZoom=function(t){return this.constrainResolution(this.maxResolution_,t-this.minZoom_,0)},e.prototype.fit=function(t,e){var i,n=e||{},r=n.size;r||(r=this.getSizeFromViewport_()),Object(g.a)(Array.isArray(t)||"function"==typeof t.getSimplifiedGeometry,24),Array.isArray(t)?(Object(g.a)(!Object(y.H)(t),25),i=Object(b.c)(t)):t.getType()===m.a.CIRCLE?(t=t.getExtent(),(i=Object(b.c)(t)).rotate(this.getRotation(),Object(y.x)(t))):i=t;var s,a=void 0!==n.padding?n.padding:[0,0,0,0],h=void 0===n.constrainResolution||n.constrainResolution,c=void 0!==n.nearest&&n.nearest;s=void 0!==n.minResolution?n.minResolution:void 0!==n.maxZoom?this.constrainResolution(this.maxResolution_,n.maxZoom-this.minZoom_,0):0;for(var l=i.getFlatCoordinates(),u=this.getRotation(),p=Math.cos(-u),d=Math.sin(-u),f=1/0,_=1/0,v=-1/0,O=-1/0,C=i.getStride(),E=0,j=l.length;E<j;E+=C){var x=l[E]*p-l[E+1]*d,T=l[E]*d+l[E+1]*p;f=Math.min(f,x),_=Math.min(_,T),v=Math.max(v,x),O=Math.max(O,T)}var S=this.getResolutionForExtent([f,_,v,O],[r[0]-a[1]-a[3],r[1]-a[0]-a[2]]);if(S=isNaN(S)?s:Math.max(S,s),h){var R=this.constrainResolution(S,0,0);!c&&R<S&&(R=this.constrainResolution(R,-1,0)),S=R}d=-d;var w=(f+v)/2,I=(_+O)/2,P=[(w+=(a[1]-a[3])/2*S)*p-(I+=(a[0]-a[2])/2*S)*d,I*p+w*d],L=n.callback?n.callback:o.c;void 0!==n.duration?this.animate({resolution:S,center:P,duration:n.duration,easing:n.easing},L):(this.setResolution(S),this.setCenter(P),M(L,!0))},e.prototype.centerOn=function(t,e,i){var n=this.getRotation(),r=Math.cos(-n),o=Math.sin(-n),s=t[0]*r-t[1]*o,a=t[1]*r+t[0]*o,h=this.getResolution(),c=(s+=(e[0]/2-i[0])*h)*r-(a+=(i[1]-e[1]/2)*h)*(o=-o),l=a*r+s*o;this.setCenter([c,l])},e.prototype.isDef=function(){return!!this.getCenter()&&void 0!==this.getResolution()},e.prototype.rotate=function(t,e){if(void 0!==e){var i=this.calculateCenterRotate(t,e);this.setCenter(i)}this.setRotation(t)},e.prototype.setCenter=function(t){this.set(p,t),this.getAnimating()&&this.cancelAnimations()},e.prototype.setHint=function(t,e){return this.hints_[t]+=e,this.changed(),this.hints_[t]},e.prototype.setResolution=function(t){this.set(d,t),this.getAnimating()&&this.cancelAnimations()},e.prototype.setRotation=function(t){this.set(f,t),this.getAnimating()&&this.cancelAnimations()},e.prototype.setZoom=function(t){this.setResolution(this.getResolutionForZoom(t))},e}(h.a);function M(t,e){setTimeout(function(){t(e)},0)}function T(t){return!(t.sourceCenter&&t.targetCenter&&!Object(_.b)(t.sourceCenter,t.targetCenter))&&(t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation)}e.a=x},function(t,e,i){"use strict";i.d(e,"c",function(){return h}),i.d(e,"a",function(){return l});var n=i(12),r=(i(6),i(79)),o=i(30),s=i(24),a=function(t){var e=t||{};this.geometry_=null,this.geometryFunction_=u,void 0!==e.geometry&&this.setGeometry(e.geometry),this.fill_=void 0!==e.fill?e.fill:null,this.image_=void 0!==e.image?e.image:null,this.renderer_=void 0!==e.renderer?e.renderer:null,this.stroke_=void 0!==e.stroke?e.stroke:null,this.text_=void 0!==e.text?e.text:null,this.zIndex_=e.zIndex};function h(t){var e;if("function"==typeof t)e=t;else{var i;if(Array.isArray(t))i=t;else Object(n.a)("function"==typeof t.getZIndex,41),i=[t];e=function(){return i}}return e}a.prototype.clone=function(){var t=this.getGeometry();return t&&"object"==typeof t&&(t=t.clone()),new a({geometry:t,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})},a.prototype.getRenderer=function(){return this.renderer_},a.prototype.setRenderer=function(t){this.renderer_=t},a.prototype.getGeometry=function(){return this.geometry_},a.prototype.getGeometryFunction=function(){return this.geometryFunction_},a.prototype.getFill=function(){return this.fill_},a.prototype.setFill=function(t){this.fill_=t},a.prototype.getImage=function(){return this.image_},a.prototype.setImage=function(t){this.image_=t},a.prototype.getStroke=function(){return this.stroke_},a.prototype.setStroke=function(t){this.stroke_=t},a.prototype.getText=function(){return this.text_},a.prototype.setText=function(t){this.text_=t},a.prototype.getZIndex=function(){return this.zIndex_},a.prototype.setGeometry=function(t){"function"==typeof t?this.geometryFunction_=t:"string"==typeof t?this.geometryFunction_=function(e){return e.get(t)}:t?void 0!==t&&(this.geometryFunction_=function(){return t}):this.geometryFunction_=u,this.geometry_=t},a.prototype.setZIndex=function(t){this.zIndex_=t};var c=null;function l(t,e){if(!c){var i=new o.a({color:"rgba(255,255,255,0.4)"}),n=new s.a({color:"#3399CC",width:1.25});c=[new a({image:new r.a({fill:i,stroke:n,radius:5}),fill:i,stroke:n})]}return c}function u(t){return t.getGeometry()}e.b=a},function(t,e,i){"use strict";e.a={ANIMATING:0,INTERACTING:1}},function(t,e,i){"use strict";var n=i(3),r=function(t){var e=t||{};this.color_=void 0!==e.color?e.color:null,this.lineCap_=e.lineCap,this.lineDash_=void 0!==e.lineDash?e.lineDash:null,this.lineDashOffset_=e.lineDashOffset,this.lineJoin_=e.lineJoin,this.miterLimit_=e.miterLimit,this.width_=e.width,this.checksum_=void 0};r.prototype.clone=function(){var t=this.getColor();return new r({color:Array.isArray(t)?t.slice():t||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})},r.prototype.getColor=function(){return this.color_},r.prototype.getLineCap=function(){return this.lineCap_},r.prototype.getLineDash=function(){return this.lineDash_},r.prototype.getL