7 lines
338 KiB
JavaScript
7 lines
338 KiB
JavaScript
var ol=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=86)}([function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return u})),n.d(e,"e",(function(){return c})),n.d(e,"f",(function(){return l})),n.d(e,"g",(function(){return h})),n.d(e,"h",(function(){return p})),n.d(e,"i",(function(){return f})),n.d(e,"j",(function(){return d})),n.d(e,"k",(function(){return _})),n.d(e,"l",(function(){return g})),n.d(e,"m",(function(){return v})),n.d(e,"n",(function(){return y})),n.d(e,"o",(function(){return m})),n.d(e,"p",(function(){return b})),n.d(e,"q",(function(){return O})),n.d(e,"r",(function(){return E})),n.d(e,"s",(function(){return x})),n.d(e,"t",(function(){return S})),n.d(e,"u",(function(){return I})),n.d(e,"v",(function(){return R})),n.d(e,"w",(function(){return w})),n.d(e,"x",(function(){return j})),n.d(e,"y",(function(){return P})),n.d(e,"z",(function(){return M})),n.d(e,"A",(function(){return L})),n.d(e,"B",(function(){return A})),n.d(e,"C",(function(){return F})),n.d(e,"D",(function(){return D})),n.d(e,"E",(function(){return N})),n.d(e,"F",(function(){return k})),n.d(e,"H",(function(){return G})),n.d(e,"I",(function(){return Y})),n.d(e,"J",(function(){return X})),n.d(e,"G",(function(){return z})),n.d(e,"a",(function(){return W}));var i=n(10),r=n(57),o=n(24);function a(t){for(var e=d(),n=0,i=t.length;n<i;++n)E(e,t[n]);return e}function s(t,e,n){return n?(n[0]=t[0]-e,n[1]=t[1]-e,n[2]=t[2]+e,n[3]=t[3]+e,n):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function u(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,n){var i,r;return(i=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0)*i+(r=n<t[1]?t[1]-n:t[3]<n?n-t[3]:0)*r}function l(t,e){return p(t,e[0],e[1])}function h(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function p(t,e,n){return t[0]<=e&&e<=t[2]&&t[1]<=n&&n<=t[3]}function f(t,e){var n=t[0],i=t[1],r=t[2],a=t[3],s=e[0],u=e[1],c=o.a.UNKNOWN;return s<n?c|=o.a.LEFT:s>r&&(c|=o.a.RIGHT),u<i?c|=o.a.BELOW:u>a&&(c|=o.a.ABOVE),c===o.a.UNKNOWN&&(c=o.a.INTERSECTING),c}function d(){return[1/0,1/0,-1/0,-1/0]}function _(t,e,n,i,r){return r?(r[0]=t,r[1]=e,r[2]=n,r[3]=i,r):[t,e,n,i]}function g(t){return _(1/0,1/0,-1/0,-1/0,t)}function v(t,e){var n=t[0],i=t[1];return _(n,i,n,i,e)}function y(t,e){return T(g(e),t)}function m(t,e,n,i,r){return x(g(r),t,e,n,i)}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 E(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 T(t,e){for(var n=0,i=e.length;n<i;++n)E(t,e[n]);return t}function x(t,e,n,i,r){for(;n<i;n+=r)C(t,e[n],e[n+1]);return t}function C(t,e,n){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],n),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],n)}function S(t,e){var n;return(n=e(R(t)))?n:(n=e(w(t)))?n:(n=e(D(t)))?n:(n=e(F(t)))||!1}function I(t){var e=0;return G(t)||(e=N(t)*L(t)),e}function R(t){return[t[0],t[1]]}function w(t){return[t[2],t[1]]}function j(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function P(t,e){var n;return e===r.a.BOTTOM_LEFT?n=R(t):e===r.a.BOTTOM_RIGHT?n=w(t):e===r.a.TOP_LEFT?n=F(t):e===r.a.TOP_RIGHT?n=D(t):Object(i.a)(!1,13),n}function M(t,e,n,i,r){var o=e*i[0]/2,a=e*i[1]/2,s=Math.cos(n),u=Math.sin(n),c=o*s,l=o*u,h=a*s,p=a*u,f=t[0],d=t[1],g=f-c+p,v=f-c-p,y=f+c-p,m=f+c+p,b=d-l-h,O=d-l+h,E=d+l+h,T=d+l-h;return _(Math.min(g,v,y,m),Math.min(b,O,E,T),Math.max(g,v,y,m),Math.max(b,O,E,T),r)}function L(t){return t[3]-t[1]}function A(t,e,n){var i=n||[1/0,1/0,-1/0,-1/0];return k(t,e)?(t[0]>e[0]?i[0]=t[0]:i[0]=e[0],t[1]>e[1]?i[1]=t[1]:i[1]=e[1],t[2]<e[2]?i[2]=t[2]:i[2]=e[2],t[3]<e[3]?i[3]=t[3]:i[3]=e[3]):g(i),i}function F(t){return[t[0],t[3]]}function D(t){return[t[2],t[3]]}function N(t){return t[2]-t[0]}function k(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function G(t){return t[2]<t[0]||t[3]<t[1]}function Y(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t}function X(t,e){var n=(t[2]-t[0])/2*(e-1),i=(t[3]-t[1])/2*(e-1);t[0]-=n,t[2]+=n,t[1]-=i,t[3]+=i}function z(t,e,n){var i=!1,r=f(t,e),a=f(t,n);if(r===o.a.INTERSECTING||a===o.a.INTERSECTING)i=!0;else{var s=t[0],u=t[1],c=t[2],l=t[3],h=e[0],p=e[1],d=n[0],_=n[1],g=(_-p)/(d-h),v=void 0,y=void 0;a&o.a.ABOVE&&!(r&o.a.ABOVE)&&(i=(v=d-(_-l)/g)>=s&&v<=c),i||!(a&o.a.RIGHT)||r&o.a.RIGHT||(i=(y=_-(d-c)*g)>=u&&y<=l),i||!(a&o.a.BELOW)||r&o.a.BELOW||(i=(v=d-(_-u)/g)>=s&&v<=c),i||!(a&o.a.LEFT)||r&o.a.LEFT||(i=(y=_-(d-s)*g)>=u&&y<=l)}return i}function W(t,e,n){var i=[t[0],t[1],t[0],t[3],t[2],t[1],t[2],t[3]];return e(i,i,2),function(t,e,n){return _(Math.min.apply(null,t),Math.min.apply(null,e),Math.max.apply(null,t),Math.max.apply(null,e),n)}([i[0],i[2],i[4],i[6]],[i[1],i[3],i[5],i[7]],n)}},function(t,e,n){"use strict";function i(){return function(){throw new Error("Unimplemented abstract method.")}()}n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var r=0;function o(t){return t.ol_uid||(t.ol_uid=String(++r))}var a="6.1.1"},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a}));var i=n(13);function r(t,e,n,i,r){if(i&&i!==t&&(n=n.bind(i)),r){var o=n;n=function(){t.removeEventListener(e,n),o.apply(this,arguments)}}var a={target:t,type:e,listener:n};return t.addEventListener(e,n),a}function o(t,e,n,i){return r(t,e,n,i,!0)}function a(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),Object(i.b)(t))}},function(t,e,n){"use strict";var i,r=n(14),o=n(11),a=n(13),s=n(8),u=n(1),c=n(66),l=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),h=function(t){function e(e){var n=t.call(this,e)||this;return n.consumers={},n}return l(e,t),e.prototype.clear=function(){this.consumers={},t.prototype.clear.call(this)},e.prototype.get=function(e,n){var i=t.prototype.get.call(this,e),r=Object(u.c)(n);return r in this.consumers||(this.consumers[r]={}),this.consumers[r][e]=!0,i},e.prototype.prune=function(){t:for(;this.canExpireCache();){var t=this.peekLastKey();for(var e in this.consumers)if(t in this.consumers[e])break t;var n=this.pop();for(var e in n.width=0,n.height=0,this.consumers)delete this.consumers[e][t]}},e.prototype.release=function(t){delete this.consumers[Object(u.c)(t)]},e}(c.a);n.d(e,"c",(function(){return f})),n.d(e,"b",(function(){return d})),n.d(e,"d",(function(){return _})),n.d(e,"e",(function(){return g})),n.d(e,"f",(function(){return v})),n.d(e,"g",(function(){return y})),n.d(e,"i",(function(){return m})),n.d(e,"k",(function(){return b})),n.d(e,"l",(function(){return O})),n.d(e,"m",(function(){return E})),n.d(e,"j",(function(){return T})),n.d(e,"h",(function(){return x})),n.d(e,"o",(function(){return C})),n.d(e,"a",(function(){return w})),n.d(e,"q",(function(){return L})),n.d(e,"p",(function(){return F})),n.d(e,"r",(function(){return D})),n.d(e,"s",(function(){return N})),n.d(e,"n",(function(){return G}));var p,f="10px sans-serif",d="#000",_="round",g=[],v=0,y="round",m=10,b="#000",O="center",E="middle",T=[0,0,0,0],x=1,C=new h,S={},I=null,R={},w=function(){var t,e,n=100,i=S,o="32px ",s=["monospace","serif"],u=s.length,c="wmytzilWMYTZIL@#/&?$%10";function l(t,n,i){for(var r=j(),a=!0,l=0;l<u;++l){var h=s[l];if(r.font=t+" "+n+" "+o+h,e=r.measureText(c).width,i!=h){r.font=t+" "+n+" "+o+i+","+h;var p=r.measureText(c).width;a=a&&p!=e}}return!!a}function h(){var e=!0;for(var r in i)i[r]<n&&(l.apply(this,r.split("\n"))?(i[r]=n,Object(a.b)(R),I=null,p=void 0,C.getCount()&&C.clear()):(++i[r],e=!1));e&&(clearInterval(t),t=void 0)}return function(e){var o=Object(r.g)(e);if(o)for(var a=o.families,s=0,u=a.length;s<u;++s){var c=a[s],p=o.style+"\n"+o.weight+"\n"+c;p in i||(i[p]=n,l(o.style,o.weight,c)||(i[p]=0,void 0===t&&(t=setInterval(h,32))))}}}();function j(){return I||(I=Object(o.a)(1,1)),I}var P,M,L=(M=R,function(t){var e=M[t];return null==e&&(P||((P=document.createElement("div")).innerHTML="M",P.style.margin="0 !important",P.style.padding="0 !important",P.style.position="absolute !important",P.style.left="-99999px !important"),P.style.font=t,document.body.appendChild(P),e=P.offsetHeight,M[t]=e,document.body.removeChild(P)),e});function A(t,e){var n=j();return t!=p&&(n.font=t,p=n.font),n.measureText(e).width}function F(t,e,n){if(e in n)return n[e];var i=A(t,e);return n[e]=i,i}function D(t,e,n){for(var i=e.length,r=0,o=0;o<i;++o){var a=A(t,e[o]);r=Math.max(r,a),n.push(a)}return r}function N(t,e,n,i){0!==e&&(t.translate(n,i),t.rotate(e),t.translate(-n,-i))}var k=Object(s.c)();function G(t,e,n,i,r,o,a,s,u,c,l){var h;1!=n&&(h=t.globalAlpha,t.globalAlpha=h*n),e&&t.setTransform.apply(t,e),t.drawImage(i,r,o,a,s,u,c,a*l,s*l),1!=n&&(t.globalAlpha=h),e&&t.setTransform.apply(t,k)}},function(t,e,n){"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,n){"use strict";e.a={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",WHEEL:"wheel"}},function(t,e,n){"use strict";function i(t,e,n){return Math.min(Math.max(t,e),n)}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"g",(function(){return o})),n.d(e,"f",(function(){return a})),n.d(e,"e",(function(){return s})),n.d(e,"h",(function(){return u})),n.d(e,"i",(function(){return c})),n.d(e,"d",(function(){return l})),n.d(e,"c",(function(){return h}));var r="cosh"in Math?Math.cosh:function(t){var e=Math.exp(t);return(e+1/e)/2};function o(t,e,n,i,r,o){var s=r-n,u=o-i;if(0!==s||0!==u){var c=((t-n)*s+(e-i)*u)/(s*s+u*u);c>1?(n=r,i=o):c>0&&(n+=s*c,i+=u*c)}return a(t,e,n,i)}function a(t,e,n,i){var r=n-t,o=i-e;return r*r+o*o}function s(t){for(var e=t.length,n=0;n<e;n++){for(var i=n,r=Math.abs(t[n][n]),o=n+1;o<e;o++){var a=Math.abs(t[o][n]);a>r&&(r=a,i=o)}if(0===r)return null;var s=t[i];t[i]=t[n],t[n]=s;for(var u=n+1;u<e;u++)for(var c=-t[u][n]/t[n][n],l=n;l<e+1;l++)n==l?t[u][l]=0:t[u][l]+=c*t[n][l]}for(var h=new Array(e),p=e-1;p>=0;p--){h[p]=t[p][e]/t[p][p];for(var f=p-1;f>=0;f--)t[f][e]-=t[f][p]*h[p]}return h}function u(t){return 180*t/Math.PI}function c(t){return t*Math.PI/180}function l(t,e){var n=t%e;return n*e<0?n+e:n}function h(t,e,n){return t+n*(e-t)}},function(t,e,n){"use strict";n.r(e);var i,r=n(61),o=n(0),a=n(6),s=n(21),u=function(){function t(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}return t.prototype.canWrapX=function(){return this.canWrapX_},t.prototype.getCode=function(){return this.code_},t.prototype.getExtent=function(){return this.extent_},t.prototype.getUnits=function(){return this.units_},t.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||s.a[this.units_]},t.prototype.getWorldExtent=function(){return this.worldExtent_},t.prototype.getAxisOrientation=function(){return this.axisOrientation_},t.prototype.isGlobal=function(){return this.global_},t.prototype.setGlobal=function(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)},t.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},t.prototype.setDefaultTileGrid=function(t){this.defaultTileGrid_=t},t.prototype.setExtent=function(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)},t.prototype.setWorldExtent=function(t){this.worldExtent_=t},t.prototype.setGetPointResolution=function(t){this.getPointResolutionFunc_=t},t.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},t}(),c=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=6378137,h=Math.PI*l,p=[-h,-h,h,h],f=[-180,-85,180,85],d=function(t){function e(e){return t.call(this,{code:e,units:s.b.METERS,extent:p,global:!0,worldExtent:f,getPointResolution:function(t,e){return t/Object(a.b)(e[1]/l)}})||this}return c(e,t),e}(u),_=[new d("EPSG:3857"),new d("EPSG:102100"),new d("EPSG:102113"),new d("EPSG:900913"),new d("urn:ogc:def:crs:EPSG:6.18:3:3857"),new d("urn:ogc:def:crs:EPSG::3857"),new d("http://www.opengis.net/gml/srs/epsg.xml#3857")];function g(t,e,n){var i=t.length,r=n>1?n:2,o=e;void 0===o&&(o=r>2?t.slice():new Array(i));for(var a=h,s=0;s<i;s+=r){o[s]=a*t[s]/180;var u=l*Math.log(Math.tan(Math.PI*(+t[s+1]+90)/360));u>a?u=a:u<-a&&(u=-a),o[s+1]=u}return o}function v(t,e,n){var i=t.length,r=n>1?n:2,o=e;void 0===o&&(o=r>2?t.slice():new Array(i));for(var a=0;a<i;a+=r)o[a]=180*t[a]/h,o[a+1]=360*Math.atan(Math.exp(t[a+1]/l))/Math.PI-90;return o}var y=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),m=[-180,-90,180,90],b=6378137*Math.PI/180,O=function(t){function e(e,n){return t.call(this,{code:e,units:s.b.DEGREES,extent:m,axisOrientation:n,global:!0,metersPerUnit:b,worldExtent:m})||this}return y(e,t),e}(u),E=[new O("CRS:84"),new O("EPSG:4326","neu"),new O("urn:ogc:def:crs:EPSG::4326","neu"),new O("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new O("urn:ogc:def:crs:OGC:1.3:CRS84"),new O("urn:ogc:def:crs:OGC:2:84"),new O("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new O("urn:x-ogc:def:crs:EPSG:4326","neu")],T=(n(13),{});function x(t,e,n){var i=t.getCode(),r=e.getCode();i in T||(T[i]={}),T[i][r]=n}var C={};function S(t,e,n){var i;if(void 0!==e){for(var r=0,o=t.length;r<o;++r)e[r]=t[r];i=e}else i=t.slice();return i}function I(t,e,n){if(void 0!==e&&t!==e){for(var i=0,r=t.length;i<r;++i)e[i]=t[i];t=e}return t}function R(t){!function(t,e){C[t]=e}(t.getCode(),t),x(t,t,S)}function w(t){t.forEach(R)}function j(t){return"string"==typeof t?C[t]||null:t||null}function P(t,e,n,i){var o,a=(t=j(t)).getPointResolutionFunc();if(a)o=a(e,n),i&&i!==t.getUnits()&&(u=t.getMetersPerUnit())&&(o=o*u/s.a[i]);else if(t.getUnits()==s.b.DEGREES&&!i||i==s.b.DEGREES)o=e;else{var u,c=X(t,j("EPSG:4326")),l=[n[0]-e/2,n[1],n[0]+e/2,n[1],n[0],n[1]-e/2,n[0],n[1]+e/2];l=c(l,l,2),o=(Object(r.a)(l.slice(0,2),l.slice(2,4))+Object(r.a)(l.slice(4,6),l.slice(6,8)))/2,void 0!==(u=i?s.a[i]:t.getMetersPerUnit())&&(o/=u)}return o}function M(t){w(t),t.forEach((function(e){t.forEach((function(t){e!==t&&x(e,t,S)}))}))}function L(t,e,n,i){t.forEach((function(t){e.forEach((function(e){x(t,e,n),x(e,t,i)}))}))}function A(){C={},T={}}function F(t,e){return t?"string"==typeof t?j(t):t:j(e)}function D(t){return function(e,n,i){for(var r=e.length,o=void 0!==i?i:2,a=void 0!==n?n:new Array(r),s=0;s<r;s+=o){var u=t([e[s],e[s+1]]);a[s]=u[0],a[s+1]=u[1];for(var c=o-1;c>=2;--c)a[s+c]=e[s+c]}return a}}function N(t,e,n,i){var r=j(t),o=j(e);x(r,o,D(n)),x(o,r,D(i))}function k(t,e){return W(t,"EPSG:4326",void 0!==e?e:"EPSG:3857")}function G(t,e){var n=W(t,void 0!==e?e:"EPSG:3857","EPSG:4326"),i=n[0];return(i<-180||i>180)&&(n[0]=Object(a.d)(i+180,360)-180),n}function Y(t,e){if(t===e)return!0;var n=t.getUnits()===e.getUnits();return t.getCode()===e.getCode()?n:X(t,e)===S&&n}function X(t,e){var n=function(t,e){var n;return t in T&&e in T[t]&&(n=T[t][e]),n}(t.getCode(),e.getCode());return n||(n=I),n}function z(t,e){return X(j(t),j(e))}function W(t,e,n){return z(e,n)(t,void 0,t.length)}function K(t,e,n){var i=z(e,n);return Object(o.a)(t,i)}function U(t,e,n){return X(e,n)(t)}n.d(e,"cloneTransform",(function(){return S})),n.d(e,"identityTransform",(function(){return I})),n.d(e,"addProjection",(function(){return R})),n.d(e,"addProjections",(function(){return w})),n.d(e,"get",(function(){return j})),n.d(e,"getPointResolution",(function(){return P})),n.d(e,"addEquivalentProjections",(function(){return M})),n.d(e,"addEquivalentTransforms",(function(){return L})),n.d(e,"clearAllProjections",(function(){return A})),n.d(e,"createProjection",(function(){return F})),n.d(e,"createTransformFromCoordinateTransform",(function(){return D})),n.d(e,"addCoordinateTransforms",(function(){return N})),n.d(e,"fromLonLat",(function(){return k})),n.d(e,"toLonLat",(function(){return G})),n.d(e,"equivalent",(function(){return Y})),n.d(e,"getTransformFromProjections",(function(){return X})),n.d(e,"getTransform",(function(){return z})),n.d(e,"transform",(function(){return W})),n.d(e,"transformExtent",(function(){return K})),n.d(e,"transformWithProjections",(function(){return U})),n.d(e,"setUserProjection",(function(){return V})),n.d(e,"clearUserProjection",(function(){return Z})),n.d(e,"getUserProjection",(function(){return H})),n.d(e,"useGeographic",(function(){return q})),n.d(e,"toUserCoordinate",(function(){return J})),n.d(e,"fromUserCoordinate",(function(){return Q})),n.d(e,"toUserExtent",(function(){return $})),n.d(e,"fromUserExtent",(function(){return tt})),n.d(e,"addCommon",(function(){return et})),n.d(e,"METERS_PER_UNIT",(function(){return s.a})),n.d(e,"Projection",(function(){return u}));var B=null;function V(t){B=j(t)}function Z(){B=null}function H(){return B}function q(){V("EPSG:4326")}function J(t,e){return B?W(t,e,B):t}function Q(t,e){return B?W(t,B,e):t}function $(t,e){return B?K(t,e,B):t}function tt(t,e){return B?K(t,B,e):t}function et(){M(_),M(E),L(E,_,g,v)}et()},function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"f",(function(){return a})),n.d(e,"h",(function(){return u})),n.d(e,"a",(function(){return c})),n.d(e,"g",(function(){return l})),n.d(e,"e",(function(){return h})),n.d(e,"b",(function(){return p})),n.d(e,"d",(function(){return f})),n.d(e,"i",(function(){return d}));var i=n(10),r=new Array(6);function o(){return[1,0,0,1,0,0]}function a(t,e){var n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],u=e[0],c=e[1],l=e[2],h=e[3],p=e[4],f=e[5];return t[0]=n*u+r*c,t[1]=i*u+o*c,t[2]=n*l+r*h,t[3]=i*l+o*h,t[4]=n*p+r*f+a,t[5]=i*p+o*f+s,t}function s(t,e,n,i,r,o,a){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t[4]=o,t[5]=a,t}function u(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 c(t,e){var n=e[0],i=e[1];return e[0]=t[0]*n+t[2]*i+t[4],e[1]=t[1]*n+t[3]*i+t[5],e}function l(t,e,n){return a(t,s(r,e,0,0,n,0,0))}function h(t,e,n){return s(t,e,0,0,n,0,0)}function p(t,e,n,i,r,o,a,s){var u=Math.sin(o),c=Math.cos(o);return t[0]=i*c,t[1]=r*u,t[2]=-i*u,t[3]=r*c,t[4]=a*i*c-s*i*u+e,t[5]=a*r*u+s*r*c+n,t}function f(t,e){var n,r=(n=e)[0]*n[3]-n[1]*n[2];Object(i.a)(0!==r,32);var o=e[0],a=e[1],s=e[2],u=e[3],c=e[4],l=e[5];return t[0]=u/r,t[1]=-a/r,t[2]=-s/r,t[3]=o/r,t[4]=(s*l-u*c)/r,t[5]=-(o*l-a*c)/r,t}function d(t){return"matrix("+t.join(", ")+")"}},function(t,e,n){"use strict";e.a={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4,ABORT:5}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n(65);function r(t,e){if(!t)throw new i.a(e)}},function(t,e,n){"use strict";function i(t,e){var n=document.createElement("canvas");return t&&(n.width=t),e&&(n.height=e),n.getContext("2d")}function r(t){var e=t.offsetWidth,n=getComputedStyle(t);return e+=parseInt(n.marginLeft,10)+parseInt(n.marginRight,10)}function o(t){var e=t.offsetHeight,n=getComputedStyle(t);return e+=parseInt(n.marginTop,10)+parseInt(n.marginBottom,10)}function a(t,e){var n=e.parentNode;n&&n.replaceChild(t,e)}function s(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function u(t){for(;t.lastChild;)t.removeChild(t.lastChild)}function c(t,e){for(var n=t.childNodes,i=0;;++i){var r=n[i],o=e[i];if(!r&&!o)break;r!==o&&(r?o?t.insertBefore(o,r):(t.removeChild(r),--i):t.appendChild(o))}}n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"g",(function(){return a})),n.d(e,"e",(function(){return s})),n.d(e,"d",(function(){return u})),n.d(e,"f",(function(){return c}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return f}));var i,r=n(1),o=n(38),a=n(63),s=n(26),u=n(13),c=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.key=n,r.oldValue=i,r}return c(e,t),e}(s.a),h=function(t){function e(e){var n=t.call(this)||this;return Object(r.c)(n),n.values_={},void 0!==e&&n.setProperties(e),n}return c(e,t),e.prototype.get=function(t){var e;return this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e},e.prototype.getKeys=function(){return Object.keys(this.values_)},e.prototype.getProperties=function(){return Object(u.a)({},this.values_)},e.prototype.notify=function(t,e){var n;n=f(t),this.dispatchEvent(new l(n,t,e)),n=o.a.PROPERTYCHANGE,this.dispatchEvent(new l(n,t,e))},e.prototype.set=function(t,e,n){if(n)this.values_[t]=e;else{var i=this.values_[t];this.values_[t]=e,i!==e&&this.notify(t,i)}},e.prototype.setProperties=function(t,e){for(var n in t)this.set(n,t[n],e)},e.prototype.unset=function(t,e){if(t in this.values_){var n=this.values_[t];delete this.values_[t],e||this.notify(t,n)}},e}(a.a),p={};function f(t){return p.hasOwnProperty(t)?p[t]:p[t]="change:"+t}e.a=h},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return a}));var i="function"==typeof Object.assign?Object.assign:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),i=1,r=arguments.length;i<r;++i){var o=arguments[i];if(null!=o)for(var a in o)o.hasOwnProperty(a)&&(n[a]=o[a])}return n};function r(t){for(var e in t)delete t[e]}var o="function"==typeof Object.values?Object.values:function(t){var e=[];for(var n in t)e.push(t[n]);return e};function a(t){var e;for(e in t)return!1;return!e}},function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"e",(function(){return s})),n.d(e,"f",(function(){return u})),n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return l})),n.d(e,"g",(function(){return h}));var i,r,o="ol-hidden",a="ol-selectable",s="ol-unselectable",u="ol-unsupported",c="ol-control",l="ol-collapsed",h=(r={},function(t){if(i||(i=document.createElement("div").style),!(t in r)){i.font=t;var e=i.fontFamily,n=i.fontWeight,o=i.fontStyle;if(i.font="",!e)return null;var a=e.split(/,\s?/);r[t]={families:a,weight:n,style:o}}return r[t]})},function(t,e,n){"use strict";function i(t,e,n){for(var i,o,a=n||r,s=0,u=t.length,c=!1;s<u;)(o=+a(t[i=s+(u-s>>1)],e))<0?s=i+1:(u=i,c=!o);return c?s:~s}function r(t,e){return t>e?1:t<e?-1:0}function o(t,e,n){var i=t.length;if(t[0]<=e)return 0;if(e<=t[i-1])return i-1;var r=void 0;if(n>0){for(r=1;r<i;++r)if(t[r]<e)return r-1}else if(n<0){for(r=1;r<i;++r)if(t[r]<=e)return r}else for(r=1;r<i;++r){if(t[r]==e)return r;if(t[r]<e)return t[r-1]-e<e-t[r]?r-1:r}return i-1}function a(t,e,n){for(;e<n;){var i=t[e];t[e]=t[n],t[n]=i,++e,--n}}function s(t,e){for(var n=Array.isArray(e)?e:[e],i=n.length,r=0;r<i;r++)t[t.length]=n[r]}function u(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function c(t,e,n){var i=e||r;return t.every((function(e,r){if(0===r)return!0;var o=i(t[r-1],e);return!(o>0||n&&0===o)}))}n.d(e,"a",(function(){return i})),n.d(e,"f",(function(){return r})),n.d(e,"e",(function(){return o})),n.d(e,"g",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return u})),n.d(e,"d",(function(){return c}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return s}));var i=n(15);function r(){return!0}function o(){return!1}function a(){}function s(t){var e,n,r,o=!1;return function(){var a=Array.prototype.slice.call(arguments);return o&&this===r&&Object(i.b)(a,n)||(o=!0,r=this,n=a,e=t.apply(this,arguments)),e}}},function(t,e,n){"use strict";var i=n(5);e.a={SINGLECLICK:"singleclick",CLICK:i.a.CLICK,DBLCLICK:i.a.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},function(t,e,n){"use strict";e.a={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},function(t,e,n){"use strict";e.a={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source"}},function(t,e,n){"use strict";e.a={CIRCLE:"Circle",DEFAULT:"Default",IMAGE:"Image",LINE_STRING:"LineString",POLYGON:"Polygon",TEXT:"Text"}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i={DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},r={};r[i.DEGREES]=2*Math.PI*6370997/360,r[i.FEET]=.3048,r[i.METERS]=1,r[i.USFEET]=1200/3937,e.b=i},function(t,e,n){"use strict";e.a={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"}},function(t,e,n){"use strict";e.a={ANIMATING:0,INTERACTING:1}},function(t,e,n){"use strict";e.a={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},function(t,e,n){"use strict";function i(t){return Math.pow(t,3)}function r(t){return 1-i(1-t)}function o(t){return 3*t*t-2*t*t*t}function a(t){return t}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return a}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=function(){function t(t){this.propagationStopped,this.type=t,this.target=null}return t.prototype.preventDefault=function(){this.propagationStopped=!0},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t}();function r(t){t.stopPropagation()}e.a=i},function(t,e,n){"use strict";e.a={ADD:"add",REMOVE:"remove"}},function(t,e,n){"use strict";e.a={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"}},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"e",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"a",(function(){return s})),n.d(e,"c",(function(){return u}));var i="undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"",r=-1!==i.indexOf("firefox"),o=(-1!==i.indexOf("safari")&&i.indexOf("chrom"),-1!==i.indexOf("webkit")&&-1==i.indexOf("edge")),a=-1!==i.indexOf("macintosh"),s=window.devicePixelRatio||1,u="undefined"!=typeof Image&&Image.prototype.decode},function(t,e,n){"use strict";var i,r=n(65),o=n(27),a=n(12),s=n(26),u=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c="length",l=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.element=n,r.index=i,r}return u(e,t),e}(s.a),h=function(t){function e(e,n){var i=t.call(this)||this,r=n||{};if(i.unique_=!!r.unique,i.array_=e||[],i.unique_)for(var o=0,a=i.array_.length;o<a;++o)i.assertUnique_(i.array_[o],o);return i.updateLength_(),i}return u(e,t),e.prototype.clear=function(){for(;this.getLength()>0;)this.pop()},e.prototype.extend=function(t){for(var e=0,n=t.length;e<n;++e)this.push(t[e]);return this},e.prototype.forEach=function(t){for(var e=this.array_,n=0,i=e.length;n<i;++n)t(e[n],n,e)},e.prototype.getArray=function(){return this.array_},e.prototype.item=function(t){return this.array_[t]},e.prototype.getLength=function(){return this.get(c)},e.prototype.insertAt=function(t,e){this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new l(o.a.ADD,e,t))},e.prototype.pop=function(){return this.removeAt(this.getLength()-1)},e.prototype.push=function(t){this.unique_&&this.assertUnique_(t);var e=this.getLength();return this.insertAt(e,t),this.getLength()},e.prototype.remove=function(t){for(var e=this.array_,n=0,i=e.length;n<i;++n)if(e[n]===t)return this.removeAt(n)},e.prototype.removeAt=function(t){var e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new l(o.a.REMOVE,e,t)),e},e.prototype.setAt=function(t,e){var n=this.getLength();if(t<n){this.unique_&&this.assertUnique_(e,t);var i=this.array_[t];this.array_[t]=e,this.dispatchEvent(new l(o.a.REMOVE,i,t)),this.dispatchEvent(new l(o.a.ADD,e,t))}else{for(var r=n;r<t;++r)this.insertAt(r,void 0);this.insertAt(t,e)}},e.prototype.updateLength_=function(){this.set(c,this.array_.length)},e.prototype.assertUnique_=function(t,e){for(var n=0,i=this.array_.length;n<i;++n)if(this.array_[n]===t&&n!==e)throw new r.a(58)},e}(a.a);e.a=h},function(t,e,n){"use strict";e.a={BOTTOM_LEFT:"bottom-left",BOTTOM_CENTER:"bottom-center",BOTTOM_RIGHT:"bottom-right",CENTER_LEFT:"center-left",CENTER_CENTER:"center-center",CENTER_RIGHT:"center-right",TOP_LEFT:"top-left",TOP_CENTER:"top-center",TOP_RIGHT:"top-right"}},function(t,e,n){"use strict";function i(t,e,n,i,r,o){for(var a=o||[],s=0,u=e;u<n;u+=i){var c=t[u],l=t[u+1];a[s++]=r[0]*c+r[2]*l+r[4],a[s++]=r[1]*c+r[3]*l+r[5]}return o&&a.length!=s&&(a.length=s),a}function r(t,e,n,i,r,o,a){for(var s=a||[],u=Math.cos(r),c=Math.sin(r),l=o[0],h=o[1],p=0,f=e;f<n;f+=i){var d=t[f]-l,_=t[f+1]-h;s[p++]=l+d*u-_*c,s[p++]=h+d*c+_*u;for(var g=f+2;g<f+i;++g)s[p++]=t[g]}return a&&s.length!=p&&(s.length=p),s}function o(t,e,n,i,r,o,a,s){for(var u=s||[],c=a[0],l=a[1],h=0,p=e;p<n;p+=i){var f=t[p]-c,d=t[p+1]-l;u[h++]=c+r*f,u[h++]=l+o*d;for(var _=p+2;_<p+i;++_)u[h++]=t[_]}return s&&u.length!=h&&(u.length=h),u}function a(t,e,n,i,r,o,a){for(var s=a||[],u=0,c=e;c<n;c+=i){s[u++]=t[c]+r,s[u++]=t[c+1]+o;for(var l=c+2;l<c+i;++l)s[u++]=t[l]}return a&&s.length!=u&&(s.length=u),s}n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"d",(function(){return a}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n(52);function r(t){return Array.isArray(t)?Object(i.c)(t):t}},function(t,e,n){"use strict";function i(t){return t[0]>0&&t[1]>0}function r(t,e,n){return void 0===n&&(n=[0,0]),n[0]=t[0]*e+.5|0,n[1]=t[1]*e+.5|0,n}function o(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:(e[0]=t,e[1]=t),e)}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o}))},function(t,e,n){"use strict";e.a={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"}},function(t,e,n){"use strict";e.a={UNDEFINED:"undefined",LOADING:"loading",READY:"ready",ERROR:"error"}},function(t,e,n){"use strict";var i,r=n(43),o=n(16),a=n(26),s=n(13),u=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t){function e(e){var n=t.call(this)||this;return n.eventTarget_=e,n.pendingRemovals_={},n.dispatching_={},n.listeners_={},n}return u(e,t),e.prototype.addEventListener=function(t,e){if(t&&e){var n=this.listeners_[t];n||(n=[],this.listeners_[t]=n),-1===n.indexOf(e)&&n.push(e)}},e.prototype.dispatchEvent=function(t){var e="string"==typeof t?new a.a(t):t,n=e.type;e.target||(e.target=this.eventTarget_||this);var i,r=this.listeners_[n];if(r){n in this.dispatching_||(this.dispatching_[n]=0,this.pendingRemovals_[n]=0),++this.dispatching_[n];for(var s=0,u=r.length;s<u;++s)if(!1===r[s].call(this,e)||e.propagationStopped){i=!1;break}if(--this.dispatching_[n],0===this.dispatching_[n]){var c=this.pendingRemovals_[n];for(delete this.pendingRemovals_[n];c--;)this.removeEventListener(n,o.c);delete this.dispatching_[n]}return i}},e.prototype.disposeInternal=function(){Object(s.b)(this.listeners_)},e.prototype.getListeners=function(t){return this.listeners_[t]},e.prototype.hasListener=function(t){return t?t in this.listeners_:Object.keys(this.listeners_).length>0},e.prototype.removeEventListener=function(t,e){var n=this.listeners_[t];if(n){var i=n.indexOf(e);-1!==i&&(t in this.pendingRemovals_?(n[i]=o.c,++this.pendingRemovals_[t]):(n.splice(i,1),0===n.length&&delete this.listeners_[t]))}},e}(r.a);e.a=c},function(t,e,n){"use strict";e.a={PROPERTYCHANGE:"propertychange"}},function(t,e,n){"use strict";n(6);function i(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function r(t,e){for(var n=!0,i=t.length-1;i>=0;--i)if(t[i]!=e[i]){n=!1;break}return n}function o(t,e){var n=Math.cos(e),i=Math.sin(e),r=t[0]*n-t[1]*i,o=t[1]*n+t[0]*i;return t[0]=r,t[1]=o,t}function a(t,e){return t[0]*=e,t[1]*=e,t}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return a}))},function(t,e,n){"use strict";e.a={POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},function(t,e,n){"use strict";n.d(e,"b",(function(){return d}));var i,r=n(2),o=n(5),a=n(12),s=n(64),u=n(19),c=n(13),l=n(42),h=n(36),p=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),f=function(t){function e(e){var n=this,i=Object(c.a)({},e);delete i.source,(n=t.call(this,i)||this).mapPrecomposeKey_=null,n.mapRenderKey_=null,n.sourceChangeKey_=null,n.renderer_=null,e.render&&(n.render=e.render),e.map&&n.setMap(e.map),n.addEventListener(Object(a.b)(u.a.SOURCE),n.handleSourcePropertyChange_);var r=e.source?e.source:null;return n.setSource(r),n}return p(e,t),e.prototype.getLayersArray=function(t){var e=t||[];return e.push(this),e},e.prototype.getLayerStatesArray=function(t){var e=t||[];return e.push(this.getLayerState()),e},e.prototype.getSource=function(){return this.get(u.a.SOURCE)||null},e.prototype.getSourceState=function(){var t=this.getSource();return t?t.getState():h.a.UNDEFINED},e.prototype.handleSourceChange_=function(){this.changed()},e.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&(Object(r.c)(this.sourceChangeKey_),this.sourceChangeKey_=null);var t=this.getSource();t&&(this.sourceChangeKey_=Object(r.a)(t,o.a.CHANGE,this.handleSourceChange_,this)),this.changed()},e.prototype.getFeatures=function(t){return this.renderer_.getFeatures(t)},e.prototype.render=function(t,e){var n=this.getRenderer();if(n.prepareFrame(t))return n.renderFrame(t,e)},e.prototype.setMap=function(t){this.mapPrecomposeKey_&&(Object(r.c)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(Object(r.c)(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=Object(r.a)(t,l.a.PRECOMPOSE,(function(t){t.frameState.layerStatesArray.push(this.getLayerState(!1))}),this),this.mapRenderKey_=Object(r.a)(this,o.a.CHANGE,t.render,t),this.changed())},e.prototype.setSource=function(t){this.set(u.a.SOURCE,t)},e.prototype.getRenderer=function(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_},e.prototype.hasRenderer=function(){return!!this.renderer_},e.prototype.createRenderer=function(){return null},e.prototype.disposeInternal=function(){this.setSource(null),t.prototype.disposeInternal.call(this)},e}(s.a);function d(t,e){if(!t.visible)return!1;var n=e.resolution;if(n<t.minResolution||n>=t.maxResolution)return!1;var i=e.zoom;return i>t.minZoom&&i<=t.maxZoom}e.a=f},function(t,e,n){"use strict";e.a={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},function(t,e,n){"use strict";var i=function(){function t(){this.disposed_=!1}return t.prototype.dispose=function(){this.disposed_||(this.disposed_=!0,this.disposeInternal())},t.prototype.disposeInternal=function(){},t}();e.a=i},function(t,e,n){"use strict";var i,r=n(1),o=n(0),a=n(12),s=n(32),u=n(7),c=n(21),l=n(8),h=n(16),p=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),f=Object(l.c)(),d=function(t){function e(){var e=t.call(this)||this;return e.extent_=Object(o.j)(),e.extentRevision_=-1,e.simplifiedGeometryMaxMinSquaredTolerance=0,e.simplifiedGeometryRevision=0,e.simplifyTransformedInternal=Object(h.d)((function(t,e,n){if(!n)return this.getSimplifiedGeometry(e);var i=this.clone();return i.applyTransform(n),i.getSimplifiedGeometry(e)})),e}return p(e,t),e.prototype.simplifyTransformed=function(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)},e.prototype.clone=function(){return Object(r.b)()},e.prototype.closestPointXY=function(t,e,n,i){return Object(r.b)()},e.prototype.containsXY=function(t,e){var n=this.getClosestPoint([t,e]);return n[0]===t&&n[1]===e},e.prototype.getClosestPoint=function(t,e){var n=e||[NaN,NaN];return this.closestPointXY(t[0],t[1],n,1/0),n},e.prototype.intersectsCoordinate=function(t){return this.containsXY(t[0],t[1])},e.prototype.computeExtent=function(t){return Object(r.b)()},e.prototype.getExtent=function(t){return this.extentRevision_!=this.getRevision()&&(this.extent_=this.computeExtent(this.extent_),this.extentRevision_=this.getRevision()),Object(o.I)(this.extent_,t)},e.prototype.rotate=function(t,e){Object(r.b)()},e.prototype.scale=function(t,e,n){Object(r.b)()},e.prototype.simplify=function(t){return this.getSimplifiedGeometry(t*t)},e.prototype.getSimplifiedGeometry=function(t){return Object(r.b)()},e.prototype.getType=function(){return Object(r.b)()},e.prototype.applyTransform=function(t){Object(r.b)()},e.prototype.intersectsExtent=function(t){return Object(r.b)()},e.prototype.translate=function(t,e){Object(r.b)()},e.prototype.transform=function(t,e){var n=Object(u.get)(t),i=n.getUnits()==c.b.TILE_PIXELS?function(t,i,r){var a=n.getExtent(),c=n.getWorldExtent(),h=Object(o.A)(c)/Object(o.A)(a);return Object(l.b)(f,c[0],c[3],h,-h,0,0,0),Object(s.c)(t,0,t.length,r,f,i),Object(u.getTransform)(n,e)(t,i,r)}:Object(u.getTransform)(n,e);return this.applyTransform(i),this},e}(a.a),_=n(22);n.d(e,"b",(function(){return m}));var g=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),v=function(t){function e(){var e=t.call(this)||this;return e.layout=_.a.XY,e.stride=2,e.flatCoordinates=null,e}return g(e,t),e.prototype.computeExtent=function(t){return Object(o.o)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinates=function(){return Object(r.b)()},e.prototype.getFirstCoordinate=function(){return this.flatCoordinates.slice(0,this.stride)},e.prototype.getFlatCoordinates=function(){return this.flatCoordinates},e.prototype.getLastCoordinate=function(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)},e.prototype.getLayout=function(){return this.layout},e.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;var e=this.getSimplifiedGeometryInternal(t);return e.getFlatCoordinates().length<this.flatCoordinates.length?e:(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)},e.prototype.getSimplifiedGeometryInternal=function(t){return this},e.prototype.getStride=function(){return this.stride},e.prototype.setFlatCoordinates=function(t,e){this.stride=y(t),this.layout=t,this.flatCoordinates=e},e.prototype.setCoordinates=function(t,e){Object(r.b)()},e.prototype.setLayout=function(t,e,n){var i;if(t)i=y(t);else{for(var r=0;r<n;++r){if(0===e.length)return this.layout=_.a.XY,void(this.stride=2);e=e[0]}t=function(t){var e;2==t?e=_.a.XY:3==t?e=_.a.XYZ:4==t&&(e=_.a.XYZM);return(e)}(i=e.length)}this.layout=t,this.stride=i},e.prototype.applyTransform=function(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())},e.prototype.rotate=function(t,e){var n=this.getFlatCoordinates();if(n){var i=this.getStride();Object(s.a)(n,0,n.length,i,t,e,n),this.changed()}},e.prototype.scale=function(t,e,n){var i=e;void 0===i&&(i=t);var r=n;r||(r=Object(o.x)(this.getExtent()));var a=this.getFlatCoordinates();if(a){var u=this.getStride();Object(s.b)(a,0,a.length,u,t,i,r,a),this.changed()}},e.prototype.translate=function(t,e){var n=this.getFlatCoordinates();if(n){var i=this.getStride();Object(s.d)(n,0,n.length,i,t,e,n),this.changed()}},e}(d);function y(t){var e;return t==_.a.XY?e=2:t==_.a.XYZ||t==_.a.XYM?e=3:t==_.a.XYZM&&(e=4),e}function m(t,e,n){var i=t.getFlatCoordinates();if(i){var r=t.getStride();return Object(s.c)(i,0,i.length,r,e,n)}return null}e.a=v},function(t,e,n){"use strict";e.a={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend"}},function(t,e,n){"use strict";function i(t,e,n,i,r){for(var o=void 0!==r?r:[],a=0,s=e;s<n;s+=i)o[a++]=t.slice(s,s+i);return o.length=a,o}function r(t,e,n,r,o){for(var a=void 0!==o?o:[],s=0,u=0,c=n.length;u<c;++u){var l=n[u];a[s++]=i(t,e,l,r,a[s]),e=l}return a.length=s,a}function o(t,e,n,i,o){for(var a=void 0!==o?o:[],s=0,u=0,c=n.length;u<c;++u){var l=n[u];a[s++]=r(t,e,l,i,a[s]),e=l[l.length-1]}return a.length=s,a}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a}));var i=n(0);function r(t,e,n,r,a){return!Object(i.t)(a,(function(i){return!o(t,e,n,r,i[0],i[1])}))}function o(t,e,n,i,r,o){for(var a=0,s=t[n-i],u=t[n-i+1];e<n;e+=i){var c=t[e],l=t[e+1];u<=o?l>o&&(c-s)*(o-u)-(r-s)*(l-u)>0&&a++:l<=o&&(c-s)*(o-u)-(r-s)*(l-u)<0&&a--,s=c,u=l}return 0!==a}function a(t,e,n,i,r,a){if(0===n.length)return!1;if(!o(t,e,n[0],i,r,a))return!1;for(var s=1,u=n.length;s<u;++s)if(o(t,n[s-1],n[s],i,r,a))return!1;return!0}},function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"d",(function(){return o})),n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return s}));var i=n(6);function r(t){return void 0!==t?0:void 0}function o(t){return void 0!==t?t:void 0}function a(t){var e=2*Math.PI/t;return(function(t,n){return n?t:void 0!==t?t=Math.floor(t/e+.5)*e:void 0})}function s(t){var e=t||Object(i.i)(5);return(function(t,n){return n?t:void 0!==t?Math.abs(t)<=e?0:t:void 0})}},function(t,e,n){"use strict";e.a={FRACTION:"fraction",PIXELS:"pixels"}},function(t,e,n){"use strict";var i=n(15),r=n(0),o=n(22),a=n(4),s=n(44);function u(t,e,n,i){for(var r=0,o=t[n-i],a=t[n-i+1];e<n;e+=i){var s=t[e],u=t[e+1];r+=a*s-o*u,o=s,a=u}return r/2}function c(t,e,n,i){for(var r=0,o=0,a=n.length;o<a;++o){var s=n[o];r+=u(t,e,s,i),e=s}return r}var l,h=n(51),p=n(53),f=n(46),d=n(54),_=(l=function(t,e){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),g=function(t){function e(e,n){var i=t.call(this)||this;return i.maxDelta_=-1,i.maxDeltaRevision_=-1,void 0===n||Array.isArray(e[0])?i.setCoordinates(e,n):i.setFlatCoordinates(n,e),i}return _(e,t),e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout)},e.prototype.closestPointXY=function(t,e,n,i){return i<Object(r.e)(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(h.d)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(h.c)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,e,n,i))},e.prototype.getArea=function(){return u(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinates=function(){return Object(f.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[];return n.length=Object(d.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,n,0),new e(n,o.a.XY)},e.prototype.getType=function(){return a.a.LINEAR_RING},e.prototype.intersectsExtent=function(t){return!1},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(p.b)(this.flatCoordinates,0,t,this.stride),this.changed()},e}(s.a),v=n(81),y=(n(61),n(47));function m(t,e,n,r,o,a,s){for(var u,c,l,h,p,f,d,_=o[a+1],g=[],v=0,m=n.length;v<m;++v){var b=n[v];for(h=t[b-r],f=t[b-r+1],u=e;u<b;u+=r)p=t[u],d=t[u+1],(_<=f&&d<=_||f<=_&&_<=d)&&(l=(_-f)/(d-f)*(p-h)+h,g.push(l)),h=p,f=d}var O=NaN,E=-1/0;for(g.sort(i.f),h=g[0],u=1,c=g.length;u<c;++u){p=g[u];var T=Math.abs(p-h);T>E&&(l=(h+p)/2,Object(y.c)(t,e,n,r,l,_)&&(O=l,E=T)),h=p}return isNaN(O)&&(O=o[a]),s?(s.push(O,_,E),s):[O,_,E]}var b=n(69);function O(t,e,n,i){for(;e<n-i;){for(var r=0;r<i;++r){var o=t[e+r];t[e+r]=t[n-i+r],t[n-i+r]=o}e+=i,n-=i}}function E(t,e,n,i){for(var r=0,o=t[n-i],a=t[n-i+1];e<n;e+=i){var s=t[e],u=t[e+1];r+=(s-o)*(u+a),o=s,a=u}return r>0}function T(t,e,n,i,r){for(var o=void 0!==r&&r,a=0,s=n.length;a<s;++a){var u=n[a],c=E(t,e,u,i);if(0===a){if(o&&c||!o&&!c)return!1}else if(o&&!c||!o&&c)return!1;e=u}return!0}function x(t,e,n,i,r){for(var o=void 0!==r&&r,a=0,s=n.length;a<s;++a){var u=n[a],c=E(t,e,u,i);(0===a?o&&c||!o&&!c:o&&!c||!o&&c)&&O(t,e,u,i),e=u}return e}n(6);n.d(e,"b",(function(){return I}));var C=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),S=function(t){function e(e,n,i){var r=t.call(this)||this;return r.ends_=[],r.flatInteriorPointRevision_=-1,r.flatInteriorPoint_=null,r.maxDelta_=-1,r.maxDeltaRevision_=-1,r.orientedRevision_=-1,r.orientedFlatCoordinates_=null,void 0!==n&&i?(r.setFlatCoordinates(n,e),r.ends_=i):r.setCoordinates(e,n),r}return C(e,t),e.prototype.appendLinearRing=function(t){this.flatCoordinates?Object(i.c)(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout,this.ends_.slice())},e.prototype.closestPointXY=function(t,e,n,i){return i<Object(r.e)(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(h.a)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(h.b)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,t,e,n,i))},e.prototype.containsXY=function(t,e){return Object(y.c)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)},e.prototype.getArea=function(){return c(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)},e.prototype.getCoordinates=function(t){var e;return void 0!==t?x(e=this.getOrientedFlatCoordinates().slice(),0,this.ends_,this.stride,t):e=this.flatCoordinates,Object(f.b)(e,0,this.ends_,this.stride)},e.prototype.getEnds=function(){return this.ends_},e.prototype.getFlatInteriorPoint=function(){if(this.flatInteriorPointRevision_!=this.getRevision()){var t=Object(r.x)(this.getExtent());this.flatInteriorPoint_=m(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_},e.prototype.getInteriorPoint=function(){return new v.default(this.getFlatInteriorPoint(),o.a.XYM)},e.prototype.getLinearRingCount=function(){return this.ends_.length},e.prototype.getLinearRing=function(t){return t<0||this.ends_.length<=t?null:new g(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)},e.prototype.getLinearRings=function(){for(var t=this.layout,e=this.flatCoordinates,n=this.ends_,i=[],r=0,o=0,a=n.length;o<a;++o){var s=n[o],u=new g(e.slice(r,s),t);i.push(u),r=s}return i},e.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var t=this.flatCoordinates;T(t,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=x(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[],i=[];return n.length=Object(d.b)(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),n,0,i),new e(n,o.a.XY,i)},e.prototype.getType=function(){return a.a.POLYGON},e.prototype.intersectsExtent=function(t){return Object(b.b)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);var n=Object(p.c)(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()},e}(s.a);e.a=S;function I(t){var e=t[0],n=t[1],i=t[2],r=t[3],a=[e,n,e,r,i,r,i,n,e,n];return new S(a,o.a.XY,[a.length])}},function(t,e,n){"use strict";n.d(e,"d",(function(){return o})),n.d(e,"a",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return u}));var i=n(6);function r(t,e,n,r,o,a,s){var u,c=t[e],l=t[e+1],h=t[n]-c,p=t[n+1]-l;if(0===h&&0===p)u=e;else{var f=((o-c)*h+(a-l)*p)/(h*h+p*p);if(f>1)u=n;else{if(f>0){for(var d=0;d<r;++d)s[d]=Object(i.c)(t[e+d],t[n+d],f);return void(s.length=r)}u=e}}for(d=0;d<r;++d)s[d]=t[u+d];s.length=r}function o(t,e,n,r,o){var a=t[e],s=t[e+1];for(e+=r;e<n;e+=r){var u=t[e],c=t[e+1],l=Object(i.f)(a,s,u,c);l>o&&(o=l),a=u,s=c}return o}function a(t,e,n,i,r){for(var a=0,s=n.length;a<s;++a){var u=n[a];r=o(t,e,u,i,r),e=u}return r}function s(t,e,n,o,a,s,u,c,l,h,p){if(e==n)return h;var f,d;if(0===a){if((d=Object(i.f)(u,c,t[e],t[e+1]))<h){for(f=0;f<o;++f)l[f]=t[e+f];return l.length=o,d}return h}for(var _=p||[NaN,NaN],g=e+o;g<n;)if(r(t,g-o,g,o,u,c,_),(d=Object(i.f)(u,c,_[0],_[1]))<h){for(h=d,f=0;f<o;++f)l[f]=_[f];l.length=o,g+=o}else g+=o*Math.max((Math.sqrt(d)-Math.sqrt(h))/a|0,1);if(s&&(r(t,n-o,e,o,u,c,_),(d=Object(i.f)(u,c,_[0],_[1]))<h)){for(h=d,f=0;f<o;++f)l[f]=_[f];l.length=o}return h}function u(t,e,n,i,r,o,a,u,c,l,h){for(var p=h||[NaN,NaN],f=0,d=n.length;f<d;++f){var _=n[f];l=s(t,e,_,i,r,o,a,u,c,l,p),e=_}return l}},function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return p})),n.d(e,"c",(function(){return d}));var i=n(10),r=n(6),o=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,a=/^([a-z]*)$|^hsla?\(.*\)$/i;function s(t){return"string"==typeof t?t:d(t)}function u(t){var e=document.createElement("div");if(e.style.color=t,""!==e.style.color){document.body.appendChild(e);var n=getComputedStyle(e).color;return document.body.removeChild(e),n}return""}var c,l,h=(c={},l=0,function(t){var e;if(c.hasOwnProperty(t))e=c[t];else{if(l>=1024){var n=0;for(var r in c)0==(3&n++)&&(delete c[r],--l)}e=function(t){var e,n,r,s,c;if(a.exec(t)&&(t=u(t)),o.exec(t)){var l=t.length-1,h=void 0;h=l<=4?1:2;var p=4===l||8===l;e=parseInt(t.substr(1+0*h,h),16),n=parseInt(t.substr(1+1*h,h),16),r=parseInt(t.substr(1+2*h,h),16),s=p?parseInt(t.substr(1+3*h,h),16):255,1==h&&(e=(e<<4)+e,n=(n<<4)+n,r=(r<<4)+r,p&&(s=(s<<4)+s)),c=[e,n,r,s/255]}else 0==t.indexOf("rgba(")?f(c=t.slice(5,-1).split(",").map(Number)):0==t.indexOf("rgb(")?((c=t.slice(4,-1).split(",").map(Number)).push(1),f(c)):Object(i.a)(!1,14);return c}(t),c[t]=e,++l}return e});function p(t){return Array.isArray(t)?t:h(t)}function f(t){return t[0]=Object(r.a)(t[0]+.5|0,0,255),t[1]=Object(r.a)(t[1]+.5|0,0,255),t[2]=Object(r.a)(t[2]+.5|0,0,255),t[3]=Object(r.a)(t[3],0,1),t}function d(t){var e=t[0];e!=(0|e)&&(e=e+.5|0);var n=t[1];n!=(0|n)&&(n=n+.5|0);var i=t[2];return i!=(0|i)&&(i=i+.5|0),"rgba("+e+","+n+","+i+","+(void 0===t[3]?1:t[3])+")"}},function(t,e,n){"use strict";function i(t,e,n,i){for(var r=0,o=n.length;r<o;++r)t[e++]=n[r];return e}function r(t,e,n,i){for(var r=0,o=n.length;r<o;++r)for(var a=n[r],s=0;s<i;++s)t[e++]=a[s];return e}function o(t,e,n,i,o){for(var a=o||[],s=0,u=0,c=n.length;u<c;++u){var l=r(t,e,n[u],i);a[s++]=l,e=l}return a.length=s,a}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return s}));var i=n(6);function r(t,e,n,r,o,a,s){var u=(n-e)/r;if(u<3){for(;e<n;e+=r)a[s++]=t[e],a[s++]=t[e+1];return s}var c=new Array(u);c[0]=1,c[u-1]=1;for(var l=[e,n-r],h=0;l.length>0;){for(var p=l.pop(),f=l.pop(),d=0,_=t[f],g=t[f+1],v=t[p],y=t[p+1],m=f+r;m<p;m+=r){var b=t[m],O=t[m+1],E=Object(i.g)(b,O,_,g,v,y);E>d&&(h=m,d=E)}d>o&&(c[(h-e)/r]=1,f+r<h&&l.push(f,h),h+r<p&&l.push(h,p))}for(m=0;m<u;++m)c[m]&&(a[s++]=t[e+m*r],a[s++]=t[e+m*r+1]);return s}function o(t,e){return e*Math.round(t/e)}function a(t,e,n,i,r,a,s){if(e==n)return s;var u,c,l=o(t[e],r),h=o(t[e+1],r);e+=i,a[s++]=l,a[s++]=h;do{if(u=o(t[e],r),c=o(t[e+1],r),(e+=i)==n)return a[s++]=u,a[s++]=c,s}while(u==l&&c==h);for(;e<n;){var p=o(t[e],r),f=o(t[e+1],r);if(e+=i,p!=u||f!=c){var d=u-l,_=c-h,g=p-l,v=f-h;d*v==_*g&&(d<0&&g<d||d==g||d>0&&g>d)&&(_<0&&v<_||_==v||_>0&&v>_)?(u=p,c=f):(a[s++]=u,a[s++]=c,l=u,h=c,u=p,c=f)}}return a[s++]=u,a[s++]=c,s}function s(t,e,n,i,r,o,s,u){for(var c=0,l=n.length;c<l;++c){var h=n[c];s=a(t,e,h,i,r,o,s),u.push(s),e=h}return s}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return h})),n.d(e,"d",(function(){return p}));var i=n(1),r=n(18),o=n(4),a=n(20),s=.5,u={Point:function(t,e,n,i){var o=n.getImage();if(o){if(o.getImageState()!=r.a.LOADED)return;var s=t.getBuilder(n.getZIndex(),a.a.IMAGE);s.setImageStyle(o,t.addDeclutter(!1)),s.drawPoint(e,i)}var u=n.getText();if(u){var c=t.getBuilder(n.getZIndex(),a.a.TEXT);c.setTextStyle(u,t.addDeclutter(!!o)),c.drawText(e,i)}},LineString:function(t,e,n,i){var r=n.getStroke();if(r){var o=t.getBuilder(n.getZIndex(),a.a.LINE_STRING);o.setFillStrokeStyle(null,r),o.drawLineString(e,i)}var s=n.getText();if(s){var u=t.getBuilder(n.getZIndex(),a.a.TEXT);u.setTextStyle(s,t.addDeclutter(!1)),u.drawText(e,i)}},Polygon:function(t,e,n,i){var r=n.getFill(),o=n.getStroke();if(r||o){var s=t.getBuilder(n.getZIndex(),a.a.POLYGON);s.setFillStrokeStyle(r,o),s.drawPolygon(e,i)}var u=n.getText();if(u){var c=t.getBuilder(n.getZIndex(),a.a.TEXT);c.setTextStyle(u,t.addDeclutter(!1)),c.drawText(e,i)}},MultiPoint:function(t,e,n,i){var o=n.getImage();if(o){if(o.getImageState()!=r.a.LOADED)return;var s=t.getBuilder(n.getZIndex(),a.a.IMAGE);s.setImageStyle(o,t.addDeclutter(!1)),s.drawMultiPoint(e,i)}var u=n.getText();if(u){var c=t.getBuilder(n.getZIndex(),a.a.TEXT);c.setTextStyle(u,t.addDeclutter(!!o)),c.drawText(e,i)}},MultiLineString:function(t,e,n,i){var r=n.getStroke();if(r){var o=t.getBuilder(n.getZIndex(),a.a.LINE_STRING);o.setFillStrokeStyle(null,r),o.drawMultiLineString(e,i)}var s=n.getText();if(s){var u=t.getBuilder(n.getZIndex(),a.a.TEXT);u.setTextStyle(s,t.addDeclutter(!1)),u.drawText(e,i)}},MultiPolygon:function(t,e,n,i){var r=n.getFill(),o=n.getStroke();if(o||r){var s=t.getBuilder(n.getZIndex(),a.a.POLYGON);s.setFillStrokeStyle(r,o),s.drawMultiPolygon(e,i)}var u=n.getText();if(u){var c=t.getBuilder(n.getZIndex(),a.a.TEXT);c.setTextStyle(u,t.addDeclutter(!1)),c.drawText(e,i)}},GeometryCollection:function(t,e,n,i){var r,o,a=e.getGeometriesArray();for(r=0,o=a.length;r<o;++r){(0,u[a[r].getType()])(t,a[r],n,i)}},Circle:function(t,e,n,i){var r=n.getFill(),o=n.getStroke();if(r||o){var s=t.getBuilder(n.getZIndex(),a.a.CIRCLE);s.setFillStrokeStyle(r,o),s.drawCircle(e,i)}var u=n.getText();if(u){var c=t.getBuilder(n.getZIndex(),a.a.TEXT);c.setTextStyle(u,t.addDeclutter(!1)),c.drawText(e,i)}}};function c(t,e){return parseInt(Object(i.c)(t),10)-parseInt(Object(i.c)(e),10)}function l(t,e){var n=h(t,e);return n*n}function h(t,e){return s*t/e}function p(t,e,n,i,s,c){var l=!1,h=n.getImage();if(h){var p=h.getImageState();p==r.a.LOADED||p==r.a.ERROR?h.unlistenImageChange(s):(p==r.a.IDLE&&h.load(),p=h.getImageState(),h.listenImageChange(s),l=!0)}return function(t,e,n,i,r){var s=n.getGeometryFunction()(e);if(!s)return;var c=s.simplifyTransformed(i,r);if(n.getRenderer())!function t(e,n,i,r){if(n.getType()==o.a.GEOMETRY_COLLECTION){for(var s=n.getGeometries(),u=0,c=s.length;u<c;++u)t(e,s[u],i,r);return}e.getBuilder(i.getZIndex(),a.a.DEFAULT).drawCustom(n,r,i.getRenderer())}(t,c,n,e);else{(0,u[c.getType()])(t,c,n,e)}}(t,e,n,i,c),l}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r}));var i=42,r=256},function(t,e,n){"use strict";e.a={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=function(){function t(t,e,n,i){this.minX=t,this.maxX=e,this.minY=n,this.maxY=i}return t.prototype.contains=function(t){return this.containsXY(t[1],t[2])},t.prototype.containsTileRange=function(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY},t.prototype.containsXY=function(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY},t.prototype.equals=function(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY},t.prototype.extend=function(t){t.minX<this.minX&&(this.minX=t.minX),t.maxX>this.maxX&&(this.maxX=t.maxX),t.minY<this.minY&&(this.minY=t.minY),t.maxY>this.maxY&&(this.maxY=t.maxY)},t.prototype.getHeight=function(){return this.maxY-this.minY+1},t.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},t.prototype.getWidth=function(){return this.maxX-this.minX+1},t.prototype.intersects=function(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY},t}();function r(t,e,n,r,o){return void 0!==o?(o.minX=t,o.maxX=e,o.minY=n,o.maxY=r,o):new i(t,e,n,r)}e.b=i},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n(52),r=function(){function t(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}return t.prototype.clear=function(){this.cache_={},this.cacheSize_=0},t.prototype.canExpireCache=function(){return this.cacheSize_>this.maxCacheSize_},t.prototype.expire=function(){if(this.canExpireCache()){var t=0;for(var e in this.cache_){var n=this.cache_[e];0!=(3&t++)||n.hasListener()||(delete this.cache_[e],--this.cacheSize_)}}},t.prototype.get=function(t,e,n){var i=o(t,e,n);return i in this.cache_?this.cache_[i]:null},t.prototype.set=function(t,e,n,i){var r=o(t,e,n);this.cache_[r]=i,++this.cacheSize_},t.prototype.setSize=function(t){this.maxCacheSize_=t,this.expire()},t}();function o(t,e,n){return e+":"+t+":"+(n?Object(i.b)(n):"null")}var a=new r},function(t,e,n){"use strict";n.r(e);var i=function(){function t(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}return t.prototype.clone=function(){var e=this.getColor();return new t({color:Array.isArray(e)?e.slice():e||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()})},t.prototype.getColor=function(){return this.color_},t.prototype.getLineCap=function(){return this.lineCap_},t.prototype.getLineDash=function(){return this.lineDash_},t.prototype.getLineDashOffset=function(){return this.lineDashOffset_},t.prototype.getLineJoin=function(){return this.lineJoin_},t.prototype.getMiterLimit=function(){return this.miterLimit_},t.prototype.getWidth=function(){return this.width_},t.prototype.setColor=function(t){this.color_=t},t.prototype.setLineCap=function(t){this.lineCap_=t},t.prototype.setLineDash=function(t){this.lineDash_=t},t.prototype.setLineDashOffset=function(t){this.lineDashOffset_=t},t.prototype.setLineJoin=function(t){this.lineJoin_=t},t.prototype.setMiterLimit=function(t){this.miterLimit_=t},t.prototype.setWidth=function(t){this.width_=t},t}();e.default=i},function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a}));var i=n(6),r=(n(4),6371008.8);function o(t,e,n){var o=n||r,a=Object(i.i)(t[1]),s=Object(i.i)(e[1]),u=(s-a)/2,c=Object(i.i)(e[0]-t[0])/2,l=Math.sin(u)*Math.sin(u)+Math.sin(c)*Math.sin(c)*Math.cos(a)*Math.cos(s);return 2*o*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))}function a(t,e,n,o){var a=o||r,s=Object(i.i)(t[1]),u=Object(i.i)(t[0]),c=e/a,l=Math.asin(Math.sin(s)*Math.cos(c)+Math.cos(s)*Math.sin(c)*Math.cos(n)),h=u+Math.atan2(Math.sin(n)*Math.sin(c)*Math.cos(s),Math.cos(c)-Math.sin(s)*Math.sin(l));return[Object(i.h)(h),Object(i.h)(l)]}},function(t,e,n){"use strict";var i,r=n(15),o=n(33),a=n(0),s=n(4),u=n(44),c=n(32),l=n(68),h=n(3),p=n(8),f=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),d=function(t){function e(e,n,i,r,o,a,s){var u=t.call(this)||this;return u.context_=e,u.pixelRatio_=n,u.extent_=i,u.transform_=r,u.viewRotation_=o,u.squaredTolerance_=a,u.userTransform_=s,u.contextFillState_=null,u.contextStrokeState_=null,u.contextTextState_=null,u.fillState_=null,u.strokeState_=null,u.image_=null,u.imageAnchorX_=0,u.imageAnchorY_=0,u.imageHeight_=0,u.imageOpacity_=0,u.imageOriginX_=0,u.imageOriginY_=0,u.imageRotateWithView_=!1,u.imageRotation_=0,u.imageScale_=0,u.imageWidth_=0,u.text_="",u.textOffsetX_=0,u.textOffsetY_=0,u.textRotateWithView_=!1,u.textRotation_=0,u.textScale_=0,u.textFillState_=null,u.textStrokeState_=null,u.textState_=null,u.pixelCoordinates_=[],u.tmpLocalTransform_=Object(p.c)(),u}return f(e,t),e.prototype.drawImages_=function(t,e,n,i){if(this.image_){var r=Object(c.c)(t,e,n,2,this.transform_,this.pixelCoordinates_),o=this.context_,a=this.tmpLocalTransform_,s=o.globalAlpha;1!=this.imageOpacity_&&(o.globalAlpha=s*this.imageOpacity_);var u=this.imageRotation_;this.imageRotateWithView_&&(u+=this.viewRotation_);for(var l=0,h=r.length;l<h;l+=2){var f=r[l]-this.imageAnchorX_,d=r[l+1]-this.imageAnchorY_;if(0!==u||1!=this.imageScale_){var _=f+this.imageAnchorX_,g=d+this.imageAnchorY_;Object(p.b)(a,_,g,this.imageScale_,this.imageScale_,u,-_,-g),o.setTransform.apply(o,a)}o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,f,d,this.imageWidth_,this.imageHeight_)}0===u&&1==this.imageScale_||o.setTransform(1,0,0,1,0,0),1!=this.imageOpacity_&&(o.globalAlpha=s)}},e.prototype.drawText_=function(t,e,n,i){if(this.textState_&&""!==this.text_){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var r=Object(c.c)(t,e,n,i,this.transform_,this.pixelCoordinates_),o=this.context_,a=this.textRotation_;for(this.textRotateWithView_&&(a+=this.viewRotation_);e<n;e+=i){var s=r[e]+this.textOffsetX_,u=r[e+1]+this.textOffsetY_;if(0!==a||1!=this.textScale_){var l=Object(p.b)(this.tmpLocalTransform_,s,u,this.textScale_,this.textScale_,a,-s,-u);o.setTransform.apply(o,l)}this.textStrokeState_&&o.strokeText(this.text_,s,u),this.textFillState_&&o.fillText(this.text_,s,u)}0===a&&1==this.textScale_||o.setTransform(1,0,0,1,0,0)}},e.prototype.moveToLineTo_=function(t,e,n,i,r){var o=this.context_,a=Object(c.c)(t,e,n,i,this.transform_,this.pixelCoordinates_);o.moveTo(a[0],a[1]);var s=a.length;r&&(s-=2);for(var u=2;u<s;u+=2)o.lineTo(a[u],a[u+1]);return r&&o.closePath(),n},e.prototype.drawRings_=function(t,e,n,i){for(var r=0,o=n.length;r<o;++r)e=this.moveToLineTo_(t,e,n[r],i,!0);return e},e.prototype.drawCircle=function(t){if(Object(a.F)(this.extent_,t.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=Object(u.b)(t,this.transform_,this.pixelCoordinates_),n=e[2]-e[0],i=e[3]-e[1],r=Math.sqrt(n*n+i*i),o=this.context_;o.beginPath(),o.arc(e[0],e[1],r,0,2*Math.PI),this.fillState_&&o.fill(),this.strokeState_&&o.stroke()}""!==this.text_&&this.drawText_(t.getCenter(),0,2,2)}},e.prototype.setStyle=function(t){this.setFillStrokeStyle(t.getFill(),t.getStroke()),this.setImageStyle(t.getImage()),this.setTextStyle(t.getText())},e.prototype.setTransform=function(t){this.transform_=t},e.prototype.drawGeometry=function(t){switch(t.getType()){case s.a.POINT:this.drawPoint(t);break;case s.a.LINE_STRING:this.drawLineString(t);break;case s.a.POLYGON:this.drawPolygon(t);break;case s.a.MULTI_POINT:this.drawMultiPoint(t);break;case s.a.MULTI_LINE_STRING:this.drawMultiLineString(t);break;case s.a.MULTI_POLYGON:this.drawMultiPolygon(t);break;case s.a.GEOMETRY_COLLECTION:this.drawGeometryCollection(t);break;case s.a.CIRCLE:this.drawCircle(t)}},e.prototype.drawFeature=function(t,e){var n=e.getGeometryFunction()(t);n&&Object(a.F)(this.extent_,n.getExtent())&&(this.setStyle(e),this.drawGeometry(n))},e.prototype.drawGeometryCollection=function(t){for(var e=t.getGeometriesArray(),n=0,i=e.length;n<i;++n)this.drawGeometry(e[n])},e.prototype.drawPoint=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getFlatCoordinates(),n=t.getStride();this.image_&&this.drawImages_(e,0,e.length,n),""!==this.text_&&this.drawText_(e,0,e.length,n)},e.prototype.drawMultiPoint=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getFlatCoordinates(),n=t.getStride();this.image_&&this.drawImages_(e,0,e.length,n),""!==this.text_&&this.drawText_(e,0,e.length,n)},e.prototype.drawLineString=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(a.F)(this.extent_,t.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var e=this.context_,n=t.getFlatCoordinates();e.beginPath(),this.moveToLineTo_(n,0,n.length,t.getStride(),!1),e.stroke()}if(""!==this.text_){var i=t.getFlatMidpoint();this.drawText_(i,0,2,2)}}},e.prototype.drawMultiLineString=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getExtent();if(Object(a.F)(this.extent_,e)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var n=this.context_,i=t.getFlatCoordinates(),r=0,o=t.getEnds(),s=t.getStride();n.beginPath();for(var u=0,c=o.length;u<c;++u)r=this.moveToLineTo_(i,r,o[u],s,!1);n.stroke()}if(""!==this.text_){var l=t.getFlatMidpoints();this.drawText_(l,0,l.length,2)}}},e.prototype.drawPolygon=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(a.F)(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=this.context_;e.beginPath(),this.drawRings_(t.getOrientedFlatCoordinates(),0,t.getEnds(),t.getStride()),this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){var n=t.getFlatInteriorPoint();this.drawText_(n,0,2,2)}}},e.prototype.drawMultiPolygon=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(a.F)(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=this.context_,n=t.getOrientedFlatCoordinates(),i=0,r=t.getEndss(),o=t.getStride();e.beginPath();for(var s=0,u=r.length;s<u;++s){var c=r[s];i=this.drawRings_(n,i,c,o)}this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){var l=t.getFlatInteriorPoints();this.drawText_(l,0,l.length,2)}}},e.prototype.setContextFillState_=function(t){var e=this.context_,n=this.contextFillState_;n?n.fillStyle!=t.fillStyle&&(n.fillStyle=t.fillStyle,e.fillStyle=t.fillStyle):(e.fillStyle=t.fillStyle,this.contextFillState_={fillStyle:t.fillStyle})},e.prototype.setContextStrokeState_=function(t){var e=this.context_,n=this.contextStrokeState_;n?(n.lineCap!=t.lineCap&&(n.lineCap=t.lineCap,e.lineCap=t.lineCap),e.setLineDash&&(Object(r.b)(n.lineDash,t.lineDash)||e.setLineDash(n.lineDash=t.lineDash),n.lineDashOffset!=t.lineDashOffset&&(n.lineDashOffset=t.lineDashOffset,e.lineDashOffset=t.lineDashOffset)),n.lineJoin!=t.lineJoin&&(n.lineJoin=t.lineJoin,e.lineJoin=t.lineJoin),n.lineWidth!=t.lineWidth&&(n.lineWidth=t.lineWidth,e.lineWidth=t.lineWidth),n.miterLimit!=t.miterLimit&&(n.miterLimit=t.miterLimit,e.miterLimit=t.miterLimit),n.strokeStyle!=t.strokeStyle&&(n.strokeStyle=t.strokeStyle,e.strokeStyle=t.strokeStyle)):(e.lineCap=t.lineCap,e.setLineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.lineWidth=t.lineWidth,e.miterLimit=t.miterLimit,e.strokeStyle=t.strokeStyle,this.contextStrokeState_={lineCap:t.lineCap,lineDash:t.lineDash,lineDashOffset:t.lineDashOffset,lineJoin:t.lineJoin,lineWidth:t.lineWidth,miterLimit:t.miterLimit,strokeStyle:t.strokeStyle})},e.prototype.setContextTextState_=function(t){var e=this.context_,n=this.contextTextState_,i=t.textAlign?t.textAlign:h.l;n?(n.font!=t.font&&(n.font=t.font,e.font=t.font),n.textAlign!=i&&(n.textAlign=i,e.textAlign=i),n.textBaseline!=t.textBaseline&&(n.textBaseline=t.textBaseline,e.textBaseline=t.textBaseline)):(e.font=t.font,e.textAlign=i,e.textBaseline=t.textBaseline,this.contextTextState_={font:t.font,textAlign:i,textBaseline:t.textBaseline})},e.prototype.setFillStrokeStyle=function(t,e){if(t){var n=t.getColor();this.fillState_={fillStyle:Object(o.a)(n||h.b)}}else this.fillState_=null;if(e){var i=e.getColor(),r=e.getLineCap(),a=e.getLineDash(),s=e.getLineDashOffset(),u=e.getLineJoin(),c=e.getWidth(),l=e.getMiterLimit();this.strokeState_={lineCap:void 0!==r?r:h.d,lineDash:a||h.e,lineDashOffset:s||h.f,lineJoin:void 0!==u?u:h.g,lineWidth:this.pixelRatio_*(void 0!==c?c:h.h),miterLimit:void 0!==l?l:h.i,strokeStyle:Object(o.a)(i||h.k)}}else this.strokeState_=null},e.prototype.setImageStyle=function(t){if(t){var e=t.getAnchor(),n=t.getImage(1),i=t.getOrigin(),r=t.getSize();this.imageAnchorX_=e[0],this.imageAnchorY_=e[1],this.imageHeight_=r[1],this.image_=n,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=i[0],this.imageOriginY_=i[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation(),this.imageScale_=t.getScale()*this.pixelRatio_,this.imageWidth_=r[0]}else this.image_=null},e.prototype.setTextStyle=function(t){if(t){var e=t.getFill();if(e){var n=e.getColor();this.textFillState_={fillStyle:Object(o.a)(n||h.b)}}else this.textFillState_=null;var i=t.getStroke();if(i){var r=i.getColor(),a=i.getLineCap(),s=i.getLineDash(),u=i.getLineDashOffset(),c=i.getLineJoin(),l=i.getWidth(),p=i.getMiterLimit();this.textStrokeState_={lineCap:void 0!==a?a:h.d,lineDash:s||h.e,lineDashOffset:u||h.f,lineJoin:void 0!==c?c:h.g,lineWidth:void 0!==l?l:h.h,miterLimit:void 0!==p?p:h.i,strokeStyle:Object(o.a)(r||h.k)}}else this.textStrokeState_=null;var f=t.getFont(),d=t.getOffsetX(),_=t.getOffsetY(),g=t.getRotateWithView(),v=t.getRotation(),y=t.getScale(),m=t.getText(),b=t.getTextAlign(),O=t.getTextBaseline();this.textState_={font:void 0!==f?f:h.c,textAlign:void 0!==b?b:h.l,textBaseline:void 0!==O?O:h.m},this.text_=void 0!==m?m:"",this.textOffsetX_=void 0!==d?this.pixelRatio_*d:0,this.textOffsetY_=void 0!==_?this.pixelRatio_*_:0,this.textRotateWithView_=void 0!==g&&g,this.textRotation_=void 0!==v?v:0,this.textScale_=this.pixelRatio_*(void 0!==y?y:1)}else this.text_=""},e}(l.a);e.a=d},function(t,e,n){"use strict";var i,r=n(2),o=n(37),a=n(5),s=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=function(t){function e(){var e=t.call(this)||this;return e.revision_=0,e}return s(e,t),e.prototype.changed=function(){++this.revision_,this.dispatchEvent(a.a.CHANGE)},e.prototype.getRevision=function(){return this.revision_},e.prototype.on=function(t,e){if(Array.isArray(t)){for(var n=t.length,i=new Array(n),o=0;o<n;++o)i[o]=Object(r.a)(this,t[o],e);return i}return Object(r.a)(this,t,e)},e.prototype.once=function(t,e){if(Array.isArray(t)){for(var n=t.length,i=new Array(n),o=0;o<n;++o)i[o]=Object(r.b)(this,t[o],e);return i}return Object(r.b)(this,t,e)},e.prototype.un=function(t,e){if(Array.isArray(t))for(var n=0,i=t.length;n<i;++n)this.removeEventListener(t[n],e);else this.removeEventListener(t,e)},e}(o.a);e.a=u},function(t,e,n){"use strict";var i,r=n(1),o=n(12),a=n(19),s=n(6),u=n(13),c=n(10),l=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),h=function(t){function e(e){var n=t.call(this)||this,i=Object(u.a)({},e);return i[a.a.OPACITY]=void 0!==e.opacity?e.opacity:1,Object(c.a)("number"==typeof i[a.a.OPACITY],64),i[a.a.VISIBLE]=void 0===e.visible||e.visible,i[a.a.Z_INDEX]=e.zIndex,i[a.a.MAX_RESOLUTION]=void 0!==e.maxResolution?e.maxResolution:1/0,i[a.a.MIN_RESOLUTION]=void 0!==e.minResolution?e.minResolution:0,i[a.a.MIN_ZOOM]=void 0!==e.minZoom?e.minZoom:-1/0,i[a.a.MAX_ZOOM]=void 0!==e.maxZoom?e.maxZoom:1/0,n.className_=void 0!==i.className?e.className:"ol-layer",delete i.className,n.setProperties(i),n.state_=null,n}return l(e,t),e.prototype.getClassName=function(){return this.className_},e.prototype.getLayerState=function(t){var e=this.state_||{layer:this,managed:void 0===t||t},n=this.getZIndex();return e.opacity=Object(s.a)(Math.round(100*this.getOpacity())/100,0,1),e.sourceState=this.getSourceState(),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=void 0!==n?n:!1===e.managed?1/0:0,e.maxResolution=this.getMaxResolution(),e.minResolution=Math.max(this.getMinResolution(),0),e.minZoom=this.getMinZoom(),e.maxZoom=this.getMaxZoom(),this.state_=e,e},e.prototype.getLayersArray=function(t){return Object(r.b)()},e.prototype.getLayerStatesArray=function(t){return Object(r.b)()},e.prototype.getExtent=function(){return this.get(a.a.EXTENT)},e.prototype.getMaxResolution=function(){return this.get(a.a.MAX_RESOLUTION)},e.prototype.getMinResolution=function(){return this.get(a.a.MIN_RESOLUTION)},e.prototype.getMinZoom=function(){return this.get(a.a.MIN_ZOOM)},e.prototype.getMaxZoom=function(){return this.get(a.a.MAX_ZOOM)},e.prototype.getOpacity=function(){return this.get(a.a.OPACITY)},e.prototype.getSourceState=function(){return Object(r.b)()},e.prototype.getVisible=function(){return this.get(a.a.VISIBLE)},e.prototype.getZIndex=function(){return this.get(a.a.Z_INDEX)},e.prototype.setExtent=function(t){this.set(a.a.EXTENT,t)},e.prototype.setMaxResolution=function(t){this.set(a.a.MAX_RESOLUTION,t)},e.prototype.setMinResolution=function(t){this.set(a.a.MIN_RESOLUTION,t)},e.prototype.setMaxZoom=function(t){this.set(a.a.MAX_ZOOM,t)},e.prototype.setMinZoom=function(t){this.set(a.a.MIN_ZOOM,t)},e.prototype.setOpacity=function(t){Object(c.a)("number"==typeof t,64),this.set(a.a.OPACITY,t)},e.prototype.setVisible=function(t){this.set(a.a.VISIBLE,t)},e.prototype.setZIndex=function(t){this.set(a.a.Z_INDEX,t)},e.prototype.disposeInternal=function(){this.state_&&(this.state_.layer=null,this.state_=null),t.prototype.disposeInternal.call(this)},e}(o.a);e.a=h},function(t,e,n){"use strict";var i,r=n(1),o=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=function(t){function e(e){var n=this,i="Assertion failed. See https://openlayers.org/en/"+("latest"===r.a?r.a:"v"+r.a.split("-")[0])+"/doc/errors/#"+e+" for details.";return(n=t.call(this,i)||this).code=e,n.name="AssertionError",n.message=i,n}return o(e,t),e}(Error);e.a=a},function(t,e,n){"use strict";var i,r=n(10),o=n(37),a=n(5),s=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=function(t){function e(e){var n=t.call(this)||this;return n.highWaterMark=void 0!==e?e:2048,n.count_=0,n.entries_={},n.oldest_=null,n.newest_=null,n}return s(e,t),e.prototype.canExpireCache=function(){return this.getCount()>this.highWaterMark},e.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null,this.dispatchEvent(a.a.CLEAR)},e.prototype.containsKey=function(t){return this.entries_.hasOwnProperty(t)},e.prototype.forEach=function(t){for(var e=this.oldest_;e;)t(e.value_,e.key_,this),e=e.newer},e.prototype.get=function(t,e){var n=this.entries_[t];return Object(r.a)(void 0!==n,15),n===this.newest_?n.value_:(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n,n.value_)},e.prototype.remove=function(t){var e=this.entries_[t];return Object(r.a)(void 0!==e,15),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_},e.prototype.getCount=function(){return this.count_},e.prototype.getKeys=function(){var t,e=new Array(this.count_),n=0;for(t=this.newest_;t;t=t.older)e[n++]=t.key_;return e},e.prototype.getValues=function(){var t,e=new Array(this.count_),n=0;for(t=this.newest_;t;t=t.older)e[n++]=t.value_;return e},e.prototype.peekLast=function(){return this.oldest_.value_},e.prototype.peekLastKey=function(){return this.oldest_.key_},e.prototype.peekFirstKey=function(){return this.newest_.key_},e.prototype.pop=function(){var t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_},e.prototype.replace=function(t,e){this.get(t),this.entries_[t].value_=e},e.prototype.set=function(t,e){Object(r.a)(!(t in this.entries_),16);var n={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[t]=n,++this.count_},e.prototype.setSize=function(t){this.highWaterMark=t},e}(o.a);e.a=u},function(t,e,n){"use strict";var i,r=n(26),o=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o.inversePixelTransform=n,o.frameState=i,o.context=r,o}return o(e,t),e}(r.a);e.a=a},function(t,e,n){"use strict";var i=function(){function t(){}return t.prototype.drawCustom=function(t,e,n){},t.prototype.drawGeometry=function(t){},t.prototype.setStyle=function(t){},t.prototype.drawCircle=function(t,e){},t.prototype.drawFeature=function(t,e){},t.prototype.drawGeometryCollection=function(t,e){},t.prototype.drawLineString=function(t,e){},t.prototype.drawMultiLineString=function(t,e){},t.prototype.drawMultiPoint=function(t,e){},t.prototype.drawMultiPolygon=function(t,e){},t.prototype.drawPoint=function(t,e){},t.prototype.drawPolygon=function(t,e){},t.prototype.drawText=function(t,e){},t.prototype.setFillStrokeStyle=function(t,e){},t.prototype.setImageStyle=function(t,e){},t.prototype.setTextStyle=function(t,e){},t}();e.a=i},function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return s}));var i=n(0),r=n(47),o=n(70);function a(t,e,n,r,a){var s=Object(i.s)(Object(i.j)(),t,e,n,r);return!!Object(i.F)(a,s)&&(!!Object(i.g)(a,s)||(s[0]>=a[0]&&s[2]<=a[2]||(s[1]>=a[1]&&s[3]<=a[3]||Object(o.a)(t,e,n,r,(function(t,e){return Object(i.G)(a,t,e)})))))}function s(t,e,n,i,o){if(!function(t,e,n,i,o){return!!a(t,e,n,i,o)||(!!Object(r.b)(t,e,n,i,o[0],o[1])||(!!Object(r.b)(t,e,n,i,o[0],o[3])||(!!Object(r.b)(t,e,n,i,o[2],o[1])||!!Object(r.b)(t,e,n,i,o[2],o[3]))))}(t,e,n[0],i,o))return!1;if(1===n.length)return!0;for(var s=1,u=n.length;s<u;++s)if(Object(r.a)(t,n[s-1],n[s],i,o)&&!a(t,n[s-1],n[s],i,o))return!1;return!0}},function(t,e,n){"use strict";function i(t,e,n,i,r){for(var o,a=[t[e],t[e+1]],s=[];e+i<n;e+=i){if(s[0]=t[e+i],s[1]=t[e+i+1],o=r(a,s))return o;a[0]=s[0],a[1]=s[1]}return!1}n.d(e,"a",(function(){return i}))},function(t,e,n){t.exports=function(){"use strict";function t(t,i,r,o,a){!function t(n,i,r,o,a){for(;o>r;){if(o-r>600){var s=o-r+1,u=i-r+1,c=Math.log(s),l=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*l*(s-l)/s)*(u-s/2<0?-1:1);t(n,i,Math.max(r,Math.floor(i-u*l/s+h)),Math.min(o,Math.floor(i+(s-u)*l/s+h)),a)}var p=n[i],f=r,d=o;for(e(n,r,i),a(n[o],p)>0&&e(n,r,o);f<d;){for(e(n,f,d),f++,d--;a(n[f],p)<0;)f++;for(;a(n[d],p)>0;)d--}0===a(n[r],p)?e(n,r,d):e(n,++d,o),d<=i&&(r=d+1),i<=d&&(o=d-1)}}(t,i,r||0,o||t.length-1,a||n)}function e(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function n(t,e){return t<e?-1:t>e?1:0}var i=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function r(t,e,n){if(!n)return e.indexOf(t);for(var i=0;i<e.length;i++)if(n(t,e[i]))return i;return-1}function o(t,e){a(t,0,t.children.length,e,t)}function a(t,e,n,i,r){r||(r=d(null)),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(var o=e;o<n;o++){var a=t.children[o];s(r,t.leaf?i(a):a)}return r}function s(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function u(t,e){return t.minX-e.minX}function c(t,e){return t.minY-e.minY}function l(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function h(t){return t.maxX-t.minX+(t.maxY-t.minY)}function p(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function f(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function d(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function _(e,n,i,r,o){for(var a=[n,i];a.length;)if(!((i=a.pop())-(n=a.pop())<=r)){var s=n+Math.ceil((i-n)/r/2)*r;t(e,s,n,i,o),a.push(n,s,s,i)}}return i.prototype.all=function(){return this._all(this.data,[])},i.prototype.search=function(t){var e=this.data,n=[];if(!f(t,e))return n;for(var i=this.toBBox,r=[];e;){for(var o=0;o<e.children.length;o++){var a=e.children[o],s=e.leaf?i(a):a;f(t,s)&&(e.leaf?n.push(a):p(t,s)?this._all(a,n):r.push(a))}e=r.pop()}return n},i.prototype.collides=function(t){var e=this.data;if(!f(t,e))return!1;for(var n=[];e;){for(var i=0;i<e.children.length;i++){var r=e.children[i],o=e.leaf?this.toBBox(r):r;if(f(t,o)){if(e.leaf||p(t,o))return!0;n.push(r)}}e=n.pop()}return!1},i.prototype.load=function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0;e<t.length;e++)this.insert(t[e]);return this}var n=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var i=this.data;this.data=n,n=i}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},i.prototype.insert=function(t){return t&&this._insert(t,this.data.height-1),this},i.prototype.clear=function(){return this.data=d([]),this},i.prototype.remove=function(t,e){if(!t)return this;for(var n,i,o,a=this.data,s=this.toBBox(t),u=[],c=[];a||u.length;){if(a||(a=u.pop(),i=u[u.length-1],n=c.pop(),o=!0),a.leaf){var l=r(t,a.children,e);if(-1!==l)return a.children.splice(l,1),u.push(a),this._condense(u),this}o||a.leaf||!p(a,s)?i?(n++,a=i.children[n],o=!1):a=null:(u.push(a),c.push(n),n=0,i=a,a=a.children[0])}return this},i.prototype.toBBox=function(t){return t},i.prototype.compareMinX=function(t,e){return t.minX-e.minX},i.prototype.compareMinY=function(t,e){return t.minY-e.minY},i.prototype.toJSON=function(){return this.data},i.prototype.fromJSON=function(t){return this.data=t,this},i.prototype._all=function(t,e){for(var n=[];t;)t.leaf?e.push.apply(e,t.children):n.push.apply(n,t.children),t=n.pop();return e},i.prototype._build=function(t,e,n,i){var r,a=n-e+1,s=this._maxEntries;if(a<=s)return o(r=d(t.slice(e,n+1)),this.toBBox),r;i||(i=Math.ceil(Math.log(a)/Math.log(s)),s=Math.ceil(a/Math.pow(s,i-1))),(r=d([])).leaf=!1,r.height=i;var u=Math.ceil(a/s),c=u*Math.ceil(Math.sqrt(s));_(t,e,n,c,this.compareMinX);for(var l=e;l<=n;l+=c){var h=Math.min(l+c-1,n);_(t,l,h,u,this.compareMinY);for(var p=l;p<=h;p+=u){var f=Math.min(p+u-1,h);r.children.push(this._build(t,p,f,i-1))}}return o(r,this.toBBox),r},i.prototype._chooseSubtree=function(t,e,n,i){for(;i.push(e),!e.leaf&&i.length-1!==n;){for(var r=1/0,o=1/0,a=void 0,s=0;s<e.children.length;s++){var u=e.children[s],c=l(u),h=(p=t,f=u,(Math.max(f.maxX,p.maxX)-Math.min(f.minX,p.minX))*(Math.max(f.maxY,p.maxY)-Math.min(f.minY,p.minY))-c);h<o?(o=h,r=c<r?c:r,a=u):h===o&&c<r&&(r=c,a=u)}e=a||e.children[0]}var p,f;return e},i.prototype._insert=function(t,e,n){var i=n?t:this.toBBox(t),r=[],o=this._chooseSubtree(i,this.data,e,r);for(o.children.push(t),s(o,i);e>=0&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(i,r,e)},i.prototype._split=function(t,e){var n=t[e],i=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,i);var a=this._chooseSplitIndex(n,r,i),s=d(n.children.splice(a,n.children.length-a));s.height=n.height,s.leaf=n.leaf,o(n,this.toBBox),o(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(n,s)},i.prototype._splitRoot=function(t,e){this.data=d([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},i.prototype._chooseSplitIndex=function(t,e,n){for(var i,r,o,s,u,c,h,p=1/0,f=1/0,d=e;d<=n-e;d++){var _=a(t,0,d,this.toBBox),g=a(t,d,n,this.toBBox),v=(r=_,o=g,s=Math.max(r.minX,o.minX),u=Math.max(r.minY,o.minY),c=Math.min(r.maxX,o.maxX),h=Math.min(r.maxY,o.maxY),Math.max(0,c-s)*Math.max(0,h-u)),y=l(_)+l(g);v<p?(p=v,i=d,f=y<f?y:f):v===p&&y<f&&(f=y,i=d)}return i||n-e},i.prototype._chooseSplitAxis=function(t,e,n){var i=t.leaf?this.compareMinX:u,r=t.leaf?this.compareMinY:c;this._allDistMargin(t,e,n,i)<this._allDistMargin(t,e,n,r)&&t.children.sort(i)},i.prototype._allDistMargin=function(t,e,n,i){t.children.sort(i);for(var r=this.toBBox,o=a(t,0,e,r),u=a(t,n-e,n,r),c=h(o)+h(u),l=e;l<n-e;l++){var p=t.children[l];s(o,t.leaf?r(p):p),c+=h(o)}for(var f=n-e-1;f>=e;f--){var d=t.children[f];s(u,t.leaf?r(d):d),c+=h(u)}return c},i.prototype._adjustParentBBoxes=function(t,e,n){for(var i=n;i>=0;i--)s(e[i],t)},i.prototype._condense=function(t){for(var e=t.length-1,n=void 0;e>=0;e--)0===t[e].children.length?e>0?(n=t[e-1].children).splice(n.indexOf(t[e]),1):this.clear():o(t[e],this.toBBox)},i}()},function(t,e,n){"use strict";function i(t,e,n,i){for(var r=t[e],o=t[e+1],a=0,s=e+i;s<n;s+=i){var u=t[s],c=t[s+1];a+=Math.sqrt((u-r)*(u-r)+(c-o)*(c-o)),r=u,o=c}return a}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";var i=n(1),r=function(){function t(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale}return t.prototype.clone=function(){return new t({opacity:this.getOpacity(),scale:this.getScale(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView()})},t.prototype.getOpacity=function(){return this.opacity_},t.prototype.getRotateWithView=function(){return this.rotateWithView_},t.prototype.getRotation=function(){return this.rotation_},t.prototype.getScale=function(){return this.scale_},t.prototype.getAnchor=function(){return Object(i.b)()},t.prototype.getImage=function(t){return Object(i.b)()},t.prototype.getHitDetectionImage=function(t){return Object(i.b)()},t.prototype.getImageState=function(){return Object(i.b)()},t.prototype.getImageSize=function(){return Object(i.b)()},t.prototype.getHitDetectionImageSize=function(){return Object(i.b)()},t.prototype.getOrigin=function(){return Object(i.b)()},t.prototype.getSize=function(){return Object(i.b)()},t.prototype.setOpacity=function(t){this.opacity_=t},t.prototype.setRotateWithView=function(t){this.rotateWithView_=t},t.prototype.setRotation=function(t){this.rotation_=t},t.prototype.setScale=function(t){this.scale_=t},t.prototype.listenImageChange=function(t){Object(i.b)()},t.prototype.load=function(){Object(i.b)()},t.prototype.unlistenImageChange=function(t){Object(i.b)()},t}();e.a=r},function(t,e,n){"use strict";var i,r=n(1),o=n(12),a=n(7),s=n(36),u=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t){function e(e){var n=t.call(this)||this;return n.projection_=Object(a.get)(e.projection),n.attributions_=l(e.attributions),n.attributionsCollapsible_=void 0===e.attributionsCollapsible||e.attributionsCollapsible,n.loading=!1,n.state_=void 0!==e.state?e.state:s.a.READY,n.wrapX_=void 0!==e.wrapX&&e.wrapX,n}return u(e,t),e.prototype.getAttributions=function(){return this.attributions_},e.prototype.getAttributionsCollapsible=function(){return this.attributionsCollapsible_},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolutions=function(){return Object(r.b)()},e.prototype.getState=function(){return this.state_},e.prototype.getWrapX=function(){return this.wrapX_},e.prototype.refresh=function(){this.changed()},e.prototype.setAttributions=function(t){this.attributions_=l(t),this.changed()},e.prototype.setState=function(t){this.state_=t,this.changed()},e}(o.a);function l(t){return t?Array.isArray(t)?function(e){return t}:"function"==typeof t?t:function(e){return[t]}:null}e.a=c},function(t,e,n){"use strict";var i,r=n(1),o=n(30),a=n(27),s=n(26),u=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.map=n,r.frameState=void 0!==i?i:null,r}return u(e,t),e}(s.a),l=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),h=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,o)||this;return a.originalEvent=i,a.pixel_=null,a.coordinate_=null,a.dragging=void 0!==r&&r,a}return l(e,t),Object.defineProperty(e.prototype,"pixel",{get:function(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_},set:function(t){this.pixel_=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"coordinate",{get:function(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_},set:function(t){this.coordinate_=t},enumerable:!0,configurable:!0}),e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this),this.originalEvent.preventDefault()},e.prototype.stopPropagation=function(){t.prototype.stopPropagation.call(this),this.originalEvent.stopPropagation()},e}(c),p=(n(80),n(29)),f=n(17),d=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),_=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i,r,o)||this;return a.pointerEvent=i,a}return d(e,t),e}(h),g=n(2),v=n(37),y=n(40),m=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),b=function(t){function e(e,n){var i=t.call(this,e)||this;i.map_=e,i.clickTimeoutId_,i.dragging_=!1,i.dragListenerKeys_=[],i.moveTolerance_=n?n*p.a:p.a,i.down_=null;var r=i.map_.getViewport();return i.activePointers_=0,i.trackedTouches_={},i.element_=r,i.pointerdownListenerKey_=Object(g.a)(r,y.a.POINTERDOWN,i.handlePointerDown_,i),i.relayedListenerKey_=Object(g.a)(r,y.a.POINTERMOVE,i.relayEvent_,i),i}return m(e,t),e.prototype.emulateClick_=function(t){var e=new _(f.a.CLICK,this.map_,t);this.dispatchEvent(e),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,e=new _(f.a.DBLCLICK,this.map_,t),this.dispatchEvent(e)):this.clickTimeoutId_=setTimeout(function(){this.clickTimeoutId_=void 0;var e=new _(f.a.SINGLECLICK,this.map_,t);this.dispatchEvent(e)}.bind(this),250)},e.prototype.updateActivePointers_=function(t){var e=t;e.type==f.a.POINTERUP||e.type==f.a.POINTERCANCEL?delete this.trackedTouches_[e.pointerId]:e.type==f.a.POINTERDOWN&&(this.trackedTouches_[e.pointerId]=!0),this.activePointers_=Object.keys(this.trackedTouches_).length},e.prototype.handlePointerUp_=function(t){this.updateActivePointers_(t);var e=new _(f.a.POINTERUP,this.map_,t);this.dispatchEvent(e),e.propagationStopped||this.dragging_||!this.isMouseActionButton_(t)||this.emulateClick_(this.down_),0===this.activePointers_&&(this.dragListenerKeys_.forEach(g.c),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)},e.prototype.isMouseActionButton_=function(t){return 0===t.button},e.prototype.handlePointerDown_=function(t){this.updateActivePointers_(t);var e=new _(f.a.POINTERDOWN,this.map_,t);this.dispatchEvent(e),this.down_=t,0===this.dragListenerKeys_.length&&this.dragListenerKeys_.push(Object(g.a)(document,f.a.POINTERMOVE,this.handlePointerMove_,this),Object(g.a)(document,f.a.POINTERUP,this.handlePointerUp_,this),Object(g.a)(this.element_,f.a.POINTERCANCEL,this.handlePointerUp_,this))},e.prototype.handlePointerMove_=function(t){if(this.isMoving_(t)){this.dragging_=!0;var e=new _(f.a.POINTERDRAG,this.map_,t,this.dragging_);this.dispatchEvent(e)}},e.prototype.relayEvent_=function(t){var e=!(!this.down_||!this.isMoving_(t));this.dispatchEvent(new _(t.type,this.map_,t,e))},e.prototype.isMoving_=function(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_},e.prototype.disposeInternal=function(){this.relayedListenerKey_&&(Object(g.c)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.pointerdownListenerKey_&&(Object(g.c)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(g.c),this.dragListenerKeys_.length=0,this.element_=null,t.prototype.disposeInternal.call(this)},e}(v.a),O=n(45),E=n(28),T=n(42),x=n(12),C=n(38),S=n(9),I=n(5),R=n(10),w=n(13),j=function(){function t(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}return t.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,Object(w.b)(this.queuedElements_)},t.prototype.dequeue=function(){var t=this.elements_,e=this.priorities_,n=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));var i=this.keyFunction_(n);return delete this.queuedElements_[i],n},t.prototype.enqueue=function(t){Object(R.a)(!(this.keyFunction_(t)in this.queuedElements_),31);var e=this.priorityFunction_(t);return e!=1/0&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)},t.prototype.getCount=function(){return this.elements_.length},t.prototype.getLeftChildIndex_=function(t){return 2*t+1},t.prototype.getRightChildIndex_=function(t){return 2*t+2},t.prototype.getParentIndex_=function(t){return t-1>>1},t.prototype.heapify_=function(){var t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)},t.prototype.isEmpty=function(){return 0===this.elements_.length},t.prototype.isKeyQueued=function(t){return t in this.queuedElements_},t.prototype.isQueued=function(t){return this.isKeyQueued(this.keyFunction_(t))},t.prototype.siftUp_=function(t){for(var e=this.elements_,n=this.priorities_,i=e.length,r=e[t],o=n[t],a=t;t<i>>1;){var s=this.getLeftChildIndex_(t),u=this.getRightChildIndex_(t),c=u<i&&n[u]<n[s]?u:s;e[t]=e[c],n[t]=n[c],t=c}e[t]=r,n[t]=o,this.siftDown_(a,t)},t.prototype.siftDown_=function(t,e){for(var n=this.elements_,i=this.priorities_,r=n[e],o=i[e];e>t;){var a=this.getParentIndex_(e);if(!(i[a]>o))break;n[e]=n[a],i[e]=i[a],e=a}n[e]=r,i[e]=o},t.prototype.reprioritize=function(){var t,e,n,i=this.priorityFunction_,r=this.elements_,o=this.priorities_,a=0,s=r.length;for(e=0;e<s;++e)(n=i(t=r[e]))==1/0?delete this.queuedElements_[this.keyFunction_(t)]:(o[a]=n,r[a++]=t);r.length=a,o.length=a,this.heapify_()},t}(),P=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),M=function(t){function e(e,n){var i=t.call(this,(function(t){return e.apply(null,t)}),(function(t){return t[0].getKey()}))||this;return i.boundHandleTileChange_=i.handleTileChange.bind(i),i.tileChangeCallback_=n,i.tilesLoading_=0,i.tilesLoadingKeys_={},i}return P(e,t),e.prototype.enqueue=function(e){var n=t.prototype.enqueue.call(this,e);n&&e[0].addEventListener(I.a.CHANGE,this.boundHandleTileChange_);return n},e.prototype.getTilesLoading=function(){return this.tilesLoading_},e.prototype.handleTileChange=function(t){var e=t.target,n=e.getState();if(e.hifi&&n===S.a.LOADED||n===S.a.ERROR||n===S.a.EMPTY||n===S.a.ABORT){e.removeEventListener(I.a.CHANGE,this.boundHandleTileChange_);var i=e.getKey();i in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[i],--this.tilesLoading_),this.tileChangeCallback_()}},e.prototype.loadMoreTiles=function(t,e){for(var n,i,r,o=0,a=!1;this.tilesLoading_<t&&o<e&&this.getCount()>0;)r=(i=this.dequeue()[0]).getKey(),(n=i.getState())===S.a.ABORT?a=!0:n!==S.a.IDLE||r in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[r]=!0,++this.tilesLoading_,++o,i.load());0===o&&a&&this.tileChangeCallback_()},e}(j),L=n(85),A=n(23),F=n(11),D=n(0),N=n(16),k=n(64),G=n(36),Y=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),X={LAYERS:"layers"},z=function(t){function e(e){var n=this,i=e||{},r=Object(w.a)({},i);delete r.layers;var a=i.layers;return(n=t.call(this,r)||this).layersListenerKeys_=[],n.listenerKeys_={},n.addEventListener(Object(x.b)(X.LAYERS),n.handleLayersChanged_),a?Array.isArray(a)?a=new o.a(a.slice(),{unique:!0}):Object(R.a)("function"==typeof a.getArray,43):a=new o.a(void 0,{unique:!0}),n.setLayers(a),n}return Y(e,t),e.prototype.handleLayerChange_=function(){this.changed()},e.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(g.c),this.layersListenerKeys_.length=0;var t=this.getLayers();for(var e in this.layersListenerKeys_.push(Object(g.a)(t,a.a.ADD,this.handleLayersAdd_,this),Object(g.a)(t,a.a.REMOVE,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[e].forEach(g.c);Object(w.b)(this.listenerKeys_);for(var n=t.getArray(),i=0,o=n.length;i<o;i++){var s=n[i];this.listenerKeys_[Object(r.c)(s)]=[Object(g.a)(s,C.a.PROPERTYCHANGE,this.handleLayerChange_,this),Object(g.a)(s,I.a.CHANGE,this.handleLayerChange_,this)]}this.changed()},e.prototype.handleLayersAdd_=function(t){var e=t.element;this.listenerKeys_[Object(r.c)(e)]=[Object(g.a)(e,C.a.PROPERTYCHANGE,this.handleLayerChange_,this),Object(g.a)(e,I.a.CHANGE,this.handleLayerChange_,this)],this.changed()},e.prototype.handleLayersRemove_=function(t){var e=t.element,n=Object(r.c)(e);this.listenerKeys_[n].forEach(g.c),delete this.listenerKeys_[n],this.changed()},e.prototype.getLayers=function(){return this.get(X.LAYERS)},e.prototype.setLayers=function(t){this.set(X.LAYERS,t)},e.prototype.getLayersArray=function(t){var e=void 0!==t?t:[];return this.getLayers().forEach((function(t){t.getLayersArray(e)})),e},e.prototype.getLayerStatesArray=function(t){var e=void 0!==t?t:[],n=e.length;this.getLayers().forEach((function(t){t.getLayerStatesArray(e)}));for(var i=this.getLayerState(),r=n,o=e.length;r<o;r++){var a=e[r];a.opacity*=i.opacity,a.visible=a.visible&&i.visible,a.maxResolution=Math.min(a.maxResolution,i.maxResolution),a.minResolution=Math.max(a.minResolution,i.minResolution),a.minZoom=Math.max(a.minZoom,i.minZoom),a.maxZoom=Math.min(a.maxZoom,i.maxZoom),void 0!==i.extent&&(void 0!==a.extent?a.extent=Object(D.B)(a.extent,i.extent):a.extent=i.extent)}return e},e.prototype.getSourceState=function(){return G.a.READY},e}(k.a),W=n(34),K=n(8),U=n(7),B=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function V(t,e){t.style.msTouchAction=e,t.style.touchAction=e,t.setAttribute("touch-action",e)}var Z=function(t){function e(e){var n=t.call(this)||this,i=function(t){var e=null;void 0!==t.keyboardEventTarget&&(e="string"==typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);var n,i,r,a={},s=t.layers&&"function"==typeof t.layers.getLayers?t.layers:new z({layers:t.layers});a[E.a.LAYERGROUP]=s,a[E.a.TARGET]=t.target,a[E.a.VIEW]=void 0!==t.view?t.view:new L.default,void 0!==t.controls&&(Array.isArray(t.controls)?n=new o.a(t.controls.slice()):(Object(R.a)("function"==typeof t.controls.getArray,47),n=t.controls));void 0!==t.interactions&&(Array.isArray(t.interactions)?i=new o.a(t.interactions.slice()):(Object(R.a)("function"==typeof t.interactions.getArray,48),i=t.interactions));void 0!==t.overlays?Array.isArray(t.overlays)?r=new o.a(t.overlays.slice()):(Object(R.a)("function"==typeof t.overlays.getArray,49),r=t.overlays):r=new o.a;return{controls:n,interactions:i,keyboardEventTarget:e,overlays:r,values:a}}(e);n.boundHandleBrowserEvent_=n.handleBrowserEvent.bind(n),n.maxTilesLoading_=void 0!==e.maxTilesLoading?e.maxTilesLoading:16,n.pixelRatio_=void 0!==e.pixelRatio?e.pixelRatio:p.a,n.postRenderTimeoutHandle_,n.animationDelayKey_,n.animationDelay_=function(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}.bind(n),n.coordinateToPixelTransform_=Object(K.c)(),n.pixelToCoordinateTransform_=Object(K.c)(),n.frameIndex_=0,n.frameState_=null,n.previousExtent_=null,n.viewPropertyListenerKey_=null,n.viewChangeListenerKey_=null,n.layerGroupPropertyListenerKeys_=null,n.viewport_=document.createElement("div"),n.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),n.viewport_.style.position="relative",n.viewport_.style.overflow="hidden",n.viewport_.style.width="100%",n.viewport_.style.height="100%",n.overlayContainer_=document.createElement("div"),n.overlayContainer_.style.position="absolute",n.overlayContainer_.style.zIndex="0",n.overlayContainer_.style.width="100%",n.overlayContainer_.style.height="100%",n.overlayContainer_.className="ol-overlaycontainer",n.viewport_.appendChild(n.overlayContainer_),n.overlayContainerStopEvent_=document.createElement("div"),n.overlayContainerStopEvent_.style.position="absolute",n.overlayContainerStopEvent_.style.zIndex="0",n.overlayContainerStopEvent_.style.width="100%",n.overlayContainerStopEvent_.style.height="100%",n.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",n.viewport_.appendChild(n.overlayContainerStopEvent_),n.mapBrowserEventHandler_=new b(n,e.moveTolerance);var r=n.handleMapBrowserEvent.bind(n);for(var s in f.a)n.mapBrowserEventHandler_.addEventListener(f.a[s],r);n.keyboardEventTarget_=i.keyboardEventTarget,n.keyHandlerKeys_=null,n.focusHandlerKeys_=null;var u=n.handleBrowserEvent.bind(n);return n.viewport_.addEventListener(I.a.CONTEXTMENU,u,!1),n.viewport_.addEventListener(I.a.WHEEL,u,!1),n.controls=i.controls||new o.a,n.interactions=i.interactions||new o.a,n.overlays_=i.overlays,n.overlayIdIndex_={},n.renderer_=null,n.handleResize_,n.postRenderFunctions_=[],n.tileQueue_=new M(n.getTilePriority.bind(n),n.handleTileChange_.bind(n)),n.addEventListener(Object(x.b)(E.a.LAYERGROUP),n.handleLayerGroupChanged_),n.addEventListener(Object(x.b)(E.a.VIEW),n.handleViewChanged_),n.addEventListener(Object(x.b)(E.a.SIZE),n.handleSizeChanged_),n.addEventListener(Object(x.b)(E.a.TARGET),n.handleTargetChanged_),n.setProperties(i.values),n.controls.forEach(function(t){t.setMap(this)}.bind(n)),n.controls.addEventListener(a.a.ADD,function(t){t.element.setMap(this)}.bind(n)),n.controls.addEventListener(a.a.REMOVE,function(t){t.element.setMap(null)}.bind(n)),n.interactions.forEach(function(t){t.setMap(this)}.bind(n)),n.interactions.addEventListener(a.a.ADD,function(t){t.element.setMap(this)}.bind(n)),n.interactions.addEventListener(a.a.REMOVE,function(t){t.element.setMap(null)}.bind(n)),n.overlays_.forEach(n.addOverlayInternal_.bind(n)),n.overlays_.addEventListener(a.a.ADD,function(t){this.addOverlayInternal_(t.element)}.bind(n)),n.overlays_.addEventListener(a.a.REMOVE,function(t){var e=t.element.getId();void 0!==e&&delete this.overlayIdIndex_[e.toString()],t.element.setMap(null)}.bind(n)),n}return B(e,t),e.prototype.createRenderer=function(){throw new Error("Use a map type that has a createRenderer method")},e.prototype.addControl=function(t){this.getControls().push(t)},e.prototype.addInteraction=function(t){this.getInteractions().push(t)},e.prototype.addLayer=function(t){this.getLayerGroup().getLayers().push(t)},e.prototype.addOverlay=function(t){this.getOverlays().push(t)},e.prototype.addOverlayInternal_=function(t){var e=t.getId();void 0!==e&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)},e.prototype.disposeInternal=function(){this.mapBrowserEventHandler_.dispose(),this.viewport_.removeEventListener(I.a.CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(I.a.WHEEL,this.boundHandleBrowserEvent_),void 0!==this.handleResize_&&(removeEventListener(I.a.RESIZE,this.handleResize_,!1),this.handleResize_=void 0),this.setTarget(null),t.prototype.disposeInternal.call(this)},e.prototype.forEachFeatureAtPixel=function(t,e,n){if(this.frameState_){var i=this.getCoordinateFromPixelInternal(t),r=void 0!==(n=void 0!==n?n:{}).hitTolerance?n.hitTolerance*this.frameState_.pixelRatio:0,o=void 0!==n.layerFilter?n.layerFilter:N.b,a=!1!==n.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(i,this.frameState_,r,a,e,null,o,null)}},e.prototype.getFeaturesAtPixel=function(t,e){var n=[];return this.forEachFeatureAtPixel(t,(function(t){n.push(t)}),e),n},e.prototype.forEachLayerAtPixel=function(t,e,n){if(this.frameState_){var i=n||{},r=void 0!==i.hitTolerance?i.hitTolerance*this.frameState_.pixelRatio:0,o=i.layerFilter||N.b;return this.renderer_.forEachLayerAtPixel(t,this.frameState_,r,e,o)}},e.prototype.hasFeatureAtPixel=function(t,e){if(!this.frameState_)return!1;var n=this.getCoordinateFromPixelInternal(t),i=void 0!==(e=void 0!==e?e:{}).layerFilter?e.layerFilter:N.b,r=void 0!==e.hitTolerance?e.hitTolerance*this.frameState_.pixelRatio:0,o=!1!==e.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(n,this.frameState_,r,o,i,null)},e.prototype.getEventCoordinate=function(t){return this.getCoordinateFromPixel(this.getEventPixel(t))},e.prototype.getEventCoordinateInternal=function(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))},e.prototype.getEventPixel=function(t){var e=this.viewport_.getBoundingClientRect(),n="changedTouches"in t?t.changedTouches[0]:t;return[n.clientX-e.left,n.clientY-e.top]},e.prototype.getTarget=function(){return this.get(E.a.TARGET)},e.prototype.getTargetElement=function(){var t=this.getTarget();return void 0!==t?"string"==typeof t?document.getElementById(t):t:null},e.prototype.getCoordinateFromPixel=function(t){return Object(U.toUserCoordinate)(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())},e.prototype.getCoordinateFromPixelInternal=function(t){var e=this.frameState_;return e?Object(K.a)(e.pixelToCoordinateTransform,t.slice()):null},e.prototype.getControls=function(){return this.controls},e.prototype.getOverlays=function(){return this.overlays_},e.prototype.getOverlayById=function(t){var e=this.overlayIdIndex_[t.toString()];return void 0!==e?e:null},e.prototype.getInteractions=function(){return this.interactions},e.prototype.getLayerGroup=function(){return this.get(E.a.LAYERGROUP)},e.prototype.getLayers=function(){return this.getLayerGroup().getLayers()},e.prototype.getLoading=function(){for(var t=this.getLayerGroup().getLayerStatesArray(),e=0,n=t.length;e<n;++e){var i=t[e].layer.getSource();if(i&&i.loading)return!0}return!1},e.prototype.getPixelFromCoordinate=function(t){var e=Object(U.fromUserCoordinate)(t,this.getView().getProjection());return this.getPixelFromCoordinateInternal(e)},e.prototype.getPixelFromCoordinateInternal=function(t){var e=this.frameState_;return e?Object(K.a)(e.coordinateToPixelTransform,t.slice(0,2)):null},e.prototype.getRenderer=function(){return this.renderer_},e.prototype.getSize=function(){return this.get(E.a.SIZE)},e.prototype.getView=function(){return this.get(E.a.VIEW)},e.prototype.getViewport=function(){return this.viewport_},e.prototype.getOverlayContainer=function(){return this.overlayContainer_},e.prototype.getOverlayContainerStopEvent=function(){return this.overlayContainerStopEvent_},e.prototype.getTilePriority=function(t,e,n,i){var r=this.frameState_;if(!(r&&e in r.wantedTiles))return 1/0;if(!r.wantedTiles[e][t.getKey()])return 1/0;var o=r.viewState.center,a=n[0]-o[0],s=n[1]-o[1];return 65536*Math.log(i)+Math.sqrt(a*a+s*s)/i},e.prototype.handleBrowserEvent=function(t,e){var n=e||t.type,i=new h(n,this,t);this.handleMapBrowserEvent(i)},e.prototype.handleMapBrowserEvent=function(t){if(this.frameState_){for(var e=t.originalEvent.target;e instanceof HTMLElement;){if(e.parentElement===this.overlayContainerStopEvent_)return;e=e.parentElement}t.frameState=this.frameState_;var n=this.getInteractions().getArray();if(!1!==this.dispatchEvent(t))for(var i=n.length-1;i>=0;i--){var r=n[i];if(r.getActive())if(!r.handleEvent(t))break}}},e.prototype.handlePostRender=function(){var t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){var n=this.maxTilesLoading_,i=n;if(t){var r=t.viewHints;if(r[A.a.ANIMATING]||r[A.a.INTERACTING]){var o=!p.c&&Date.now()-t.time>8;n=o?0:8,i=o?0:2}}e.getTilesLoading()<n&&(e.reprioritize(),e.loadMoreTiles(n,i))}!t||!this.hasListener(T.a.RENDERCOMPLETE)||t.animate||this.tileQueue_.getTilesLoading()||this.getLoading()||this.renderer_.dispatchRenderEvent(T.a.RENDERCOMPLETE,t);for(var a=this.postRenderFunctions_,s=0,u=a.length;s<u;++s)a[s](this,t);a.length=0},e.prototype.handleSizeChanged_=function(){this.getView()&&this.getView().resolveConstraints(0),this.render()},e.prototype.handleTargetChanged_=function(){var t;if(this.getTarget()&&(t=this.getTargetElement()),this.focusHandlerKeys_){for(var e=0,n=this.focusHandlerKeys_.length;e<n;++e)Object(g.c)(this.focusHandlerKeys_[e]);this.focusHandlerKeys_=null}if(this.keyHandlerKeys_){for(e=0,n=this.keyHandlerKeys_.length;e<n;++e)Object(g.c)(this.keyHandlerKeys_[e]);this.keyHandlerKeys_=null}if(t){t.appendChild(this.viewport_),this.renderer_||(this.renderer_=this.createRenderer());var i=!0;t.hasAttribute("tabindex")&&(i=document.activeElement===t,this.focusHandlerKeys_=[Object(g.a)(t,I.a.FOCUS,V.bind(this,this.viewport_,"none")),Object(g.a)(t,I.a.BLUR,V.bind(this,this.viewport_,"auto"))]),V(this.viewport_,i?"none":"auto");var r=this.keyboardEventTarget_?this.keyboardEventTarget_:t;this.keyHandlerKeys_=[Object(g.a)(r,I.a.KEYDOWN,this.handleBrowserEvent,this),Object(g.a)(r,I.a.KEYPRESS,this.handleBrowserEvent,this)],this.handleResize_||(this.handleResize_=this.updateSize.bind(this),window.addEventListener(I.a.RESIZE,this.handleResize_,!1))}else this.renderer_&&(clearTimeout(this.postRenderTimeoutHandle_),this.postRenderFunctions_.length=0,this.renderer_.dispose(),this.renderer_=null),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0),Object(F.e)(this.viewport_),void 0!==this.handleResize_&&(removeEventListener(I.a.RESIZE,this.handleResize_,!1),this.handleResize_=void 0);this.updateSize()},e.prototype.handleTileChange_=function(){this.render()},e.prototype.handleViewPropertyChanged_=function(){this.render()},e.prototype.handleViewChanged_=function(){this.viewPropertyListenerKey_&&(Object(g.c)(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&(Object(g.c)(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);var t=this.getView();t&&(this.viewport_.setAttribute("data-view",Object(r.c)(t)),this.viewPropertyListenerKey_=Object(g.a)(t,C.a.PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=Object(g.a)(t,I.a.CHANGE,this.handleViewPropertyChanged_,this),t.resolveConstraints(0)),this.render()},e.prototype.handleLayerGroupChanged_=function(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(g.c),this.layerGroupPropertyListenerKeys_=null);var t=this.getLayerGroup();t&&(this.layerGroupPropertyListenerKeys_=[Object(g.a)(t,C.a.PROPERTYCHANGE,this.render,this),Object(g.a)(t,I.a.CHANGE,this.render,this)]),this.render()},e.prototype.isRendered=function(){return!!this.frameState_},e.prototype.renderSync=function(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()},e.prototype.redrawText=function(){for(var t=this.getLayerGroup().getLayerStatesArray(),e=0,n=t.length;e<n;++e){var i=t[e].layer;i.hasRenderer()&&i.getRenderer().handleFontsChanged()}},e.prototype.render=function(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))},e.prototype.removeControl=function(t){return this.getControls().remove(t)},e.prototype.removeInteraction=function(t){return this.getInteractions().remove(t)},e.prototype.removeLayer=function(t){return this.getLayerGroup().getLayers().remove(t)},e.prototype.removeOverlay=function(t){return this.getOverlays().remove(t)},e.prototype.renderFrame_=function(t){var e=this.getSize(),n=this.getView(),i=this.frameState_,r=null;if(void 0!==e&&Object(W.a)(e)&&n&&n.isDef()){var o=n.getHints(this.frameState_?this.frameState_.viewHints:void 0),a=n.getState();r={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutterItems:i?i.declutterItems:[],extent:Object(D.z)(a.center,a.resolution,a.rotation,e),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:e,tileQueue:this.tileQueue_,time:t,usedTiles:{},viewState:a,viewHints:o,wantedTiles:{}}}if(this.frameState_=r,this.renderer_.renderFrame(r),r){if(r.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,r.postRenderFunctions),i)(!this.previousExtent_||!Object(D.H)(this.previousExtent_)&&!Object(D.p)(r.extent,this.previousExtent_))&&(this.dispatchEvent(new c(O.a.MOVESTART,this,i)),this.previousExtent_=Object(D.l)(this.previousExtent_));this.previousExtent_&&!r.viewHints[A.a.ANIMATING]&&!r.viewHints[A.a.INTERACTING]&&!Object(D.p)(r.extent,this.previousExtent_)&&(this.dispatchEvent(new c(O.a.MOVEEND,this,r)),Object(D.d)(r.extent,this.previousExtent_))}this.dispatchEvent(new c(O.a.POSTRENDER,this,r)),this.postRenderTimeoutHandle_=setTimeout(this.handlePostRender.bind(this),0)},e.prototype.setLayerGroup=function(t){this.set(E.a.LAYERGROUP,t)},e.prototype.setSize=function(t){this.set(E.a.SIZE,t)},e.prototype.setTarget=function(t){this.set(E.a.TARGET,t)},e.prototype.setView=function(t){this.set(E.a.VIEW,t)},e.prototype.updateSize=function(){var t=this.getTargetElement();if(t){var e=getComputedStyle(t);this.setSize([t.offsetWidth-parseFloat(e.borderLeftWidth)-parseFloat(e.paddingLeft)-parseFloat(e.paddingRight)-parseFloat(e.borderRightWidth),t.offsetHeight-parseFloat(e.borderTopWidth)-parseFloat(e.paddingTop)-parseFloat(e.paddingBottom)-parseFloat(e.borderBottomWidth)])}else this.setSize(void 0)},e}(x.a);e.a=Z},function(t,e,n){"use strict";n.r(e);var i,r=n(10),o=n(4),a=n(52),s=n(33),u=n(11),c=n(18),l=n(3),h=n(73),p=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),f=function(t){function e(e){var n=this,i=void 0!==e.rotateWithView&&e.rotateWithView;return(n=t.call(this,{opacity:1,rotateWithView:i,rotation:void 0!==e.rotation?e.rotation:0,scale:1})||this).canvas_=null,n.hitDetectionCanvas_=null,n.fill_=void 0!==e.fill?e.fill:null,n.origin_=[0,0],n.points_=e.points,n.radius_=void 0!==e.radius?e.radius:e.radius1,n.radius2_=e.radius2,n.angle_=void 0!==e.angle?e.angle:0,n.stroke_=void 0!==e.stroke?e.stroke:null,n.anchor_=null,n.size_=null,n.imageSize_=null,n.hitDetectionImageSize_=null,n.render(),n}return p(e,t),e.prototype.clone=function(){var t=new e({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView()});return t.setOpacity(this.getOpacity()),t.setScale(this.getScale()),t},e.prototype.getAnchor=function(){return this.anchor_},e.prototype.getAngle=function(){return this.angle_},e.prototype.getFill=function(){return this.fill_},e.prototype.getHitDetectionImage=function(t){return this.hitDetectionCanvas_},e.prototype.getImage=function(t){return this.canvas_},e.prototype.getImageSize=function(){return this.imageSize_},e.prototype.getHitDetectionImageSize=function(){return this.hitDetectionImageSize_},e.prototype.getImageState=function(){return c.a.LOADED},e.prototype.getOrigin=function(){return this.origin_},e.prototype.getPoints=function(){return this.points_},e.prototype.getRadius=function(){return this.radius_},e.prototype.getRadius2=function(){return this.radius2_},e.prototype.getSize=function(){return this.size_},e.prototype.getStroke=function(){return this.stroke_},e.prototype.listenImageChange=function(t){},e.prototype.load=function(){},e.prototype.unlistenImageChange=function(t){},e.prototype.render=function(){var t,e=l.d,n=l.g,i=0,r=null,o=0,a=0;this.stroke_&&(null===(t=this.stroke_.getColor())&&(t=l.k),t=Object(s.a)(t),void 0===(a=this.stroke_.getWidth())&&(a=l.h),r=this.stroke_.getLineDash(),o=this.stroke_.getLineDashOffset(),void 0===(n=this.stroke_.getLineJoin())&&(n=l.g),void 0===(e=this.stroke_.getLineCap())&&(e=l.d),void 0===(i=this.stroke_.getMiterLimit())&&(i=l.i));var c=2*(this.radius_+a)+1,h={strokeStyle:t,strokeWidth:a,size:c,lineCap:e,lineDash:r,lineDashOffset:o,lineJoin:n,miterLimit:i},p=Object(u.a)(c,c);this.canvas_=p.canvas;var f=c=this.canvas_.width;this.draw_(h,p,0,0),this.createHitDetectionCanvas_(h),this.anchor_=[c/2,c/2],this.size_=[c,c],this.imageSize_=[f,f]},e.prototype.draw_=function(t,e,n,i){var r,o,a;e.setTransform(1,0,0,1,0,0),e.translate(n,i),e.beginPath();var u=this.points_;if(u===1/0)e.arc(t.size/2,t.size/2,this.radius_,0,2*Math.PI,!0);else{var c=void 0!==this.radius2_?this.radius2_:this.radius_;for(c!==this.radius_&&(u*=2),r=0;r<=u;r++)o=2*r*Math.PI/u-Math.PI/2+this.angle_,a=r%2==0?this.radius_:c,e.lineTo(t.size/2+a*Math.cos(o),t.size/2+a*Math.sin(o))}if(this.fill_){var h=this.fill_.getColor();null===h&&(h=l.b),e.fillStyle=Object(s.a)(h),e.fill()}this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,e.setLineDash&&t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineCap=t.lineCap,e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke()),e.closePath()},e.prototype.createHitDetectionCanvas_=function(t){if(this.hitDetectionImageSize_=[t.size,t.size],this.hitDetectionCanvas_=this.canvas_,this.fill_){var e=this.fill_.getColor(),n=0;if("string"==typeof e&&(e=Object(a.a)(e)),null===e?n=1:Array.isArray(e)&&(n=4===e.length?e[3]:1),0===n){var i=Object(u.a)(t.size,t.size);this.hitDetectionCanvas_=i.canvas,this.drawHitDetectionCanvas_(t,i,0,0)}}},e.prototype.drawHitDetectionCanvas_=function(t,e,n,i){e.setTransform(1,0,0,1,0,0),e.translate(n,i),e.beginPath();var r=this.points_;if(r===1/0)e.arc(t.size/2,t.size/2,this.radius_,0,2*Math.PI,!0);else{var o=void 0!==this.radius2_?this.radius2_:this.radius_;o!==this.radius_&&(r*=2);var a=void 0,s=void 0,u=void 0;for(a=0;a<=r;a++)u=2*a*Math.PI/r-Math.PI/2+this.angle_,s=a%2==0?this.radius_:o,e.lineTo(t.size/2+s*Math.cos(u),t.size/2+s*Math.sin(u))}e.fillStyle=l.b,e.fill(),this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.stroke()),e.closePath()},e}(h.a),d=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),_=function(t){function e(e){var n=e||{};return t.call(this,{points:1/0,fill:n.fill,radius:n.radius,stroke:n.stroke})||this}return d(e,t),e.prototype.clone=function(){var t=new e({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius()});return t.setOpacity(this.getOpacity()),t.setScale(this.getScale()),t},e.prototype.setRadius=function(t){this.radius_=t,this.render()},e}(f),g=function(){function t(t){var e=t||{};this.color_=void 0!==e.color?e.color:null}return t.prototype.clone=function(){var e=this.getColor();return new t({color:Array.isArray(e)?e.slice():e||void 0})},t.prototype.getColor=function(){return this.color_},t.prototype.setColor=function(t){this.color_=t},t}(),v=n(60);n.d(e,"toFunction",(function(){return m})),n.d(e,"createDefaultStyle",(function(){return O})),n.d(e,"createEditingStyle",(function(){return E}));var y=function(){function t(t){var e=t||{};this.geometry_=null,this.geometryFunction_=T,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}return t.prototype.clone=function(){var e=this.getGeometry();return e&&"object"==typeof e&&(e=e.clone()),new t({geometry:e,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()})},t.prototype.getRenderer=function(){return this.renderer_},t.prototype.setRenderer=function(t){this.renderer_=t},t.prototype.getGeometry=function(){return this.geometry_},t.prototype.getGeometryFunction=function(){return this.geometryFunction_},t.prototype.getFill=function(){return this.fill_},t.prototype.setFill=function(t){this.fill_=t},t.prototype.getImage=function(){return this.image_},t.prototype.setImage=function(t){this.image_=t},t.prototype.getStroke=function(){return this.stroke_},t.prototype.setStroke=function(t){this.stroke_=t},t.prototype.getText=function(){return this.text_},t.prototype.setText=function(t){this.text_=t},t.prototype.getZIndex=function(){return this.zIndex_},t.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_=T,this.geometry_=t},t.prototype.setZIndex=function(t){this.zIndex_=t},t}();function m(t){var e;if("function"==typeof t)e=t;else{var n;if(Array.isArray(t))n=t;else Object(r.a)("function"==typeof t.getZIndex,41),n=[t];e=function(){return n}}return e}var b=null;function O(t,e){if(!b){var n=new g({color:"rgba(255,255,255,0.4)"}),i=new v.default({color:"#3399CC",width:1.25});b=[new y({image:new _({fill:n,stroke:i,radius:5}),fill:n,stroke:i})]}return b}function E(){var t={},e=[255,255,255,1],n=[0,153,255,1];return t[o.a.POLYGON]=[new y({fill:new g({color:[255,255,255,.5]})})],t[o.a.MULTI_POLYGON]=t[o.a.POLYGON],t[o.a.LINE_STRING]=[new y({stroke:new v.default({color:e,width:5})}),new y({stroke:new v.default({color:n,width:3})})],t[o.a.MULTI_LINE_STRING]=t[o.a.LINE_STRING],t[o.a.CIRCLE]=t[o.a.POLYGON].concat(t[o.a.LINE_STRING]),t[o.a.POINT]=[new y({image:new _({radius:6,fill:new g({color:n}),stroke:new v.default({color:e,width:1.5})}),zIndex:1/0})],t[o.a.MULTI_POINT]=t[o.a.POINT],t[o.a.GEOMETRY_COLLECTION]=t[o.a.POLYGON].concat(t[o.a.LINE_STRING],t[o.a.POINT]),t}function T(t){return t.getGeometry()}e.default=y},function(t,e,n){"use strict";var i=n(14),r=n(41),o=n(67),a=n(42),s=n(1),u=n(43),c=n(0),l=n(16),h=n(59),p=n(8);n(29),n(62),n(55),n(7);var f,d=(f=function(t,e){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}f(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function _(t,e){h.a.expire()}var g=function(t){function e(e){var n=t.call(this)||this;return n.map_=e,n.declutterTree_=null,n}return d(e,t),e.prototype.dispatchRenderEvent=function(t,e){Object(s.b)()},e.prototype.calculateMatrices2D=function(t){var e=t.viewState,n=t.coordinateToPixelTransform,i=t.pixelToCoordinateTransform;Object(p.b)(n,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),Object(p.d)(i,n)},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,i,o,a,s,u){var l,h=e.viewState;function p(t,e,n){return o.call(a,e,t?n:null)}var f=h.projection,d=t,_=[[0,0]];if(f.canWrapX()){var g=f.getExtent(),v=Object(c.E)(g),y=t[0];if(y<g[0]||y>g[2])d=[y+v*Math.ceil((g[0]-y)/v),t[1]];i&&_.push([-v,0],[v,0])}var m,b=e.layerStatesArray,O=b.length;this.declutterTree_&&(m=this.declutterTree_.all().map((function(t){return t.value})));for(var E=[],T=0;T<_.length;T++)for(var x=O-1;x>=0;--x){var C=b[x],S=C.layer;if(S.hasRenderer()&&Object(r.b)(C,h)&&s.call(u,S)){var I=S.getRenderer(),R=S.getSource();if(I&&R){var w=R.getWrapX()?d:t,j=p.bind(null,C.managed);E[0]=w[0]+_[T][0],E[1]=w[1]+_[T][1],l=I.forEachFeatureAtCoordinate(E,e,n,j,m)}if(l)return l}}},e.prototype.forEachLayerAtPixel=function(t,e,n,i,r){return Object(s.b)()},e.prototype.hasFeatureAtCoordinate=function(t,e,n,i,r,o){return void 0!==this.forEachFeatureAtCoordinate(t,e,n,i,l.b,this,r,o)},e.prototype.getMap=function(){return this.map_},e.prototype.renderFrame=function(t){this.declutterTree_=function(t,e){e&&e.clear();for(var n=t.declutterItems,i=n.length-1;i>=0;--i)for(var r=n[i],o=r.items,a=0,s=o.length;a<s;a+=3)e=o[a].renderDeclutter(o[a+1],o[a+2],r.opacity,e);return n.length=0,e}(t,this.declutterTree_)},e.prototype.scheduleExpireIconCache=function(t){h.a.canExpireCache()&&t.postRenderFunctions.push(_)},e}(u.a),v=n(36),y=n(11),m=n(3),b=n(5),O=n(2),E=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),T=function(t){function e(e){var n=t.call(this,e)||this;n.labelCacheKey_=Object(O.a)(m.o,b.a.CLEAR,e.redrawText.bind(e)),n.element_=document.createElement("div");var r=n.element_.style;r.position="absolute",r.width="100%",r.height="100%",r.zIndex="0",n.element_.className=i.e+" ol-layers";var o=e.getViewport();return o.insertBefore(n.element_,o.firstChild||null),n.children_=[],n.renderedVisible_=!0,n}return E(e,t),e.prototype.dispatchRenderEvent=function(t,e){var n=this.getMap();if(n.hasListener(t)){var i=new o.a(t,void 0,e);n.dispatchEvent(i)}},e.prototype.disposeInternal=function(){Object(O.c)(this.labelCacheKey_),t.prototype.disposeInternal.call(this)},e.prototype.renderFrame=function(e){if(e){this.calculateMatrices2D(e),this.dispatchRenderEvent(a.a.PRECOMPOSE,e);var n=e.layerStatesArray.sort((function(t,e){return t.zIndex-e.zIndex})),i=e.viewState;this.children_.length=0;for(var o=null,s=0,u=n.length;s<u;++s){var c=n[s];if(e.layerIndex=s,Object(r.b)(c,i)&&(c.sourceState==v.a.READY||c.sourceState==v.a.UNDEFINED)){var l=c.layer.render(e,o);l&&l!==o&&(this.children_.push(l),o=l)}}t.prototype.renderFrame.call(this,e),Object(y.f)(this.element_,this.children_),this.dispatchRenderEvent(a.a.POSTCOMPOSE,e),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(e)}else this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1)},e.prototype.forEachLayerAtPixel=function(t,e,n,i,o){for(var a=e.viewState,s=e.layerStatesArray,u=s.length-1;u>=0;--u){var c=s[u],l=c.layer;if(l.hasRenderer()&&Object(r.b)(c,a)&&o(l)){var h=l.getRenderer().getDataAtPixel(t,e,n);if(h){var p=i(l,h);if(p)return p}}}},e}(g);e.a=T},function(t,e,n){"use strict";var i,r=n(0),o=n(11),a=n(67),s=n(42),u=n(3),c=n(1),l=n(18),h=n(63),p=n(5),f=n(36),d=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),_=function(t){function e(e){var n=t.call(this)||this;return n.boundHandleImageChange_=n.handleImageChange_.bind(n),n.layer_=e,n}return d(e,t),e.prototype.getFeatures=function(t){return Object(c.b)()},e.prototype.prepareFrame=function(t){return Object(c.b)()},e.prototype.renderFrame=function(t,e){return Object(c.b)()},e.prototype.loadedTileCallback=function(t,e,n){t[e]||(t[e]={}),t[e][n.tileCoord.toString()]=n},e.prototype.createLoadedTileFinder=function(t,e,n){return function(i,r){var o=this.loadedTileCallback.bind(this,n,i);return t.forEachLoadedTile(e,i,r,o)}.bind(this)},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,i,r){},e.prototype.getDataAtPixel=function(t,e,n){return Object(c.b)()},e.prototype.getLayer=function(){return this.layer_},e.prototype.handleFontsChanged=function(){},e.prototype.handleImageChange_=function(t){t.target.getState()===l.a.LOADED&&this.renderIfReadyAndVisible()},e.prototype.loadImage=function(t){var e=t.getState();return e!=l.a.LOADED&&e!=l.a.ERROR&&t.addEventListener(p.a.CHANGE,this.boundHandleImageChange_),e==l.a.IDLE&&(t.load(),e=t.getState()),e==l.a.LOADED},e.prototype.renderIfReadyAndVisible=function(){var t=this.getLayer();t.getVisible()&&t.getSourceState()==f.a.READY&&t.changed()},e}(h.a),g=n(8),v=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),y=function(t){function e(e){var n=t.call(this,e)||this;return n.container=null,n.renderedResolution,n.tempTransform_=Object(g.c)(),n.pixelTransform=Object(g.c)(),n.inversePixelTransform=Object(g.c)(),n.context=null,n.containerReused=!1,n.createTransformStringCanvas_=Object(o.a)(1,1).canvas,n}return v(e,t),e.prototype.useContainer=function(t,e,n){var i,r,a=this.getLayer().getClassName();t&&""===t.style.opacity&&t.className===a&&((u=t.firstElementChild)instanceof HTMLCanvasElement&&(r=u.getContext("2d")));if(r&&r.canvas.style.transform===e?(this.container=t,this.context=r,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){(i=document.createElement("div")).className=a;var s=i.style;s.position="absolute",s.width="100%",s.height="100%";var u=(r=Object(o.a)()).canvas;i.appendChild(u),(s=u.style).position="absolute",s.left="0",s.transformOrigin="top left",this.container=i,this.context=r}},e.prototype.clip=function(t,e,n){var i=e.pixelRatio,o=e.size[0]*i/2,a=e.size[1]*i/2,s=e.viewState.rotation,c=Object(r.C)(n),l=Object(r.D)(n),h=Object(r.w)(n),p=Object(r.v)(n);Object(g.a)(e.coordinateToPixelTransform,c),Object(g.a)(e.coordinateToPixelTransform,l),Object(g.a)(e.coordinateToPixelTransform,h),Object(g.a)(e.coordinateToPixelTransform,p),t.save(),Object(u.s)(t,-s,o,a),t.beginPath(),t.moveTo(c[0]*i,c[1]*i),t.lineTo(l[0]*i,l[1]*i),t.lineTo(h[0]*i,h[1]*i),t.lineTo(p[0]*i,p[1]*i),t.clip(),Object(u.s)(t,s,o,a)},e.prototype.clipUnrotated=function(t,e,n){var i=Object(r.C)(n),o=Object(r.D)(n),a=Object(r.w)(n),s=Object(r.v)(n);Object(g.a)(e.coordinateToPixelTransform,i),Object(g.a)(e.coordinateToPixelTransform,o),Object(g.a)(e.coordinateToPixelTransform,a),Object(g.a)(e.coordinateToPixelTransform,s);var u=this.inversePixelTransform;Object(g.a)(u,i),Object(g.a)(u,o),Object(g.a)(u,a),Object(g.a)(u,s),t.save(),t.beginPath(),t.moveTo(Math.round(i[0]),Math.round(i[1])),t.lineTo(Math.round(o[0]),Math.round(o[1])),t.lineTo(Math.round(a[0]),Math.round(a[1])),t.lineTo(Math.round(s[0]),Math.round(s[1])),t.clip()},e.prototype.dispatchRenderEvent_=function(t,e,n){var i=this.getLayer();if(i.hasListener(t)){var r=new a.a(t,this.inversePixelTransform,n,e);i.dispatchEvent(r)}},e.prototype.preRender=function(t,e){this.dispatchRenderEvent_(s.a.PRERENDER,t,e)},e.prototype.postRender=function(t,e){this.dispatchRenderEvent_(s.a.POSTRENDER,t,e)},e.prototype.getRenderTransform=function(t,e,n,i,r,o,a){var s=r/2,u=o/2,c=i/e,l=-c,h=-t[0]+a,p=-t[1];return Object(g.b)(this.tempTransform_,s,u,c,l,-n,h,p)},e.prototype.getDataAtPixel=function(t,e,n){var i,r=Object(g.a)(this.inversePixelTransform,t.slice()),o=this.context;try{i=o.getImageData(Math.round(r[0]),Math.round(r[1]),1,1).data}catch(t){return"SecurityError"===t.name?new Uint8Array:i}return 0===i[3]?null:i},e.prototype.createTransformString=function(t){return this.createTransformStringCanvas_.style.transform=Object(g.i)(t),this.createTransformStringCanvas_.style.transform},e}(_);e.a=y},function(t,e,n){"use strict";var i,r=n(1),o=n(37),a=n(5),s=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.extent=e,o.pixelRatio_=i,o.resolution=n,o.state=r,o}return s(e,t),e.prototype.changed=function(){this.dispatchEvent(a.a.CHANGE)},e.prototype.getExtent=function(){return this.extent},e.prototype.getImage=function(){return Object(r.b)()},e.prototype.getPixelRatio=function(){return this.pixelRatio_},e.prototype.getResolution=function(){return this.resolution},e.prototype.getState=function(){return this.state},e.prototype.load=function(){Object(r.b)()},e}(o.a),c=n(18),l=n(2),h=n(0),p=n(29);n.d(e,"a",(function(){return d}));var f=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function d(t,e,n){var i=t;if(i.src&&p.c){var r=i.decode(),o=!0;return r.then((function(){o&&e()})).catch((function(t){o&&("EncodingError"===t.name&&"Invalid image type."===t.message?e():n())})),function(){o=!1}}var s=[Object(l.b)(i,a.a.LOAD,e),Object(l.b)(i,a.a.ERROR,n)];return function(){s.forEach(l.c)}}!function(t){function e(e,n,i,r,o,a){var s=t.call(this,e,n,i,c.a.IDLE)||this;return s.src_=r,s.image_=new Image,null!==o&&(s.image_.crossOrigin=o),s.unlisten_=null,s.state=c.a.IDLE,s.imageLoadFunction_=a,s}f(e,t),e.prototype.getImage=function(){return this.image_},e.prototype.handleImageError_=function(){this.state=c.a.ERROR,this.unlistenImage_(),this.changed()},e.prototype.handleImageLoad_=function(){void 0===this.resolution&&(this.resolution=Object(h.A)(this.extent)/this.image_.height),this.state=c.a.LOADED,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state!=c.a.IDLE&&this.state!=c.a.ERROR||(this.state=c.a.LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=d(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.setImage=function(t){this.image_=t},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}(u)},function(t,e,n){
|
||
/*!
|
||
* PEP v0.5.3 | https://github.com/jquery/PEP
|
||
* Copyright jQuery Foundation and other contributors | http://jquery.org/license
|
||
*/
|
||
t.exports=function(){"use strict";var t=["bubbles","cancelable","view","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","pageX","pageY"],e=[!1,!1,null,0,0,0,0,!1,!1,!1,!1,0,null,0,0];function n(n,i){i=i||Object.create(null);var r=document.createEvent("Event");r.initEvent(n,i.bubbles||!1,i.cancelable||!1);for(var o,a=2;a<t.length;a++)r[o=t[a]]=i[o]||e[a];r.buttons=i.buttons||0;var s=0;return s=void 0!==i.pressure&&r.buttons?i.pressure:r.buttons?.5:0,r.x=r.clientX,r.y=r.clientY,r.pointerId=i.pointerId||0,r.width=i.width||1,r.height=i.height||1,r.pressure=s,r.tiltX=i.tiltX||0,r.tiltY=i.tiltY||0,r.twist=i.twist||0,r.tangentialPressure=i.tangentialPressure||0,r.pointerType=i.pointerType||"",r.hwTimestamp=i.hwTimestamp||0,r.isPrimary=i.isPrimary||!1,r.detail=0,r}var i=window.Map&&window.Map.prototype.forEach?Map:r;function r(){this.array=[],this.size=0}r.prototype={set:function(t,e){if(void 0===e)return this.delete(t);this.has(t)||this.size++,this.array[t]=e},has:function(t){return void 0!==this.array[t]},delete:function(t){this.has(t)&&(delete this.array[t],this.size--)},get:function(t){return this.array[t]},clear:function(){this.array.length=0,this.size=0},forEach:function(t,e){return this.array.forEach((function(n,i){t.call(e,n,i,this)}),this)}};var o=["bubbles","cancelable","view","detail","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","buttons","pointerId","width","height","pressure","tiltX","tiltY","pointerType","hwTimestamp","isPrimary","type","target","currentTarget","which","pageX","pageY","timeStamp"],a=[!1,!1,null,null,0,0,0,0,!1,!1,!1,!1,0,null,0,0,0,0,0,0,0,"",0,!1,"",null,null,0,0,0,0],s={pointerover:1,pointerout:1,pointerenter:1,pointerleave:1},u="undefined"!=typeof SVGElementInstance,c={pointermap:new i,eventMap:Object.create(null),captureInfo:Object.create(null),eventSources:Object.create(null),eventSourceList:[],registerSource:function(t,e){var n=e,i=n.events;i&&(i.forEach((function(t){n[t]&&(this.eventMap[t]=n[t].bind(n))}),this),this.eventSources[t]=n,this.eventSourceList.push(n))},register:function(t){for(var e,n=this.eventSourceList.length,i=0;i<n&&(e=this.eventSourceList[i]);i++)e.register.call(e,t)},unregister:function(t){for(var e,n=this.eventSourceList.length,i=0;i<n&&(e=this.eventSourceList[i]);i++)e.unregister.call(e,t)},contains:function(t,e){try{return t.contains(e)}catch(t){return!1}},down:function(t){t.bubbles=!0,this.fireEvent("pointerdown",t)},move:function(t){t.bubbles=!0,this.fireEvent("pointermove",t)},up:function(t){t.bubbles=!0,this.fireEvent("pointerup",t)},enter:function(t){t.bubbles=!1,this.fireEvent("pointerenter",t)},leave:function(t){t.bubbles=!1,this.fireEvent("pointerleave",t)},over:function(t){t.bubbles=!0,this.fireEvent("pointerover",t)},out:function(t){t.bubbles=!0,this.fireEvent("pointerout",t)},cancel:function(t){t.bubbles=!0,this.fireEvent("pointercancel",t)},leaveOut:function(t){this.out(t),this.propagate(t,this.leave,!1)},enterOver:function(t){this.over(t),this.propagate(t,this.enter,!0)},eventHandler:function(t){if(!t._handledByPE){var e=t.type,n=this.eventMap&&this.eventMap[e];n&&n(t),t._handledByPE=!0}},listen:function(t,e){e.forEach((function(e){this.addEvent(t,e)}),this)},unlisten:function(t,e){e.forEach((function(e){this.removeEvent(t,e)}),this)},addEvent:function(t,e){t.addEventListener(e,this.boundHandler)},removeEvent:function(t,e){t.removeEventListener(e,this.boundHandler)},makeEvent:function(t,e){this.captureInfo[e.pointerId]&&(e.relatedTarget=null);var i=new n(t,e);return e.preventDefault&&(i.preventDefault=e.preventDefault),i._target=i._target||e.target,i},fireEvent:function(t,e){var n=this.makeEvent(t,e);return this.dispatchEvent(n)},cloneEvent:function(t){for(var e,n=Object.create(null),i=0;i<o.length;i++)n[e=o[i]]=t[e]||a[i],!u||"target"!==e&&"relatedTarget"!==e||n[e]instanceof SVGElementInstance&&(n[e]=n[e].correspondingUseElement);return t.preventDefault&&(n.preventDefault=function(){t.preventDefault()}),n},getTarget:function(t){var e=this.captureInfo[t.pointerId];return e?t._target!==e&&t.type in s?void 0:e:t._target},propagate:function(t,e,n){for(var i=t.target,r=[];null!=i&&i!==document&&!i.contains(t.relatedTarget);)if(r.push(i),!(i=i.parentNode))return;n&&r.reverse(),r.forEach((function(n){t.target=n,e.call(this,t)}),this)},setCapture:function(t,e,i){this.captureInfo[t]&&this.releaseCapture(t,i),this.captureInfo[t]=e,this.implicitRelease=this.releaseCapture.bind(this,t,i),document.addEventListener("pointerup",this.implicitRelease),document.addEventListener("pointercancel",this.implicitRelease);var r=new n("gotpointercapture",{bubbles:!0});r.pointerId=t,r._target=e,i||this.asyncDispatchEvent(r)},releaseCapture:function(t,e){var i=this.captureInfo[t];if(i){this.captureInfo[t]=void 0,document.removeEventListener("pointerup",this.implicitRelease),document.removeEventListener("pointercancel",this.implicitRelease);var r=new n("lostpointercapture",{bubbles:!0});r.pointerId=t,r._target=i,e||this.asyncDispatchEvent(r)}},dispatchEvent:function(t){var e=this.getTarget(t);if(e)return e.dispatchEvent(t)},asyncDispatchEvent:function(t){requestAnimationFrame(this.dispatchEvent.bind(this,t))}};c.boundHandler=c.eventHandler.bind(c);var l={shadow:function(t){if(t)return t.shadowRoot||t.webkitShadowRoot},canTarget:function(t){return t&&Boolean(t.elementFromPoint)},targetingShadow:function(t){var e=this.shadow(t);if(this.canTarget(e))return e},olderShadow:function(t){var e=t.olderShadowRoot;if(!e){var n=t.querySelector("shadow");n&&(e=n.olderShadowRoot)}return e},allShadows:function(t){for(var e=[],n=this.shadow(t);n;)e.push(n),n=this.olderShadow(n);return e},searchRoot:function(t,e,n){if(t){var i,r,o=t.elementFromPoint(e,n);for(r=this.targetingShadow(o);r;){if(i=r.elementFromPoint(e,n)){var a=this.targetingShadow(i);return this.searchRoot(a,e,n)||i}r=this.olderShadow(r)}return o}},owner:function(t){for(var e=t;e.parentNode;)e=e.parentNode;return e.nodeType!==Node.DOCUMENT_NODE&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&(e=document),e},findTarget:function(t){var e=t.clientX,n=t.clientY,i=this.owner(t.target);return i.elementFromPoint(e,n)||(i=document),this.searchRoot(i,e,n)}},h=Array.prototype.forEach.call.bind(Array.prototype.forEach),p=Array.prototype.map.call.bind(Array.prototype.map),f=Array.prototype.slice.call.bind(Array.prototype.slice),d=Array.prototype.filter.call.bind(Array.prototype.filter),_=window.MutationObserver||window.WebKitMutationObserver,g={subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0,attributeFilter:["touch-action"]};function v(t,e,n,i){this.addCallback=t.bind(i),this.removeCallback=e.bind(i),this.changedCallback=n.bind(i),_&&(this.observer=new _(this.mutationWatcher.bind(this)))}function y(t){return"{ -ms-touch-action: "+t+"; touch-action: "+t+"; }"}v.prototype={watchSubtree:function(t){this.observer&&l.canTarget(t)&&this.observer.observe(t,g)},enableOnSubtree:function(t){this.watchSubtree(t),t===document&&"complete"!==document.readyState?this.installOnLoad():this.installNewSubtree(t)},installNewSubtree:function(t){h(this.findElements(t),this.addElement,this)},findElements:function(t){return t.querySelectorAll?t.querySelectorAll("[touch-action]"):[]},removeElement:function(t){this.removeCallback(t)},addElement:function(t){this.addCallback(t)},elementChanged:function(t,e){this.changedCallback(t,e)},concatLists:function(t,e){return t.concat(f(e))},installOnLoad:function(){document.addEventListener("readystatechange",function(){"complete"===document.readyState&&this.installNewSubtree(document)}.bind(this))},isElement:function(t){return t.nodeType===Node.ELEMENT_NODE},flattenMutationTree:function(t){var e=p(t,this.findElements,this);return e.push(d(t,this.isElement)),e.reduce(this.concatLists,[])},mutationWatcher:function(t){t.forEach(this.mutationHandler,this)},mutationHandler:function(t){"childList"===t.type?(this.flattenMutationTree(t.addedNodes).forEach(this.addElement,this),this.flattenMutationTree(t.removedNodes).forEach(this.removeElement,this)):"attributes"===t.type&&this.elementChanged(t.target,t.oldValue)}};var m=[{selector:'[touch-action="none"]',value:"none"},{selector:'[touch-action="auto"]',value:"auto"},{selector:'[touch-action~="pan-x"]',value:"pan-x"},{selector:'[touch-action~="pan-y"]',value:"pan-y"},{selector:'[touch-action~="pan-up"]',value:"pan-up"},{selector:'[touch-action~="pan-down"]',value:"pan-down"},{selector:'[touch-action~="pan-left"]',value:"pan-left"},{selector:'[touch-action~="pan-right"]',value:"pan-right"}],b="",O=window.PointerEvent||window.MSPointerEvent,E=!window.ShadowDOMPolyfill&&document.head.createShadowRoot,T=c.pointermap,x=[1,4,2,8,16],C=!1;try{C=1===new MouseEvent("test",{buttons:1}).buttons}catch(t){}var S,I={POINTER_ID:1,POINTER_TYPE:"mouse",events:["mousedown","webkitmouseforcechanged","mousemove","mouseup","mouseover","mouseout"],register:function(t){c.listen(t,this.events)},unregister:function(t){c.unlisten(t,this.events)},lastTouches:[],isEventSimulatedFromTouch:function(t){for(var e,n=this.lastTouches,i=t.clientX,r=t.clientY,o=0,a=n.length;o<a&&(e=n[o]);o++){var s=Math.abs(i-e.x),u=Math.abs(r-e.y);if(s<=25&&u<=25)return!0}},prepareEvent:function(t){var e=c.cloneEvent(t),n=e.preventDefault;return e.preventDefault=function(){t.preventDefault(),n()},e.pointerId=this.POINTER_ID,e.isPrimary=!0,e.pointerType=this.POINTER_TYPE,"webkitForce"in t&&(e.pressure=t.webkitForce-MouseEvent.WEBKIT_FORCE_AT_MOUSE_DOWN),e},prepareButtonsForMove:function(t,e){var n=T.get(this.POINTER_ID);0!==e.which&&n?t.buttons=n.buttons:t.buttons=0,e.buttons=t.buttons},mousedown:function(t){if(!this.isEventSimulatedFromTouch(t)){var e=T.get(this.POINTER_ID),n=this.prepareEvent(t);C||(n.buttons=x[n.button],e&&(n.buttons|=e.buttons),t.buttons=n.buttons),T.set(this.POINTER_ID,t),e&&0!==e.buttons?c.move(n):c.down(n)}},webkitmouseforcechanged:function(t){this.mousemove(t)},mousemove:function(t){if(!this.isEventSimulatedFromTouch(t)){var e=this.prepareEvent(t);C||this.prepareButtonsForMove(e,t),e.button=-1,T.set(this.POINTER_ID,t),c.move(e)}},mouseup:function(t){if(!this.isEventSimulatedFromTouch(t)){var e=T.get(this.POINTER_ID),n=this.prepareEvent(t);if(!C){var i=x[n.button];n.buttons=e?e.buttons&~i:0,t.buttons=n.buttons}T.set(this.POINTER_ID,t),n.buttons&=~x[n.button],0===n.buttons?c.up(n):c.move(n)}},mouseover:function(t){if(!this.isEventSimulatedFromTouch(t)){var e=this.prepareEvent(t);C||this.prepareButtonsForMove(e,t),e.button=-1,T.set(this.POINTER_ID,t),c.enterOver(e)}},mouseout:function(t){if(!this.isEventSimulatedFromTouch(t)){var e=this.prepareEvent(t);C||this.prepareButtonsForMove(e,t),e.button=-1,c.leaveOut(e)}},cancel:function(t){var e=this.prepareEvent(t);c.cancel(e),this.deactivateMouse()},deactivateMouse:function(){T.delete(this.POINTER_ID)}},R=c.captureInfo,w=l.findTarget.bind(l),j=l.allShadows.bind(l),P=c.pointermap,M={events:["touchstart","touchmove","touchforcechange","touchend","touchcancel"],register:function(t){S.enableOnSubtree(t)},unregister:function(){},elementAdded:function(t){var e=t.getAttribute("touch-action"),n=this.touchActionToScrollType(e);"number"==typeof n&&(t._scrollType=n,c.listen(t,this.events),j(t).forEach((function(t){t._scrollType=n,c.listen(t,this.events)}),this))},elementRemoved:function(t){if(P.size>0){var e=this.events;t.addEventListener("touchend",(function(){t._scrollType=void 0,c.unlisten(t,e)}))}else t._scrollType=void 0,c.unlisten(t,this.events);j(t).forEach((function(t){t._scrollType=void 0,c.unlisten(t,this.events)}),this)},elementChanged:function(t,e){var n=t.getAttribute("touch-action"),i=this.touchActionToScrollType(n),r=this.touchActionToScrollType(e);"number"==typeof i&&"number"==typeof r?(t._scrollType=i,j(t).forEach((function(t){t._scrollType=i}),this)):"number"==typeof r?this.elementRemoved(t):"number"==typeof i&&this.elementAdded(t)},scrollTypes:{UP:function(t){return t.includes("pan-y")||t.includes("pan-up")?1:0},DOWN:function(t){return t.includes("pan-y")||t.includes("pan-down")?2:0},LEFT:function(t){return t.includes("pan-x")||t.includes("pan-left")?4:0},RIGHT:function(t){return t.includes("pan-x")||t.includes("pan-right")?8:0}},touchActionToScrollType:function(t){if(t){if("auto"===t)return 15;if("none"===t)return 0;var e=t.split(" "),n=this.scrollTypes;return n.UP(e)|n.DOWN(e)|n.LEFT(e)|n.RIGHT(e)}},POINTER_TYPE:"touch",firstTouch:null,isPrimaryTouch:function(t){return this.firstTouch===t.identifier},setPrimaryTouch:function(t){(0===P.size||1===P.size&&P.has(1))&&(this.firstTouch=t.identifier,this.firstXY={X:t.clientX,Y:t.clientY},this.scrolling=!1)},removePrimaryPointer:function(t){t.isPrimary&&(this.firstTouch=null,this.firstXY=null)},typeToButtons:function(t){var e=0;return"touchstart"!==t&&"touchmove"!==t&&"touchforcechange"!==t||(e=1),e},touchToPointer:function(t){var e=this.currentTouchEvent,n=c.cloneEvent(t),i=n.pointerId=t.identifier+2;if(n.target=R[i]||w(n),n.bubbles=!0,n.cancelable=!0,n.button=0,n.buttons=this.typeToButtons(e.type),n.width=2*(t.radiusX||t.webkitRadiusX||0),n.height=2*(t.radiusY||t.webkitRadiusY||0),n.pressure=void 0!==t.force?t.force:void 0!==t.webkitForce?t.webkitForce:void 0,n.isPrimary=this.isPrimaryTouch(t),t.altitudeAngle){var r=Math.tan(t.altitudeAngle),o=180/Math.PI;n.tiltX=Math.atan(Math.cos(t.azimuthAngle)/r)*o,n.tiltY=Math.atan(Math.sin(t.azimuthAngle)/r)*o}else n.tiltX=0,n.tiltY=0;"stylus"===t.touchType?n.pointerType="pen":n.pointerType=this.POINTER_TYPE,n.altKey=e.altKey,n.ctrlKey=e.ctrlKey,n.metaKey=e.metaKey,n.shiftKey=e.shiftKey;var a=this;return n.preventDefault=function(){a.scrolling=!1,a.firstXY=null,e.preventDefault()},n},processTouches:function(t,e){var n=t.changedTouches;this.currentTouchEvent=t;for(var i,r=0;r<n.length;r++)i=n[r],e.call(this,this.touchToPointer(i))},shouldScroll:function(t){if(this.firstXY){var e,n=t.currentTarget._scrollType;if(0===n)e=!1;else if(15===n)e=!0;else{var i=t.changedTouches[0],r=i.clientY-this.firstXY.Y,o=Math.abs(r),a=i.clientX-this.firstXY.X,s=Math.abs(a),u=1&n,c=2&n,l=4&n,h=8&n;l&&h?e=s>o:l?e=s>o&&a>0:h&&(e=s>o&&a<0),e||(u&&c?e=s<o:u?e=s<o&&r>0:c&&(e=s<o&&r<0))}return this.firstXY=null,e}},findTouch:function(t,e){for(var n,i=0,r=t.length;i<r&&(n=t[i]);i++)if(n.identifier===e)return!0},vacuumTouches:function(t){var e=t.touches;if(P.size>=e.length){var n=[];P.forEach((function(t,i){if(1!==i&&!this.findTouch(e,i-2)){var r=t.out;n.push(r)}}),this),n.forEach(this.cancelOut,this)}},touchstart:function(t){this.vacuumTouches(t),this.setPrimaryTouch(t.changedTouches[0]),this.dedupSynthMouse(t),this.scrolling||this.processTouches(t,this.overDown)},overDown:function(t){P.set(t.pointerId,{target:t.target,out:t,outTarget:t.target}),c.enterOver(t),c.down(t)},touchforcechange:function(t){this.touchmove(t)},touchmove:function(t){this.scrolling||(this.shouldScroll(t)?(this.scrolling=!0,this.touchcancel(t)):("touchforcechange"!==t.type&&t.preventDefault(),this.processTouches(t,this.moveOverOut)))},moveOverOut:function(t){var e=t,n=P.get(e.pointerId);if(n){var i=n.out,r=n.outTarget;c.move(e),i&&r!==e.target&&(i.relatedTarget=e.target,e.relatedTarget=r,i.target=r,e.target?(c.leaveOut(i),c.enterOver(e)):(e.target=r,e.relatedTarget=null,this.cancelOut(e))),n.out=e,n.outTarget=e.target}},touchend:function(t){this.dedupSynthMouse(t),this.processTouches(t,this.upOut)},upOut:function(t){this.scrolling||(c.up(t),c.leaveOut(t)),this.cleanUpPointer(t)},touchcancel:function(t){this.processTouches(t,this.cancelOut)},cancelOut:function(t){c.cancel(t),c.leaveOut(t),this.cleanUpPointer(t)},cleanUpPointer:function(t){P.delete(t.pointerId),this.removePrimaryPointer(t)},dedupSynthMouse:function(t){var e=I.lastTouches,n=t.changedTouches[0];if(this.isPrimaryTouch(n)){var i={x:n.clientX,y:n.clientY};e.push(i);var r=function(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}.bind(null,e,i);setTimeout(r,2500)}}};S=new v(M.elementAdded,M.elementRemoved,M.elementChanged,M);var L,A,F,D=c.pointermap,N=window.MSPointerEvent&&"number"==typeof window.MSPointerEvent.MSPOINTER_TYPE_MOUSE,k={events:["MSPointerDown","MSPointerMove","MSPointerUp","MSPointerOut","MSPointerOver","MSPointerCancel","MSGotPointerCapture","MSLostPointerCapture"],register:function(t){c.listen(t,this.events)},unregister:function(t){c.unlisten(t,this.events)},POINTER_TYPES:["","unavailable","touch","pen","mouse"],prepareEvent:function(t){var e=t;return N&&((e=c.cloneEvent(t)).pointerType=this.POINTER_TYPES[t.pointerType]),e},cleanup:function(t){D.delete(t)},MSPointerDown:function(t){D.set(t.pointerId,t);var e=this.prepareEvent(t);c.down(e)},MSPointerMove:function(t){var e=this.prepareEvent(t);c.move(e)},MSPointerUp:function(t){var e=this.prepareEvent(t);c.up(e),this.cleanup(t.pointerId)},MSPointerOut:function(t){var e=this.prepareEvent(t);c.leaveOut(e)},MSPointerOver:function(t){var e=this.prepareEvent(t);c.enterOver(e)},MSPointerCancel:function(t){var e=this.prepareEvent(t);c.cancel(e),this.cleanup(t.pointerId)},MSLostPointerCapture:function(t){var e=c.makeEvent("lostpointercapture",t);c.dispatchEvent(e)},MSGotPointerCapture:function(t){var e=c.makeEvent("gotpointercapture",t);c.dispatchEvent(e)}};function G(t){if(!c.pointermap.has(t)){var e=new Error("NotFoundError");throw e.name="NotFoundError",e}}function Y(t){for(var e=t.parentNode;e&&e!==t.ownerDocument;)e=e.parentNode;if(!e){var n=new Error("InvalidStateError");throw n.name="InvalidStateError",n}}function X(t){return 0!==c.pointermap.get(t).buttons}return window.navigator.msPointerEnabled?(L=function(t){G(t),Y(this),X(t)&&(c.setCapture(t,this,!0),this.msSetPointerCapture(t))},A=function(t){G(t),c.releaseCapture(t,!0),this.msReleasePointerCapture(t)}):(L=function(t){G(t),Y(this),X(t)&&c.setCapture(t,this)},A=function(t){G(t),c.releaseCapture(t)}),F=function(t){return!!c.captureInfo[t]},function(){if(O){m.forEach((function(t){b+=t.selector+y(t.value)+"\n",E&&(b+=function(t){return"body /shadow-deep/ "+t}(t.selector)+y(t.value)+"\n")}));var t=document.createElement("style");t.textContent=b,document.head.appendChild(t)}}(),function(){if(!window.PointerEvent){if(window.PointerEvent=n,window.navigator.msPointerEnabled){var t=window.navigator.msMaxTouchPoints;Object.defineProperty(window.navigator,"maxTouchPoints",{value:t,enumerable:!0}),c.registerSource("ms",k)}else Object.defineProperty(window.navigator,"maxTouchPoints",{value:0,enumerable:!0}),c.registerSource("mouse",I),void 0!==window.ontouchstart&&c.registerSource("touch",M);c.register(document)}}(),window.Element&&!Element.prototype.setPointerCapture&&Object.defineProperties(Element.prototype,{setPointerCapture:{value:L},releasePointerCapture:{value:A},hasPointerCapture:{value:F}}),{dispatcher:c,Installer:v,PointerEvent:n,PointerMap:i,targetFinding:l}}()},function(t,e,n){"use strict";n.r(e);var i,r=n(0),o=n(4),a=n(44),s=n(53),u=n(6),c=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=function(t){function e(e,n){var i=t.call(this)||this;return i.setCoordinates(e,n),i}return c(e,t),e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout)},e.prototype.closestPointXY=function(t,e,n,i){var r=this.flatCoordinates,o=Object(u.f)(t,e,r[0],r[1]);if(o<i){for(var a=this.stride,s=0;s<a;++s)n[s]=r[s];return n.length=a,o}return i},e.prototype.getCoordinates=function(){return this.flatCoordinates?this.flatCoordinates.slice():[]},e.prototype.computeExtent=function(t){return Object(r.m)(this.flatCoordinates,t)},e.prototype.getType=function(){return o.a.POINT},e.prototype.intersectsExtent=function(t){return Object(r.h)(t,this.flatCoordinates[0],this.flatCoordinates[1])},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(s.a)(this.flatCoordinates,0,t,this.stride),this.changed()},e}(a.a);e.default=l},function(t,e,n){"use strict";n.r(e);var i,r=n(45),o=n(12),a=n(31),s=n(14),u=n(11),c=n(2),l=n(0),h=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p={ELEMENT:"element",MAP:"map",OFFSET:"offset",POSITION:"position",POSITIONING:"positioning"},f=function(t){function e(e){var n=t.call(this)||this;return n.options=e,n.id=e.id,n.insertFirst=void 0===e.insertFirst||e.insertFirst,n.stopEvent=void 0===e.stopEvent||e.stopEvent,n.element=document.createElement("div"),n.element.className=void 0!==e.className?e.className:"ol-overlay-container "+s.d,n.element.style.position="absolute",n.autoPan=void 0!==e.autoPan&&e.autoPan,n.autoPanAnimation=e.autoPanAnimation||{},n.autoPanMargin=void 0!==e.autoPanMargin?e.autoPanMargin:20,n.rendered={bottom_:"",left_:"",right_:"",top_:"",visible:!0},n.mapPostrenderListenerKey=null,n.addEventListener(Object(o.b)(p.ELEMENT),n.handleElementChanged),n.addEventListener(Object(o.b)(p.MAP),n.handleMapChanged),n.addEventListener(Object(o.b)(p.OFFSET),n.handleOffsetChanged),n.addEventListener(Object(o.b)(p.POSITION),n.handlePositionChanged),n.addEventListener(Object(o.b)(p.POSITIONING),n.handlePositioningChanged),void 0!==e.element&&n.setElement(e.element),n.setOffset(void 0!==e.offset?e.offset:[0,0]),n.setPositioning(void 0!==e.positioning?e.positioning:a.a.TOP_LEFT),void 0!==e.position&&n.setPosition(e.position),n}return h(e,t),e.prototype.getElement=function(){return this.get(p.ELEMENT)},e.prototype.getId=function(){return this.id},e.prototype.getMap=function(){return this.get(p.MAP)},e.prototype.getOffset=function(){return this.get(p.OFFSET)},e.prototype.getPosition=function(){return this.get(p.POSITION)},e.prototype.getPositioning=function(){return this.get(p.POSITIONING)},e.prototype.handleElementChanged=function(){Object(u.d)(this.element);var t=this.getElement();t&&this.element.appendChild(t)},e.prototype.handleMapChanged=function(){this.mapPostrenderListenerKey&&(Object(u.e)(this.element),Object(c.c)(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);var t=this.getMap();if(t){this.mapPostrenderListenerKey=Object(c.a)(t,r.a.POSTRENDER,this.render,this),this.updatePixelPosition();var e=this.stopEvent?t.getOverlayContainerStopEvent():t.getOverlayContainer();this.insertFirst?e.insertBefore(this.element,e.childNodes[0]||null):e.appendChild(this.element)}},e.prototype.render=function(){this.updatePixelPosition()},e.prototype.handleOffsetChanged=function(){this.updatePixelPosition()},e.prototype.handlePositionChanged=function(){this.updatePixelPosition(),this.get(p.POSITION)&&this.autoPan&&this.panIntoView()},e.prototype.handlePositioningChanged=function(){this.updatePixelPosition()},e.prototype.setElement=function(t){this.set(p.ELEMENT,t)},e.prototype.setMap=function(t){this.set(p.MAP,t)},e.prototype.setOffset=function(t){this.set(p.OFFSET,t)},e.prototype.setPosition=function(t){this.set(p.POSITION,t)},e.prototype.panIntoView=function(){var t=this.getMap();if(t&&t.getTargetElement()){var e=this.getRect(t.getTargetElement(),t.getSize()),n=this.getElement(),i=this.getRect(n,[Object(u.c)(n),Object(u.b)(n)]),r=this.autoPanMargin;if(!Object(l.g)(e,i)){var o=i[0]-e[0],a=e[2]-i[2],s=i[1]-e[1],c=e[3]-i[3],h=[0,0];if(o<0?h[0]=o-r:a<0&&(h[0]=Math.abs(a)+r),s<0?h[1]=s-r:c<0&&(h[1]=Math.abs(c)+r),0!==h[0]||0!==h[1]){var p=t.getView().getCenterInternal(),f=t.getPixelFromCoordinateInternal(p),d=[f[0]+h[0],f[1]+h[1]];t.getView().animateInternal({center:t.getCoordinateFromPixelInternal(d),duration:this.autoPanAnimation.duration,easing:this.autoPanAnimation.easing})}}}},e.prototype.getRect=function(t,e){var n=t.getBoundingClientRect(),i=n.left+window.pageXOffset,r=n.top+window.pageYOffset;return[i,r,i+e[0],r+e[1]]},e.prototype.setPositioning=function(t){this.set(p.POSITIONING,t)},e.prototype.setVisible=function(t){this.rendered.visible!==t&&(this.element.style.display=t?"":"none",this.rendered.visible=t)},e.prototype.updatePixelPosition=function(){var t=this.getMap(),e=this.getPosition();if(t&&t.isRendered()&&e){var n=t.getPixelFromCoordinate(e),i=t.getSize();this.updateRenderedPosition(n,i)}else this.setVisible(!1)},e.prototype.updateRenderedPosition=function(t,e){var n=this.element.style,i=this.getOffset(),r=this.getPositioning();this.setVisible(!0);var o=i[0],s=i[1];if(r==a.a.BOTTOM_RIGHT||r==a.a.CENTER_RIGHT||r==a.a.TOP_RIGHT){""!==this.rendered.left_&&(this.rendered.left_="",n.left="");var u=Math.round(e[0]-t[0]-o)+"px";this.rendered.right_!=u&&(this.rendered.right_=u,n.right=u)}else{""!==this.rendered.right_&&(this.rendered.right_="",n.right=""),r!=a.a.BOTTOM_CENTER&&r!=a.a.CENTER_CENTER&&r!=a.a.TOP_CENTER||(o-=this.element.offsetWidth/2);var c=Math.round(t[0]+o)+"px";this.rendered.left_!=c&&(this.rendered.left_=c,n.left=c)}if(r==a.a.BOTTOM_LEFT||r==a.a.BOTTOM_CENTER||r==a.a.BOTTOM_RIGHT){""!==this.rendered.top_&&(this.rendered.top_="",n.top="");var l=Math.round(e[1]-t[1]-s)+"px";this.rendered.bottom_!=l&&(this.rendered.bottom_=l,n.bottom=l)}else{""!==this.rendered.bottom_&&(this.rendered.bottom_="",n.bottom=""),r!=a.a.CENTER_LEFT&&r!=a.a.CENTER_CENTER&&r!=a.a.CENTER_RIGHT||(s-=this.element.offsetHeight/2);var h=Math.round(t[1]+s)+"px";this.rendered.top_!=h&&(this.rendered.top_="top",n.top=h)}},e.prototype.getOptions=function(){return this.options},e}(o.a);e.default=f},function(t,e,n){"use strict";n.r(e);var i,r=.5,o=n(1),a=n(9),s=n(25),u=n(37),c=n(5),l=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),h=function(t){function e(e,n,i){var r=t.call(this)||this,o=i||{};return r.tileCoord=e,r.state=n,r.interimTile=null,r.hifi=!0,r.key="",r.transition_=void 0===o.transition?250:o.transition,r.transitionStarts_={},r}return l(e,t),e.prototype.changed=function(){this.dispatchEvent(c.a.CHANGE)},e.prototype.disposeInternal=function(){this.setState(a.a.ABORT)},e.prototype.getKey=function(){return this.key+"/"+this.tileCoord},e.prototype.getInterimTile=function(){if(!this.interimTile)return this;var t=this.interimTile;do{if(t.getState()==a.a.LOADED)return this.transition_=0,t;t=t.interimTile}while(t);return this},e.prototype.refreshInterimChain=function(){if(this.interimTile){var t=this.interimTile,e=this;do{if(t.getState()==a.a.LOADED){t.interimTile=null;break}t.getState()==a.a.LOADING?e=t:t.getState()==a.a.IDLE?e.interimTile=t.interimTile:e=t,t=e.interimTile}while(t)}},e.prototype.getTileCoord=function(){return this.tileCoord},e.prototype.getState=function(){return this.state},e.prototype.setState=function(t){if(this.state!==a.a.ERROR&&this.state>t)throw new Error("Tile load sequence violation");this.state=t,this.changed()},e.prototype.load=function(){Object(o.b)()},e.prototype.getAlpha=function(t,e){if(!this.transition_)return 1;var n=this.transitionStarts_[t];if(n){if(-1===n)return 1}else n=e,this.transitionStarts_[t]=n;var i=e-n+1e3/60;return i>=this.transition_?1:Object(s.a)(i/this.transition_)},e.prototype.inTransition=function(t){return!!this.transition_&&-1!==this.transitionStarts_[t]},e.prototype.endTransition=function(t){this.transition_&&(this.transitionStarts_[t]=-1)},e}(u.a),p=n(11),f=n(79),d=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function _(){var t=Object(p.a)(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}var g=function(t){function e(e,n,i,r,o,a){var s=t.call(this,e,n,a)||this;return s.crossOrigin_=r,s.src_=i,s.image_=new Image,null!==r&&(s.image_.crossOrigin=r),s.unlisten_=null,s.tileLoadFunction_=o,s}return d(e,t),e.prototype.disposeInternal=function(){this.state==a.a.LOADING&&(this.unlistenImage_(),this.image_=_()),this.interimTile&&this.interimTile.dispose(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.image_},e.prototype.getKey=function(){return this.src_},e.prototype.handleImageError_=function(){this.state=a.a.ERROR,this.unlistenImage_(),this.image_=_(),this.changed()},e.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=a.a.LOADED:this.state=a.a.EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==a.a.ERROR&&(this.state=a.a.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==a.a.IDLE&&(this.state=a.a.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=Object(f.a)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(h),v=n(66);function y(t,e,n,i){return void 0!==i?(i[0]=t,i[1]=e,i[2]=n,i):[t,e,n]}function m(t,e,n){return t+"/"+e+"/"+n}function b(t){return m(t[0],t[1],t[2])}var O=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),E=function(t){function e(e){return t.call(this,e)||this}return O(e,t),e.prototype.expireCache=function(t){for(;this.canExpireCache();){if(this.peekLast().getKey()in t)break;this.pop().dispose()}},e.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var t=function(t){return t.split("/").map(Number)}(this.peekFirstKey())[0];this.forEach(function(e){e.tileCoord[0]!==t&&(this.remove(b(e.tileCoord)),e.dispose())}.bind(this))}},e}(v.a),T=n(7),x=n(2),C=n(0),S=n(6);function I(t,e,n,i){var r=n-t,o=i-e,a=Math.sqrt(r*r+o*o);return[Math.round(n+r/a),Math.round(i+o/a)]}var R=10,w=function(){function t(t,e,n,i,r){this.sourceProj_=t,this.targetProj_=e;var o={},a=Object(T.getTransform)(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){var e=t[0]+"/"+t[1];return o[e]||(o[e]=a(t)),o[e]},this.maxSourceExtent_=i,this.errorThresholdSquared_=r*r,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!i&&!!this.sourceProj_.getExtent()&&Object(C.E)(i)==Object(C.E)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Object(C.E)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Object(C.E)(this.targetProj_.getExtent()):null;var s=Object(C.C)(n),u=Object(C.D)(n),c=Object(C.w)(n),l=Object(C.v)(n),h=this.transformInv_(s),p=this.transformInv_(u),f=this.transformInv_(c),d=this.transformInv_(l);if(this.addQuad_(s,u,c,l,h,p,f,d,R),this.wrapsXInSource_){var _=1/0;this.triangles_.forEach((function(t,e,n){_=Math.min(_,t.source[0][0],t.source[1][0],t.source[2][0])})),this.triangles_.forEach(function(t){if(Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-_>this.sourceWorldWidth_/2){var e=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]];e[0][0]-_>this.sourceWorldWidth_/2&&(e[0][0]-=this.sourceWorldWidth_),e[1][0]-_>this.sourceWorldWidth_/2&&(e[1][0]-=this.sourceWorldWidth_),e[2][0]-_>this.sourceWorldWidth_/2&&(e[2][0]-=this.sourceWorldWidth_);var n=Math.min(e[0][0],e[1][0],e[2][0]);Math.max(e[0][0],e[1][0],e[2][0])-n<this.sourceWorldWidth_/2&&(t.source=e)}}.bind(this))}o={}}return t.prototype.addTriangle_=function(t,e,n,i,r,o){this.triangles_.push({source:[i,r,o],target:[t,e,n]})},t.prototype.addQuad_=function(t,e,n,i,r,o,a,s,u){var c=Object(C.b)([r,o,a,s]),l=this.sourceWorldWidth_?Object(C.E)(c)/this.sourceWorldWidth_:null,h=this.sourceWorldWidth_,p=this.sourceProj_.canWrapX()&&l>.5&&l<1,f=!1;if(u>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var d=Object(C.b)([t,e,n,i]);f=Object(C.E)(d)/this.targetWorldWidth_>.25||f}!p&&this.sourceProj_.isGlobal()&&l&&(f=l>.25||f)}if(f||!this.maxSourceExtent_||Object(C.F)(c,this.maxSourceExtent_)){if(!(f||isFinite(r[0])&&isFinite(r[1])&&isFinite(o[0])&&isFinite(o[1])&&isFinite(a[0])&&isFinite(a[1])&&isFinite(s[0])&&isFinite(s[1]))){if(!(u>0))return;f=!0}if(u>0){if(!f){var _=[(t[0]+n[0])/2,(t[1]+n[1])/2],g=this.transformInv_(_),v=void 0;if(p)v=(Object(S.d)(r[0],h)+Object(S.d)(a[0],h))/2-Object(S.d)(g[0],h);else v=(r[0]+a[0])/2-g[0];var y=(r[1]+a[1])/2-g[1];f=v*v+y*y>this.errorThresholdSquared_}if(f){if(Math.abs(t[0]-n[0])<=Math.abs(t[1]-n[1])){var m=[(e[0]+n[0])/2,(e[1]+n[1])/2],b=this.transformInv_(m),O=[(i[0]+t[0])/2,(i[1]+t[1])/2],E=this.transformInv_(O);this.addQuad_(t,e,m,O,r,o,b,E,u-1),this.addQuad_(O,m,n,i,E,b,a,s,u-1)}else{var T=[(t[0]+e[0])/2,(t[1]+e[1])/2],x=this.transformInv_(T),I=[(n[0]+i[0])/2,(n[1]+i[1])/2],R=this.transformInv_(I);this.addQuad_(t,T,I,i,r,x,R,s,u-1),this.addQuad_(T,e,n,I,x,o,a,R,u-1)}return}}if(p){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}this.addTriangle_(t,n,i,r,a,s),this.addTriangle_(t,e,n,r,o,a)}},t.prototype.calculateSourceExtent=function(){var t=Object(C.j)();return this.triangles_.forEach((function(e,n,i){var r=e.source;Object(C.r)(t,r[0]),Object(C.r)(t,r[1]),Object(C.r)(t,r[2])})),t},t.prototype.getTriangles=function(){return this.triangles_},t}(),j=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),P=function(t){function e(e,n,i,o,s,u,c,l,h,p,f){var d=t.call(this,s,a.a.IDLE)||this;d.renderEdges_=void 0!==f&&f,d.pixelRatio_=c,d.gutter_=l,d.canvas_=null,d.sourceTileGrid_=n,d.targetTileGrid_=o,d.wrappedTileCoord_=u||s,d.sourceTiles_=[],d.sourcesListenerKeys_=null,d.sourceZ_=0;var _=o.getTileCoordExtent(d.wrappedTileCoord_),g=d.targetTileGrid_.getExtent(),v=d.sourceTileGrid_.getExtent(),y=g?Object(C.B)(_,g):_;if(0===Object(C.u)(y))return d.state=a.a.EMPTY,d;var m=e.getExtent();m&&(v=v?Object(C.B)(v,m):m);var b=o.getResolution(d.wrappedTileCoord_[0]),O=function(t,e,n,i){var r=Object(T.transform)(n,e,t),o=Object(T.getPointResolution)(e,i,n),a=e.getMetersPerUnit();void 0!==a&&(o*=a);var s=t.getMetersPerUnit();void 0!==s&&(o/=s);var u=t.getExtent();if(!u||Object(C.f)(u,r)){var c=Object(T.getPointResolution)(t,o,r)/o;isFinite(c)&&c>0&&(o/=c)}return o}(e,i,Object(C.x)(y),b);if(!isFinite(O)||O<=0)return d.state=a.a.EMPTY,d;var E=void 0!==p?p:r;if(d.triangulation_=new w(e,i,y,v,O*E),0===d.triangulation_.getTriangles().length)return d.state=a.a.EMPTY,d;d.sourceZ_=n.getZForResolution(O);var x=d.triangulation_.calculateSourceExtent();if(v&&(e.canWrapX()?(x[1]=Object(S.a)(x[1],v[1],v[3]),x[3]=Object(S.a)(x[3],v[1],v[3])):x=Object(C.B)(x,v)),Object(C.u)(x)){for(var I=n.getTileRangeForExtentAndZ(x,d.sourceZ_),R=I.minX;R<=I.maxX;R++)for(var j=I.minY;j<=I.maxY;j++){var P=h(d.sourceZ_,R,j,c);P&&d.sourceTiles_.push(P)}0===d.sourceTiles_.length&&(d.state=a.a.EMPTY)}else d.state=a.a.EMPTY;return d}return j(e,t),e.prototype.disposeInternal=function(){this.state==a.a.LOADING&&this.unlistenSources_(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.canvas_},e.prototype.reproject_=function(){var t=[];if(this.sourceTiles_.forEach(function(e,n,i){e&&e.getState()==a.a.LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===t.length)this.state=a.a.ERROR;else{var e=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(e),i="number"==typeof n?n:n[0],r="number"==typeof n?n:n[1],o=this.targetTileGrid_.getResolution(e),s=this.sourceTileGrid_.getResolution(this.sourceZ_),u=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=function(t,e,n,i,r,o,a,s,u,c,l){var h=Object(p.a)(Math.round(n*t),Math.round(n*e));if(0===u.length)return h.canvas;h.scale(n,n);var f=Object(C.j)();u.forEach((function(t,e,n){Object(C.q)(f,t.extent)}));var d=Object(C.E)(f),_=Object(C.A)(f),g=Object(p.a)(Math.round(n*d/i),Math.round(n*_/i)),v=n/i;u.forEach((function(t,e,n){var i=t.extent[0]-f[0],r=-(t.extent[3]-f[3]),o=Object(C.E)(t.extent),a=Object(C.A)(t.extent);g.drawImage(t.image,c,c,t.image.width-2*c,t.image.height-2*c,i*v,r*v,o*v,a*v)}));var y=Object(C.C)(a);return s.getTriangles().forEach((function(t,e,r){var a=t.source,s=t.target,u=a[0][0],c=a[0][1],l=a[1][0],p=a[1][1],d=a[2][0],_=a[2][1],v=(s[0][0]-y[0])/o,m=-(s[0][1]-y[1])/o,b=(s[1][0]-y[0])/o,O=-(s[1][1]-y[1])/o,E=(s[2][0]-y[0])/o,T=-(s[2][1]-y[1])/o,x=u,C=c;u=0,c=0;var R=[[l-=x,p-=C,0,0,b-v],[d-=x,_-=C,0,0,E-v],[0,0,l,p,O-m],[0,0,d,_,T-m]],w=Object(S.e)(R);if(w){h.save(),h.beginPath();var j=(v+b+E)/3,P=(m+O+T)/3,M=I(j,P,v,m),L=I(j,P,b,O),A=I(j,P,E,T);h.moveTo(L[0],L[1]),h.lineTo(M[0],M[1]),h.lineTo(A[0],A[1]),h.clip(),h.transform(w[0],w[2],w[1],w[3],v,m),h.translate(f[0]-x,f[3]-C),h.scale(i/n,-i/n),h.drawImage(g.canvas,0,0),h.restore()}})),l&&(h.save(),h.strokeStyle="black",h.lineWidth=1,s.getTriangles().forEach((function(t,e,n){var i=t.target,r=(i[0][0]-y[0])/o,a=-(i[0][1]-y[1])/o,s=(i[1][0]-y[0])/o,u=-(i[1][1]-y[1])/o,c=(i[2][0]-y[0])/o,l=-(i[2][1]-y[1])/o;h.beginPath(),h.moveTo(s,u),h.lineTo(r,a),h.lineTo(c,l),h.closePath(),h.stroke()})),h.restore()),h.canvas}(i,r,this.pixelRatio_,s,this.sourceTileGrid_.getExtent(),o,u,this.triangulation_,t,this.gutter_,this.renderEdges_),this.state=a.a.LOADED}this.changed()},e.prototype.load=function(){if(this.state==a.a.IDLE){this.state=a.a.LOADING,this.changed();var t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(e,n,i){var r=e.getState();if(r==a.a.IDLE||r==a.a.LOADING){t++;var o=Object(x.a)(e,c.a.CHANGE,(function(n){var i=e.getState();i!=a.a.LOADED&&i!=a.a.ERROR&&i!=a.a.EMPTY||(Object(x.c)(o),0===--t&&(this.unlistenSources_(),this.reproject_()))}),this);this.sourcesListenerKeys_.push(o)}}.bind(this)),this.sourceTiles_.forEach((function(t,e,n){t.getState()==a.a.IDLE&&t.load()})),0===t&&setTimeout(this.reproject_.bind(this),0)}},e.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(x.c),this.sourcesListenerKeys_=null},e}(h),M=n(10);function L(t,e){var n=/\{z\}/g,i=/\{x\}/g,r=/\{y\}/g,o=/\{-y\}/g;return function(a,s,u){return a?t.replace(n,a[0].toString()).replace(i,a[1].toString()).replace(r,a[2].toString()).replace(o,(function(){var t=a[0],n=e.getFullTileRange(t);return Object(M.a)(n,55),(n.getHeight()-a[2]-1).toString()})):void 0}}function A(t,e){for(var n=t.length,i=new Array(n),r=0;r<n;++r)i[r]=L(t[r],e);return function(t){if(1===t.length)return t[0];return(function(e,n,i){if(e){var r=function(t){return(t[1]<<t[0])+t[2]}(e),o=Object(S.d)(r,t.length);return t[o](e,n,i)}})}(i)}function F(t,e,n){}var D=n(26),N=n(34),k=n(74),G=n(56),Y=n(57),X=n(21),z=n(58),W=n(15),K=[0,0,0],U=function(){function t(t){var e;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,Object(M.a)(Object(W.d)(this.resolutions_,(function(t,e){return e-t}),!0),17),!t.origins)for(var n=0,i=this.resolutions_.length-1;n<i;++n)if(e){if(this.resolutions_[n]/this.resolutions_[n+1]!==e){e=void 0;break}}else e=this.resolutions_[n]/this.resolutions_[n+1];this.zoomFactor_=e,this.maxZoom=this.resolutions_.length-1,this.origin_=void 0!==t.origin?t.origin:null,this.origins_=null,void 0!==t.origins&&(this.origins_=t.origins,Object(M.a)(this.origins_.length==this.resolutions_.length,20));var r=t.extent;void 0===r||this.origin_||this.origins_||(this.origin_=Object(C.C)(r)),Object(M.a)(!this.origin_&&this.origins_||this.origin_&&!this.origins_,18),this.tileSizes_=null,void 0!==t.tileSizes&&(this.tileSizes_=t.tileSizes,Object(M.a)(this.tileSizes_.length==this.resolutions_.length,19)),this.tileSize_=void 0!==t.tileSize?t.tileSize:this.tileSizes_?null:G.b,Object(M.a)(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,22),this.extent_=void 0!==r?r:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],void 0!==t.sizes?this.fullTileRanges_=t.sizes.map((function(t,e){return new z.b(Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1))}),this):r&&this.calculateTileRanges_(r)}return t.prototype.forEachTileCoord=function(t,e,n){for(var i=this.getTileRangeForExtentAndZ(t,e),r=i.minX,o=i.maxX;r<=o;++r)for(var a=i.minY,s=i.maxY;a<=s;++a)n([e,r,a])},t.prototype.forEachTileCoordParentTileRange=function(t,e,n,i){var r,o,a,s=null,u=t[0]-1;for(2===this.zoomFactor_?(o=t[1],a=t[2]):s=this.getTileCoordExtent(t,i);u>=this.minZoom;){if(2===this.zoomFactor_?(o=Math.floor(o/2),a=Math.floor(a/2),r=Object(z.a)(o,o,a,a,n)):r=this.getTileRangeForExtentAndZ(s,u,n),e(u,r))return!0;--u}return!1},t.prototype.getExtent=function(){return this.extent_},t.prototype.getMaxZoom=function(){return this.maxZoom},t.prototype.getMinZoom=function(){return this.minZoom},t.prototype.getOrigin=function(t){return this.origin_?this.origin_:this.origins_[t]},t.prototype.getResolution=function(t){return this.resolutions_[t]},t.prototype.getResolutions=function(){return this.resolutions_},t.prototype.getTileCoordChildTileRange=function(t,e,n){if(t[0]<this.maxZoom){if(2===this.zoomFactor_){var i=2*t[1],r=2*t[2];return Object(z.a)(i,i+1,r,r+1,e)}var o=this.getTileCoordExtent(t,n);return this.getTileRangeForExtentAndZ(o,t[0]+1,e)}return null},t.prototype.getTileRangeExtent=function(t,e,n){var i=this.getOrigin(t),r=this.getResolution(t),o=Object(N.c)(this.getTileSize(t),this.tmpSize_),a=i[0]+e.minX*o[0]*r,s=i[0]+(e.maxX+1)*o[0]*r,u=i[1]+e.minY*o[1]*r,c=i[1]+(e.maxY+1)*o[1]*r;return Object(C.k)(a,u,s,c,n)},t.prototype.getTileRangeForExtentAndZ=function(t,e,n){var i=K;this.getTileCoordForXYAndZ_(t[0],t[3],e,!1,i);var r=i[1],o=i[2];return this.getTileCoordForXYAndZ_(t[2],t[1],e,!0,i),Object(z.a)(r,i[1],o,i[2],n)},t.prototype.getTileCoordCenter=function(t){var e=this.getOrigin(t[0]),n=this.getResolution(t[0]),i=Object(N.c)(this.getTileSize(t[0]),this.tmpSize_);return[e[0]+(t[1]+.5)*i[0]*n,e[1]-(t[2]+.5)*i[1]*n]},t.prototype.getTileCoordExtent=function(t,e){var n=this.getOrigin(t[0]),i=this.getResolution(t[0]),r=Object(N.c)(this.getTileSize(t[0]),this.tmpSize_),o=n[0]+t[1]*r[0]*i,a=n[1]-(t[2]+1)*r[1]*i,s=o+r[0]*i,u=a+r[1]*i;return Object(C.k)(o,a,s,u,e)},t.prototype.getTileCoordForCoordAndResolution=function(t,e,n){return this.getTileCoordForXYAndResolution_(t[0],t[1],e,!1,n)},t.prototype.getTileCoordForXYAndResolution_=function(t,e,n,i,r){var o=this.getZForResolution(n),a=n/this.getResolution(o),s=this.getOrigin(o),u=Object(N.c)(this.getTileSize(o),this.tmpSize_),c=i?.5:0,l=i?.5:0,h=Math.floor((t-s[0])/n+c),p=Math.floor((s[1]-e)/n+l),f=a*h/u[0],d=a*p/u[1];return i?(f=Math.ceil(f)-1,d=Math.ceil(d)-1):(f=Math.floor(f),d=Math.floor(d)),y(o,f,d,r)},t.prototype.getTileCoordForXYAndZ_=function(t,e,n,i,r){var o=this.getOrigin(n),a=this.getResolution(n),s=Object(N.c)(this.getTileSize(n),this.tmpSize_),u=i?.5:0,c=i?.5:0,l=Math.floor((t-o[0])/a+u),h=Math.floor((o[1]-e)/a+c),p=l/s[0],f=h/s[1];return i?(p=Math.ceil(p)-1,f=Math.ceil(f)-1):(p=Math.floor(p),f=Math.floor(f)),y(n,p,f,r)},t.prototype.getTileCoordForCoordAndZ=function(t,e,n){return this.getTileCoordForXYAndZ_(t[0],t[1],e,!1,n)},t.prototype.getTileCoordResolution=function(t){return this.resolutions_[t[0]]},t.prototype.getTileSize=function(t){return this.tileSize_?this.tileSize_:this.tileSizes_[t]},t.prototype.getFullTileRange=function(t){return this.fullTileRanges_?this.fullTileRanges_[t]:null},t.prototype.getZForResolution=function(t,e){var n=Object(W.e)(this.resolutions_,t,e||0);return Object(S.a)(n,this.minZoom,this.maxZoom)},t.prototype.calculateTileRanges_=function(t){for(var e=this.resolutions_.length,n=new Array(e),i=this.minZoom;i<e;++i)n[i]=this.getTileRangeForExtentAndZ(t,i);this.fullTileRanges_=n},t}();function B(t){var e=t.getDefaultTileGrid();return e||(e=function(t,e,n,i){return function(t,e,n,i){var r=void 0!==i?i:Y.a.TOP_LEFT,o=V(t,e,n);return new U({extent:t,origin:Object(C.y)(t,r),resolutions:o,tileSize:n})}(Z(t),e,n,i)}(t),t.setDefaultTileGrid(e)),e}function V(t,e,n){for(var i=void 0!==e?e:G.a,r=Object(C.A)(t),o=Object(C.E)(t),a=Object(N.c)(void 0!==n?n:G.b),s=Math.max(o/a[0],r/a[1]),u=i+1,c=new Array(u),l=0;l<u;++l)c[l]=s/Math.pow(2,l);return c}function Z(t){var e=(t=Object(T.get)(t)).getExtent();if(!e){var n=180*T.METERS_PER_UNIT[X.b.DEGREES]/t.getMetersPerUnit();e=Object(C.k)(-n,-n,n,n)}return e}var H=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),q=function(t){function e(e){var n=t.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,projection:e.projection,state:e.state,wrapX:e.wrapX})||this;n.opaque_=void 0!==e.opaque&&e.opaque,n.tilePixelRatio_=void 0!==e.tilePixelRatio?e.tilePixelRatio:1,n.tileGrid=void 0!==e.tileGrid?e.tileGrid:null;var i=e.cacheSize;if(void 0===i){var r=[256,256],o=e.tileGrid;o&&Object(N.c)(o.getTileSize(o.getMinZoom()),r);var a="undefined"!=typeof screen,s=a?screen.availWidth||screen.width:1920,u=a?screen.availHeight||screen.height:1080;i=4*Math.ceil(s/r[0])*Math.ceil(u/r[1])}return n.tileCache=new E(i),n.tmpSize=[0,0],n.key_=e.key||"",n.tileOptions={transition:e.transition},n.zDirection=e.zDirection?e.zDirection:0,n}return H(e,t),e.prototype.canExpireCache=function(){return this.tileCache.canExpireCache()},e.prototype.expireCache=function(t,e){var n=this.getTileCacheForProjection(t);n&&n.expireCache(e)},e.prototype.forEachLoadedTile=function(t,e,n,i){var r=this.getTileCacheForProjection(t);if(!r)return!1;for(var o,s,u,c=!0,l=n.minX;l<=n.maxX;++l)for(var h=n.minY;h<=n.maxY;++h)s=m(e,l,h),u=!1,r.containsKey(s)&&(u=(o=r.get(s)).getState()===a.a.LOADED)&&(u=!1!==i(o)),u||(c=!1);return c},e.prototype.getGutterForProjection=function(t){return 0},e.prototype.getKey=function(){return this.key_},e.prototype.setKey=function(t){this.key_!==t&&(this.key_=t,this.changed())},e.prototype.getOpaque=function(t){return this.opaque_},e.prototype.getResolutions=function(){return this.tileGrid.getResolutions()},e.prototype.getTile=function(t,e,n,i,r){return Object(o.b)()},e.prototype.getTileGrid=function(){return this.tileGrid},e.prototype.getTileGridForProjection=function(t){return this.tileGrid?this.tileGrid:B(t)},e.prototype.getTileCacheForProjection=function(t){var e=this.getProjection();return e&&!Object(T.equivalent)(e,t)?null:this.tileCache},e.prototype.getTilePixelRatio=function(t){return this.tilePixelRatio_},e.prototype.getTilePixelSize=function(t,e,n){var i=this.getTileGridForProjection(n),r=this.getTilePixelRatio(e),o=Object(N.c)(i.getTileSize(t),this.tmpSize);return 1==r?o:Object(N.b)(o,r,this.tmpSize)},e.prototype.getTileCoordForTileUrlFunction=function(t,e){var n=void 0!==e?e:this.getProjection(),i=this.getTileGridForProjection(n);return this.getWrapX()&&n.isGlobal()&&(t=function(t,e,n){var i=e[0],r=t.getTileCoordCenter(e),o=Z(n);if(Object(C.f)(o,r))return e;var a=Object(C.E)(o),s=Math.ceil((o[0]-r[0])/a);return r[0]+=a*s,t.getTileCoordForCoordAndZ(r,i)}(i,t,n)),function(t,e){var n=t[0],i=t[1],r=t[2];if(e.getMinZoom()>n||n>e.getMaxZoom())return!1;var o,a=e.getExtent();return!(o=a?e.getTileRangeForExtentAndZ(a,n):e.getFullTileRange(n))||o.containsXY(i,r)}(t,i)?t:null},e.prototype.clear=function(){this.tileCache.clear()},e.prototype.refresh=function(){this.clear(),t.prototype.refresh.call(this)},e.prototype.useTile=function(t,e,n,i){},e}(k.a),J=function(t){function e(e,n){var i=t.call(this,e)||this;return i.tile=n,i}return H(e,t),e}(D.a),Q=q,$="tileloadstart",tt="tileloadend",et="tileloaderror",nt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),it=function(t){function e(e){var n=t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tilePixelRatio:e.tilePixelRatio,wrapX:e.wrapX,transition:e.transition,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection})||this;return n.generateTileUrlFunction_=!e.tileUrlFunction,n.tileLoadFunction=e.tileLoadFunction,n.tileUrlFunction=e.tileUrlFunction?e.tileUrlFunction.bind(n):F,n.urls=null,e.urls?n.setUrls(e.urls):e.url&&n.setUrl(e.url),n.tileLoadingKeys_={},n}return nt(e,t),e.prototype.getTileLoadFunction=function(){return this.tileLoadFunction},e.prototype.getTileUrlFunction=function(){return this.tileUrlFunction},e.prototype.getUrls=function(){return this.urls},e.prototype.handleTileChange=function(t){var e,n=t.target,i=Object(o.c)(n),r=n.getState();r==a.a.LOADING?(this.tileLoadingKeys_[i]=!0,e=$):i in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[i],e=r==a.a.ERROR?et:r==a.a.LOADED||r==a.a.ABORT?tt:void 0),null!=e&&this.dispatchEvent(new J(e,n))},e.prototype.setTileLoadFunction=function(t){this.tileCache.clear(),this.tileLoadFunction=t,this.changed()},e.prototype.setTileUrlFunction=function(t,e){this.tileUrlFunction=t,this.tileCache.pruneExceptNewestZ(),void 0!==e?this.setKey(e):this.changed()},e.prototype.setUrl=function(t){var e=function(t){var e=[],n=/\{([a-z])-([a-z])\}/.exec(t);if(n){var i=n[1].charCodeAt(0),r=n[2].charCodeAt(0),o=void 0;for(o=i;o<=r;++o)e.push(t.replace(n[0],String.fromCharCode(o)));return e}if(n=/\{(\d+)-(\d+)\}/.exec(t)){for(var a=parseInt(n[2],10),s=parseInt(n[1],10);s<=a;s++)e.push(t.replace(n[0],s.toString()));return e}return e.push(t),e}(t);this.urls=e,this.setUrls(e)},e.prototype.setUrls=function(t){this.urls=t;var e=t.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(A(t,this.tileGrid),e):this.setKey(e)},e.prototype.useTile=function(t,e,n){var i=m(t,e,n);this.tileCache.containsKey(i)&&this.tileCache.get(i)},e}(Q),rt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function ot(t,e){t.getImage().src=e}var at=function(t){function e(e){var n=t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:ot,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection})||this;return n.crossOrigin=void 0!==e.crossOrigin?e.crossOrigin:null,n.tileClass=void 0!==e.tileClass?e.tileClass:g,n.tileCacheForProjection={},n.tileGridForProjection={},n.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,n.renderReprojectionEdges_=!1,n}return rt(e,t),e.prototype.canExpireCache=function(){if(this.tileCache.canExpireCache())return!0;for(var t in this.tileCacheForProjection)if(this.tileCacheForProjection[t].canExpireCache())return!0;return!1},e.prototype.expireCache=function(t,e){var n=this.getTileCacheForProjection(t);for(var i in this.tileCache.expireCache(this.tileCache==n?e:{}),this.tileCacheForProjection){var r=this.tileCacheForProjection[i];r.expireCache(r==n?e:{})}},e.prototype.getGutterForProjection=function(t){return this.getProjection()&&t&&!Object(T.equivalent)(this.getProjection(),t)?0:this.getGutter()},e.prototype.getGutter=function(){return 0},e.prototype.getOpaque=function(e){return!(this.getProjection()&&e&&!Object(T.equivalent)(this.getProjection(),e))&&t.prototype.getOpaque.call(this,e)},e.prototype.getTileGridForProjection=function(t){var e=this.getProjection();if(!this.tileGrid||e&&!Object(T.equivalent)(e,t)){var n=Object(o.c)(t);return n in this.tileGridForProjection||(this.tileGridForProjection[n]=B(t)),this.tileGridForProjection[n]}return this.tileGrid},e.prototype.getTileCacheForProjection=function(t){var e=this.getProjection();if(!e||Object(T.equivalent)(e,t))return this.tileCache;var n=Object(o.c)(t);return n in this.tileCacheForProjection||(this.tileCacheForProjection[n]=new E(this.tileCache.highWaterMark)),this.tileCacheForProjection[n]},e.prototype.createTile_=function(t,e,n,i,r,o){var s=[t,e,n],u=this.getTileCoordForTileUrlFunction(s,r),l=u?this.tileUrlFunction(u,i,r):void 0,h=new this.tileClass(s,void 0!==l?a.a.IDLE:a.a.EMPTY,void 0!==l?l:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return h.key=o,h.addEventListener(c.a.CHANGE,this.handleTileChange.bind(this)),h},e.prototype.getTile=function(t,e,n,i,r){var o=this.getProjection();if(o&&r&&!Object(T.equivalent)(o,r)){var a=this.getTileCacheForProjection(r),s=[t,e,n],u=void 0,c=b(s);a.containsKey(c)&&(u=a.get(c));var l=this.getKey();if(u&&u.key==l)return u;var h=this.getTileGridForProjection(o),p=this.getTileGridForProjection(r),f=this.getTileCoordForTileUrlFunction(s,r),d=new P(o,h,r,p,s,f,this.getTilePixelRatio(i),this.getGutter(),function(t,e,n,i){return this.getTileInternal(t,e,n,i,o)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_);return d.key=l,u?(d.interimTile=u,d.refreshInterimChain(),a.replace(c,d)):a.set(c,d),d}return this.getTileInternal(t,e,n,i,o||r)},e.prototype.getTileInternal=function(t,e,n,i,r){var o=null,s=m(t,e,n),u=this.getKey();if(this.tileCache.containsKey(s)){if((o=this.tileCache.get(s)).key!=u){var c=o;o=this.createTile_(t,e,n,i,r,u),c.getState()==a.a.IDLE?o.interimTile=c.interimTile:o.interimTile=c,o.refreshInterimChain(),this.tileCache.replace(s,o)}}else o=this.createTile_(t,e,n,i,r,u),this.tileCache.set(s,o);return o},e.prototype.setRenderReprojectionEdges=function(t){if(this.renderReprojectionEdges_!=t){for(var e in this.renderReprojectionEdges_=t,this.tileCacheForProjection)this.tileCacheForProjection[e].clear();this.changed()}},e.prototype.setTileGridForProjection=function(t,e){var n=Object(T.get)(t);if(n){var i=Object(o.c)(n);i in this.tileGridForProjection||(this.tileGridForProjection[i]=e)}},e}(it),st=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ut=function(t){function e(e){var n=e||{},i=void 0!==n.projection?n.projection:"EPSG:3857",r=void 0!==n.tileGrid?n.tileGrid:function(t){var e=t||{},n=e.extent||Object(T.get)("EPSG:3857").getExtent(),i={extent:n,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:V(n,e.maxZoom,e.tileSize)};return new U(i)}({extent:Z(i),maxZoom:n.maxZoom,minZoom:n.minZoom,tileSize:n.tileSize});return t.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,crossOrigin:n.crossOrigin,opaque:n.opaque,projection:i,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileGrid:r,tileLoadFunction:n.tileLoadFunction,tilePixelRatio:n.tilePixelRatio,tileUrlFunction:n.tileUrlFunction,url:n.url,urls:n.urls,wrapX:void 0===n.wrapX||n.wrapX,transition:n.transition,attributionsCollapsible:n.attributionsCollapsible,zDirection:n.zDirection})||this}return st(e,t),e}(at);e.default=ut},function(t,e,n){"use strict";n.r(e);var i,r=n(30),o=n(15),a=n(16),s=n(45),u=n(12),c=n(11),l=n(2),h=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=function(t){function e(e){var n=t.call(this)||this;return n.element=e.element?e.element:null,n.target_=null,n.map_=null,n.listenerKeys=[],n.render=e.render?e.render:a.c,e.target&&n.setTarget(e.target),n}return h(e,t),e.prototype.disposeInternal=function(){Object(c.e)(this.element),t.prototype.disposeInternal.call(this)},e.prototype.getMap=function(){return this.map_},e.prototype.setMap=function(t){this.map_&&Object(c.e)(this.element);for(var e=0,n=this.listenerKeys.length;e<n;++e)Object(l.c)(this.listenerKeys[e]);(this.listenerKeys.length=0,this.map_=t,this.map_)&&((this.target_?this.target_:t.getOverlayContainerStopEvent()).appendChild(this.element),this.render!==a.c&&this.listenerKeys.push(Object(l.a)(t,s.a.POSTRENDER,this.render,this)),t.render())},e.prototype.setTarget=function(t){this.target_="string"==typeof t?document.getElementById(t):t},e}(u.a),f=n(14),d=n(5),_=n(41),g=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function v(t){this.updateElement_(t.frameState)}var y=function(t){function e(e){var n=this,i=e||{};(n=t.call(this,{element:document.createElement("div"),render:i.render||v,target:i.target})||this).ulElement_=document.createElement("ul"),n.collapsed_=void 0===i.collapsed||i.collapsed,n.overrideCollapsible_=void 0!==i.collapsible,n.collapsible_=void 0===i.collapsible||i.collapsible,n.collapsible_||(n.collapsed_=!1);var r=void 0!==i.className?i.className:"ol-attribution",o=void 0!==i.tipLabel?i.tipLabel:"Attributions",a=void 0!==i.collapseLabel?i.collapseLabel:"»";"string"==typeof a?(n.collapseLabel_=document.createElement("span"),n.collapseLabel_.textContent=a):n.collapseLabel_=a;var s=void 0!==i.label?i.label:"i";"string"==typeof s?(n.label_=document.createElement("span"),n.label_.textContent=s):n.label_=s;var u=n.collapsible_&&!n.collapsed_?n.collapseLabel_:n.label_,c=document.createElement("button");c.setAttribute("type","button"),c.title=o,c.appendChild(u),c.addEventListener(d.a.CLICK,n.handleClick_.bind(n),!1);var l=r+" "+f.e+" "+f.b+(n.collapsed_&&n.collapsible_?" "+f.a:"")+(n.collapsible_?"":" ol-uncollapsible"),h=n.element;return h.className=l,h.appendChild(n.ulElement_),h.appendChild(c),n.renderedAttributions_=[],n.renderedVisible_=!0,n}return g(e,t),e.prototype.collectSourceAttributions_=function(t){for(var e={},n=[],i=t.layerStatesArray,r=0,o=i.length;r<o;++r){var a=i[r];if(Object(_.b)(a,t.viewState)){var s=a.layer.getSource();if(s){var u=s.getAttributions();if(u){var c=u(t);if(c)if(this.overrideCollapsible_||!1!==s.getAttributionsCollapsible()||this.setCollapsible(!1),Array.isArray(c))for(var l=0,h=c.length;l<h;++l)c[l]in e||(n.push(c[l]),e[c[l]]=!0);else c in e||(n.push(c),e[c]=!0)}}}}return n},e.prototype.updateElement_=function(t){if(t){var e=this.collectSourceAttributions_(t),n=e.length>0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!Object(o.b)(e,this.renderedAttributions_)){Object(c.d)(this.ulElement_);for(var i=0,r=e.length;i<r;++i){var a=document.createElement("li");a.innerHTML=e[i],this.ulElement_.appendChild(a)}this.renderedAttributions_=e}}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},e.prototype.handleClick_=function(t){t.preventDefault(),this.handleToggle_()},e.prototype.handleToggle_=function(){this.element.classList.toggle(f.a),this.collapsed_?Object(c.g)(this.collapseLabel_,this.label_):Object(c.g)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_},e.prototype.getCollapsible=function(){return this.collapsible_},e.prototype.setCollapsible=function(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),!t&&this.collapsed_&&this.handleToggle_())},e.prototype.setCollapsed=function(t){this.collapsible_&&this.collapsed_!==t&&this.handleToggle_()},e.prototype.getCollapsed=function(){return this.collapsed_},e}(p),m=n(25),b=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function O(t){var e=t.frameState;if(e){var n=e.viewState.rotation;if(n!=this.rotation_){var i="rotate("+n+"rad)";if(this.autoHide_){var r=this.element.classList.contains(f.c);r||0!==n?r&&0!==n&&this.element.classList.remove(f.c):this.element.classList.add(f.c)}this.label_.style.transform=i}this.rotation_=n}}var E=function(t){function e(e){var n=this,i=e||{};n=t.call(this,{element:document.createElement("div"),render:i.render||O,target:i.target})||this;var r=void 0!==i.className?i.className:"ol-rotate",o=void 0!==i.label?i.label:"⇧";n.label_=null,"string"==typeof o?(n.label_=document.createElement("span"),n.label_.className="ol-compass",n.label_.textContent=o):(n.label_=o,n.label_.classList.add("ol-compass"));var a=i.tipLabel?i.tipLabel:"Reset rotation",s=document.createElement("button");s.className=r+"-reset",s.setAttribute("type","button"),s.title=a,s.appendChild(n.label_),s.addEventListener(d.a.CLICK,n.handleClick_.bind(n),!1);var u=r+" "+f.e+" "+f.b,c=n.element;return c.className=u,c.appendChild(s),n.callResetNorth_=i.resetNorth?i.resetNorth:void 0,n.duration_=void 0!==i.duration?i.duration:250,n.autoHide_=void 0===i.autoHide||i.autoHide,n.rotation_=void 0,n.autoHide_&&n.element.classList.add(f.c),n}return b(e,t),e.prototype.handleClick_=function(t){t.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()},e.prototype.resetNorth_=function(){var t=this.getMap().getView();t&&void 0!==t.getRotation()&&(this.duration_>0?t.animate({rotation:0,duration:this.duration_,easing:m.b}):t.setRotation(0))},e}(p),T=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),x=function(t){function e(e){var n=this,i=e||{};n=t.call(this,{element:document.createElement("div"),target:i.target})||this;var r=void 0!==i.className?i.className:"ol-zoom",o=void 0!==i.delta?i.delta:1,a=void 0!==i.zoomInLabel?i.zoomInLabel:"+",s=void 0!==i.zoomOutLabel?i.zoomOutLabel:"−",u=void 0!==i.zoomInTipLabel?i.zoomInTipLabel:"Zoom in",c=void 0!==i.zoomOutTipLabel?i.zoomOutTipLabel:"Zoom out",l=document.createElement("button");l.className=r+"-in",l.setAttribute("type","button"),l.title=u,l.appendChild("string"==typeof a?document.createTextNode(a):a),l.addEventListener(d.a.CLICK,n.handleClick_.bind(n,o),!1);var h=document.createElement("button");h.className=r+"-out",h.setAttribute("type","button"),h.title=c,h.appendChild("string"==typeof s?document.createTextNode(s):s),h.addEventListener(d.a.CLICK,n.handleClick_.bind(n,-o),!1);var p=r+" "+f.e+" "+f.b,_=n.element;return _.className=p,_.appendChild(l),_.appendChild(h),n.duration_=void 0!==i.duration?i.duration:250,n}return T(e,t),e.prototype.handleClick_=function(t,e){e.preventDefault(),this.zoomByDelta_(t)},e.prototype.zoomByDelta_=function(t){var e=this.getMap().getView();if(e){var n=e.getZoom();if(void 0!==n){var i=e.getConstrainedZoom(n+t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({zoom:i,duration:this.duration_,easing:m.b})):e.setZoom(i)}}},e}(p),C=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),S=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"];function I(){var t=document.body;return!!(t.webkitRequestFullscreen||t.msRequestFullscreen&&document.msFullscreenEnabled||t.requestFullscreen&&document.fullscreenEnabled)}function R(){return!!(document.webkitIsFullScreen||document.msFullscreenElement||document.fullscreenElement)}function w(t){t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.webkitRequestFullscreen&&t.webkitRequestFullscreen()}var j=function(t){function e(e){var n=this,i=e||{};(n=t.call(this,{element:document.createElement("div"),target:i.target})||this).cssClassName_=void 0!==i.className?i.className:"ol-full-screen";var r=void 0!==i.label?i.label:"⤢";n.labelNode_="string"==typeof r?document.createTextNode(r):r;var o=void 0!==i.labelActive?i.labelActive:"×";n.labelActiveNode_="string"==typeof o?document.createTextNode(o):o,n.button_=document.createElement("button");var a=i.tipLabel?i.tipLabel:"Toggle full-screen";n.setClassName_(n.button_,R()),n.button_.setAttribute("type","button"),n.button_.title=a,n.button_.appendChild(n.labelNode_),n.button_.addEventListener(d.a.CLICK,n.handleClick_.bind(n),!1);var s=n.cssClassName_+" "+f.e+" "+f.b+" "+(I()?"":f.f),u=n.element;return u.className=s,u.appendChild(n.button_),n.keys_=void 0!==i.keys&&i.keys,n.source_=i.source,n}return C(e,t),e.prototype.handleClick_=function(t){t.preventDefault(),this.handleFullScreen_()},e.prototype.handleFullScreen_=function(){if(I()){var t=this.getMap();if(t)if(R())document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.webkitExitFullscreen&&document.webkitExitFullscreen();else{var e=void 0;e=this.source_?"string"==typeof this.source_?document.getElementById(this.source_):this.source_:t.getTargetElement(),this.keys_?function(t){t.webkitRequestFullscreen?t.webkitRequestFullscreen():w(t)}(e):w(e)}}},e.prototype.handleFullScreenChange_=function(){var t=this.getMap();R()?(this.setClassName_(this.button_,!0),Object(c.g)(this.labelActiveNode_,this.labelNode_)):(this.setClassName_(this.button_,!1),Object(c.g)(this.labelNode_,this.labelActiveNode_)),t&&t.updateSize()},e.prototype.setClassName_=function(t,e){var n=this.cssClassName_+"-true",i=this.cssClassName_+"-false",r=e?n:i;t.classList.remove(n),t.classList.remove(i),t.classList.add(r)},e.prototype.setMap=function(e){if(t.prototype.setMap.call(this,e),e)for(var n=0,i=S.length;n<i;++n)this.listenerKeys.push(Object(l.a)(document,S[n],this.handleFullScreenChange_,this))},e}(p),P=n(40),M=n(7),L=(n(80),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}()),A="projection";function F(t){var e=t.frameState;e?this.mapProjection_!=e.viewState.projection&&(this.mapProjection_=e.viewState.projection,this.transform_=null):this.mapProjection_=null}var D=function(t){function e(e){var n=this,i=e||{},r=document.createElement("div");return r.className=void 0!==i.className?i.className:"ol-mouse-position",(n=t.call(this,{element:r,render:i.render||F,target:i.target})||this).addEventListener(Object(u.b)(A),n.handleProjectionChanged_),i.coordinateFormat&&n.setCoordinateFormat(i.coordinateFormat),i.projection&&n.setProjection(i.projection),n.undefinedHTML_=void 0!==i.undefinedHTML?i.undefinedHTML:" ",n.renderOnMouseOut_=!!n.undefinedHTML_,n.renderedHTML_=r.innerHTML,n.mapProjection_=null,n.transform_=null,n}return L(e,t),e.prototype.handleProjectionChanged_=function(){this.transform_=null},e.prototype.getCoordinateFormat=function(){return this.get("coordinateFormat")},e.prototype.getProjection=function(){return this.get(A)},e.prototype.handleMouseMove=function(t){var e=this.getMap();this.updateHTML_(e.getEventPixel(t))},e.prototype.handleMouseOut=function(t){this.updateHTML_(null)},e.prototype.setMap=function(e){if(t.prototype.setMap.call(this,e),e){var n=e.getViewport();this.listenerKeys.push(Object(l.a)(n,P.a.POINTERMOVE,this.handleMouseMove,this)),this.renderOnMouseOut_&&this.listenerKeys.push(Object(l.a)(n,P.a.POINTEROUT,this.handleMouseOut,this))}},e.prototype.setCoordinateFormat=function(t){this.set("coordinateFormat",t)},e.prototype.setProjection=function(t){this.set(A,Object(M.get)(t))},e.prototype.updateHTML_=function(t){var e=this.undefinedHTML_;if(t&&this.mapProjection_){if(!this.transform_){var n=this.getProjection();this.transform_=n?Object(M.getTransformFromProjections)(this.mapProjection_,n):M.identityTransform}var i=this.getMap().getCoordinateFromPixelInternal(t);if(i){var r=Object(M.getUserProjection)();r&&(this.transform_=Object(M.getTransformFromProjections)(this.mapProjection_,r)),this.transform_(i,i);var o=this.getCoordinateFormat();e=o?o(i):i.toString()}}this.renderedHTML_&&e===this.renderedHTML_||(this.element.innerHTML=e,this.renderedHTML_=e)},e}(p),N=n(75),k=n(77),G=n(28),Y=n(38),X=n(82),z=n(31),W=n(35),K=n(50),U=n(0),B=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return B(e,t),e.prototype.createRenderer=function(){return new k.a(this)},e}(N.a);function Z(t){this.validateExtent_(),this.updateBox_()}var H=function(t){function e(e){var n=this,i=e||{};(n=t.call(this,{element:document.createElement("div"),render:i.render||Z,target:i.target})||this).boundHandleRotationChanged_=n.handleRotationChanged_.bind(n),n.collapsed_=void 0===i.collapsed||i.collapsed,n.collapsible_=void 0===i.collapsible||i.collapsible,n.collapsible_||(n.collapsed_=!1),n.rotateWithView_=void 0!==i.rotateWithView&&i.rotateWithView,n.viewExtent_=void 0;var r=void 0!==i.className?i.className:"ol-overviewmap",o=void 0!==i.tipLabel?i.tipLabel:"Overview map",a=void 0!==i.collapseLabel?i.collapseLabel:"«";"string"==typeof a?(n.collapseLabel_=document.createElement("span"),n.collapseLabel_.textContent=a):n.collapseLabel_=a;var s=void 0!==i.label?i.label:"»";"string"==typeof s?(n.label_=document.createElement("span"),n.label_.textContent=s):n.label_=s;var u=n.collapsible_&&!n.collapsed_?n.collapseLabel_:n.label_,c=document.createElement("button");c.setAttribute("type","button"),c.title=o,c.appendChild(u),c.addEventListener(d.a.CLICK,n.handleClick_.bind(n),!1),n.ovmapDiv_=document.createElement("div"),n.ovmapDiv_.className="ol-overviewmap-map",n.ovmap_=new V({view:i.view});var l=n.ovmap_;i.layers&&i.layers.forEach((function(t){l.addLayer(t)}));var h=document.createElement("div");h.className="ol-overviewmap-box",h.style.boxSizing="border-box",n.boxOverlay_=new X.default({position:[0,0],positioning:z.a.CENTER_CENTER,element:h}),n.ovmap_.addOverlay(n.boxOverlay_);var p=r+" "+f.e+" "+f.b+(n.collapsed_&&n.collapsible_?" "+f.a:"")+(n.collapsible_?"":" ol-uncollapsible"),_=n.element;_.className=p,_.appendChild(n.ovmapDiv_),_.appendChild(c);var g=n,v=n.boxOverlay_,y=n.boxOverlay_.getElement(),m=function(t){var e,n={clientX:(e=t).clientX,clientY:e.clientY},i=l.getEventCoordinateInternal(n);v.setPosition(i)},b=function(t){var e=l.getEventCoordinateInternal(t);g.getMap().getView().setCenterInternal(e),window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",b)};return y.addEventListener("mousedown",(function(){window.addEventListener("mousemove",m),window.addEventListener("mouseup",b)})),n}return B(e,t),e.prototype.setMap=function(e){var n=this.getMap();if(e!==n){if(n){var i=n.getView();i&&this.unbindView_(i),this.ovmap_.setTarget(null)}if(t.prototype.setMap.call(this,e),e){this.ovmap_.setTarget(this.ovmapDiv_),this.listenerKeys.push(Object(l.a)(e,Y.a.PROPERTYCHANGE,this.handleMapPropertyChange_,this));var r=e.getView();r&&(this.bindView_(r),r.isDef()&&(this.ovmap_.updateSize(),this.resetExtent_()))}}},e.prototype.handleMapPropertyChange_=function(t){if(t.key===G.a.VIEW){var e=t.oldValue;e&&this.unbindView_(e);var n=this.getMap().getView();this.bindView_(n)}},e.prototype.bindView_=function(t){t.addEventListener(Object(u.b)(W.a.ROTATION),this.boundHandleRotationChanged_)},e.prototype.unbindView_=function(t){t.removeEventListener(Object(u.b)(W.a.ROTATION),this.boundHandleRotationChanged_)},e.prototype.handleRotationChanged_=function(){this.rotateWithView_&&this.ovmap_.getView().setRotation(this.getMap().getView().getRotation())},e.prototype.validateExtent_=function(){var t=this.getMap(),e=this.ovmap_;if(t.isRendered()&&e.isRendered()){var n=t.getSize(),i=t.getView().calculateExtentInternal(n);if(!this.viewExtent_||!Object(U.p)(i,this.viewExtent_)){this.viewExtent_=i;var r=e.getSize(),o=e.getView().calculateExtentInternal(r),a=e.getPixelFromCoordinateInternal(Object(U.C)(i)),s=e.getPixelFromCoordinateInternal(Object(U.w)(i)),u=Math.abs(a[0]-s[0]),c=Math.abs(a[1]-s[1]),l=r[0],h=r[1];u<.1*l||c<.1*h||u>.75*l||c>.75*h?this.resetExtent_():Object(U.g)(o,i)||this.recenter_()}}},e.prototype.resetExtent_=function(){var t=this.getMap(),e=this.ovmap_,n=t.getSize(),i=t.getView().calculateExtentInternal(n),r=e.getView(),o=Math.log(7.5)/Math.LN2,a=1/(.1*Math.pow(2,o/2));Object(U.J)(i,a),r.fitInternal(Object(K.b)(i))},e.prototype.recenter_=function(){var t=this.getMap(),e=this.ovmap_,n=t.getView();e.getView().setCenterInternal(n.getCenterInternal())},e.prototype.updateBox_=function(){var t=this.getMap(),e=this.ovmap_;if(t.isRendered()&&e.isRendered()){var n=t.getSize(),i=t.getView(),r=e.getView(),o=this.rotateWithView_?0:-i.getRotation(),a=this.boxOverlay_,s=this.boxOverlay_.getElement(),u=i.getCenterInternal(),c=i.getResolution(),l=r.getResolution(),h=n[0]*c/l,p=n[1]*c/l;if(a.setPosition(u),s){s.style.width=h+"px",s.style.height=p+"px";var f="rotate("+o+"rad)";s.style.transform=f}}},e.prototype.handleClick_=function(t){t.preventDefault(),this.handleToggle_()},e.prototype.handleToggle_=function(){this.element.classList.toggle(f.a),this.collapsed_?Object(c.g)(this.collapseLabel_,this.label_):Object(c.g)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;var t=this.ovmap_;if(!this.collapsed_){if(t.isRendered())return this.viewExtent_=void 0,void t.render();t.updateSize(),this.resetExtent_(),Object(l.b)(t,s.a.POSTRENDER,(function(t){this.updateBox_()}),this)}},e.prototype.getCollapsible=function(){return this.collapsible_},e.prototype.setCollapsible=function(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),!t&&this.collapsed_&&this.handleToggle_())},e.prototype.setCollapsed=function(t){this.collapsible_&&this.collapsed_!==t&&this.handleToggle_()},e.prototype.getCollapsed=function(){return this.collapsed_},e.prototype.getRotateWithView=function(){return this.rotateWithView_},e.prototype.setRotateWithView=function(t){this.rotateWithView_!==t&&(this.rotateWithView_=t,0!==this.getMap().getView().getRotation()&&(this.rotateWithView_?this.handleRotationChanged_():this.ovmap_.getView().setRotation(0),this.viewExtent_=void 0,this.validateExtent_(),this.updateBox_()))},e.prototype.getOverviewMap=function(){return this.ovmap_},e}(p),q=n(10),J=n(21),Q=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),$="units",tt={DEGREES:"degrees",IMPERIAL:"imperial",NAUTICAL:"nautical",METRIC:"metric",US:"us"},et=[1,2,5];function nt(t){var e=t.frameState;this.viewState_=e?e.viewState:null,this.updateElement_()}var it=function(t){function e(e){var n=this,i=e||{},r=void 0!==i.className?i.className:i.bar?"ol-scale-bar":"ol-scale-line";return(n=t.call(this,{element:document.createElement("div"),render:i.render||nt,target:i.target})||this).innerElement_=document.createElement("div"),n.innerElement_.className=r+"-inner",n.element.className=r+" "+f.e,n.element.appendChild(n.innerElement_),n.viewState_=null,n.minWidth_=void 0!==i.minWidth?i.minWidth:64,n.renderedVisible_=!1,n.renderedWidth_=void 0,n.renderedHTML_="",n.addEventListener(Object(u.b)($),n.handleUnitsChanged_),n.setUnits(i.units||tt.METRIC),n.scaleBar_=i.bar||!1,n.scaleBarSteps_=i.steps||4,n.scaleBarText_=i.text||!1,n}return Q(e,t),e.prototype.getUnits=function(){return this.get($)},e.prototype.handleUnitsChanged_=function(){this.updateElement_()},e.prototype.setUnits=function(t){this.set($,t)},e.prototype.updateElement_=function(){var t=this.viewState_;if(t){var e=t.center,n=t.projection,i=this.getUnits(),r=i==tt.DEGREES?J.b.DEGREES:J.b.METERS,o=Object(M.getPointResolution)(n,t.resolution,e,r),a=this.minWidth_*o,s="";if(i==tt.DEGREES){var u=M.METERS_PER_UNIT[J.b.DEGREES];(a*=u)<u/60?(s="″",o*=3600):a<u?(s="′",o*=60):s="°"}else i==tt.IMPERIAL?a<.9144?(s="in",o/=.0254):a<1609.344?(s="ft",o/=.3048):(s="mi",o/=1609.344):i==tt.NAUTICAL?(o/=1852,s="nm"):i==tt.METRIC?a<.001?(s="μm",o*=1e6):a<1?(s="mm",o*=1e3):a<1e3?s="m":(s="km",o/=1e3):i==tt.US?a<.9144?(s="in",o*=39.37):a<1609.344?(s="ft",o/=.30480061):(s="mi",o/=1609.3472):Object(q.a)(!1,33);for(var c,l,h,p,f=3*Math.floor(Math.log(this.minWidth_*o)/Math.log(10));;){h=Math.floor(f/3);var d=Math.pow(10,h);if(c=et[(f%3+3)%3]*d,l=Math.round(c/o),isNaN(l))return this.element.style.display="none",void(this.renderedVisible_=!1);if(l>=this.minWidth_)break;++f}p=this.scaleBar_?this.createScaleBar(l,c,s):c.toFixed(h<0?-h:0)+" "+s,this.renderedHTML_!=p&&(this.innerElement_.innerHTML=p,this.renderedHTML_=p),this.renderedWidth_!=l&&(this.innerElement_.style.width=l+"px",this.renderedWidth_=l),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},e.prototype.createScaleBar=function(t,e,n){for(var i="1 : "+Math.round(this.getScaleForResolution()).toLocaleString(),r=[],o=t/this.scaleBarSteps_,a="#ffffff",s=0;s<this.scaleBarSteps_;s++)0===s&&r.push(this.createMarker("absolute",s)),r.push('<div><div class="ol-scale-singlebar" style="width: '+o+"px;background-color: "+a+';"></div>'+this.createMarker("relative",s)+(s%2==0||2===this.scaleBarSteps_?this.createStepText(s,t,!1,e,n):"")+"</div>"),s===this.scaleBarSteps_-1&&r.push(this.createStepText(s+1,t,!0,e,n)),a="#ffffff"===a?"#000000":"#ffffff";return'<div style="display: flex;">'+(this.scaleBarText_?'<div class="ol-scale-text" style="width: '+t+'px;">'+i+"</div>":"")+r.join("")+"</div>"},e.prototype.createMarker=function(t,e){return'<div class="ol-scale-step-marker" style="position: '+t+";top: "+("absolute"===t?3:-10)+'px;"></div>'},e.prototype.createStepText=function(t,e,n,i,r){var o=(0===t?0:Math.round(i/this.scaleBarSteps_*t*100)/100)+(0===t?"":" "+r);return'<div class="ol-scale-step-text" style="margin-left: '+(0===t?-3:e/this.scaleBarSteps_*-1)+"px;text-align: "+(0===t?"left":"center")+"; min-width: "+(0===t?0:e/this.scaleBarSteps_*2)+"px;left: "+(n?e+"px":"unset")+';">'+o+"</div>"},e.prototype.getScaleForResolution=function(){var t=this.getMap().getView().getResolution(),e=this.viewState_.projection.getMetersPerUnit();return parseFloat(t.toString())*e*39.37*(25.4/.28)},e}(p),rt=n(26),ot=n(6),at=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),st={VERTICAL:0,HORIZONTAL:1};function ut(t){if(t.frameState){this.sliderInitialized_||this.initSlider_();var e=t.frameState.viewState.resolution;this.currentResolution_=e,this.setThumbPosition_(e)}}var ct=function(t){function e(e){var n=this,i=e||{};(n=t.call(this,{element:document.createElement("div"),render:i.render||ut})||this).dragListenerKeys_=[],n.currentResolution_=void 0,n.direction_=st.VERTICAL,n.dragging_,n.heightLimit_=0,n.widthLimit_=0,n.startX_,n.startY_,n.thumbSize_=null,n.sliderInitialized_=!1,n.duration_=void 0!==i.duration?i.duration:200;var r=void 0!==i.className?i.className:"ol-zoomslider",o=document.createElement("button");o.setAttribute("type","button"),o.className=r+"-thumb "+f.e;var a=n.element;return a.setAttribute("touch-action","none"),a.className=r+" "+f.e+" "+f.b,a.appendChild(o),a.addEventListener(P.a.POINTERDOWN,n.handleDraggerStart_.bind(n),!1),a.addEventListener(P.a.POINTERMOVE,n.handleDraggerDrag_.bind(n),!1),a.addEventListener(P.a.POINTERUP,n.handleDraggerEnd_.bind(n),!1),a.addEventListener(d.a.CLICK,n.handleContainerClick_.bind(n),!1),o.addEventListener(d.a.CLICK,rt.b,!1),n}return at(e,t),e.prototype.setMap=function(e){t.prototype.setMap.call(this,e),e&&e.render()},e.prototype.initSlider_=function(){var t=this.element,e=t.offsetWidth,n=t.offsetHeight,i=t.firstElementChild,r=getComputedStyle(i),o=i.offsetWidth+parseFloat(r.marginRight)+parseFloat(r.marginLeft),a=i.offsetHeight+parseFloat(r.marginTop)+parseFloat(r.marginBottom);this.thumbSize_=[o,a],e>n?(this.direction_=st.HORIZONTAL,this.widthLimit_=e-o):(this.direction_=st.VERTICAL,this.heightLimit_=n-a),this.sliderInitialized_=!0},e.prototype.handleContainerClick_=function(t){var e=this.getMap().getView(),n=this.getRelativePosition_(t.offsetX-this.thumbSize_[0]/2,t.offsetY-this.thumbSize_[1]/2),i=this.getResolutionForPosition_(n),r=e.getConstrainedZoom(e.getZoomForResolution(i));e.animateInternal({zoom:r,duration:this.duration_,easing:m.b})},e.prototype.handleDraggerStart_=function(t){if(!this.dragging_&&t.target===this.element.firstElementChild){var e=this.element.firstElementChild;if(this.getMap().getView().beginInteraction(),this.startX_=t.clientX-parseFloat(e.style.left),this.startY_=t.clientY-parseFloat(e.style.top),this.dragging_=!0,0===this.dragListenerKeys_.length){var n=this.handleDraggerDrag_,i=this.handleDraggerEnd_;this.dragListenerKeys_.push(Object(l.a)(document,P.a.POINTERMOVE,n,this),Object(l.a)(document,P.a.POINTERUP,i,this))}}},e.prototype.handleDraggerDrag_=function(t){if(this.dragging_){var e=t.clientX-this.startX_,n=t.clientY-this.startY_,i=this.getRelativePosition_(e,n);this.currentResolution_=this.getResolutionForPosition_(i),this.getMap().getView().setResolution(this.currentResolution_)}},e.prototype.handleDraggerEnd_=function(t){this.dragging_&&(this.getMap().getView().endInteraction(),this.dragging_=!1,this.startX_=void 0,this.startY_=void 0,this.dragListenerKeys_.forEach(l.c),this.dragListenerKeys_.length=0)},e.prototype.setThumbPosition_=function(t){var e=this.getPositionForResolution_(t),n=this.element.firstElementChild;this.direction_==st.HORIZONTAL?n.style.left=this.widthLimit_*e+"px":n.style.top=this.heightLimit_*e+"px"},e.prototype.getRelativePosition_=function(t,e){var n;return n=this.direction_===st.HORIZONTAL?t/this.widthLimit_:e/this.heightLimit_,Object(ot.a)(n,0,1)},e.prototype.getResolutionForPosition_=function(t){return this.getMap().getView().getResolutionForValueFunction()(1-t)},e.prototype.getPositionForResolution_=function(t){var e=this.getMap().getView().getValueForResolutionFunction();return Object(ot.a)(1-e(t),0,1)},e}(p),lt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ht=function(t){function e(e){var n=this,i=e||{};(n=t.call(this,{element:document.createElement("div"),target:i.target})||this).extent=i.extent?i.extent:null;var r=void 0!==i.className?i.className:"ol-zoom-extent",o=void 0!==i.label?i.label:"E",a=void 0!==i.tipLabel?i.tipLabel:"Fit to extent",s=document.createElement("button");s.setAttribute("type","button"),s.title=a,s.appendChild("string"==typeof o?document.createTextNode(o):o),s.addEventListener(d.a.CLICK,n.handleClick_.bind(n),!1);var u=r+" "+f.e+" "+f.b,c=n.element;return c.className=u,c.appendChild(s),n}return lt(e,t),e.prototype.handleClick_=function(t){t.preventDefault(),this.handleZoomToExtent()},e.prototype.handleZoomToExtent=function(){var t=this.getMap().getView(),e=this.extent?this.extent:t.getProjection().getExtent();t.fitInternal(Object(K.b)(e))},e}(p);function pt(t){var e=t||{},n=new r.a;return(void 0===e.zoom||e.zoom)&&n.push(new x(e.zoomOptions)),(void 0===e.rotate||e.rotate)&&n.push(new E(e.rotateOptions)),(void 0===e.attribution||e.attribution)&&n.push(new y(e.attributionOptions)),n}n.d(e,"defaults",(function(){return pt})),n.d(e,"Attribution",(function(){return y})),n.d(e,"Control",(function(){return p})),n.d(e,"FullScreen",(function(){return j})),n.d(e,"MousePosition",(function(){return D})),n.d(e,"OverviewMap",(function(){return H})),n.d(e,"Rotate",(function(){return E})),n.d(e,"ScaleLine",(function(){return it})),n.d(e,"Zoom",(function(){return x})),n.d(e,"ZoomSlider",(function(){return ct})),n.d(e,"ZoomToExtent",(function(){return ht}))},function(t,e,n){"use strict";n.r(e);var i=n(56),r=n(1),o=n(16),a=n(6);function s(t,e,n){return function(i,r,o,s){if(i){var u=e?0:o[0]*r,c=e?0:o[1]*r,l=t[0]+u/2,h=t[2]-u/2,p=t[1]+c/2,f=t[3]-c/2;l>h&&(h=l=(h+l)/2),p>f&&(f=p=(f+p)/2);var d=Object(a.a)(i[0],l,h),_=Object(a.a)(i[1],p,f),g=30*r;return s&&n&&(d+=-g*Math.log(1+Math.max(0,l-i[0])/g)+g*Math.log(1+Math.max(0,i[0]-h)/g),_+=-g*Math.log(1+Math.max(0,p-i[1])/g)+g*Math.log(1+Math.max(0,i[1]-f)/g)),[d,_]}}}function u(t){return t}var c=n(12),l=n(15),h=n(0);function p(t,e,n){var i=Object(h.E)(e)/n[0],r=Object(h.A)(e)/n[1];return Math.min(t,Math.min(i,r))}function f(t,e,n){var i=Math.min(t,e);return i*=Math.log(1+50*Math.max(0,t/e-1))/50+1,n&&(i=Math.max(i,n),i/=Math.log(1+50*Math.max(0,n/t-1))/50+1),Object(a.a)(i,n/2,2*e)}function d(t,e,n,i){return function(r,o,s,u){if(void 0!==r){var c=i?p(t,i,s):t;return(void 0===n||n)&&u?f(r,c,e):Object(a.a)(r,e,c)}}}var _=n(48),g=n(23),v=n(35),y=n(10),m=n(39),b=n(25),O=n(4),E=n(50),T=n(13),x=n(7),C=n(21);n.d(e,"createCenterConstraint",(function(){return P})),n.d(e,"createResolutionConstraint",(function(){return M})),n.d(e,"createRotationConstraint",(function(){return L})),n.d(e,"isNoopAnimation",(function(){return A}));var S,I=(S=function(t,e){return(S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}S(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),R=0,w=function(t){function e(e){var n=t.call(this)||this,i=Object(T.a)({},e);return n.hints_=[0,0],n.animations_=[],n.updateAnimationKey_,n.projection_=Object(x.createProjection)(i.projection,"EPSG:3857"),n.targetCenter_=null,n.targetResolution_,n.targetRotation_,i.center&&(i.center=Object(x.fromUserCoordinate)(i.center,n.projection_)),i.extent&&(i.extent=Object(x.fromUserExtent)(i.extent,n.projection_)),n.applyOptions_(i),n}return I(e,t),e.prototype.applyOptions_=function(t){var e=M(t);this.maxResolution_=e.maxResolution,this.minResolution_=e.minResolution,this.zoomFactor_=e.zoomFactor,this.resolutions_=t.resolutions,this.minZoom_=e.minZoom;var n=P(t),i=e.constraint,r=L(t);this.constraints_={center:n,resolution:i,rotation:r},this.setRotation(void 0!==t.rotation?t.rotation:0),this.setCenterInternal(void 0!==t.center?t.center:null),void 0!==t.resolution?this.setResolution(t.resolution):void 0!==t.zoom&&this.setZoom(t.zoom),this.resolveConstraints(0),this.setProperties({}),this.options_=t},e.prototype.getUpdatedOptions_=function(t){var e=Object(T.a)({},this.options_);return void 0!==e.resolution?e.resolution=this.getResolution():e.zoom=this.getZoom(),e.center=this.getCenterInternal(),e.rotation=this.getRotation(),Object(T.a)({},e,t)},e.prototype.animate=function(t){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);for(var e=new Array(arguments.length),n=0;n<e.length;++n){var i=arguments[n];i.center&&((i=Object(T.a)({},i)).center=Object(x.fromUserCoordinate)(i.center,this.getProjection())),i.anchor&&((i=Object(T.a)({},i)).anchor=Object(x.fromUserCoordinate)(i.anchor,this.getProjection())),e[n]=i}this.animateInternal.apply(this,e)},e.prototype.animateInternal=function(t){var e,n=arguments.length;if(n>1&&"function"==typeof arguments[n-1]&&(e=arguments[n-1],--n),!this.isDef()){var i=arguments[n-1];return i.center&&this.setCenterInternal(i.center),void 0!==i.zoom&&this.setZoom(i.zoom),void 0!==i.rotation&&this.setRotation(i.rotation),void(e&&j(e,!0))}for(var r=Date.now(),o=this.targetCenter_.slice(),s=this.targetResolution_,u=this.targetRotation_,c=[],l=0;l<n;++l){var h=arguments[l],p={start:r,complete:!1,anchor:h.anchor,duration:void 0!==h.duration?h.duration:1e3,easing:h.easing||b.c,callback:e};if(h.center&&(p.sourceCenter=o,p.targetCenter=h.center.slice(),o=p.targetCenter),void 0!==h.zoom?(p.sourceResolution=s,p.targetResolution=this.getResolutionForZoom(h.zoom),s=p.targetResolution):h.resolution&&(p.sourceResolution=s,p.targetResolution=h.resolution,s=p.targetResolution),void 0!==h.rotation){p.sourceRotation=u;var f=Object(a.d)(h.rotation-u+Math.PI,2*Math.PI)-Math.PI;p.targetRotation=u+f,u=p.targetRotation}A(p)?p.complete=!0:r+=p.duration,c.push(p)}this.animations_.push(c),this.setHint(g.a.ANIMATING,1),this.updateAnimations_()},e.prototype.getAnimating=function(){return this.hints_[g.a.ANIMATING]>0},e.prototype.getInteracting=function(){return this.hints_[g.a.INTERACTING]>0},e.prototype.cancelAnimations=function(){this.setHint(g.a.ANIMATING,-this.hints_[g.a.ANIMATING]);for(var t=0,e=this.animations_.length;t<e;++t){var n=this.animations_[t];n[0].callback&&j(n[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,n=this.animations_.length-1;n>=0;--n){for(var i=this.animations_[n],r=!0,o=0,s=i.length;o<s;++o){var u=i[o];if(!u.complete){var c=t-u.start,l=u.duration>0?c/u.duration:1;l>=1?(u.complete=!0,l=1):r=!1;var h=u.easing(l);if(u.sourceCenter){var p=u.sourceCenter[0],f=u.sourceCenter[1],d=p+h*(u.targetCenter[0]-p),_=f+h*(u.targetCenter[1]-f);this.targetCenter_=[d,_]}if(u.sourceResolution&&u.targetResolution){var v=1===h?u.targetResolution:u.sourceResolution+h*(u.targetResolution-u.sourceResolution);if(u.anchor){var y=this.getSizeFromViewport_(this.getRotation()),m=this.constraints_.resolution(v,0,y,!0);this.targetCenter_=this.calculateCenterZoom(m,u.anchor)}this.targetResolution_=v,this.applyTargetState_(!0)}if(void 0!==u.sourceRotation&&void 0!==u.targetRotation){var b=1===h?Object(a.d)(u.targetRotation+Math.PI,2*Math.PI)-Math.PI:u.sourceRotation+h*(u.targetRotation-u.sourceRotation);if(u.anchor){var O=this.constraints_.rotation(b,!0);this.targetCenter_=this.calculateCenterRotate(O,u.anchor)}this.targetRotation_=b}if(this.applyTargetState_(!0),e=!0,!u.complete)break}}if(r){this.animations_[n]=null,this.setHint(g.a.ANIMATING,-1);var E=i[0].callback;E&&j(E,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}},e.prototype.calculateCenterRotate=function(t,e){var n,i=this.getCenterInternal();return void 0!==i&&(n=[i[0]-e[0],i[1]-e[1]],Object(m.c)(n,t-this.getRotation()),Object(m.a)(n,e)),n},e.prototype.calculateCenterZoom=function(t,e){var n,i=this.getCenterInternal(),r=this.getResolution();void 0!==i&&void 0!==r&&(n=[e[0]-t*(e[0]-i[0])/r,e[1]-t*(e[1]-i[1])/r]);return n},e.prototype.getSizeFromViewport_=function(t){var e=[100,100],n='.ol-viewport[data-view="'+Object(r.c)(this)+'"]',i=document.querySelector(n);if(i){var o=getComputedStyle(i);e[0]=parseInt(o.width,10),e[1]=parseInt(o.height,10)}if(t){var a=e[0],s=e[1];e[0]=Math.abs(a*Math.cos(t))+Math.abs(s*Math.sin(t)),e[1]=Math.abs(a*Math.sin(t))+Math.abs(s*Math.cos(t))}return e},e.prototype.getCenter=function(){var t=this.getCenterInternal();return t?Object(x.toUserCoordinate)(t,this.getProjection()):t},e.prototype.getCenterInternal=function(){return this.get(v.a.CENTER)},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=this.calculateExtentInternal(t);return Object(x.toUserExtent)(e,this.getProjection())},e.prototype.calculateExtentInternal=function(t){var e=t||this.getSizeFromViewport_(),n=this.getCenterInternal();Object(y.a)(n,1);var i=this.getResolution();Object(y.a)(void 0!==i,2);var r=this.getRotation();return Object(y.a)(void 0!==r,3),Object(h.z)(n,i,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.setConstrainResolution=function(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolution=function(){return this.get(v.a.RESOLUTION)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,e){return this.getResolutionForExtentInternal(Object(x.fromUserExtent)(t,this.getProjection()),e)},e.prototype.getResolutionForExtentInternal=function(t,e){var n=e||this.getSizeFromViewport_(),i=Object(h.E)(t)/n[0],r=Object(h.A)(t)/n[1];return Math.max(i,r)},e.prototype.getResolutionForValueFunction=function(t){var e=t||2,n=this.maxResolution_,i=this.minResolution_,r=Math.log(n/i)/Math.log(e);return function(t){return n/Math.pow(e,t*r)}},e.prototype.getRotation=function(){return this.get(v.a.ROTATION)},e.prototype.getValueForResolutionFunction=function(t){var e=t||2,n=this.maxResolution_,i=this.minResolution_,r=Math.log(n/i)/Math.log(e);return function(t){return Math.log(n/t)/Math.log(e)/r}},e.prototype.getState=function(){var t=this.getCenterInternal(),e=this.getProjection(),n=this.getResolution(),i=this.getRotation();return{center:t.slice(0),projection:void 0!==e?e:null,resolution:n,rotation:i,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,n,i=this.minZoom_||0;if(this.resolutions_){var r=Object(l.e)(this.resolutions_,t,1);i=r,e=this.resolutions_[r],n=r==this.resolutions_.length-1?2:e/this.resolutions_[r+1]}else e=this.maxResolution_,n=this.zoomFactor_;return i+Math.log(e/t)/Math.log(n)},e.prototype.getResolutionForZoom=function(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var e=Object(a.a)(Math.floor(t),0,this.resolutions_.length-2),n=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(n,Object(a.a)(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)},e.prototype.fit=function(t,e){var n,i=Object(T.a)({size:this.getSizeFromViewport_()},e||{});if(Object(y.a)(Array.isArray(t)||"function"==typeof t.getSimplifiedGeometry,24),Array.isArray(t)){Object(y.a)(!Object(h.H)(t),25);var r=Object(x.fromUserExtent)(t,this.getProjection());n=Object(E.b)(r)}else if(t.getType()===O.a.CIRCLE){r=Object(x.fromUserExtent)(t.getExtent(),this.getProjection());(n=Object(E.b)(r)).rotate(this.getRotation(),Object(h.x)(r))}else{var o=Object(x.getUserProjection)();n=o?n.clone().transform(o,this.getProjection()):t}this.fitInternal(n,i)},e.prototype.fitInternal=function(t,e){var n=e||{},i=n.size;i||(i=this.getSizeFromViewport_());var r,a=void 0!==n.padding?n.padding:[0,0,0,0],s=void 0!==n.nearest&&n.nearest;r=void 0!==n.minResolution?n.minResolution:void 0!==n.maxZoom?this.getResolutionForZoom(n.maxZoom):0;for(var u=t.getFlatCoordinates(),c=this.getRotation(),l=Math.cos(-c),h=Math.sin(-c),p=1/0,f=1/0,d=-1/0,_=-1/0,g=t.getStride(),v=0,y=u.length;v<y;v+=g){var m=u[v]*l-u[v+1]*h,b=u[v]*h+u[v+1]*l;p=Math.min(p,m),f=Math.min(f,b),d=Math.max(d,m),_=Math.max(_,b)}var O=this.getResolutionForExtentInternal([p,f,d,_],[i[0]-a[1]-a[3],i[1]-a[0]-a[2]]);O=isNaN(O)?r:Math.max(O,r),O=this.getConstrainedResolution(O,s?0:1),h=-h;var E=(p+d)/2,T=(f+_)/2,x=[(E+=(a[1]-a[3])/2*O)*l-(T+=(a[0]-a[2])/2*O)*h,T*l+E*h],C=n.callback?n.callback:o.c;void 0!==n.duration?this.animateInternal({resolution:O,center:this.getConstrainedCenter(x,O),duration:n.duration,easing:n.easing},C):(this.targetResolution_=O,this.targetCenter_=x,this.applyTargetState_(!1,!0),j(C,!0))},e.prototype.centerOn=function(t,e,n){this.centerOnInternal(Object(x.fromUserCoordinate)(t,this.getProjection()),e,n)},e.prototype.centerOnInternal=function(t,e,n){var i=this.getRotation(),r=Math.cos(-i),o=Math.sin(-i),a=t[0]*r-t[1]*o,s=t[1]*r+t[0]*o,u=this.getResolution(),c=(a+=(e[0]/2-n[0])*u)*r-(s+=(n[1]-e[1]/2)*u)*(o=-o),l=s*r+a*o;this.setCenterInternal([c,l])},e.prototype.isDef=function(){return!!this.getCenterInternal()&&void 0!==this.getResolution()},e.prototype.adjustCenter=function(t){var e=Object(x.toUserCoordinate)(this.targetCenter_,this.getProjection());this.setCenter([e[0]+t[0],e[1]+t[1]])},e.prototype.adjustCenterInternal=function(t){var e=this.targetCenter_;this.setCenterInternal([e[0]+t[0],e[1]+t[1]])},e.prototype.adjustResolution=function(t,e){var n=e&&Object(x.fromUserCoordinate)(e,this.getProjection());this.adjustResolutionInternal(t,n)},e.prototype.adjustResolutionInternal=function(t,e){var n=this.getAnimating()||this.getInteracting(),i=this.getSizeFromViewport_(this.getRotation()),r=this.constraints_.resolution(this.targetResolution_*t,0,i,n);void 0!==e&&(this.targetCenter_=this.calculateCenterZoom(r,e)),this.targetResolution_*=t,this.applyTargetState_()},e.prototype.adjustZoom=function(t,e){this.adjustResolution(Math.pow(this.zoomFactor_,-t),e)},e.prototype.adjustRotation=function(t,e){e&&(e=Object(x.fromUserCoordinate)(e,this.getProjection())),this.adjustRotationInternal(t,e)},e.prototype.adjustRotationInternal=function(t,e){var n=this.getAnimating()||this.getInteracting(),i=this.constraints_.rotation(this.targetRotation_+t,n);void 0!==e&&(this.targetCenter_=this.calculateCenterRotate(i,e)),this.targetRotation_+=t,this.applyTargetState_()},e.prototype.setCenter=function(t){this.setCenterInternal(Object(x.fromUserCoordinate)(t,this.getProjection()))},e.prototype.setCenterInternal=function(t){this.targetCenter_=t,this.applyTargetState_()},e.prototype.setHint=function(t,e){return this.hints_[t]+=e,this.changed(),this.hints_[t]},e.prototype.setResolution=function(t){this.targetResolution_=t,this.applyTargetState_()},e.prototype.setRotation=function(t){this.targetRotation_=t,this.applyTargetState_()},e.prototype.setZoom=function(t){this.setResolution(this.getResolutionForZoom(t))},e.prototype.applyTargetState_=function(t,e){var n=this.getAnimating()||this.getInteracting()||e,i=this.constraints_.rotation(this.targetRotation_,n),r=this.getSizeFromViewport_(i),o=this.constraints_.resolution(this.targetResolution_,0,r,n),a=this.constraints_.center(this.targetCenter_,o,r,n);this.get(v.a.ROTATION)!==i&&this.set(v.a.ROTATION,i),this.get(v.a.RESOLUTION)!==o&&this.set(v.a.RESOLUTION,o),this.get(v.a.CENTER)&&Object(m.b)(this.get(v.a.CENTER),a)||this.set(v.a.CENTER,a),this.getAnimating()&&!t&&this.cancelAnimations()},e.prototype.resolveConstraints=function(t,e,n){var i=void 0!==t?t:200,r=e||0,o=this.constraints_.rotation(this.targetRotation_),a=this.getSizeFromViewport_(o),s=this.constraints_.resolution(this.targetResolution_,r,a),u=this.constraints_.center(this.targetCenter_,s,a);if(0===i)return this.targetResolution_=s,this.targetRotation_=o,this.targetCenter_=u,void this.applyTargetState_();this.getResolution()===s&&this.getRotation()===o&&this.getCenterInternal()&&Object(m.b)(this.getCenterInternal(),u)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:o,center:u,resolution:s,duration:i,easing:b.b,anchor:n}))},e.prototype.beginInteraction=function(){this.resolveConstraints(0),this.setHint(g.a.INTERACTING,1)},e.prototype.endInteraction=function(t,e,n){var i=n&&Object(x.fromUserCoordinate)(n,this.getProjection());this.endInteractionInternal(t,e,i)},e.prototype.endInteractionInternal=function(t,e,n){this.setHint(g.a.INTERACTING,-1),this.resolveConstraints(t,e,n)},e.prototype.getConstrainedCenter=function(t,e){var n=this.getSizeFromViewport_(this.getRotation());return this.constraints_.center(t,e||this.getResolution(),n)},e.prototype.getConstrainedZoom=function(t,e){var n=this.getResolutionForZoom(t);return this.getZoomForResolution(this.getConstrainedResolution(n,e))},e.prototype.getConstrainedResolution=function(t,e){var n=e||0,i=this.getSizeFromViewport_(this.getRotation());return this.constraints_.resolution(t,n,i)},e}(c.a);function j(t,e){setTimeout((function(){t(e)}),0)}function P(t){if(void 0!==t.extent){var e=void 0===t.smoothExtentConstraint||t.smoothExtentConstraint;return s(t.extent,t.constrainOnlyCenter,e)}var n=Object(x.createProjection)(t.projection,"EPSG:3857");if(!0!==t.multiWorld&&n.isGlobal()){var i=n.getExtent().slice();return i[0]=-1/0,i[2]=1/0,s(i,!1,!1)}return u}function M(t){var e,n,r,o=void 0!==t.minZoom?t.minZoom:R,s=void 0!==t.maxZoom?t.maxZoom:28,u=void 0!==t.zoomFactor?t.zoomFactor:2,c=void 0!==t.multiWorld&&t.multiWorld,_=void 0===t.smoothResolutionConstraint||t.smoothResolutionConstraint,g=Object(x.createProjection)(t.projection,"EPSG:3857"),v=g.getExtent(),y=t.constrainOnlyCenter,m=t.extent;if(c||m||!g.isGlobal()||(y=!1,m=v),void 0!==t.resolutions){var b=t.resolutions;n=b[o],r=void 0!==b[s]?b[s]:b[b.length-1],e=t.constrainResolution?function(t,e,n){return function(i,r,o,s){if(void 0!==i){var u=t[0],c=t[t.length-1],h=n?p(u,n,o):u;if(s)return void 0===e||e?f(i,h,c):Object(a.a)(i,c,h);var d=Math.min(h,i),_=Math.floor(Object(l.e)(t,d,r));return t[_]>h&&_<t.length-1?t[_+1]:t[_]}}}(b,_,!y&&m):d(n,r,_,!y&&m)}else{var O=(v?Math.max(Object(h.E)(v),Object(h.A)(v)):360*x.METERS_PER_UNIT[C.b.DEGREES]/g.getMetersPerUnit())/i.b/Math.pow(2,R),E=O/Math.pow(2,28-R);void 0!==(n=t.maxResolution)?o=0:n=O/Math.pow(u,o),void 0===(r=t.minResolution)&&(r=void 0!==t.maxZoom?void 0!==t.maxResolution?n/Math.pow(u,s):O/Math.pow(u,s):E),s=o+Math.floor(Math.log(n/r)/Math.log(u)),r=n/Math.pow(u,s-o),e=t.constrainResolution?function(t,e,n,i,r){return function(o,s,u,c){if(void 0!==o){var l=r?p(e,r,u):e,h=void 0!==n?n:0;if(c)return void 0===i||i?f(o,l,h):Object(a.a)(o,h,l);var d=Math.ceil(Math.log(e/l)/Math.log(t)-1e-9),_=-s*(.5-1e-9)+.5,g=Math.min(l,o),v=Math.floor(Math.log(e/g)/Math.log(t)+_),y=Math.max(d,v),m=e/Math.pow(t,y);return Object(a.a)(m,h,l)}}}(u,n,r,_,!y&&m):d(n,r,_,!y&&m)}return{constraint:e,maxResolution:n,minResolution:r,minZoom:o,zoomFactor:u}}function L(t){if(void 0===t.enableRotation||t.enableRotation){var e=t.constrainRotation;return void 0===e||!0===e?Object(_.b)():!1===e?_.d:"number"==typeof e?Object(_.a)(e):_.d}return _.c}function A(t){return!(t.sourceCenter&&t.targetCenter&&!Object(m.b)(t.sourceCenter,t.targetCenter))&&(t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation)}e.default=w},function(t,e,n){t.exports={Map:n(97).default,View:n(85).default,Overlay:n(82).default,Feature:n(95).default,control:n(84),proj:n(7),layer:{TileLayer:n(100).default,VectorLayer:n(98).default},source:{XYZ:n(83).default,OSM:n(96).default,Vector:n(99).default},style:{Style:n(76).default,Stroke:n(60).default,Icon:n(101).default},geom:{Point:n(81).default,LineString:n(102).default}}},,,,,,,,,function(t,e,n){"use strict";n.r(e),n.d(e,"createStyleFunction",(function(){return l}));var i,r=n(10),o=n(2),a=n(5),s=n(12),u=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t){function e(e){var n=t.call(this)||this;if(n.id_=void 0,n.geometryName_="geometry",n.style_=null,n.styleFunction_=void 0,n.geometryChangeKey_=null,n.addEventListener(Object(s.b)(n.geometryName_),n.handleGeometryChanged_),e)if("function"==typeof e.getSimplifiedGeometry){var i=e;n.setGeometry(i)}else{var r=e;n.setProperties(r)}return n}return u(e,t),e.prototype.clone=function(){var t=new e(this.getProperties());t.setGeometryName(this.getGeometryName());var n=this.getGeometry();n&&t.setGeometry(n.clone());var i=this.getStyle();return i&&t.setStyle(i),t},e.prototype.getGeometry=function(){return this.get(this.geometryName_)},e.prototype.getId=function(){return this.id_},e.prototype.getGeometryName=function(){return this.geometryName_},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.handleGeometryChange_=function(){this.changed()},e.prototype.handleGeometryChanged_=function(){this.geometryChangeKey_&&(Object(o.c)(this.geometryChangeKey_),this.geometryChangeKey_=null);var t=this.getGeometry();t&&(this.geometryChangeKey_=Object(o.a)(t,a.a.CHANGE,this.handleGeometryChange_,this)),this.changed()},e.prototype.setGeometry=function(t){this.set(this.geometryName_,t)},e.prototype.setStyle=function(t){this.style_=t,this.styleFunction_=t?l(t):void 0,this.changed()},e.prototype.setId=function(t){this.id_=t,this.changed()},e.prototype.setGeometryName=function(t){this.removeEventListener(Object(s.b)(this.geometryName_),this.handleGeometryChanged_),this.geometryName_=t,this.addEventListener(Object(s.b)(this.geometryName_),this.handleGeometryChanged_),this.handleGeometryChanged_()},e}(s.a);function l(t){return"function"==typeof t?t:(Array.isArray(t)?e=t:(Object(r.a)("function"==typeof t.getZIndex,41),e=[t]),function(){return e});var e}e.default=c},function(t,e,n){"use strict";n.r(e),n.d(e,"ATTRIBUTION",(function(){return a}));var i,r=n(83),o=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a='© <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors.',s=function(t){function e(e){var n,i=e||{};n=void 0!==i.attributions?i.attributions:[a];var r=void 0!==i.crossOrigin?i.crossOrigin:"anonymous",o=void 0!==i.url?i.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png";return t.call(this,{attributions:n,cacheSize:i.cacheSize,crossOrigin:r,opaque:void 0===i.opaque||i.opaque,maxZoom:void 0!==i.maxZoom?i.maxZoom:19,reprojectionErrorThreshold:i.reprojectionErrorThreshold,tileLoadFunction:i.tileLoadFunction,url:o,wrapX:i.wrapX,attributionsCollapsible:!1})||this}return o(e,t),e}(r.default);e.default=s},function(t,e,n){"use strict";n.r(e);var i,r=n(75),o=n(84),a=n(30),s=function(){function t(t,e,n){this.decay_=t,this.minVelocity_=e,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}return t.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},t.prototype.update=function(t,e){this.points_.push(t,e,Date.now())},t.prototype.end=function(){if(this.points_.length<6)return!1;var t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]<t)return!1;for(var n=e-3;n>0&&this.points_[n+2]>t;)n-=3;var i=this.points_[e+2]-this.points_[n+2];if(i<1e3/60)return!1;var r=this.points_[e]-this.points_[n],o=this.points_[e+1]-this.points_[n+1];return this.angle_=Math.atan2(o,r),this.initialVelocity_=Math.sqrt(r*r+o*o)/i,this.initialVelocity_>this.minVelocity_},t.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},t.prototype.getAngle=function(){return this.angle_},t}(),u=n(17),c=n(12),l=n(25),h="active",p=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function f(t,e,n,i){var r=t.getZoom();if(void 0!==r){var o=t.getConstrainedZoom(r+e),a=t.getResolutionForZoom(o);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:a,anchor:n,duration:void 0!==i?i:250,easing:l.b})}}var d=function(t){function e(e){var n=t.call(this)||this;return e.handleEvent&&(n.handleEvent=e.handleEvent),n.map_=null,n.setActive(!0),n}return p(e,t),e.prototype.getActive=function(){return this.get(h)},e.prototype.getMap=function(){return this.map_},e.prototype.handleEvent=function(t){return!0},e.prototype.setActive=function(t){this.set(h,t)},e.prototype.setMap=function(t){this.map_=t},e}(c.a),_=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function g(t){var e=!1;if(t.type==u.a.DBLCLICK){var n=t.originalEvent,i=t.map,r=t.coordinate,o=n.shiftKey?-this.delta_:this.delta_;f(i.getView(),o,r,this.duration_),t.preventDefault(),e=!0}return!e}var v=function(t){function e(e){var n=t.call(this,{handleEvent:g})||this,i=e||{};return n.delta_=i.delta?i.delta:1,n.duration_=void 0!==i.duration?i.duration:250,n}return _(e,t),e}(d),y=n(39),m=n(10),b=n(16),O=n(29),E=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},T=function(t){return t.target.getTargetElement()===document.activeElement},x=b.b,C=function(t){var e=t.originalEvent;return 0==e.button&&!(O.e&&O.d&&e.ctrlKey)},S=(b.a,function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey}),I=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},R=function(t){var e=t.target.tagName;return"INPUT"!==e&&"SELECT"!==e&&"TEXTAREA"!==e},w=function(t){var e=t.pointerEvent;return Object(m.a)(void 0!==e,56),"mouse"==e.pointerType},j=function(t){var e=t.pointerEvent;return Object(m.a)(void 0!==e,56),e.isPrimary&&0===e.button},P=n(13),M=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function L(t){for(var e=t.length,n=0,i=0,r=0;r<e;r++)n+=t[r].clientX,i+=t[r].clientY;return[n/e,i/e]}var A=function(t){function e(e){var n=this,i=e||{};return n=t.call(this,i)||this,i.handleDownEvent&&(n.handleDownEvent=i.handleDownEvent),i.handleDragEvent&&(n.handleDragEvent=i.handleDragEvent),i.handleMoveEvent&&(n.handleMoveEvent=i.handleMoveEvent),i.handleUpEvent&&(n.handleUpEvent=i.handleUpEvent),i.stopDown&&(n.stopDown=i.stopDown),n.handlingDownUpSequence=!1,n.trackedPointers_={},n.targetPointers=[],n}return M(e,t),e.prototype.handleDownEvent=function(t){return!1},e.prototype.handleDragEvent=function(t){},e.prototype.handleEvent=function(t){if(!t.pointerEvent)return!0;var e=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==u.a.POINTERDRAG)this.handleDragEvent(t);else if(t.type==u.a.POINTERUP){var n=this.handleUpEvent(t);this.handlingDownUpSequence=n&&this.targetPointers.length>0}}else if(t.type==u.a.POINTERDOWN){var i=this.handleDownEvent(t);i&&t.preventDefault(),this.handlingDownUpSequence=i,e=this.stopDown(i)}else t.type==u.a.POINTERMOVE&&this.handleMoveEvent(t);return!e},e.prototype.handleMoveEvent=function(t){},e.prototype.handleUpEvent=function(t){return!1},e.prototype.stopDown=function(t){return t},e.prototype.updateTrackedPointers_=function(t){if(function(t){var e=t.type;return e===u.a.POINTERDOWN||e===u.a.POINTERDRAG||e===u.a.POINTERUP}(t)){var e=t.pointerEvent,n=e.pointerId.toString();t.type==u.a.POINTERUP?delete this.trackedPointers_[n]:t.type==u.a.POINTERDOWN?this.trackedPointers_[n]=e:n in this.trackedPointers_&&(this.trackedPointers_[n]=e),this.targetPointers=Object(P.c)(this.trackedPointers_)}},e}(d),F=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function D(t){return S(t)&&j(t)}var N=function(t){function e(e){var n=t.call(this,{stopDown:b.a})||this,i=e||{};return n.kinetic_=i.kinetic,n.lastCentroid=null,n.lastPointersCount_,n.panning_=!1,n.condition_=i.condition?i.condition:D,n.noKinetic_=!1,n}return F(e,t),e.prototype.handleDragEvent=function(t){this.panning_||(this.panning_=!0,this.getMap().getView().beginInteraction());var e=this.targetPointers,n=L(e);if(e.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(n[0],n[1]),this.lastCentroid){var i=[this.lastCentroid[0]-n[0],n[1]-this.lastCentroid[1]],r=t.map.getView();Object(y.d)(i,r.getResolution()),Object(y.c)(i,r.getRotation()),r.adjustCenterInternal(i)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=n,this.lastPointersCount_=e.length},e.prototype.handleUpEvent=function(t){var e=t.map,n=e.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){var i=this.kinetic_.getDistance(),r=this.kinetic_.getAngle(),o=n.getCenterInternal(),a=e.getPixelFromCoordinateInternal(o),s=e.getCoordinateFromPixelInternal([a[0]-i*Math.cos(r),a[1]-i*Math.sin(r)]);n.animateInternal({center:n.getConstrainedCenter(s),duration:500,easing:l.b})}return this.panning_&&(this.panning_=!1,n.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>0&&this.condition_(t)){var e=t.map.getView();return this.lastCentroid=null,e.getAnimating()&&e.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1},e}(A),k=n(48),G=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Y=function(t){function e(e){var n=this,i=e||{};return(n=t.call(this,{stopDown:b.a})||this).condition_=i.condition?i.condition:E,n.lastAngle_=void 0,n.duration_=void 0!==i.duration?i.duration:250,n}return G(e,t),e.prototype.handleDragEvent=function(t){if(w(t)){var e=t.map,n=e.getView();if(n.getConstraints().rotation!==k.c){var i=e.getSize(),r=t.pixel,o=Math.atan2(i[1]/2-r[1],r[0]-i[0]/2);if(void 0!==this.lastAngle_){var a=o-this.lastAngle_;n.adjustRotationInternal(-a)}this.lastAngle_=o}}},e.prototype.handleUpEvent=function(t){return!w(t)||(t.map.getView().endInteraction(this.duration_),!1)},e.prototype.handleDownEvent=function(t){return!!w(t)&&(!(!C(t)||!this.condition_(t))&&(t.map.getView().beginInteraction(),this.lastAngle_=void 0,!0))},e}(A),X=n(0),z=n(26),W=n(43),K=n(50),U=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),B=function(t){function e(e){var n=t.call(this)||this;return n.geometry_=null,n.element_=document.createElement("div"),n.element_.style.position="absolute",n.element_.className="ol-box "+e,n.map_=null,n.startPixel_=null,n.endPixel_=null,n}return U(e,t),e.prototype.disposeInternal=function(){this.setMap(null)},e.prototype.render_=function(){var t=this.startPixel_,e=this.endPixel_,n=this.element_.style;n.left=Math.min(t[0],e[0])+"px",n.top=Math.min(t[1],e[1])+"px",n.width=Math.abs(e[0]-t[0])+"px",n.height=Math.abs(e[1]-t[1])+"px"},e.prototype.setMap=function(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var e=this.element_.style;e.left="inherit",e.top="inherit",e.width="inherit",e.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},e.prototype.setPixels=function(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()},e.prototype.createOrUpdateGeometry=function(){var t=this.startPixel_,e=this.endPixel_,n=[t,[t[0],e[1]],e,[e[0],t[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);n[4]=n[0].slice(),this.geometry_?this.geometry_.setCoordinates([n]):this.geometry_=new K.a([n])},e.prototype.getGeometry=function(){return this.geometry_},e}(W.a),V=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Z="boxstart",H="boxdrag",q="boxend",J=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.coordinate=n,r.mapBrowserEvent=i,r}return V(e,t),e}(z.a),Q=function(t){function e(e){var n=t.call(this)||this,i=e||{};return n.box_=new B(i.className||"ol-dragbox"),n.minArea_=void 0!==i.minArea?i.minArea:64,n.onBoxEnd_=i.onBoxEnd?i.onBoxEnd:b.c,n.startPixel_=null,n.condition_=i.condition?i.condition:x,n.boxEndCondition_=i.boxEndCondition?i.boxEndCondition:n.defaultBoxEndCondition,n}return V(e,t),e.prototype.defaultBoxEndCondition=function(t,e,n){var i=n[0]-e[0],r=n[1]-e[1];return i*i+r*r>=this.minArea_},e.prototype.getGeometry=function(){return this.box_.getGeometry()},e.prototype.handleDragEvent=function(t){w(t)&&(this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new J(H,t.coordinate,t)))},e.prototype.handleUpEvent=function(t){return!w(t)||(this.box_.setMap(null),this.boxEndCondition_(t,this.startPixel_,t.pixel)&&(this.onBoxEnd_(t),this.dispatchEvent(new J(q,t.coordinate,t))),!1)},e.prototype.handleDownEvent=function(t){return!!w(t)&&(!(!C(t)||!this.condition_(t))&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new J(Z,t.coordinate,t)),!0))},e}(A),$=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function tt(){var t=this.getMap(),e=t.getView(),n=t.getSize(),i=this.getGeometry().getExtent();if(this.out_){var r=e.calculateExtentInternal(n),o=Object(X.n)([t.getPixelFromCoordinateInternal(Object(X.v)(i)),t.getPixelFromCoordinateInternal(Object(X.D)(i))]),a=e.getResolutionForExtentInternal(o,n);Object(X.J)(r,1/a),i=r}var s=e.getConstrainedResolution(e.getResolutionForExtentInternal(i,n)),u=e.getConstrainedCenter(Object(X.x)(i),s);e.animateInternal({resolution:s,center:u,duration:this.duration_,easing:l.b})}var et=function(t){function e(e){var n=this,i=e||{},r=i.condition?i.condition:I;return(n=t.call(this,{condition:r,className:i.className||"ol-dragzoom",minArea:i.minArea,onBoxEnd:tt})||this).duration_=void 0!==i.duration?i.duration:200,n.out_=void 0!==i.out&&i.out,n}return $(e,t),e}(Q),nt=n(5),it={LEFT:37,UP:38,RIGHT:39,DOWN:40},rt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function ot(t){var e=!1;if(t.type==nt.a.KEYDOWN){var n=t.originalEvent.keyCode;if(this.condition_(t)&&(n==it.DOWN||n==it.LEFT||n==it.RIGHT||n==it.UP)){var i=t.map.getView(),r=i.getResolution()*this.pixelDelta_,o=0,a=0;n==it.DOWN?a=-r:n==it.LEFT?o=-r:n==it.RIGHT?o=r:a=r;var s=[o,a];Object(y.c)(s,i.getRotation()),function(t,e,n){var i=t.getCenterInternal();if(i){var r=[i[0]+e[0],i[1]+e[1]];t.animateInternal({duration:void 0!==n?n:250,easing:l.d,center:t.getConstrainedCenter(r)})}}(i,s,this.duration_),t.preventDefault(),e=!0}}return!e}var at=function(t){function e(e){var n=t.call(this,{handleEvent:ot})||this,i=e||{};return n.defaultCondition_=function(t){return S(t)&&R(t)},n.condition_=void 0!==i.condition?i.condition:n.defaultCondition_,n.duration_=void 0!==i.duration?i.duration:100,n.pixelDelta_=void 0!==i.pixelDelta?i.pixelDelta:128,n}return rt(e,t),e}(d),st=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function ut(t){var e=!1;if(t.type==nt.a.KEYDOWN||t.type==nt.a.KEYPRESS){var n=t.originalEvent.charCode;if(this.condition_(t)&&(n=="+".charCodeAt(0)||n=="-".charCodeAt(0))){var i=t.map,r=n=="+".charCodeAt(0)?this.delta_:-this.delta_;f(i.getView(),r,void 0,this.duration_),t.preventDefault(),e=!0}}return!e}var ct=function(t){function e(e){var n=t.call(this,{handleEvent:ut})||this,i=e||{};return n.condition_=i.condition?i.condition:R,n.delta_=i.delta?i.delta:1,n.duration_=void 0!==i.duration?i.duration:100,n}return st(e,t),e}(d),lt=n(6),ht=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),pt="trackpad",ft="wheel",dt=function(t){function e(e){var n=this,i=e||{};return(n=t.call(this,i)||this).totalDelta_=0,n.lastDelta_=0,n.maxDelta_=void 0!==i.maxDelta?i.maxDelta:1,n.duration_=void 0!==i.duration?i.duration:250,n.timeout_=void 0!==i.timeout?i.timeout:80,n.useAnchor_=void 0===i.useAnchor||i.useAnchor,n.condition_=i.condition?i.condition:x,n.lastAnchor_=null,n.startTime_=void 0,n.timeoutId_,n.mode_=void 0,n.trackpadEventGap_=400,n.trackpadTimeoutId_,n.trackpadDeltaPerZoom_=300,n}return ht(e,t),e.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0,this.getMap().getView().endInteraction(void 0,Math.sign(this.lastDelta_),this.lastAnchor_)},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;if(t.type!==nt.a.WHEEL)return!0;t.preventDefault();var e,n=t.map,i=t.originalEvent;if(this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==nt.a.WHEEL&&(e=i.deltaY,O.b&&i.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(e/=O.a),i.deltaMode===WheelEvent.DOM_DELTA_LINE&&(e*=40)),0===e)return!1;this.lastDelta_=e;var r=Date.now();if(void 0===this.startTime_&&(this.startTime_=r),(!this.mode_||r-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(e)<4?pt:ft),this.mode_===pt){var o=n.getView();return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):o.beginInteraction(),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.trackpadEventGap_),o.adjustZoom(-e/this.trackpadDeltaPerZoom_,this.lastAnchor_),this.startTime_=r,!1}this.totalDelta_+=e;var a=Math.max(this.timeout_-(r-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,n),a),!1},e.prototype.handleWheelZoom_=function(t){var e=t.getView();e.getAnimating()&&e.cancelAnimations(),f(e,-Object(lt.a)(this.totalDelta_,-this.maxDelta_,this.maxDelta_),this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},e.prototype.setMouseAnchor=function(t){this.useAnchor_=t,t||(this.lastAnchor_=null)},e}(d),_t=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),gt=function(t){function e(e){var n=this,i=e||{},r=i;return r.stopDown||(r.stopDown=b.a),(n=t.call(this,r)||this).anchor_=null,n.lastAngle_=void 0,n.rotating_=!1,n.rotationDelta_=0,n.threshold_=void 0!==i.threshold?i.threshold:.3,n.duration_=void 0!==i.duration?i.duration:250,n}return _t(e,t),e.prototype.handleDragEvent=function(t){var e=0,n=this.targetPointers[0],i=this.targetPointers[1],r=Math.atan2(i.clientY-n.clientY,i.clientX-n.clientX);if(void 0!==this.lastAngle_){var o=r-this.lastAngle_;this.rotationDelta_+=o,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=o}this.lastAngle_=r;var a=t.map,s=a.getView();if(s.getConstraints().rotation!==k.c){var u=a.getViewport().getBoundingClientRect(),c=L(this.targetPointers);c[0]-=u.left,c[1]-=u.top,this.anchor_=a.getCoordinateFromPixelInternal(c),this.rotating_&&(a.render(),s.adjustRotationInternal(e,this.anchor_))}},e.prototype.handleUpEvent=function(t){return!(this.targetPointers.length<2)||(t.map.getView().endInteraction(this.duration_),!1)},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1},e}(A),vt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),yt=function(t){function e(e){var n=this,i=e||{},r=i;return r.stopDown||(r.stopDown=b.a),(n=t.call(this,r)||this).anchor_=null,n.duration_=void 0!==i.duration?i.duration:400,n.lastDistance_=void 0,n.lastScaleDelta_=1,n}return vt(e,t),e.prototype.handleDragEvent=function(t){var e=1,n=this.targetPointers[0],i=this.targetPointers[1],r=n.clientX-i.clientX,o=n.clientY-i.clientY,a=Math.sqrt(r*r+o*o);void 0!==this.lastDistance_&&(e=this.lastDistance_/a),this.lastDistance_=a;var s=t.map,u=s.getView();1!=e&&(this.lastScaleDelta_=e);var c=s.getViewport().getBoundingClientRect(),l=L(this.targetPointers);l[0]-=c.left,l[1]-=c.top,this.anchor_=s.getCoordinateFromPixelInternal(l),s.render(),u.adjustResolutionInternal(e,this.anchor_)},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var e=t.map.getView(),n=this.lastScaleDelta_>1?1:-1;return e.endInteraction(this.duration_,n),!1}return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1},e}(A);var mt=n(77),bt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ot=function(t){function e(e){return(e=Object(P.a)({},e)).controls||(e.controls=Object(o.defaults)()),e.interactions||(e.interactions=function(t){var e=t||{},n=new a.a,i=new s(-.005,.05,100);return(void 0===e.altShiftDragRotate||e.altShiftDragRotate)&&n.push(new Y),(void 0===e.doubleClickZoom||e.doubleClickZoom)&&n.push(new v({delta:e.zoomDelta,duration:e.zoomDuration})),(void 0===e.dragPan||e.dragPan)&&n.push(new N({condition:e.onFocusOnly?T:void 0,kinetic:i})),(void 0===e.pinchRotate||e.pinchRotate)&&n.push(new gt),(void 0===e.pinchZoom||e.pinchZoom)&&n.push(new yt({duration:e.zoomDuration})),(void 0===e.keyboard||e.keyboard)&&(n.push(new at),n.push(new ct({delta:e.zoomDelta,duration:e.zoomDuration}))),(void 0===e.mouseWheelZoom||e.mouseWheelZoom)&&n.push(new dt({condition:e.onFocusOnly?T:void 0,duration:e.zoomDuration})),(void 0===e.shiftDragZoom||e.shiftDragZoom)&&n.push(new et({duration:e.zoomDuration})),n}()),t.call(this,e)||this}return bt(e,t),e.prototype.createRenderer=function(){return new mt.a(this)},e}(r.a);e.default=Ot},function(t,e,n){"use strict";n.r(e);var i,r=n(41),o=n(13),a=n(76),s=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u="renderOrder",c=function(t){function e(e){var n=this,i=e||{},r=Object(o.a)({},i);return delete r.style,delete r.renderBuffer,delete r.updateWhileAnimating,delete r.updateWhileInteracting,(n=t.call(this,r)||this).declutter_=void 0!==i.declutter&&i.declutter,n.renderBuffer_=void 0!==i.renderBuffer?i.renderBuffer:100,n.style_=null,n.styleFunction_=void 0,n.setStyle(i.style),n.updateWhileAnimating_=void 0!==i.updateWhileAnimating&&i.updateWhileAnimating,n.updateWhileInteracting_=void 0!==i.updateWhileInteracting&&i.updateWhileInteracting,n}return s(e,t),e.prototype.getDeclutter=function(){return this.declutter_},e.prototype.getFeatures=function(e){return t.prototype.getFeatures.call(this,e)},e.prototype.getRenderBuffer=function(){return this.renderBuffer_},e.prototype.getRenderOrder=function(){return this.get(u)},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},e.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},e.prototype.setRenderOrder=function(t){this.set(u,t)},e.prototype.setStyle=function(t){this.style_=void 0!==t?t:a.createDefaultStyle,this.styleFunction_=null===t?void 0:Object(a.toFunction)(this.style_),this.changed()},e}(r.a),l=n(1),h=n(23),p=n(0),f=n(7),d=n(15),_=n(33),g=n(24),v=n(4),y=n(46),m=n(68),b=n(3),O={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},E=[O.FILL],T=[O.STROKE],x=[O.BEGIN_PATH],C=[O.CLOSE_PATH],S=O,I=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),R=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.tolerance=e,o.maxExtent=n,o.pixelRatio=r,o.maxLineWidth=0,o.resolution=i,o.beginGeometryInstruction1_=null,o.beginGeometryInstruction2_=null,o.bufferedMaxExtent_=null,o.instructions=[],o.coordinates=[],o.tmpCoordinate_=[],o.hitDetectionInstructions=[],o.state={},o}return I(e,t),e.prototype.applyPixelRatio=function(t){var e=this.pixelRatio;return 1==e?t:t.map((function(t){return t*e}))},e.prototype.appendFlatCoordinates=function(t,e,n,i,r,o){var a=this.coordinates.length,s=this.getBufferedMaxExtent();o&&(e+=i);var u,c,l,h=t[e],f=t[e+1],d=this.tmpCoordinate_,_=!0;for(u=e+i;u<n;u+=i)d[0]=t[u],d[1]=t[u+1],(l=Object(p.i)(s,d))!==c?(_&&(this.coordinates[a++]=h,this.coordinates[a++]=f),this.coordinates[a++]=d[0],this.coordinates[a++]=d[1],_=!1):l===g.a.INTERSECTING?(this.coordinates[a++]=d[0],this.coordinates[a++]=d[1],_=!1):_=!0,h=d[0],f=d[1],c=l;return(r&&_||u===e+i)&&(this.coordinates[a++]=h,this.coordinates[a++]=f),a},e.prototype.drawCustomCoordinates_=function(t,e,n,i,r){for(var o=0,a=n.length;o<a;++o){var s=n[o],u=this.appendFlatCoordinates(t,e,s,i,!1,!1);r.push(u),e=s}return e},e.prototype.drawCustom=function(t,e,n){this.beginGeometry(t,e);var i,r,o,a,s,u=t.getType(),c=t.getStride(),l=this.coordinates.length;if(u==v.a.MULTI_POLYGON){i=(t=t).getOrientedFlatCoordinates(),a=[];var h=t.getEndss();s=0;for(var p=0,f=h.length;p<f;++p){var d=[];s=this.drawCustomCoordinates_(i,s,h[p],c,d),a.push(d)}this.instructions.push([S.CUSTOM,l,a,t,n,y.c])}else u==v.a.POLYGON||u==v.a.MULTI_LINE_STRING?(o=[],i=u==v.a.POLYGON?t.getOrientedFlatCoordinates():t.getFlatCoordinates(),s=this.drawCustomCoordinates_(i,0,t.getEnds(),c,o),this.instructions.push([S.CUSTOM,l,o,t,n,y.b])):u==v.a.LINE_STRING||u==v.a.MULTI_POINT?(i=t.getFlatCoordinates(),r=this.appendFlatCoordinates(i,0,i.length,c,!1,!1),this.instructions.push([S.CUSTOM,l,r,t,n,y.a])):u==v.a.POINT&&(i=t.getFlatCoordinates(),this.coordinates.push(i[0],i[1]),r=this.coordinates.length,this.instructions.push([S.CUSTOM,l,r,t,n]));this.endGeometry(e)},e.prototype.beginGeometry=function(t,e){var n=t.getExtent();this.beginGeometryInstruction1_=[S.BEGIN_GEOMETRY,e,0,n],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[S.BEGIN_GEOMETRY,e,0,n],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},e.prototype.finish=function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}},e.prototype.reverseHitDetectionInstructions=function(){var t,e=this.hitDetectionInstructions;e.reverse();var n,i,r=e.length,o=-1;for(t=0;t<r;++t)(i=(n=e[t])[0])==S.END_GEOMETRY?o=t:i==S.BEGIN_GEOMETRY&&(n[2]=t,Object(d.g)(this.hitDetectionInstructions,o,t),o=-1)},e.prototype.setFillStrokeStyle=function(t,e){var n=this.state;if(t){var i=t.getColor();n.fillStyle=Object(_.a)(i||b.b)}else n.fillStyle=void 0;if(e){var r=e.getColor();n.strokeStyle=Object(_.a)(r||b.k);var o=e.getLineCap();n.lineCap=void 0!==o?o:b.d;var a=e.getLineDash();n.lineDash=a?a.slice():b.e;var s=e.getLineDashOffset();n.lineDashOffset=s||b.f;var u=e.getLineJoin();n.lineJoin=void 0!==u?u:b.g;var c=e.getWidth();n.lineWidth=void 0!==c?c:b.h;var l=e.getMiterLimit();n.miterLimit=void 0!==l?l:b.i,n.lineWidth>this.maxLineWidth&&(this.maxLineWidth=n.lineWidth,this.bufferedMaxExtent_=null)}else n.strokeStyle=void 0,n.lineCap=void 0,n.lineDash=null,n.lineDashOffset=void 0,n.lineJoin=void 0,n.lineWidth=void 0,n.miterLimit=void 0},e.prototype.createFill=function(t){var e=t.fillStyle,n=[S.SET_FILL_STYLE,e];return"string"!=typeof e&&n.push(!0),n},e.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},e.prototype.createStroke=function(t){return[S.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]},e.prototype.updateFillStyle=function(t,e){var n=t.fillStyle;"string"==typeof n&&t.currentFillStyle==n||(void 0!==n&&this.instructions.push(e.call(this,t)),t.currentFillStyle=n)},e.prototype.updateStrokeStyle=function(t,e){var n=t.strokeStyle,i=t.lineCap,r=t.lineDash,o=t.lineDashOffset,a=t.lineJoin,s=t.lineWidth,u=t.miterLimit;(t.currentStrokeStyle!=n||t.currentLineCap!=i||r!=t.currentLineDash&&!Object(d.b)(t.currentLineDash,r)||t.currentLineDashOffset!=o||t.currentLineJoin!=a||t.currentLineWidth!=s||t.currentMiterLimit!=u)&&(void 0!==n&&e.call(this,t),t.currentStrokeStyle=n,t.currentLineCap=i,t.currentLineDash=r,t.currentLineDashOffset=o,t.currentLineJoin=a,t.currentLineWidth=s,t.currentMiterLimit=u)},e.prototype.endGeometry=function(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var e=[S.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)},e.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=Object(p.d)(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;Object(p.c)(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},e}(m.a),w=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),j=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i,r)||this;return o.declutterGroups_=null,o.hitDetectionImage_=null,o.image_=null,o.anchorX_=void 0,o.anchorY_=void 0,o.height_=void 0,o.opacity_=void 0,o.originX_=void 0,o.originY_=void 0,o.rotateWithView_=void 0,o.rotation_=void 0,o.scale_=void 0,o.width_=void 0,o}return w(e,t),e.prototype.drawCoordinates_=function(t,e,n,i){return this.appendFlatCoordinates(t,e,n,i,!1,!1)},e.prototype.drawPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var n=t.getFlatCoordinates(),i=t.getStride(),r=this.coordinates.length,o=this.drawCoordinates_(n,0,n.length,i);this.instructions.push([S.DRAW_IMAGE,r,o,this.image_,this.anchorX_,this.anchorY_,this.declutterGroups_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_*this.pixelRatio,this.width_]),this.hitDetectionInstructions.push([S.DRAW_IMAGE,r,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.declutterGroups_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_]),this.endGeometry(e)}},e.prototype.drawMultiPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var n=t.getFlatCoordinates(),i=t.getStride(),r=this.coordinates.length,o=this.drawCoordinates_(n,0,n.length,i);this.instructions.push([S.DRAW_IMAGE,r,o,this.image_,this.anchorX_,this.anchorY_,this.declutterGroups_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_*this.pixelRatio,this.width_]),this.hitDetectionInstructions.push([S.DRAW_IMAGE,r,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.declutterGroups_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_]),this.endGeometry(e)}},e.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,t.prototype.finish.call(this)},e.prototype.setImageStyle=function(t,e){var n=t.getAnchor(),i=t.getSize(),r=t.getHitDetectionImage(1),o=t.getImage(1),a=t.getOrigin();this.anchorX_=n[0],this.anchorY_=n[1],this.declutterGroups_=e,this.hitDetectionImage_=r,this.image_=o,this.height_=i[1],this.opacity_=t.getOpacity(),this.originX_=a[0],this.originY_=a[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScale(),this.width_=i[0]},e}(R),P=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),M=function(t){function e(e,n,i,r){return t.call(this,e,n,i,r)||this}return P(e,t),e.prototype.drawFlatCoordinates_=function(t,e,n,i){var r=this.coordinates.length,o=this.appendFlatCoordinates(t,e,n,i,!1,!1),a=[S.MOVE_TO_LINE_TO,r,o];return this.instructions.push(a),this.hitDetectionInstructions.push(a),n},e.prototype.drawLineString=function(t,e){var n=this.state,i=n.strokeStyle,r=n.lineWidth;if(void 0!==i&&void 0!==r){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([S.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],x);var o=t.getFlatCoordinates(),a=t.getStride();this.drawFlatCoordinates_(o,0,o.length,a),this.hitDetectionInstructions.push(T),this.endGeometry(e)}},e.prototype.drawMultiLineString=function(t,e){var n=this.state,i=n.strokeStyle,r=n.lineWidth;if(void 0!==i&&void 0!==r){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([S.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],x);for(var o=t.getEnds(),a=t.getFlatCoordinates(),s=t.getStride(),u=0,c=0,l=o.length;c<l;++c)u=this.drawFlatCoordinates_(a,u,o[c],s);this.hitDetectionInstructions.push(T),this.endGeometry(e)}},e.prototype.finish=function(){var e=this.state;return null!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&this.instructions.push(T),this.reverseHitDetectionInstructions(),this.state=null,t.prototype.finish.call(this)},e.prototype.applyStroke=function(e){null!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&(this.instructions.push(T),e.lastStroke=this.coordinates.length),e.lastStroke=0,t.prototype.applyStroke.call(this,e),this.instructions.push(x)},e}(R),L=n(54),A=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),F=function(t){function e(e,n,i,r){return t.call(this,e,n,i,r)||this}return A(e,t),e.prototype.drawFlatCoordinatess_=function(t,e,n,i){var r=this.state,o=void 0!==r.fillStyle,a=void 0!==r.strokeStyle,s=n.length;this.instructions.push(x),this.hitDetectionInstructions.push(x);for(var u=0;u<s;++u){var c=n[u],l=this.coordinates.length,h=this.appendFlatCoordinates(t,e,c,i,!0,!a),p=[S.MOVE_TO_LINE_TO,l,h];this.instructions.push(p),this.hitDetectionInstructions.push(p),a&&(this.instructions.push(C),this.hitDetectionInstructions.push(C)),e=c}return o&&(this.instructions.push(E),this.hitDetectionInstructions.push(E)),a&&(this.instructions.push(T),this.hitDetectionInstructions.push(T)),e},e.prototype.drawCircle=function(t,e){var n=this.state,i=n.fillStyle,r=n.strokeStyle;if(void 0!==i||void 0!==r){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([S.SET_FILL_STYLE,b.b]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([S.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);var o=t.getFlatCoordinates(),a=t.getStride(),s=this.coordinates.length;this.appendFlatCoordinates(o,0,o.length,a,!1,!1);var u=[S.CIRCLE,s];this.instructions.push(x,u),this.hitDetectionInstructions.push(x,u),void 0!==n.fillStyle&&(this.instructions.push(E),this.hitDetectionInstructions.push(E)),void 0!==n.strokeStyle&&(this.instructions.push(T),this.hitDetectionInstructions.push(T)),this.endGeometry(e)}},e.prototype.drawPolygon=function(t,e){var n=this.state,i=n.fillStyle,r=n.strokeStyle;if(void 0!==i||void 0!==r){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([S.SET_FILL_STYLE,b.b]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([S.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);var o=t.getEnds(),a=t.getOrientedFlatCoordinates(),s=t.getStride();this.drawFlatCoordinatess_(a,0,o,s),this.endGeometry(e)}},e.prototype.drawMultiPolygon=function(t,e){var n=this.state,i=n.fillStyle,r=n.strokeStyle;if(void 0!==i||void 0!==r){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([S.SET_FILL_STYLE,b.b]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([S.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);for(var o=t.getEndss(),a=t.getOrientedFlatCoordinates(),s=t.getStride(),u=0,c=0,l=o.length;c<l;++c)u=this.drawFlatCoordinatess_(a,u,o[c],s);this.endGeometry(e)}},e.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.state=null;var e=this.tolerance;if(0!==e)for(var n=this.coordinates,i=0,r=n.length;i<r;++i)n[i]=Object(L.c)(n[i],e);return t.prototype.finish.call(this)},e.prototype.setFillStrokeStyles_=function(){var t=this.state;void 0!==t.fillStyle&&this.updateFillStyle(t,this.createFill),void 0!==t.strokeStyle&&this.updateStrokeStyle(t,this.applyStroke)},e}(R);function D(t,e,n,i,r){var o,a,s,u,c,l,h,p,f,d=n,_=n,g=0,v=0,y=n;for(o=n;o<i;o+=r){var m=e[o],b=e[o+1];void 0!==u&&(p=m-u,f=b-c,s=Math.sqrt(p*p+f*f),void 0!==l&&(v+=a,Math.acos((l*p+h*f)/(a*s))>t&&(v>g&&(g=v,d=y,_=o),v=0,y=o-r)),a=s,l=p,h=f),u=m,c=b}return(v+=s)>g?[y,o]:[d,_]}var N="line",k=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),G={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},Y={Circle:F,Default:R,Image:j,LineString:M,Polygon:F,Text:function(t){function e(e,n,i,r){var o=t.call(this,e,n,i,r)||this;return o.declutterGroups_,o.labels_=null,o.text_="",o.textOffsetX_=0,o.textOffsetY_=0,o.textRotateWithView_=void 0,o.textRotation_=0,o.textFillState_=null,o.fillStates={},o.textStrokeState_=null,o.strokeStates={},o.textState_={},o.textStates={},o.textKey_="",o.fillKey_="",o.strokeKey_="",b.o.prune(),o}return k(e,t),e.prototype.finish=function(){var e=t.prototype.finish.call(this);return e.textStates=this.textStates,e.fillStates=this.fillStates,e.strokeStates=this.strokeStates,e},e.prototype.drawText=function(t,e){var n=this.textFillState_,i=this.textStrokeState_,r=this.textState_;if(""!==this.text_&&r&&(n||i)){var o,a,s=this.coordinates.length,u=t.getType(),c=null,l=2,h=2;if(r.placement===N){if(!Object(p.F)(this.getBufferedMaxExtent(),t.getExtent()))return;var f=void 0;if(c=t.getFlatCoordinates(),h=t.getStride(),u==v.a.LINE_STRING)f=[c.length];else if(u==v.a.MULTI_LINE_STRING)f=t.getEnds();else if(u==v.a.POLYGON)f=t.getEnds().slice(0,1);else if(u==v.a.MULTI_POLYGON){var d=t.getEndss();for(f=[],o=0,a=d.length;o<a;++o)f.push(d[o][0])}this.beginGeometry(t,e);for(var _=r.textAlign,g=0,y=void 0,m=0,O=f.length;m<O;++m){if(null==_){var E=D(r.maxAngle,c,g,f[m],h);g=E[0],y=E[1]}else y=f[m];for(o=g;o<y;o+=h)this.coordinates.push(c[o],c[o+1]);l=this.coordinates.length,g=f[m];var T=this.declutterGroups_?0===m?this.declutterGroups_[0]:[].concat(this.declutterGroups_[0]):null;this.drawChars_(s,l,T),s=l}this.endGeometry(e)}else{var x=null;switch(r.overflow||(x=[]),u){case v.a.POINT:case v.a.MULTI_POINT:l=(c=t.getFlatCoordinates()).length;break;case v.a.LINE_STRING:c=t.getFlatMidpoint();break;case v.a.CIRCLE:c=t.getCenter();break;case v.a.MULTI_LINE_STRING:l=(c=t.getFlatMidpoints()).length;break;case v.a.POLYGON:c=t.getFlatInteriorPoint(),r.overflow||x.push(c[2]/this.resolution),h=3;break;case v.a.MULTI_POLYGON:var C=t.getFlatInteriorPoints();for(c=[],o=0,a=C.length;o<a;o+=3)r.overflow||x.push(C[o+2]/this.resolution),c.push(C[o],C[o+1]);if(0==(l=c.length))return}l=this.appendFlatCoordinates(c,0,l,h,!1,!1),this.saveTextStates_(),(r.backgroundFill||r.backgroundStroke)&&(this.setFillStrokeStyle(r.backgroundFill,r.backgroundStroke),r.backgroundFill&&(this.updateFillStyle(this.state,this.createFill),this.hitDetectionInstructions.push(this.createFill(this.state))),r.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e);var I=this.pixelRatio;this.instructions.push([S.DRAW_IMAGE,s,l,null,NaN,NaN,this.declutterGroups_,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,1,NaN,r.padding==b.j?b.j:r.padding.map((function(t){return t*I})),!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,x]),this.hitDetectionInstructions.push([S.DRAW_IMAGE,s,l,null,NaN,NaN,this.declutterGroups_,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,1/this.pixelRatio,NaN,r.padding,!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,x]),this.endGeometry(e)}}},e.prototype.saveTextStates_=function(){var t=this.textStrokeState_,e=this.textState_,n=this.textFillState_,i=this.strokeKey_;t&&(i in this.strokeStates||(this.strokeStates[i]={strokeStyle:t.strokeStyle,lineCap:t.lineCap,lineDashOffset:t.lineDashOffset,lineWidth:t.lineWidth,lineJoin:t.lineJoin,miterLimit:t.miterLimit,lineDash:t.lineDash}));var r=this.textKey_;r in this.textStates||(this.textStates[r]={font:e.font,textAlign:e.textAlign||b.l,textBaseline:e.textBaseline||b.m,scale:e.scale});var o=this.fillKey_;n&&(o in this.fillStates||(this.fillStates[o]={fillStyle:n.fillStyle}))},e.prototype.drawChars_=function(t,e,n){var i=this.textStrokeState_,r=this.textState_,o=this.strokeKey_,a=this.textKey_,s=this.fillKey_;this.saveTextStates_();var u=this.pixelRatio,c=G[r.textBaseline],l=this.textOffsetY_*u,h=this.text_,p=r.scale,f=i?i.lineWidth*p/2:0;this.instructions.push([S.DRAW_CHARS,t,e,c,n,r.overflow,s,r.maxAngle,u,l,o,f*u,h,a,1]),this.hitDetectionInstructions.push([S.DRAW_CHARS,t,e,c,n,r.overflow,s,r.maxAngle,1,l,o,f,h,a,1/u])},e.prototype.setTextStyle=function(t,e){var n,i,r;if(t){this.declutterGroups_=e;var o=t.getFill();o?((i=this.textFillState_)||(i={},this.textFillState_=i),i.fillStyle=Object(_.a)(o.getColor()||b.b)):(i=null,this.textFillState_=i);var a=t.getStroke();if(a){(r=this.textStrokeState_)||(r={},this.textStrokeState_=r);var s=a.getLineDash(),u=a.getLineDashOffset(),c=a.getWidth(),h=a.getMiterLimit();r.lineCap=a.getLineCap()||b.d,r.lineDash=s?s.slice():b.e,r.lineDashOffset=void 0===u?b.f:u,r.lineJoin=a.getLineJoin()||b.g,r.lineWidth=void 0===c?b.h:c,r.miterLimit=void 0===h?b.i:h,r.strokeStyle=Object(_.a)(a.getColor()||b.k)}else r=null,this.textStrokeState_=r;n=this.textState_;var p=t.getFont()||b.c;Object(b.a)(p);var f=t.getScale();n.overflow=t.getOverflow(),n.font=p,n.maxAngle=t.getMaxAngle(),n.placement=t.getPlacement(),n.textAlign=t.getTextAlign(),n.textBaseline=t.getTextBaseline()||b.m,n.backgroundFill=t.getBackgroundFill(),n.backgroundStroke=t.getBackgroundStroke(),n.padding=t.getPadding()||b.j,n.scale=void 0===f?1:f;var d=t.getOffsetX(),g=t.getOffsetY(),v=t.getRotateWithView(),y=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=void 0===d?0:d,this.textOffsetY_=void 0===g?0:g,this.textRotateWithView_=void 0!==v&&v,this.textRotation_=void 0===y?0:y,this.strokeKey_=r?("string"==typeof r.strokeStyle?r.strokeStyle:Object(l.c)(r.strokeStyle))+r.lineCap+r.lineDashOffset+"|"+r.lineWidth+r.lineJoin+r.miterLimit+"["+r.lineDash.join()+"]":"",this.textKey_=n.font+n.scale+(n.textAlign||"?"),this.fillKey_=i?"string"==typeof i.fillStyle?i.fillStyle:"|"+Object(l.c)(i.fillStyle):""}else this.text_=""},e}(R)},X=function(){function t(t,e,n,i,r){this.declutter_=r,this.declutterGroups_=null,this.tolerance_=t,this.maxExtent_=e,this.pixelRatio_=i,this.resolution_=n,this.buildersByZIndex_={}}return t.prototype.addDeclutter=function(t){var e=null;return this.declutter_&&(t?(e=this.declutterGroups_)[0][4]++:(e=[Object(p.j)()],this.declutterGroups_=e,e[0].push(1))),e},t.prototype.finish=function(){var t={};for(var e in this.buildersByZIndex_){t[e]=t[e]||{};var n=this.buildersByZIndex_[e];for(var i in n){var r=n[i].finish();t[e][i]=r}}return t},t.prototype.getBuilder=function(t,e){var n=void 0!==t?t.toString():"0",i=this.buildersByZIndex_[n];void 0===i&&(i={},this.buildersByZIndex_[n]=i);var r=i[e];void 0===r&&(r=new(0,Y[e])(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),i[e]=r);return r},t}(),z=n(11),W=n(32),K=n(20),U=n(8),B=n(72),V=n(6);function Z(t,e,n,i,r,o,a,s,u,c,l){for(var h,p,f=[],d=t[e]>t[n-i],_=r.length,g=t[e],v=t[e+1],y=t[e+=i],m=t[e+1],b=0,O=Math.sqrt(Math.pow(y-g,2)+Math.pow(m-v,2)),E=!1,T=0;T<_;++T){for(var x=r[h=d?_-T-1:T],C=s*u(c,x,l),S=o+C/2;e<n-i&&b+O<S;)g=y,v=m,y=t[e+=i],m=t[e+1],b+=O,O=Math.sqrt(Math.pow(y-g,2)+Math.pow(m-v,2));var I=S-b,R=Math.atan2(m-v,y-g);if(d&&(R+=R>0?-Math.PI:Math.PI),void 0!==p){var w=R-p;if(E=E||0!==w,w+=w>Math.PI?-2*Math.PI:w<-Math.PI?2*Math.PI:0,Math.abs(w)>a)return null}p=R;var j=I/O,P=Object(V.c)(g,y,j),M=Object(V.c)(v,m,j);f[h]=[P,M,C/2,R,x],o+=C}return E?f:[[f[0][0],f[0][1],f[0][2],f[0][3],r]]}var H=n(43),q=n(71),J=n.n(q),Q=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),$=Object(p.j)(),tt=Object(U.c)(),et=[],nt=[],it=[],rt=[],ot=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.overlaps=i,o.pixelRatio=n,o.resolution=e,o.alignFill_,o.declutterItems=[],o.instructions=r.instructions,o.coordinates=r.coordinates,o.coordinateCache_={},o.renderedTransform_=Object(U.c)(),o.hitDetectionInstructions=r.hitDetectionInstructions,o.pixelCoordinates_=null,o.viewRotation_=0,o.fillStates=r.fillStates||{},o.strokeStates=r.strokeStates||{},o.textStates=r.textStates||{},o.widths_={},o}return Q(e,t),e.prototype.disposeInternal=function(){b.o.release(this),t.prototype.disposeInternal.call(this)},e.prototype.getTextImage=function(t,e,n,i){var r,o=i+e+t+n+this.pixelRatio;if(!b.o.containsKey(o)){var a=i?this.strokeStates[i]:null,s=n?this.fillStates[n]:null,u=this.textStates[e],c=this.pixelRatio,l=u.scale*c,h=G[u.textAlign||b.l],p=i&&a.lineWidth?a.lineWidth:0,f=t.split("\n"),d=f.length,_=[],g=Object(b.r)(u.font,f,_),v=Object(b.q)(u.font),y=v*d,m=g+p,O=Object(z.a)(Math.ceil((m+2)*l),Math.ceil((y+p)*l));r=O.canvas,b.o.set(o,r),1!=l&&O.scale(l,l),O.font=u.font,i&&(O.strokeStyle=a.strokeStyle,O.lineWidth=p,O.lineCap=a.lineCap,O.lineJoin=a.lineJoin,O.miterLimit=a.miterLimit,O.setLineDash&&a.lineDash.length&&(O.setLineDash(a.lineDash),O.lineDashOffset=a.lineDashOffset)),n&&(O.fillStyle=s.fillStyle),O.textBaseline="middle",O.textAlign="center";var E=.5-h,T=h*m+E*p,x=void 0;if(i)for(x=0;x<d;++x)O.strokeText(f[x],T+E*_[x],.5*(p+v)+x*v);if(n)for(x=0;x<d;++x)O.fillText(f[x],T+E*_[x],.5*(p+v)+x*v)}return b.o.get(o,this)},e.prototype.replayTextBackground_=function(t,e,n,i,r,o,a){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,n),t.lineTo.apply(t,i),t.lineTo.apply(t,r),t.lineTo.apply(t,e),o&&(this.alignFill_=o[2],this.fill_(t)),a&&(this.setStrokeStyle_(t,a),t.stroke())},e.prototype.replayImage_=function(t,e,n,i,r,o,a,s,u,c,l,h,f,d,_,g,v,y){var m=v||y;e-=r*=f,n-=o*=f;var O=_+c>i.width?i.width-c:_,E=s+l>i.height?i.height-l:s,T=g[3]+O*f+g[1],x=g[0]+E*f+g[2],C=e-g[3],S=n-g[0];(m||0!==h)&&(et[0]=C,rt[0]=C,et[1]=S,nt[1]=S,nt[0]=C+T,it[0]=nt[0],it[1]=S+x,rt[1]=it[1]);var I=null;if(0!==h){var R=e+r,w=n+o;I=Object(U.b)(tt,R,w,1,1,h,-R,-w),Object(U.a)(tt,et),Object(U.a)(tt,nt),Object(U.a)(tt,it),Object(U.a)(tt,rt),Object(p.k)(Math.min(et[0],nt[0],it[0],rt[0]),Math.min(et[1],nt[1],it[1],rt[1]),Math.max(et[0],nt[0],it[0],rt[0]),Math.max(et[1],nt[1],it[1],rt[1]),$)}else Object(p.k)(C,S,C+T,S+x,$);var j=t.canvas,P=y?y[2]*f/2:0,M=$[0]-P<=j.width&&$[2]+P>=0&&$[1]-P<=j.height&&$[3]+P>=0;if(d&&(e=Math.round(e),n=Math.round(n)),a){if(!M&&1==a[4])return;Object(p.q)(a,$);var L=M?[t,I?I.slice(0):null,u,i,c,l,O,E,e,n,f]:null;L&&(m&&L.push(v,y,et,nt,it,rt),a.push(L))}else M&&(m&&this.replayTextBackground_(t,et,nt,it,rt,v,y),Object(b.n)(t,I,u,i,c,l,O,E,e,n,f))},e.prototype.fill_=function(t){if(this.alignFill_){var e=Object(U.a)(this.renderedTransform_,[0,0]),n=512*this.pixelRatio;t.save(),t.translate(e[0]%n,e[1]%n),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()},e.prototype.setStrokeStyle_=function(t,e){t.strokeStyle=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.setLineDash&&(t.lineDashOffset=e[7],t.setLineDash(e[6]))},e.prototype.renderDeclutter=function(t,e,n,i){if(t&&t.length>5){var r=t[4];if(1==r||r==t.length-5){var o={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};if(i||(i=new J.a(9)),!i.collides(o)){i.insert(o);for(var a=5,s=t.length;a<s;++a){var u=t[a],c=u[0],l=c.globalAlpha;l!==n&&(c.globalAlpha=n),u.length>11&&this.replayTextBackground_(u[0],u[13],u[14],u[15],u[16],u[11],u[12]),b.n.apply(void 0,u),l!==n&&(c.globalAlpha=l)}}t.length=5,Object(p.l)(t)}}return i},e.prototype.drawTextImageWithPointPlacement_=function(t,e,n,i){var r=this.textStates[e],o=this.getTextImage(t,e,i,n),a=this.strokeStates[n],s=this.pixelRatio,u=G[r.textAlign||b.l],c=G[r.textBaseline||b.m],l=a&&a.lineWidth?a.lineWidth:0;return{label:o,anchorX:u*(o.width/s-2*r.scale)+2*(.5-u)*l,anchorY:c*o.height/s+2*(.5-c)*l}},e.prototype.execute_=function(t,e,n,i,r,o){var a;this.declutterItems.length=0,this.pixelCoordinates_&&Object(d.b)(e,this.renderedTransform_)?a=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),a=Object(W.c)(this.coordinates,0,this.coordinates.length,2,e,this.pixelCoordinates_),Object(U.h)(this.renderedTransform_,e));for(var s,u,c,l,h,f,_,g,v,y,m,O,E,T,x,C,I,R=0,w=n.length,j=0,P=0,M=0,L=null,A=null,F=this.coordinateCache_,D=this.viewRotation_,N=Math.round(1e12*Math.atan2(-e[1],e[0]))/1e12,k={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:D},Y=this.instructions!=n||this.overlaps?0:200;R<w;){var X=n[R];switch(X[0]){case S.BEGIN_GEOMETRY:(x=X[1]).getGeometry()?void 0===o||Object(p.F)(o,X[3])?++R:R=X[2]+1:R=X[2];break;case S.BEGIN_PATH:P>Y&&(this.fill_(t),P=0),M>Y&&(t.stroke(),M=0),P||M||(t.beginPath(),l=NaN,h=NaN),++R;break;case S.CIRCLE:var z=a[j=X[1]],K=a[j+1],V=a[j+2]-z,H=a[j+3]-K,q=Math.sqrt(V*V+H*H);t.moveTo(z+q,K),t.arc(z,K,q,0,2*Math.PI,!0),++R;break;case S.CLOSE_PATH:t.closePath(),++R;break;case S.CUSTOM:j=X[1],s=X[2];var J=X[3],Q=X[4],$=6==X.length?X[5]:void 0;k.geometry=J,k.feature=x,R in F||(F[R]=[]);var tt=F[R];$?$(a,j,s,2,tt):(tt[0]=a[j],tt[1]=a[j+1],tt.length=2),Q(tt,k),++R;break;case S.DRAW_IMAGE:j=X[1],s=X[2],y=X[3],u=X[4],c=X[5],v=r?null:X[6];var et=X[7],nt=X[8],it=X[9],rt=X[10],ot=X[11],at=X[12],st=X[13],ut=X[14];if(!y&&X.length>=19){m=X[18],O=X[19],E=X[20],T=X[21];var ct=this.drawTextImageWithPointPlacement_(m,O,E,T);y=ct.label,X[3]=y;var lt=X[22];u=(ct.anchorX-lt)*this.pixelRatio,X[4]=u;var ht=X[23];c=(ct.anchorY-ht)*this.pixelRatio,X[5]=c,et=y.height,X[7]=et,ut=y.width,X[14]=ut}var pt=void 0;X.length>24&&(pt=X[24]);var ft=void 0,dt=void 0,_t=void 0;X.length>16?(ft=X[15],dt=X[16],_t=X[17]):(ft=b.j,dt=!1,_t=!1),ot&&N?at+=D:ot||N||(at-=D);for(var gt=0,vt=0;j<s;j+=2)if(!(pt&&pt[gt++]<ut/this.pixelRatio)){if(v){var yt=Math.floor(vt);v.length<yt+1&&((g=Object(p.j)()).push(v[0][4]),v.push(g)),g=v[yt]}this.replayImage_(t,a[j],a[j+1],y,u,c,g,et,nt,it,rt,at,st,i,ut,ft,dt?L:null,_t?A:null),g&&(vt===Math.floor(vt)&&this.declutterItems.push(this,g,x),vt+=1/g[4])}++R;break;case S.DRAW_CHARS:var mt=X[1],bt=X[2],Ot=X[3];g=r?null:X[4];var Et=X[5];T=X[6];var Tt=X[7],xt=X[8],Ct=X[9];E=X[10];var St=X[11];m=X[12],O=X[13];var It=X[14],Rt=this.textStates[O],wt=Rt.font,jt=Rt.scale*xt,Pt=void 0;wt in this.widths_?Pt=this.widths_[wt]:(Pt={},this.widths_[wt]=Pt);var Mt=Object(B.a)(a,mt,bt,2),Lt=jt*Object(b.p)(wt,m,Pt);if(Et||Lt<=Mt){var At=this.textStates[O].textAlign,Ft=Z(a,mt,bt,2,m,(Mt-Lt)*G[At],Tt,jt,b.p,wt,Pt);if(Ft){var Dt=void 0,Nt=void 0,kt=void 0,Gt=void 0,Yt=void 0;if(E)for(Dt=0,Nt=Ft.length;Dt<Nt;++Dt)kt=(Yt=Ft[Dt])[4],Gt=this.getTextImage(kt,O,"",E),u=Yt[2]+St,c=Ot*Gt.height+2*(.5-Ot)*St-Ct,this.replayImage_(t,Yt[0],Yt[1],Gt,u,c,g,Gt.height,1,0,0,Yt[3],It,!1,Gt.width,b.j,null,null);if(T)for(Dt=0,Nt=Ft.length;Dt<Nt;++Dt)kt=(Yt=Ft[Dt])[4],Gt=this.getTextImage(kt,O,T,""),u=Yt[2],c=Ot*Gt.height-Ct,this.replayImage_(t,Yt[0],Yt[1],Gt,u,c,g,Gt.height,1,0,0,Yt[3],It,!1,Gt.width,b.j,null,null)}}this.declutterItems.push(this,g,x),++R;break;case S.END_GEOMETRY:if(void 0!==r){var Xt=r(x=X[1]);if(Xt)return Xt}++R;break;case S.FILL:Y?P++:this.fill_(t),++R;break;case S.MOVE_TO_LINE_TO:for(j=X[1],s=X[2],C=a[j],_=(I=a[j+1])+.5|0,(f=C+.5|0)===l&&_===h||(t.moveTo(C,I),l=f,h=_),j+=2;j<s;j+=2)f=(C=a[j])+.5|0,_=(I=a[j+1])+.5|0,j!=s-2&&f===l&&_===h||(t.lineTo(C,I),l=f,h=_);++R;break;case S.SET_FILL_STYLE:L=X,this.alignFill_=X[2],P&&(this.fill_(t),P=0,M&&(t.stroke(),M=0)),t.fillStyle=X[1],++R;break;case S.SET_STROKE_STYLE:A=X,M&&(t.stroke(),M=0),this.setStrokeStyle_(t,X),++R;break;case S.STROKE:Y?M++:t.stroke(),++R;break;default:++R}}P&&this.fill_(t),M&&t.stroke()},e.prototype.execute=function(t,e,n,i){this.viewRotation_=n,this.execute_(t,e,this.instructions,i,void 0,void 0)},e.prototype.executeHitDetection=function(t,e,n,i,r){return this.viewRotation_=n,this.execute_(t,e,this.hitDetectionInstructions,!0,i,r)},e}(H.a),at=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),st=[K.a.POLYGON,K.a.CIRCLE,K.a.LINE_STRING,K.a.IMAGE,K.a.TEXT,K.a.DEFAULT],ut=function(t){function e(e,n,i,r,o,a){var s=t.call(this)||this;return s.maxExtent_=e,s.overlaps_=r,s.pixelRatio_=i,s.resolution_=n,s.renderBuffer_=a,s.executorsByZIndex_={},s.hitDetectionContext_=null,s.hitDetectionTransform_=Object(U.c)(),s.createExecutors_(o),s}return at(e,t),e.prototype.clip=function(t,e){var n=this.getClipCoords(e);t.beginPath(),t.moveTo(n[0],n[1]),t.lineTo(n[2],n[3]),t.lineTo(n[4],n[5]),t.lineTo(n[6],n[7]),t.clip()},e.prototype.createExecutors_=function(t){for(var e in t){var n=this.executorsByZIndex_[e];void 0===n&&(n={},this.executorsByZIndex_[e]=n);var i=t[e];for(var r in i){var o=i[r];n[r]=new ot(this.resolution_,this.pixelRatio_,this.overlaps_,o)}}},e.prototype.disposeInternal=function(){for(var e in this.executorsByZIndex_){var n=this.executorsByZIndex_[e];for(var i in n)n[i].disposeInternal()}if(this.hitDetectionContext_){var r=this.hitDetectionContext_.canvas;r.width=0,r.height=0}t.prototype.disposeInternal.call(this)},e.prototype.hasExecutors=function(t){for(var e in this.executorsByZIndex_)for(var n=this.executorsByZIndex_[e],i=0,r=t.length;i<r;++i)if(t[i]in n)return!0;return!1},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,i,r,o){var a=2*(i=Math.round(i))+1,s=Object(U.b)(this.hitDetectionTransform_,i+.5,i+.5,1/e,-1/e,-n,-t[0],-t[1]);this.hitDetectionContext_||(this.hitDetectionContext_=Object(z.a)(a,a));var u,c=this.hitDetectionContext_;c.canvas.width!==a||c.canvas.height!==a?(c.canvas.width=a,c.canvas.height=a):c.clearRect(0,0,a,a),void 0!==this.renderBuffer_&&(u=Object(p.j)(),Object(p.r)(u,t),Object(p.c)(u,e*(this.renderBuffer_+i),u));var l,h=function(t){if(void 0!==ct[t])return ct[t];for(var e=2*t+1,n=new Array(e),i=0;i<e;i++)n[i]=new Array(e);var r=t,o=0,a=0;for(;r>=o;)lt(n,t+r,t+o),lt(n,t+o,t+r),lt(n,t-o,t+r),lt(n,t-r,t+o),lt(n,t-r,t-o),lt(n,t-o,t-r),lt(n,t+o,t-r),lt(n,t+r,t-o),o++,2*((a+=1+2*o)-r)+1>0&&(a+=1-2*(r-=1));return ct[t]=n,n}(i);function f(t){for(var e=c.getImageData(0,0,a,a).data,n=0;n<a;n++)for(var i=0;i<a;i++)if(h[n][i]&&e[4*(i*a+n)+3]>0){var s=void 0;return(!o||l!=K.a.IMAGE&&l!=K.a.TEXT||-1!==o.indexOf(t))&&(s=r(t)),s||void c.clearRect(0,0,a,a)}}var _,g,v,y,m,b=Object.keys(this.executorsByZIndex_).map(Number);for(b.sort(d.f),_=b.length-1;_>=0;--_){var O=b[_].toString();for(v=this.executorsByZIndex_[O],g=st.length-1;g>=0;--g)if(void 0!==(y=v[l=st[g]])&&(m=y.executeHitDetection(c,s,n,f,u)))return m}},e.prototype.getClipCoords=function(t){var e=this.maxExtent_;if(!e)return null;var n=e[0],i=e[1],r=e[2],o=e[3],a=[n,i,n,o,r,o,r,i];return Object(W.c)(a,0,8,2,t,a),a},e.prototype.isEmpty=function(){return Object(o.d)(this.executorsByZIndex_)},e.prototype.execute=function(t,e,n,i,r,o){var a=Object.keys(this.executorsByZIndex_).map(Number);a.sort(d.f),this.maxExtent_&&(t.save(),this.clip(t,e));var s,u,c,l,h,p,f=r||st;for(s=0,u=a.length;s<u;++s){var _=a[s].toString();for(h=this.executorsByZIndex_[_],c=0,l=f.length;c<l;++c){var g=f[c];if(void 0!==(p=h[g]))if(!o||g!=K.a.IMAGE&&g!=K.a.TEXT)p.execute(t,e,n,i);else{var v=o[_];v?v.push(p,e.slice(0)):o[_]=[p,e.slice(0)]}}}this.maxExtent_&&t.restore()},e}(H.a),ct={0:[[!0]]};function lt(t,e,n){var i,r=Math.floor(t.length/2);if(e>=r)for(i=r;i<e;i++)t[i][n]=!0;else if(e<r)for(i=e+1;i<r;i++)t[i][n]=!0}var ht=ut,pt=n(78),ft=n(55),dt=n(62),_t=n(101),gt=n(49);function vt(t,e,n){var i=[];if(n){var r=4*(Math.round(t[0]/2)+Math.round(t[1]/2)*n.width),o=n.data[r],a=n.data[r+1],s=n.data[r+2]+256*(a+256*o),u=Math.ceil(16777216/e.length);s%u==0&&i.push(e[s/u])}return i}var yt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),mt=function(t){function e(e){var n=t.call(this,e)||this;return n.boundHandleStyleImageChange_=n.handleStyleImageChange_.bind(n),n.animatingOrInteracting_,n.dirty_=!1,n.hitDetectionImageData_=null,n.renderedFeatures_=null,n.renderedRevision_=-1,n.renderedResolution_=NaN,n.renderedExtent_=Object(p.j)(),n.renderedRotation_,n.renderedCenter_=null,n.renderedProjection_=null,n.renderedRenderOrder_=null,n.replayGroup_=null,n.replayGroupChanged=!0,n}return yt(e,t),e.prototype.useContainer=function(e,n,i){i<1&&(e=null),t.prototype.useContainer.call(this,e,n,i)},e.prototype.renderFrame=function(t,e){var n=t.pixelRatio,i=t.layerStatesArray[t.layerIndex];Object(U.e)(this.pixelTransform,1/n,1/n),Object(U.d)(this.inversePixelTransform,this.pixelTransform);var r=Object(U.i)(this.pixelTransform);this.useContainer(e,r,i.opacity);var o=this.context,a=o.canvas,s=this.replayGroup_;if(!s||s.isEmpty())return!this.containerReused&&a.width>0&&(a.width=0),this.container;var u=Math.round(t.size[0]*n),c=Math.round(t.size[1]*n);a.width!=u||a.height!=c?(a.width=u,a.height=c,a.style.transform!==r&&(a.style.transform=r)):this.containerReused||o.clearRect(0,0,u,c),this.preRender(o,t);var l=t.extent,_=t.viewState,g=_.center,v=_.resolution,y=_.projection,m=_.rotation,b=y.getExtent(),O=this.getLayer().getSource(),E=!1;if(i.extent){var T=Object(f.fromUserExtent)(i.extent,y);(E=!Object(p.g)(T,t.extent)&&Object(p.F)(T,t.extent))&&this.clip(o,t,T)}var x=t.viewHints,C=!(x[h.a.ANIMATING]||x[h.a.INTERACTING]),S=this.getRenderTransform(g,v,m,n,u,c,0),I=this.getLayer().getDeclutter()?{}:null;if(s.execute(o,S,m,C,void 0,I),O.getWrapX()&&y.canWrapX()&&!Object(p.g)(b,l)){for(var R=l[0],w=Object(p.E)(b),j=0,P=void 0;R<b[0];){P=w*--j;var M=this.getRenderTransform(g,v,m,n,u,c,P);s.execute(o,M,m,C,void 0,I),R+=w}for(j=0,R=l[2];R>b[2];){P=w*++j;var L=this.getRenderTransform(g,v,m,n,u,c,P);s.execute(o,L,m,C,void 0,I),R-=w}}if(I){var A=t.viewHints;!function(t,e,n,i,r,o){for(var a=Object.keys(t).map(Number).sort(d.f),s=0,u=a.length;s<u;++s)for(var c=t[a[s].toString()],l=void 0,h=0,p=c.length;h<p;){var f=c[h++];f!==l&&(l=f,o.push({items:f.declutterItems,opacity:i}));var _=c[h++];f.execute(e,_,n,r)}}(I,o,m,1,!(A[h.a.ANIMATING]||A[h.a.INTERACTING]),t.declutterItems)}E&&o.restore(),this.postRender(o,t);var F=i.opacity,D=this.container;return F!==parseFloat(D.style.opacity)&&(D.style.opacity=1===F?"":F),this.container},e.prototype.getFeatures=function(t){return new Promise(function(e,n){this.hitDetectionImageData_||this.animatingOrInteracting_?e(vt(t,this.renderedFeatures_,this.hitDetectionImageData_)):requestAnimationFrame(function(){var n=[this.context.canvas.width,this.context.canvas.height];Object(U.a)(this.pixelTransform,n);var i=this.renderedCenter_,r=this.renderedResolution_,o=this.renderedRotation_,a=this.renderedProjection_,s=this.renderedExtent_,u=this.getLayer(),c=[],l=n[0]/2,h=n[1]/2;c.push(this.getRenderTransform(i,r,o,.5,l,h,0).slice());var f=u.getSource(),_=a.getExtent();if(f.getWrapX()&&a.canWrapX()&&!Object(p.g)(_,s)){for(var g=s[0],y=Object(p.E)(_),m=0,b=void 0;g<_[0];)b=y*--m,c.push(this.getRenderTransform(i,r,o,.5,l,h,b).slice()),g+=y;for(m=0,g=s[2];g>_[2];)b=y*++m,c.push(this.getRenderTransform(i,r,o,.5,l,h,b).slice()),g-=y}this.hitDetectionImageData_=function(t,e,n,i,r,o,a){var s=t[0]/2,u=t[1]/2,c=Object(z.a)(s,u);c.imageSmoothingEnabled=!1;for(var l=c.canvas,h=new dt.a(c,.5,r,null,a),f=n.length,_=Math.ceil(16777216/f),g={},y=0;y<f;++y){var m=n[y],b=m.getStyleFunction()||i;if(i){var O=b(m,o);Array.isArray(O)||(O=[O]);for(var E="#"+("000000"+(y*_).toString(16)).slice(-6),T=0,x=O.length;T<x;++T){var C=O[T],S=C.clone(),I=S.getFill();I&&I.setColor(E);var R=S.getStroke();R&&R.setColor(E),S.setText(void 0);var w=C.getImage();if(w){var j=w.getImageSize(),P=document.createElement("canvas");P.width=j[0],P.height=j[1];var M=P.getContext("2d",{alpha:!1});M.fillStyle=E;var L=M.canvas;M.fillRect(0,0,L.width,L.height);var A=j?j[0]:L.width,F=j?j[1]:L.height;Object(z.a)(A,F).drawImage(L,0,0),S.setImage(new _t.default({img:L,imgSize:j,anchor:w.getAnchor(),anchorXUnits:gt.a.PIXELS,anchorYUnits:gt.a.PIXELS,offset:w.getOrigin(),size:w.getSize(),opacity:w.getOpacity(),scale:w.getScale(),rotation:w.getRotation(),rotateWithView:w.getRotateWithView()}))}var D=Number(S.getZIndex());(Y=g[D])||(Y={},g[D]=Y,Y[v.a.POLYGON]=[],Y[v.a.CIRCLE]=[],Y[v.a.LINE_STRING]=[],Y[v.a.POINT]=[]);var N=S.getGeometryFunction()(m);N&&Object(p.F)(r,N.getExtent())&&Y[N.getType().replace("Multi","")].push(N,S)}}}for(var k=Object.keys(g).map(Number).sort(d.f),G=(y=0,k.length);y<G;++y){var Y=g[k[y]];for(var X in Y){var W=Y[X];for(T=0,x=W.length;T<x;T+=2){h.setStyle(W[T+1]);for(var K=0,U=e.length;K<U;++K)h.setTransform(e[K]),h.drawGeometry(W[T])}}}return c.getImageData(0,0,l.width,l.height)}(n,c,this.renderedFeatures_,u.getStyleFunction(),s,r,o),e(vt(t,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))}.bind(this))},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,i,r){if(this.replayGroup_){var o=e.viewState.resolution,a=e.viewState.rotation,s=this.getLayer(),u={};return this.replayGroup_.forEachFeatureAtCoordinate(t,o,a,n,(function(t){var e=Object(l.c)(t);if(!(e in u))return u[e]=!0,i(t,s)}),s.getDeclutter()?r:null)}},e.prototype.handleFontsChanged=function(){var t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.prepareFrame=function(t){var e=this.getLayer(),n=e.getSource(),i=t.viewHints[h.a.ANIMATING],r=t.viewHints[h.a.INTERACTING],o=e.getUpdateWhileAnimating(),a=e.getUpdateWhileInteracting();if(!this.dirty_&&!o&&i||!a&&r)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;var s=t.extent,u=t.viewState,c=u.projection,l=u.resolution,d=t.pixelRatio,_=e.getRevision(),g=e.getRenderBuffer(),v=e.getRenderOrder();void 0===v&&(v=ft.a);var y=u.center.slice(),m=Object(p.c)(s,g*l),b=u.projection.getExtent();if(n.getWrapX()&&u.projection.canWrapX()&&!Object(p.g)(b,t.extent)){var O=Object(p.E)(b),E=Math.max(Object(p.E)(m)/2,O);m[0]=b[0]-E,m[2]=b[2]+E;var T=Math.floor((y[0]-b[0])/O);y[0]-=T*O}if(!this.dirty_&&this.renderedResolution_==l&&this.renderedRevision_==_&&this.renderedRenderOrder_==v&&Object(p.g)(this.renderedExtent_,m))return this.replayGroupChanged=!1,!0;this.replayGroup_&&this.replayGroup_.dispose(),this.replayGroup_=null,this.dirty_=!1;var x,C=new X(Object(ft.c)(l,d),m,l,d,e.getDeclutter()),S=Object(f.getUserProjection)();S?(n.loadFeatures(Object(f.toUserExtent)(m,c),l,S),x=Object(f.getTransformFromProjections)(S,c)):n.loadFeatures(m,l,c);var I=Object(ft.b)(l,d),R=function(t){var n,i=t.getStyleFunction()||e.getStyleFunction();if(i&&(n=i(t,l)),n){var r=this.renderFeature(t,I,n,C,x);this.dirty_=this.dirty_||r}}.bind(this),w=Object(f.toUserExtent)(m,c),j=n.getFeaturesInExtent(w);v&&j.sort(v);for(var P=0,M=j.length;P<M;++P)R(j[P]);this.renderedFeatures_=j;var L=C.finish(),A=new ht(m,l,d,n.getOverlaps(),L,e.getRenderBuffer());return this.renderedResolution_=l,this.renderedRevision_=_,this.renderedRenderOrder_=v,this.renderedExtent_=m,this.renderedRotation_=u.rotation,this.renderedCenter_=y,this.renderedProjection_=c,this.replayGroup_=A,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0},e.prototype.renderFeature=function(t,e,n,i,r){if(!n)return!1;var o=!1;if(Array.isArray(n))for(var a=0,s=n.length;a<s;++a)o=Object(ft.d)(i,t,n[a],e,this.boundHandleStyleImageChange_,r)||o;else o=Object(ft.d)(i,t,n,e,this.boundHandleStyleImageChange_,r);return o},e}(pt.a),bt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ot=function(t){function e(e){return t.call(this,e)||this}return bt(e,t),e.prototype.createRenderer=function(){return new mt(this)},e}(c);e.default=Ot},function(t,e,n){"use strict";n.r(e);var i=n(1),r=n(30),o=n(27),a=n(38),s=n(15),u=n(10),c=n(2),l=n(26),h=n(5),p=n(0),f=n(16),d={ARRAY_BUFFER:"arraybuffer",JSON:"json",TEXT:"text",XML:"xml"},_=!1;function g(t,e){return function(t,e,n,i){return function(r,o,a){var s=new XMLHttpRequest;s.open("GET","function"==typeof t?t(r,o,a):t,!0),e.getType()==d.ARRAY_BUFFER&&(s.responseType="arraybuffer"),s.withCredentials=_,s.onload=function(t){if(!s.status||s.status>=200&&s.status<300){var o=e.getType(),u=void 0;o==d.JSON||o==d.TEXT?u=s.responseText:o==d.XML?(u=s.responseXML)||(u=(new DOMParser).parseFromString(s.responseText,"application/xml")):o==d.ARRAY_BUFFER&&(u=s.response),u?n.call(this,e.readFeatures(u,{extent:r,featureProjection:a}),e.readProjection(u)):i.call(this)}else i.call(this)}.bind(this),s.onerror=function(){i.call(this)}.bind(this),s.send()}}(t,e,(function(t,e){"function"==typeof this.addFeatures&&this.addFeatures(t)}),f.c)}function v(t,e){return[[-1/0,-1/0,1/0,1/0]]}var y=n(13),m=n(74),b=n(36),O="addfeature",E="changefeature",T="clear",x="removefeature",C=n(71),S=n.n(C),I=function(){function t(t){this.rbush_=new S.a(t),this.items_={}}return t.prototype.insert=function(t,e){var n={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(n),this.items_[Object(i.c)(e)]=n},t.prototype.load=function(t,e){for(var n=new Array(e.length),r=0,o=e.length;r<o;r++){var a=t[r],s=e[r],u={minX:a[0],minY:a[1],maxX:a[2],maxY:a[3],value:s};n[r]=u,this.items_[Object(i.c)(s)]=u}this.rbush_.load(n)},t.prototype.remove=function(t){var e=Object(i.c)(t),n=this.items_[e];return delete this.items_[e],null!==this.rbush_.remove(n)},t.prototype.update=function(t,e){var n=this.items_[Object(i.c)(e)],r=[n.minX,n.minY,n.maxX,n.maxY];Object(p.p)(r,t)||(this.remove(e),this.insert(t,e))},t.prototype.getAll=function(){return this.rbush_.all().map((function(t){return t.value}))},t.prototype.getInExtent=function(t){var e={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]};return this.rbush_.search(e).map((function(t){return t.value}))},t.prototype.forEach=function(t){return this.forEach_(this.getAll(),t)},t.prototype.forEachInExtent=function(t,e){return this.forEach_(this.getInExtent(t),e)},t.prototype.forEach_=function(t,e){for(var n,i=0,r=t.length;i<r;i++)if(n=e(t[i]))return n;return n},t.prototype.isEmpty=function(){return Object(y.d)(this.items_)},t.prototype.clear=function(){this.rbush_.clear(),this.items_={}},t.prototype.getExtent=function(t){var e=this.rbush_.toJSON();return Object(p.k)(e.minX,e.minY,e.maxX,e.maxY,t)},t.prototype.concat=function(t){for(var e in this.rbush_.load(t.rbush_.all()),t.items_)this.items_[e]=t.items_[e]},t}();n.d(e,"VectorSourceEvent",(function(){return j}));var R,w=(R=function(t,e){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}R(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),j=function(t){function e(e,n){var i=t.call(this,e)||this;return i.feature=n,i}return w(e,t),e}(l.a),P=function(t){function e(e){var n=this,i=e||{};(n=t.call(this,{attributions:i.attributions,projection:void 0,state:b.a.READY,wrapX:void 0===i.wrapX||i.wrapX})||this).loader_=f.c,n.format_=i.format,n.overlaps_=null==i.overlaps||i.overlaps,n.url_=i.url,void 0!==i.loader?n.loader_=i.loader:void 0!==n.url_&&(Object(u.a)(n.format_,7),n.loader_=g(n.url_,n.format_)),n.strategy_=void 0!==i.strategy?i.strategy:v;var o,a,s=void 0===i.useSpatialIndex||i.useSpatialIndex;return n.featuresRtree_=s?new I:null,n.loadedExtentsRtree_=new I,n.nullGeometryFeatures_={},n.idIndex_={},n.uidIndex_={},n.featureChangeKeys_={},n.featuresCollection_=null,Array.isArray(i.features)?a=i.features:i.features&&(a=(o=i.features).getArray()),s||void 0!==o||(o=new r.a(a)),void 0!==a&&n.addFeaturesInternal(a),void 0!==o&&n.bindFeaturesCollection_(o),n}return w(e,t),e.prototype.addFeature=function(t){this.addFeatureInternal(t),this.changed()},e.prototype.addFeatureInternal=function(t){var e=Object(i.c)(t);if(this.addToIndex_(e,t)){this.setupChangeEvents_(e,t);var n=t.getGeometry();if(n){var r=n.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(r,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new j(O,t))}else this.featuresCollection_&&this.featuresCollection_.remove(t)},e.prototype.setupChangeEvents_=function(t,e){this.featureChangeKeys_[t]=[Object(c.a)(e,h.a.CHANGE,this.handleFeatureChange_,this),Object(c.a)(e,a.a.PROPERTYCHANGE,this.handleFeatureChange_,this)]},e.prototype.addToIndex_=function(t,e){var n=!0,i=e.getId();return void 0!==i&&(i.toString()in this.idIndex_?n=!1:this.idIndex_[i.toString()]=e),n&&(Object(u.a)(!(t in this.uidIndex_),30),this.uidIndex_[t]=e),n},e.prototype.addFeatures=function(t){this.addFeaturesInternal(t),this.changed()},e.prototype.addFeaturesInternal=function(t){for(var e=[],n=[],r=[],o=0,a=t.length;o<a;o++){var s=t[o],u=Object(i.c)(s);this.addToIndex_(u,s)&&n.push(s)}o=0;for(var c=n.length;o<c;o++){s=n[o],u=Object(i.c)(s);this.setupChangeEvents_(u,s);var l=s.getGeometry();if(l){var h=l.getExtent();e.push(h),r.push(s)}else this.nullGeometryFeatures_[u]=s}this.featuresRtree_&&this.featuresRtree_.load(e,r);o=0;for(var p=n.length;o<p;o++)this.dispatchEvent(new j(O,n[o]))},e.prototype.bindFeaturesCollection_=function(t){var e=!1;this.addEventListener(O,(function(n){e||(e=!0,t.push(n.feature),e=!1)})),this.addEventListener(x,(function(n){e||(e=!0,t.remove(n.feature),e=!1)})),t.addEventListener(o.a.ADD,function(t){e||(e=!0,this.addFeature(t.element),e=!1)}.bind(this)),t.addEventListener(o.a.REMOVE,function(t){e||(e=!0,this.removeFeature(t.element),e=!1)}.bind(this)),this.featuresCollection_=t},e.prototype.clear=function(t){if(t){for(var e in this.featureChangeKeys_){this.featureChangeKeys_[e].forEach(c.c)}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_)for(var n in this.featuresRtree_.forEach(this.removeFeatureInternal.bind(this)),this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[n]);this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};var i=new j(T);this.dispatchEvent(i),this.changed()},e.prototype.forEachFeature=function(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)},e.prototype.forEachFeatureAtCoordinateDirect=function(t,e){var n=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(n,(function(n){return n.getGeometry().intersectsCoordinate(t)?e(n):void 0}))},e.prototype.forEachFeatureInExtent=function(t,e){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,e);this.featuresCollection_&&this.featuresCollection_.forEach(e)},e.prototype.forEachFeatureIntersectingExtent=function(t,e){return this.forEachFeatureInExtent(t,(function(n){if(n.getGeometry().intersectsExtent(t)){var i=e(n);if(i)return i}}))},e.prototype.getFeaturesCollection=function(){return this.featuresCollection_},e.prototype.getFeatures=function(){var t;return this.featuresCollection_?t=this.featuresCollection_.getArray():this.featuresRtree_&&(t=this.featuresRtree_.getAll(),Object(y.d)(this.nullGeometryFeatures_)||Object(s.c)(t,Object(y.c)(this.nullGeometryFeatures_))),t},e.prototype.getFeaturesAtCoordinate=function(t){var e=[];return this.forEachFeatureAtCoordinateDirect(t,(function(t){e.push(t)})),e},e.prototype.getFeaturesInExtent=function(t){return this.featuresRtree_?this.featuresRtree_.getInExtent(t):this.featuresCollection_?this.featuresCollection_.getArray():[]},e.prototype.getClosestFeatureToCoordinate=function(t,e){var n=t[0],i=t[1],r=null,o=[NaN,NaN],a=1/0,s=[-1/0,-1/0,1/0,1/0],u=e||f.b;return this.featuresRtree_.forEachInExtent(s,(function(t){if(u(t)){var e=t.getGeometry(),c=a;if((a=e.closestPointXY(n,i,o,a))<c){r=t;var l=Math.sqrt(a);s[0]=n-l,s[1]=i-l,s[2]=n+l,s[3]=i+l}}})),r},e.prototype.getExtent=function(t){return this.featuresRtree_.getExtent(t)},e.prototype.getFeatureById=function(t){var e=this.idIndex_[t.toString()];return void 0!==e?e:null},e.prototype.getFeatureByUid=function(t){var e=this.uidIndex_[t];return void 0!==e?e:null},e.prototype.getFormat=function(){return this.format_},e.prototype.getOverlaps=function(){return this.overlaps_},e.prototype.getUrl=function(){return this.url_},e.prototype.handleFeatureChange_=function(t){var e=t.target,n=Object(i.c)(e),r=e.getGeometry();if(r){var o=r.getExtent();n in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[n],this.featuresRtree_&&this.featuresRtree_.insert(o,e)):this.featuresRtree_&&this.featuresRtree_.update(o,e)}else n in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(e),this.nullGeometryFeatures_[n]=e);var a=e.getId();if(void 0!==a){var s=a.toString();this.idIndex_[s]!==e&&(this.removeFromIdIndex_(e),this.idIndex_[s]=e)}else this.removeFromIdIndex_(e),this.uidIndex_[n]=e;this.changed(),this.dispatchEvent(new j(E,e))},e.prototype.hasFeature=function(t){var e=t.getId();return void 0!==e?e in this.idIndex_:Object(i.c)(t)in this.uidIndex_},e.prototype.isEmpty=function(){return this.featuresRtree_.isEmpty()&&Object(y.d)(this.nullGeometryFeatures_)},e.prototype.loadFeatures=function(t,e,n){var i=this.loadedExtentsRtree_,r=this.strategy_(t,e);this.loading=!1;for(var o=function(t,o){var s=r[t];i.forEachInExtent(s,(function(t){return Object(p.g)(t.extent,s)}))||(a.loader_.call(a,s,e,n),i.insert(s,{extent:s.slice()}),a.loading=a.loader_!==f.c)},a=this,s=0,u=r.length;s<u;++s)o(s)},e.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),t.prototype.refresh.call(this)},e.prototype.removeLoadedExtent=function(t){var e,n=this.loadedExtentsRtree_;n.forEachInExtent(t,(function(n){if(Object(p.p)(n.extent,t))return e=n,!0})),e&&n.remove(e)},e.prototype.removeFeature=function(t){var e=Object(i.c)(t);e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t),this.removeFeatureInternal(t),this.changed()},e.prototype.removeFeatureInternal=function(t){var e=Object(i.c)(t);this.featureChangeKeys_[e].forEach(c.c),delete this.featureChangeKeys_[e];var n=t.getId();void 0!==n&&delete this.idIndex_[n.toString()],delete this.uidIndex_[e],this.dispatchEvent(new j(x,t))},e.prototype.removeFromIdIndex_=function(t){var e=!1;for(var n in this.idIndex_)if(this.idIndex_[n]===t){delete this.idIndex_[n],e=!0;break}return e},e.prototype.setLoader=function(t){this.loader_=t},e.prototype.setUrl=function(t){Object(u.a)(this.format_,7),this.setLoader(g(t,this.format_))},e}(m.a);e.default=P},function(t,e,n){"use strict";n.r(e);var i,r=n(41),o="preload",a="useInterimTilesOnError",s=n(13),u=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t){function e(e){var n=this,i=e||{},r=Object(s.a)({},i);return delete r.preload,delete r.useInterimTilesOnError,(n=t.call(this,r)||this).setPreload(void 0!==i.preload?i.preload:0),n.setUseInterimTilesOnError(void 0===i.useInterimTilesOnError||i.useInterimTilesOnError),n}return u(e,t),e.prototype.getPreload=function(){return this.get(o)},e.prototype.setPreload=function(t){this.set(o,t)},e.prototype.getUseInterimTilesOnError=function(){return this.get(a)},e.prototype.setUseInterimTilesOnError=function(t){this.set(a,t)},e}(r.a),l=n(1),h=n(7),p=n(58),f=n(9),d=n(0),_=n(78),g=n(8),v=n(15),y=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),m=function(t){function e(e){var n=t.call(this,e)||this;return n.extentChanged=!0,n.renderedExtent_=null,n.renderedPixelRatio,n.renderedProjection=null,n.renderedRevision,n.renderedTiles=[],n.newTiles_=!1,n.tmpExtent=Object(d.j)(),n.tmpTileRange_=new p.b(0,0,0,0),n}return y(e,t),e.prototype.isDrawableTile=function(t){var e=this.getLayer(),n=t.getState(),i=e.getUseInterimTilesOnError();return n==f.a.LOADED||n==f.a.EMPTY||n==f.a.ERROR&&!i},e.prototype.getTile=function(t,e,n,i){var r=i.pixelRatio,o=i.viewState.projection,a=this.getLayer(),s=a.getSource().getTile(t,e,n,r,o);return s.getState()==f.a.ERROR&&(a.getUseInterimTilesOnError()?a.getPreload()>0&&(this.newTiles_=!0):s.setState(f.a.LOADED)),this.isDrawableTile(s)||(s=s.getInterimTile()),s},e.prototype.loadedTileCallback=function(e,n,i){return!!this.isDrawableTile(i)&&t.prototype.loadedTileCallback.call(this,e,n,i)},e.prototype.prepareFrame=function(t){return!!this.getLayer().getSource()},e.prototype.renderFrame=function(t,e){var n=t.layerStatesArray[t.layerIndex],i=t.viewState,r=i.projection,o=i.resolution,a=i.center,s=i.rotation,u=t.pixelRatio,c=this.getLayer(),p=c.getSource(),_=p.getRevision(),y=p.getTileGridForProjection(r),m=y.getZForResolution(o,p.zDirection),b=y.getResolution(m),O=t.extent,E=n.extent&&Object(h.fromUserExtent)(n.extent,r);E&&(O=Object(d.B)(O,Object(h.fromUserExtent)(n.extent,r)));var T=p.getTilePixelRatio(u),x=Math.round(t.size[0]*T),C=Math.round(t.size[1]*T);if(s){var S=Math.round(Math.sqrt(x*x+C*C));x=S,C=S}var I=b*x/2/T,R=b*C/2/T,w=[a[0]-I,a[1]-R,a[0]+I,a[1]+R],j=y.getTileRangeForExtentAndZ(O,m),P={};P[m]={};var M=this.createLoadedTileFinder(p,r,P),L=this.tmpExtent,A=this.tmpTileRange_;this.newTiles_=!1;for(var F=j.minX;F<=j.maxX;++F)for(var D=j.minY;D<=j.maxY;++D){var N=this.getTile(m,F,D,t);if(this.isDrawableTile(N)){var k=Object(l.c)(this);if(N.getState()==f.a.LOADED){P[m][N.tileCoord.toString()]=N;var G=N.inTransition(k);this.newTiles_||!G&&-1!==this.renderedTiles.indexOf(N)||(this.newTiles_=!0)}if(1===N.getAlpha(k,t.time))continue}var Y=y.getTileCoordChildTileRange(N.tileCoord,A,L),X=!1;Y&&(X=M(m+1,Y)),X||y.forEachTileCoordParentTileRange(N.tileCoord,M,A,L)}var z=b/o;Object(g.b)(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/T,1/T,s,-x/2,-C/2);var W=this.createTransformString(this.pixelTransform);this.useContainer(e,W,n.opacity);var K=this.context,U=K.canvas;Object(g.d)(this.inversePixelTransform,this.pixelTransform),Object(g.b)(this.tempTransform_,x/2,C/2,z,z,0,-x/2,-C/2),U.width!=x||U.height!=C?(U.width=x,U.height=C):this.containerReused||K.clearRect(0,0,x,C),E&&this.clipUnrotated(K,t,E),this.preRender(K,t),this.renderedTiles.length=0;var B,V,Z,H=Object.keys(P).map(Number);H.sort(v.f),1!==n.opacity||this.containerReused&&!p.getOpaque(t.viewState.projection)?(B=[],V=[]):H=H.reverse();for(var q=H.length-1;q>=0;--q){var J=H[q],Q=p.getTilePixelSize(J,u,r),$=y.getResolution(J)/b,tt=Q[0]*$*z,et=Q[1]*$*z,nt=y.getTileCoordForCoordAndZ(Object(d.C)(w),J),it=y.getTileCoordExtent(nt),rt=Object(g.a)(this.tempTransform_,[T*(it[0]-w[0])/b,T*(w[3]-it[3])/b]),ot=T*p.getGutterForProjection(r),at=P[J];for(var st in at){var ut=(N=at[st]).tileCoord,ct=rt[0]-(nt[1]-ut[1])*tt,lt=Math.round(ct+tt),ht=rt[1]-(nt[2]-ut[2])*et,pt=Math.round(ht+et),ft=lt-(F=Math.round(ct)),dt=pt-(D=Math.round(ht)),_t=m===J;if(!(G=_t&&1!==N.getAlpha(Object(l.c)(this),t.time)))if(B){K.save(),Z=[F,D,F+ft,D,F+ft,D+dt,F,D+dt];for(var gt=0,vt=B.length;gt<vt;++gt)if(m!==J&&J<V[gt]){var yt=B[gt];K.beginPath(),K.moveTo(Z[0],Z[1]),K.lineTo(Z[2],Z[3]),K.lineTo(Z[4],Z[5]),K.lineTo(Z[6],Z[7]),K.moveTo(yt[6],yt[7]),K.lineTo(yt[4],yt[5]),K.lineTo(yt[2],yt[3]),K.lineTo(yt[0],yt[1]),K.clip()}B.push(Z),V.push(J)}else K.clearRect(F,D,ft,dt);this.drawTileImage(N,t,F,D,ft,dt,ot,_t,n.opacity),B&&!G&&K.restore(),this.renderedTiles.push(N),this.updateUsedTiles(t.usedTiles,p,N)}}return this.renderedRevision=_,this.renderedResolution=b,this.extentChanged=!this.renderedExtent_||!Object(d.p)(this.renderedExtent_,w),this.renderedExtent_=w,this.renderedPixelRatio=u,this.renderedProjection=r,this.manageTilePyramid(t,p,y,u,r,O,m,c.getPreload()),this.updateCacheSize_(t,p),this.scheduleExpireCache(t,p),this.postRender(K,t),n.extent&&K.restore(),W!==U.style.transform&&(U.style.transform=W),this.container},e.prototype.drawTileImage=function(t,e,n,i,r,o,a,s,u){var c=this.getTileImage(t);if(c){var h=Object(l.c)(this),p=s?t.getAlpha(h,e.time):1,f=u*p,d=f!==this.context.globalAlpha;d&&(this.context.save(),this.context.globalAlpha=f),this.context.drawImage(c,a,a,c.width-2*a,c.height-2*a,n,i,r,o),d&&this.context.restore(),1!==p?e.animate=!0:s&&t.endTransition(h)}},e.prototype.getImage=function(){var t=this.context;return t?t.canvas:null},e.prototype.getTileImage=function(t){return t.getImage()},e.prototype.scheduleExpireCache=function(t,e){if(e.canExpireCache()){var n=function(t,e,n){var i=Object(l.c)(t);i in n.usedTiles&&t.expireCache(n.viewState.projection,n.usedTiles[i])}.bind(null,e);t.postRenderFunctions.push(n)}},e.prototype.updateUsedTiles=function(t,e,n){var i=Object(l.c)(e);i in t||(t[i]={}),t[i][n.getKey()]=!0},e.prototype.updateCacheSize_=function(t,e){var n=Object(l.c)(e),i=0;n in t.usedTiles&&(i+=Object.keys(t.usedTiles[n]).length),n in t.wantedTiles&&(i+=Object.keys(t.wantedTiles[n]).length);var r=e.tileCache;r.highWaterMark<i&&(r.highWaterMark=i)},e.prototype.manageTilePyramid=function(t,e,n,i,r,o,a,s,u){var c=Object(l.c)(e);c in t.wantedTiles||(t.wantedTiles[c]={});var h,p,d,_,g,v,y=t.wantedTiles[c],m=t.tileQueue;for(v=n.getMinZoom();v<=a;++v)for(p=n.getTileRangeForExtentAndZ(o,v,p),d=n.getResolution(v),_=p.minX;_<=p.maxX;++_)for(g=p.minY;g<=p.maxY;++g)a-v<=s?((h=e.getTile(v,_,g,i,r)).getState()==f.a.IDLE&&(y[h.getKey()]=!0,m.isKeyQueued(h.getKey())||m.enqueue([h,c,n.getTileCoordCenter(h.tileCoord),d])),void 0!==u&&u(h)):e.useTile(v,_,g,r)},e}(_.a);m.prototype.getLayer;var b=m,O=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),E=function(t){function e(e){return t.call(this,e)||this}return O(e,t),e.prototype.createRenderer=function(){return new b(this)},e}(c);e.default=E},function(t,e,n){"use strict";n.r(e);var i,r=n(1),o=n(18),a=n(10),s=n(52),u=n(5),c=n(49),l=n(11),h=n(37),p=n(59),f=n(79),d=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),_=function(t){function e(e,n,i,r,o,a){var s=t.call(this)||this;return s.hitDetectionImage_=null,s.image_=e||new Image,null!==r&&(s.image_.crossOrigin=r),s.canvas_=a?document.createElement("canvas"):null,s.color_=a,s.unlisten_=null,s.imageState_=o,s.size_=i,s.src_=n,s.tainted_,s}return d(e,t),e.prototype.isTainted_=function(){if(void 0===this.tainted_&&this.imageState_===o.a.LOADED){this.tainted_=!1;var t=Object(l.a)(1,1);try{t.drawImage(this.image_,0,0),t.getImageData(0,0,1,1)}catch(t){this.tainted_=!0}}return!0===this.tainted_},e.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(u.a.CHANGE)},e.prototype.handleImageError_=function(){this.imageState_=o.a.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.handleImageLoad_=function(){this.imageState_=o.a.LOADED,this.size_&&(this.image_.width=this.size_[0],this.image_.height=this.size_[1]),this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.replaceColor_(),this.dispatchChangeEvent_()},e.prototype.getImage=function(t){return this.canvas_?this.canvas_:this.image_},e.prototype.getImageState=function(){return this.imageState_},e.prototype.getHitDetectionImage=function(t){if(!this.hitDetectionImage_)if(this.isTainted_()){var e=this.size_[0],n=this.size_[1],i=Object(l.a)(e,n);i.fillRect(0,0,e,n),this.hitDetectionImage_=i.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_},e.prototype.getSize=function(){return this.size_},e.prototype.getSrc=function(){return this.src_},e.prototype.load=function(){if(this.imageState_==o.a.IDLE){this.imageState_=o.a.LOADING;try{this.image_.src=this.src_}catch(t){this.handleImageError_()}this.unlisten_=Object(f.a)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},e.prototype.replaceColor_=function(){if(this.color_&&!this.isTainted_()){this.canvas_.width=this.image_.width,this.canvas_.height=this.image_.height;var t=this.canvas_.getContext("2d");t.drawImage(this.image_,0,0);for(var e=t.getImageData(0,0,this.image_.width,this.image_.height),n=e.data,i=this.color_[0]/255,r=this.color_[1]/255,o=this.color_[2]/255,a=0,s=n.length;a<s;a+=4)n[a]*=i,n[a+1]*=r,n[a+2]*=o;t.putImageData(e,0,0)}},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(h.a);var g={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"},v=n(73),y=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),m=function(t){function e(e){var n=this,i=e||{},u=void 0!==i.opacity?i.opacity:1,l=void 0!==i.rotation?i.rotation:0,h=void 0!==i.scale?i.scale:1,f=void 0!==i.rotateWithView&&i.rotateWithView;(n=t.call(this,{opacity:u,rotation:l,scale:h,rotateWithView:f})||this).anchor_=void 0!==i.anchor?i.anchor:[.5,.5],n.normalizedAnchor_=null,n.anchorOrigin_=void 0!==i.anchorOrigin?i.anchorOrigin:g.TOP_LEFT,n.anchorXUnits_=void 0!==i.anchorXUnits?i.anchorXUnits:c.a.FRACTION,n.anchorYUnits_=void 0!==i.anchorYUnits?i.anchorYUnits:c.a.FRACTION,n.crossOrigin_=void 0!==i.crossOrigin?i.crossOrigin:null;var d=void 0!==i.img?i.img:null,v=void 0!==i.imgSize?i.imgSize:null,y=i.src;Object(a.a)(!(void 0!==y&&d),4),Object(a.a)(!d||d&&v,5),void 0!==y&&0!==y.length||!d||(y=d.src||Object(r.c)(d)),Object(a.a)(void 0!==y&&y.length>0,6);var m=void 0!==i.src?o.a.IDLE:o.a.LOADED;return n.color_=void 0!==i.color?Object(s.a)(i.color):null,n.iconImage_=function(t,e,n,i,r,o){var a=p.a.get(e,i,o);return a||(a=new _(t,e,n,i,r,o),p.a.set(e,i,o,a)),a}(d,y,v,n.crossOrigin_,m,n.color_),n.offset_=void 0!==i.offset?i.offset:[0,0],n.offsetOrigin_=void 0!==i.offsetOrigin?i.offsetOrigin:g.TOP_LEFT,n.origin_=null,n.size_=void 0!==i.size?i.size:null,n}return y(e,t),e.prototype.clone=function(){return new e({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,crossOrigin:this.crossOrigin_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,src:this.getSrc(),offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,size:null!==this.size_?this.size_.slice():void 0,opacity:this.getOpacity(),scale:this.getScale(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView()})},e.prototype.getAnchor=function(){if(this.normalizedAnchor_)return this.normalizedAnchor_;var t=this.anchor_,e=this.getSize();if(this.anchorXUnits_==c.a.FRACTION||this.anchorYUnits_==c.a.FRACTION){if(!e)return null;t=this.anchor_.slice(),this.anchorXUnits_==c.a.FRACTION&&(t[0]*=e[0]),this.anchorYUnits_==c.a.FRACTION&&(t[1]*=e[1])}if(this.anchorOrigin_!=g.TOP_LEFT){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),this.anchorOrigin_!=g.TOP_RIGHT&&this.anchorOrigin_!=g.BOTTOM_RIGHT||(t[0]=-t[0]+e[0]),this.anchorOrigin_!=g.BOTTOM_LEFT&&this.anchorOrigin_!=g.BOTTOM_RIGHT||(t[1]=-t[1]+e[1])}return this.normalizedAnchor_=t,this.normalizedAnchor_},e.prototype.setAnchor=function(t){this.anchor_=t,this.normalizedAnchor_=null},e.prototype.getColor=function(){return this.color_},e.prototype.getImage=function(t){return this.iconImage_.getImage(t)},e.prototype.getImageSize=function(){return this.iconImage_.getSize()},e.prototype.getHitDetectionImageSize=function(){return this.getImageSize()},e.prototype.getImageState=function(){return this.iconImage_.getImageState()},e.prototype.getHitDetectionImage=function(t){return this.iconImage_.getHitDetectionImage(t)},e.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var t=this.offset_;if(this.offsetOrigin_!=g.TOP_LEFT){var e=this.getSize(),n=this.iconImage_.getSize();if(!e||!n)return null;t=t.slice(),this.offsetOrigin_!=g.TOP_RIGHT&&this.offsetOrigin_!=g.BOTTOM_RIGHT||(t[0]=n[0]-e[0]-t[0]),this.offsetOrigin_!=g.BOTTOM_LEFT&&this.offsetOrigin_!=g.BOTTOM_RIGHT||(t[1]=n[1]-e[1]-t[1])}return this.origin_=t,this.origin_},e.prototype.getSrc=function(){return this.iconImage_.getSrc()},e.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},e.prototype.listenImageChange=function(t){this.iconImage_.addEventListener(u.a.CHANGE,t)},e.prototype.load=function(){this.iconImage_.load()},e.prototype.unlistenImageChange=function(t){this.iconImage_.removeEventListener(u.a.CHANGE,t)},e}(v.a);e.default=m},function(t,e,n){"use strict";n.r(e);var i=n(15),r=n(0),o=n(22),a=n(4),s=n(44),u=n(51),c=n(53),l=n(46),h=n(6);function p(t,e,n,i,r,o){if(n==e)return null;var a;if(r<t[e+i-1])return o?((a=t.slice(e,e+i))[i-1]=r,a):null;if(t[n-1]<r)return o?((a=t.slice(n-i,n))[i-1]=r,a):null;if(r==t[e+i-1])return t.slice(e,e+i);for(var s=e/i,u=n/i;s<u;){var c=s+u>>1;r<t[(c+1)*i-1]?u=c:s=c+1}var l=t[s*i-1];if(r==l)return t.slice((s-1)*i,(s-1)*i+i);var p=(r-l)/(t[(s+1)*i-1]-l);a=[];for(var f=0;f<i-1;++f)a.push(Object(h.c)(t[(s-1)*i+f],t[s*i+f],p));return a.push(r),a}var f,d=n(69),_=n(72),g=n(70),v=n(54),y=(f=function(t,e){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}f(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),m=function(t){function e(e,n){var i=t.call(this)||this;return i.flatMidpoint_=null,i.flatMidpointRevision_=-1,i.maxDelta_=-1,i.maxDeltaRevision_=-1,void 0===n||Array.isArray(e[0])?i.setCoordinates(e,n):i.setFlatCoordinates(n,e),i}return y(e,t),e.prototype.appendCoordinate=function(t){this.flatCoordinates?Object(i.c)(this.flatCoordinates,t):this.flatCoordinates=t.slice(),this.changed()},e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout)},e.prototype.closestPointXY=function(t,e,n,i){return i<Object(r.e)(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(u.d)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(u.c)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,t,e,n,i))},e.prototype.forEachSegment=function(t){return Object(g.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinateAtM=function(t,e){if(this.layout!=o.a.XYM&&this.layout!=o.a.XYZM)return null;var n=void 0!==e&&e;return p(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,n)},e.prototype.getCoordinates=function(){return Object(l.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinateAt=function(t,e){return function(t,e,n,r,o,a){var s=NaN,u=NaN,c=(n-e)/r;if(1===c)s=t[e],u=t[e+1];else if(2==c)s=(1-o)*t[e]+o*t[e+r],u=(1-o)*t[e+1]+o*t[e+r+1];else if(0!==c){for(var l=t[e],p=t[e+1],f=0,d=[0],_=e+r;_<n;_+=r){var g=t[_],v=t[_+1];f+=Math.sqrt((g-l)*(g-l)+(v-p)*(v-p)),d.push(f),l=g,p=v}var y=o*f,m=Object(i.a)(d,y);if(m<0){var b=(y-d[-m-2])/(d[-m-1]-d[-m-2]),O=e+(-m-2)*r;s=Object(h.c)(t[O],t[O+r],b),u=Object(h.c)(t[O+1],t[O+r+1],b)}else s=t[e+m*r],u=t[e+m*r+1]}return a?(a[0]=s,a[1]=u,a):[s,u]}(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e)},e.prototype.getLength=function(){return Object(_.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getFlatMidpoint=function(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[];return n.length=Object(v.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,n,0),new e(n,o.a.XY)},e.prototype.getType=function(){return a.a.LINE_STRING},e.prototype.intersectsExtent=function(t){return Object(d.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(c.b)(this.flatCoordinates,0,t,this.stride),this.changed()},e}(s.a);e.default=m}]);
|
||
//# sourceMappingURL=ol.js.map
|