// Ol-Cesium. See https://github.com/openlayers/ol-cesium/ // License: https://github.com/openlayers/ol-cesium/blob/master/LICENSE // Version: v3.7-55-g38fe032c7a (function(){'use strict';var k,aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},ba="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;function ca(){ca=function(){};ba.Symbol||(ba.Symbol=da)}var da=function(){var a=0;return function(b){return"jscomp_symbol_"+(b||"")+a++}}(); function ea(){ca();var a=ba.Symbol.iterator;a||(a=ba.Symbol.iterator=ba.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&aa(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return fa(this)}});ea=function(){}}function fa(a){var b=0;return ha(function(){return bd&&(g|=4);be&&(g|=2);0===g&&(g=1);return g}function ib(){return[Infinity,Infinity,-Infinity,-Infinity]}function rb(a,b,c,d,e){return e?(e[0]=a,e[1]=b,e[2]=c,e[3]=d,e):[a,b,c,d]}function sb(a,b){var c=a[0];a=a[1];return rb(c,a,c,a,b)}function tb(a,b,c,d,e){e=rb(Infinity,Infinity,-Infinity,-Infinity,e);return ub(e,a,b,c,d)} function vb(a,b){return a[0]==b[0]&&a[2]==b[2]&&a[1]==b[1]&&a[3]==b[3]}function wb(a,b){b[0]a[2]&&(a[2]=b[2]);b[1]a[3]&&(a[3]=b[3]);return a}function jb(a,b){b[0]a[2]&&(a[2]=b[0]);b[1]a[3]&&(a[3]=b[1])}function ub(a,b,c,d,e){for(;cb[0]?a[0]:b[0],c[1]=a[1]>b[1]?a[1]:b[1],c[2]=a[2]=b[0]&&a[1]<=b[3]&&a[3]>=b[1]}function Db(a){return a[2]a*b?a+b:a}function Tb(a,b,c){return a+c*(b-a)};function Ub(a){Wa.call(this);var b=wa({},a);b.opacity=void 0!==a.opacity?a.opacity:1;b.visible=void 0!==a.visible?a.visible:!0;b.zIndex=void 0!==a.zIndex?a.zIndex:0;b.maxResolution=void 0!==a.maxResolution?a.maxResolution:Infinity;b.minResolution=void 0!==a.minResolution?a.minResolution:0;this.J(b);this.c={layer:this,hf:!0}}v(Ub,Wa); function Vb(a){a.c.opacity=Mb(a.La(),0,1);a.c.fk=a.xg();a.c.visible=a.lb();a.c.extent=a.D();a.c.zIndex=a.Da();a.c.maxResolution=a.tc();a.c.minResolution=Math.max(a.uc(),0);return a.c}k=Ub.prototype;k.D=function(){return this.get("extent")};k.tc=function(){return this.get("maxResolution")};k.uc=function(){return this.get("minResolution")};k.La=function(){return this.get("opacity")};k.lb=function(){return this.get("visible")};k.Da=function(){return this.get("zIndex")}; k.Oc=function(a){this.set("extent",a)};k.Sc=function(a){this.set("maxResolution",a)};k.Tc=function(a){this.set("minResolution",a)};k.Pc=function(a){this.set("opacity",a)};k.ec=function(a){this.set("visible",a)};k.jc=function(a){this.set("zIndex",a)};function Wb(a){var b=a||{};a=wa({},b);delete a.layers;b=b.layers;Ub.call(this,a);this.i=[];this.a={};y(this,Ya(Xb),this.wm,this);b?Array.isArray(b)?b=new bb(b.slice(),{unique:!0}):gb(b instanceof bb,43):b=new bb(void 0,{unique:!0});this.$i(b)}v(Wb,Ub);k=Wb.prototype;k.Zd=function(){};k.df=function(){this.lb()&&this.u()}; k.wm=function(){this.i.forEach(Ca);this.i.length=0;var a=this.Tb();this.i.push(y(a,"add",this.vm,this),y(a,"remove",this.xm,this));for(var b in this.a)this.a[b].forEach(Ca);xa(this.a);a=a.a;var c;b=0;for(c=a.length;ba-this.c||d||0!=b.length||(this.j&&console.log("stopping rendering @ "+Date.now()),this.i.qh(!0),this.f=!0);Cesium.Matrix4.clone(c.viewMatrix,this.o)};ec.prototype.s=function(){this.b()}; ec.prototype.b=function(){this.j&&this.f&&console.log("starting rendering @ "+Date.now());this.c=Date.now();this.i.qh(!1);this.f=!1};ec.prototype.Ba=function(a){this.j=a};/* Latitude/longitude spherical geodesy formulae taken from http://www.movable-type.co.uk/scripts/latlong.html Licensed under CC-BY-3.0. */ function hc(a){this.radius=a}hc.prototype.a=function(a){return jc(a,this.radius)};hc.prototype.b=function(a,b){return kc(a,b,this.radius)};hc.prototype.offset=function(a,b,c){var d=Rb(a[1]);b/=this.radius;var e=Math.asin(Math.sin(d)*Math.cos(b)+Math.cos(d)*Math.sin(b)*Math.cos(c));return[180*(Rb(a[0])+Math.atan2(Math.sin(c)*Math.sin(b)*Math.cos(d),Math.cos(b)-Math.sin(d)*Math.sin(e)))/Math.PI,180*e/Math.PI]}; function lc(a,b){var c=b||{},d=c.radius||6371008.8;c=c.projection||"EPSG:3857";a=a.clone().transform(c,"EPSG:4326");var e=a.U();c=0;var f;switch(e){case "Point":case "MultiPoint":break;case "LineString":case "LinearRing":b=a.T();c=mc(b,d);break;case "MultiLineString":case "Polygon":b=a.T();a=0;for(e=b.length;awc?f=wc:f<-wc&&(f=-wc);b[e+1]=f}return b}function zc(a,b,c){var d=a.length;c=1=a.minResolution&&b=b.ga&&a.ha<=b.ka&&a.ka>=b.ha};function fd(a,b){return a>b?1:ac)for(c=1;c>>0,d,e=0;ee)return 1;if(e>d)return-1}return 0};function ud(a,b){a[0]+=b[0];a[1]+=b[1];return a}function vd(a,b){var c=a[0];a=a[1];var d=b[0],e=b[1];b=d[0];d=d[1];var f=e[0];e=e[1];var g=f-b,h=e-d;c=0===g&&0===h?0:(g*(c-b)+h*(a-d))/(g*g+h*h||0);0>=c?(a=b,c=d):1<=c?(a=f,c=e):(a=b+c*g,c=d+c*h);return[a,c]} function wd(a,b,c){a=Sb(a+180,360)-180;var d=Math.abs(3600*a);c=c||0;var e=Math.pow(10,c),f=Math.floor(d/3600),g=Math.floor((d-3600*f)/60);d=Math.ceil((d-3600*f-60*g)*e)/e;60<=d&&(d=0,g+=1);60<=g&&(g=0,f+=1);return f+"\u00b0 "+sd(g)+"\u2032 "+sd(d,c)+"\u2033 "+b.charAt(0>a?1:0)}function xd(a,b,c){return a?b.replace("{x}",a[0].toFixed(c)).replace("{y}",a[1].toFixed(c)):""}function yd(a,b){for(var c=!0,d=a.length-1;0<=d;--d)if(a[d]!=b[d]){c=!1;break}return c} function zd(a,b){var c=Math.cos(b);b=Math.sin(b);var d=a[1]*c+a[0]*b;a[0]=a[0]*c-a[1]*b;a[1]=d;return a}function Ad(a,b){a[0]*=b;a[1]*=b}function Bd(a,b){var c=a[0]-b[0];a=a[1]-b[1];return c*c+a*a}function Cd(a,b){return Math.sqrt(Bd(a,b))}function Dd(a,b){return Bd(a,vd(a,b))}function Ed(a,b){return xd(a,"{x}, {y}",b)};function Fd(){return!0}function Gd(){return!1};function Hd(a,b,c,d,e){Na.call(this,a);this.vectorContext=b;this.frameState=c;this.context=d;this.glContext=e}v(Hd,Na);var Id=[0,0,0,1],Jd=[],Kd=[0,0,0,1];function Ld(a,b,c,d){0!==b&&(a.translate(c,d),a.rotate(b),a.translate(-c,-d))};var Md=/^#(?:[0-9a-f]{3}){1,2}$/i,Nd=/^([a-z]*)$/i;function Od(a){return Array.isArray(a)?a:Pd(a)}function Qd(a){if("string"!==typeof a){var b=a[0];b!=(b|0)&&(b=b+.5|0);var c=a[1];c!=(c|0)&&(c=c+.5|0);var d=a[2];d!=(d|0)&&(d=d+.5|0);a="rgba("+b+","+c+","+d+","+(void 0===a[3]?1:a[3])+")"}return a} var Pd=function(){var a={},b=0;return function(c){if(a.hasOwnProperty(c))var d=a[c];else{if(1024<=b){d=0;for(var e in a)0===(d++&3)&&(delete a[e],--b)}d=c;Nd.exec(d)&&(e=document.createElement("div"),e.style.color=d,document.body.appendChild(e),d=getComputedStyle(e).color,document.body.removeChild(e));if(Md.exec(d)){var f=d.length-1;gb(3==f||6==f,54);var g=3==f?1:2;f=parseInt(d.substr(1+0*g,g),16);e=parseInt(d.substr(1+1*g,g),16);d=parseInt(d.substr(1+2*g,g),16);1==g&&(f=(f<<4)+f,e=(e<<4)+e,d=(d<< 4)+d);f=[f,e,d,1]}else 0==d.indexOf("rgba(")?(d=d.slice(5,-1).split(",").map(Number),f=Rd(d)):0==d.indexOf("rgb(")?(d=d.slice(4,-1).split(",").map(Number),d.push(1),f=Rd(d)):gb(!1,14);d=f;a[c]=d;++b}return d}}();function Rd(a){var b=[];b[0]=Mb(a[0]+.5|0,0,255);b[1]=Mb(a[1]+.5|0,0,255);b[2]=Mb(a[2]+.5|0,0,255);b[3]=Mb(a[3],0,1);return b};function Sd(a){return"string"===typeof a||a instanceof CanvasPattern||a instanceof CanvasGradient?a:Qd(a)};function Td(){Wa.call(this);this.o=ib();this.s=-1;this.i={};this.l=this.f=0}v(Td,Wa);k=Td.prototype;k.Fb=function(a,b){b=b?b:[NaN,NaN];this.Lb(a[0],a[1],b,Infinity);return b};k.yb=function(a){return this.hd(a[0],a[1])};k.hd=Gd;k.D=function(a){this.s!=this.g&&(this.o=this.Re(this.o),this.s=this.g);var b=this.o;a?(a[0]=b[0],a[1]=b[1],a[2]=b[2],a[3]=b[3]):a=b;return a};k.Wb=function(a){return this.me(a*a)};k.transform=function(a,b){this.yc(Vc(a,b));return this};function Ud(a,b,c,d,e,f){for(var g=f?f:[],h=0;ba||0!==this.f&&a<=this.f)return this;var b=a.toString();if(this.i.hasOwnProperty(b))return this.i[b];var c=this.Ed(a);if(c.ja().lengtha.da&&(a.da=d.da),d.haa.ka&&(a.ka=d.ka)):a[b][c]=d:(a[b]={},a[b][c]=d)} function $e(a,b,c,d,e,f,g,h,l,m){var n=x(b).toString();n in a.wantedTiles||(a.wantedTiles[n]={});var p=a.wantedTiles[n];a=a.tileQueue;var q=c.minZoom,t,u,w;for(w=g;w>=q;--w){var z=af(c,f,w,z);var D=c.Ra(w);for(t=z.ga;t<=z.da;++t)for(u=z.ha;u<=z.ka;++u)if(g-w<=h){var B=b.cd(w,t,u,d,e);0==B.getState()&&(p[B.ob()]=!0,B.ob()in a.a||a.i([B,n,bf(c,B.Ka),D]));void 0!==l&&l.call(m,B)}else b.zh(w,t,u,e)}};function cf(a){Se.call(this,a);this.la=ve()}v(cf,Se);function df(a,b,c){var d=b.pixelRatio,e=b.size[0]*d,f=b.size[1]*d,g=b.viewState.rotation,h=Bb(c),l=Ab(c),m=zb(c);c=yb(c);Ae(b.coordinateToPixelTransform,h);Ae(b.coordinateToPixelTransform,l);Ae(b.coordinateToPixelTransform,m);Ae(b.coordinateToPixelTransform,c);a.save();Ld(a,-g,e/2,f/2);a.beginPath();a.moveTo(h[0]*d,h[1]*d);a.lineTo(l[0]*d,l[1]*d);a.lineTo(m[0]*d,m[1]*d);a.lineTo(c[0]*d,c[1]*d);a.clip();Ld(a,g,e/2,f/2)} function ef(a,b,c,d,e){var f=a.a;if(Ra(f,b)){var g=d.size[0]*d.pixelRatio,h=d.size[1]*d.pixelRatio,l=d.viewState.rotation;Ld(c,-l,g/2,h/2);a=void 0!==e?e:ff(a,d,0);f.b(new Hd(b,new Ge(c,d.pixelRatio,d.extent,a,d.viewState.rotation),d,c,null));Ld(c,l,g/2,h/2)}}cf.prototype.I=function(a,b,c,d){if(this.Ga(a,b,0,Fd,this))return c.call(d,this.a,null)};cf.prototype.Cf=function(a,b,c,d){ef(this,"postcompose",a,b,d)}; function ff(a,b,c){var d=b.viewState,e=b.pixelRatio,f=e/d.resolution;return Ee(a.la,e*b.size[0]/2,e*b.size[1]/2,f,-f,-d.rotation,-d.center[0]+c,-d.center[1])};function gf(a){cf.call(this,a);this.s=ve();this.j=null}v(gf,cf);gf.prototype.v=function(a,b,c){ef(this,"precompose",c,a,void 0);var d=this.W();if(d){var e=b.extent,f=void 0!==e&&!pb(e,a.extent)&&Jb(e,a.extent);f&&df(c,a,e);e=this.C();var g=c.globalAlpha;c.globalAlpha=b.opacity;c.drawImage(d,0,0,+d.width,+d.height,Math.round(e[4]),Math.round(e[5]),Math.round(d.width*e[0]),Math.round(d.height*e[3]));c.globalAlpha=g;f&&c.restore()}this.Cf(c,a,b)}; gf.prototype.Ga=function(a,b,c,d,e){var f=this.a;return f.ba().Ga(a,b.viewState.resolution,b.viewState.rotation,c,b.skippedFeatureUids,function(a){return d.call(e,a,f)})}; gf.prototype.I=function(a,b,c,d){if(this.W()){if(this.a.ba().Ga!==ua)return cf.prototype.I.apply(this,arguments);var e=Ae(this.s,a.slice());Ad(e,b.viewState.resolution/this.f);this.j||(this.j=pd(1,1));this.j.clearRect(0,0,1,1);this.j.drawImage(this.W(),e[0],e[1],1,1,0,0,1,1);e=this.j.getImageData(0,0,1,1).data;if(0=-Jf?void 0:0f;f+=d)this.a[b++]=a[f],this.a[b++]=a[f+1],this.a[b++]=0,this.a[b++]=this.C,this.a[b++]=a[f],this.a[b++]=a[f+1],this.a[b++]=1,this.a[b++]=this.C,this.a[b++]=a[f],this.a[b++]=a[f+1],this.a[b++]=2,this.a[b++]=this.C,this.a[b++]=a[f],this.a[b++]=a[f+ 1],this.a[b++]=3,this.a[b++]=this.C,this.b[c++]=e,this.b[c++]=e+1,this.b[c++]=e+2,this.b[c++]=e+2,this.b[c++]=e+3,this.b[c++]=e,e+=4}else this.c.u&&(this.l.pop(),this.l.length&&(d=this.l[this.l.length-1],this.c.fillColor=d[0],this.c.strokeColor=d[1],this.c.lineWidth=d[2],this.c.u=!1))};k.Gb=function(){this.s=new Kf(this.a);this.o=new Kf(this.b);this.g.push(this.b.length);0===this.v.length&&0=h;){var l=this.g[g];var m=this.f[g];m=x(m).toString();c[m]&&(d!==f&&Ef(a,b,d,f),f=l);g--;d=l}d!==f&&Ef(a,b,d,f);d=f=h}}}; k.Ue=function(a,b,c,d,e){var f,g;var h=this.g.length-2;var l=this.g[h+1];for(f=this.v.length-1;0<=f;--f){var m=this.l[f];a.uniform4fv(this.I.ea,m[0]);Qf(this,a,m[1],m[2]);for(g=this.v[f];0<=h&&this.g[h]>=g;){m=this.g[h];var n=this.f[h];var p=x(n).toString();if(void 0===c[p]&&n.V()&&(void 0===e||Jb(e,n.V().D()))&&(a.clear(a.COLOR_BUFFER_BIT|a.DEPTH_BUFFER_BIT),Ef(a,b,m,l),l=d(n)))return l;h--;l=m}}};function Qf(a,b,c,d){b.uniform4fv(a.I.Ba,c);b.uniform1f(a.I.ta,d)} k.Ta=function(a,b){if(b){var c=b.g;this.c.lineDash=c?c:Gf;c=b.f;this.c.lineDashOffset=c?c:0;c=b.b;c instanceof CanvasGradient||c instanceof CanvasPattern?c=Hf:c=Od(c).map(function(a,b){return 3!=b?a/255:a})||Hf;b=b.c;b=void 0!==b?b:1}else c=[0,0,0,0],b=0;a=a?a.b:[0,0,0,0];a instanceof CanvasGradient||a instanceof CanvasPattern?a=Ff:a=Od(a).map(function(a,b){return 3!=b?a/255:a})||Ff;this.c.strokeColor&&ld(this.c.strokeColor,c)&&this.c.fillColor&&ld(this.c.fillColor,a)&&this.c.lineWidth===b||(this.c.u= !0,this.c.fillColor=a,this.c.strokeColor=c,this.c.lineWidth=b,this.l.push([a,c,b]))};function Rf(){this.b="precision mediump float;\nvarying vec2 v_texCoord;\nvarying float v_opacity;\n\nuniform float u_opacity;\nuniform sampler2D u_image;\n\nvoid main(void) {\n vec4 texColor = texture2D(u_image, v_texCoord);\n gl_FragColor.rgb = texColor.rgb;\n float alpha = texColor.a * v_opacity * u_opacity;\n if (alpha == 0.0) {\n discard;\n }\n gl_FragColor.a = alpha;\n}\n"}v(Rf,tf);var Sf=new Rf; function Tf(){this.b="varying vec2 v_texCoord;\nvarying float v_opacity;\n\nattribute vec2 a_position;\nattribute vec2 a_texCoord;\nattribute vec2 a_offsets;\nattribute float a_opacity;\nattribute float a_rotateWithView;\n\nuniform mat4 u_projectionMatrix;\nuniform mat4 u_offsetScaleMatrix;\nuniform mat4 u_offsetRotateMatrix;\n\nvoid main(void) {\n mat4 offsetMatrix = u_offsetScaleMatrix;\n if (a_rotateWithView == 1.0) {\n offsetMatrix = u_offsetScaleMatrix * u_offsetRotateMatrix;\n }\n vec4 offsets = offsetMatrix * vec4(a_offsets, 0.0, 0.0);\n gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;\n v_texCoord = a_texCoord;\n v_opacity = a_opacity;\n}\n\n\n"} v(Tf,uf);var Uf=new Tf;function Vf(a,b){this.c=a.getUniformLocation(b,"u_offsetRotateMatrix");this.i=a.getUniformLocation(b,"u_offsetScaleMatrix");this.a=a.getUniformLocation(b,"u_opacity");this.g=a.getUniformLocation(b,"u_projectionMatrix");this.s=a.getAttribLocation(b,"a_offsets");this.I=a.getAttribLocation(b,"a_opacity");this.b=a.getAttribLocation(b,"a_position");this.C=a.getAttribLocation(b,"a_rotateWithView");this.B=a.getAttribLocation(b,"a_texCoord")};function Wf(a,b){this.j=a;this.b=b;this.a={};this.c={};this.g={};this.o=this.s=this.i=this.l=null;(this.f=gd(ta,"OES_element_index_uint"))&&b.getExtension("OES_element_index_uint");y(this.j,"webglcontextlost",this.Jp,this);y(this.j,"webglcontextrestored",this.Kp,this)}v(Wf,La); function Df(a,b,c){var d=a.b,e=c.b,f=String(x(c));if(f in a.a)d.bindBuffer(b,a.a[f].buffer);else{var g=d.createBuffer();d.bindBuffer(b,g);var h;34962==b?h=new Float32Array(e):34963==b&&(h=a.f?new Uint32Array(e):new Uint16Array(e));d.bufferData(b,h,c.a);a.a[f]={mc:c,buffer:g}}}function Of(a,b){var c=a.b;b=String(x(b));var d=a.a[b];c.isContextLost()||c.deleteBuffer(d.buffer);delete a.a[b]}k=Wf.prototype; k.xa=function(){Ka(this.j);var a=this.b;if(!a.isContextLost()){for(var b in this.a)a.deleteBuffer(this.a[b].buffer);for(b in this.g)a.deleteProgram(this.g[b]);for(b in this.c)a.deleteShader(this.c[b]);a.deleteFramebuffer(this.i);a.deleteRenderbuffer(this.o);a.deleteTexture(this.s)}};k.Ip=function(){return this.b}; function Xf(a){if(!a.i){var b=a.b,c=b.createFramebuffer();b.bindFramebuffer(b.FRAMEBUFFER,c);var d=Yf(b,1,1),e=b.createRenderbuffer();b.bindRenderbuffer(b.RENDERBUFFER,e);b.renderbufferStorage(b.RENDERBUFFER,b.DEPTH_COMPONENT16,1,1);b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,d,0);b.framebufferRenderbuffer(b.FRAMEBUFFER,b.DEPTH_ATTACHMENT,b.RENDERBUFFER,e);b.bindTexture(b.TEXTURE_2D,null);b.bindRenderbuffer(b.RENDERBUFFER,null);b.bindFramebuffer(b.FRAMEBUFFER,null);a.i=c; a.s=d;a.o=e}return a.i}function Zf(a,b){var c=String(x(b));if(c in a.c)return a.c[c];var d=a.b,e=d.createShader(b.U());d.shaderSource(e,b.b);d.compileShader(e);return a.c[c]=e}function Pf(a,b,c){var d=x(b)+"/"+x(c);if(d in a.g)return a.g[d];var e=a.b,f=e.createProgram();e.attachShader(f,Zf(a,b));e.attachShader(f,Zf(a,c));e.linkProgram(f);return a.g[d]=f}k.Jp=function(){xa(this.a);xa(this.c);xa(this.g);this.o=this.s=this.i=this.l=null};k.Kp=function(){}; k.ld=function(a){if(a==this.l)return!1;this.b.useProgram(a);this.l=a;return!0};function $f(a,b,c){var d=a.createTexture();a.bindTexture(a.TEXTURE_2D,d);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.LINEAR);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR);void 0!==b&&a.texParameteri(3553,10242,b);void 0!==c&&a.texParameteri(3553,10243,c);return d}function Yf(a,b,c){var d=$f(a,void 0,void 0);a.texImage2D(a.TEXTURE_2D,0,a.RGBA,b,c,0,a.RGBA,a.UNSIGNED_BYTE,null);return d} function ag(a,b){var c=$f(a,33071,33071);a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,b);return c};function bg(a,b){Cf.call(this,a,b);this.ea=this.B=void 0;this.C=[];this.I=[];this.G=void 0;this.l=[];this.c=[];this.Ba=this.N=void 0;this.ta=null;this.oa=this.la=this.Za=this.$=this.X=this.aa=void 0;this.Xa=[];this.v=[];this.Db=void 0}v(bg,Cf);k=bg.prototype;k.Hb=function(a){var b=this.s,c=this.o,d=this.Xa,e=this.v,f=a.b;return function(){if(!f.isContextLost()){var g;var h=0;for(g=d.length;h=l;){var m=this.g[h];var n=this.f[h];var p=x(n).toString();if(void 0===c[p]&&n.V()&&(void 0===e||Jb(e,n.V().D()))&&(a.clear(a.COLOR_BUFFER_BIT|a.DEPTH_BUFFER_BIT),Ef(a,b,m,g),g=d(n)))return g;g=m;h--}}}; k.ic=function(a){var b=a.Gc(),c=a.W(1),d=a.Ye(),e=a.Rg(),f=a.La(),g=a.jd(),h=a.j,l=a.i,m=a.gc();a=a.Ma();if(0===this.l.length)this.l.push(c);else{var n=this.l[this.l.length-1];x(n)!=x(c)&&(this.C.push(this.b.length),this.l.push(c))}0===this.c.length?this.c.push(e):(n=this.c[this.c.length-1],x(n)!=x(e)&&(this.I.push(this.b.length),this.c.push(e)));this.B=b[0];this.ea=b[1];this.G=m[1];this.N=d[1];this.Ba=d[0];this.aa=f;this.X=g[0];this.$=g[1];this.la=l;this.Za=h;this.oa=a;this.Db=m[0]};function eg(a,b,c,d){for(var e=0,f=a[c-d],g=a[c-d+1];bc&&(this.g.push(c),this.f.push(b),this.c.u&&(this.l.push(c),this.c.u=!1))}; function Dg(a,b,c,d){kg(b,b.length,d)||(b.push(b[0]),b.push(b[1]));rg(a,b,b.length,d);if(c.length){var e;b=0;for(e=c.length;b=n;){var p=this.g[m]; var q=this.f[m];q=x(q).toString();c[q]&&(g!==l&&(Ef(a,b,g,l),a.clear(a.DEPTH_BUFFER_BIT)),l=p);m--;g=p}g!==l&&(Ef(a,b,g,l),a.clear(a.DEPTH_BUFFER_BIT));g=l=n}}d||(a.disable(a.DEPTH_TEST),a.clear(a.DEPTH_BUFFER_BIT),a.depthMask(f),a.depthFunc(e))}; k.Ue=function(a,b,c,d,e){var f,g;var h=this.g.length-2;var l=this.g[h+1];for(f=this.l.length-1;0<=f;--f){var m=this.v[f];Fg(this,a,m[0],m[1],m[2]);for(g=this.l[f];0<=h&&this.g[h]>=g;){m=this.g[h];var n=this.f[h];var p=x(n).toString();if(void 0===c[p]&&n.V()&&(void 0===e||Jb(e,n.V().D()))&&(a.clear(a.COLOR_BUFFER_BIT|a.DEPTH_BUFFER_BIT),Ef(a,b,m,l),l=d(n)))return l;h--;l=m}}};function Fg(a,b,c,d,e){b.uniform4fv(a.I.ea,c);b.uniform1f(a.I.ta,d);b.uniform1f(a.I.Ba,e)} k.Ta=function(a,b){a=b.i;this.c.lineCap=void 0!==a?a:"round";a=b.g;this.c.lineDash=a?a:Gf;a=b.f;this.c.lineDashOffset=a?a:0;a=b.j;this.c.lineJoin=void 0!==a?a:"round";a=b.b;a instanceof CanvasGradient||a instanceof CanvasPattern?a=Hf:a=Od(a).map(function(a,b){return 3!=b?a/255:a})||Hf;var c=b.c;c=void 0!==c?c:1;b=b.l;b=void 0!==b?b:10;this.c.strokeColor&&ld(this.c.strokeColor,a)&&this.c.lineWidth===c&&this.c.miterLimit===b||(this.c.u=!0,this.c.strokeColor=a,this.c.lineWidth=c,this.c.miterLimit=b, this.v.push([a,c,b]))};var ug=3,vg=5,tg=7,wg=11,xg=13,yg=17,zg=19,Ag=23;function Gg(a,b,c,d,e){return!xb(e,function(e){return!Hg(a,b,c,d,e[0],e[1])})}function Hg(a,b,c,d,e,f){for(var g=0,h=a[c-d],l=a[c-d+1];bf&&0<(m-h)*(f-l)-(e-h)*(n-l)&&g++:n<=f&&0>(m-h)*(f-l)-(e-h)*(n-l)&&g--;h=m;l=n}return 0!==g}function Ig(a,b,c,d,e,f){if(0===c.length||!Hg(a,b,c[0],d,e,f))return!1;var g;b=1;for(g=c.length;bd;){if(600m-l/2?-1:1);e(a,b,Math.max(d,Math.floor(b-m*p/l+n)),Math.min(f,Math.floor(b+(l-m)*p/l+n)),g)}l=a[b];m=d;p=f;h(a,d,b);for(0g(a[m],l);)m++;for(;0b?1:0}b.na=d;b.na.b=d},{}],2:[function(a,b){function d(a,b){if(!(this instanceof d))return new d(a,b);this.cg=Math.max(4,a||9);this.Kh=Math.max(2,Math.ceil(.4*this.cg));b&&this.Nk(b);this.clear()}function e(a,b){h(a,0,a.children.length,b,a)}function h(a,b,d,e,f){f||(f=w(null));f.ga=Infinity;f.ha=Infinity; f.da=-Infinity;f.ka=-Infinity;for(var g;b=a.ga&&b.ka>= a.ha}function w(a){return{children:a,height:1,nb:!0,ga:Infinity,ha:Infinity,da:-Infinity,ka:-Infinity}}function z(a,b,d,e,f){for(var g=[b,d],h;g.length;)d=g.pop(),b=g.pop(),d-b<=e||(h=b+Math.ceil((d-b)/e/2)*e,D(a,h,b,d,f),g.push(b,h,h,d))}b.na=d;var D=a("quickselect");d.prototype={all:function(){return this.Fh(this.data,[])},search:function(a){var b=this.data,d=[],e=this.Cb;if(!u(a,b))return d;for(var f=[],g,h,l,m;b;){g=0;for(h=b.children.length;gthis.cg)this.Sk(e, b),b--;else break;this.Gk(d,e,b)},Sk:function(a,b){var d=a[b],f=d.children.length,g=this.Kh;this.Hk(d,g,f);f=this.Ik(d,g,f);f=w(d.children.splice(f,d.children.length-f));f.height=d.height;f.nb=d.nb;e(d,this.Cb);e(f,this.Cb);b?a[b-1].children.push(f):this.Mh(d,f)},Mh:function(a,b){this.data=w([a,b]);this.data.height=a.height+1;this.data.nb=!1;e(this.data,this.Cb)},Ik:function(a,b,d){var e,f;var g=f=Infinity;for(e=b;e<=d-b;e++){var l=h(a,0,e,this.Cb);var m=h(a,e,d,this.Cb);var n=Math.max(0,Math.min(l.da, m.da)-Math.max(l.ga,m.ga))*Math.max(0,Math.min(l.ka,m.ka)-Math.max(l.ha,m.ha));l=p(l)+p(m);if(n=b;n--)p=a.children[n],l(g,a.nb?e(p):p),m+=q(g);return m}, Gk:function(a,b,d){for(;0<=d;d--)l(b[d],a)},Kk:function(a){for(var b=a.length-1,d;0<=b;b--)0===a[b].children.length?0f?b[q]:f;p=t}}else for(q=b.length-c,p=l=mh(a,b[q],b[q+1],h++),f=b[q],q-=c,g=0;q>=g;q-=c)t=mh(a,b[q],b[q+1],h++),n.push(nh(p,t,d)),m.push([Math.min(p.x,t.x),Math.min(p.y,t.y),Math.max(p.x,t.x),Math.max(p.y,t.y)]),f= b[q]>f?b[q]:f,p=t;n.push(nh(t,l,d));m.push([Math.min(p.x,t.x),Math.min(p.y,t.y),Math.max(p.x,t.x),Math.max(p.y,t.y)]);e.load(m,n);return f}function kh(a,b,c){var d=Rg(a),e=d,f=Sg(a),g=!1;do{var h=c?If(f.Y.x,f.Y.y,e.Y.x,e.Y.y,e.ca.x,e.ca.y):If(e.ca.x,e.ca.y,e.Y.x,e.Y.y,f.Y.x,f.Y.y);void 0===h?(oh(e,f,a,b),g=!0,f===d&&(d=Tg(a)),f=e,Ug(a)):e.Y.Ab!==h&&(e.Y.Ab=h,g=!0);e=f;f=Sg(a)}while(e!==d);return g} function jh(a,b,c,d,e){kh(a,e,!0);for(var f=Rg(a);f.Y.x!==b;)f=Sg(a);b=f.Y;d={x:d,y:b.y,mb:-1};var g=Infinity,h;var l=ph({ca:b,Y:d},e,!0);var m=0;for(h=l.length;mJf&&d<1-Jf&&c>Jf&&c<1-Jf||e&&0<=d&&1>=d&&0<=c&&1>=c))return[a.x+d*(b.x-a.x),a.y+d*(b.y-a.y)]} function vh(a,b,c,d,e){if(void 0===b.Ab||void 0===d.Ab)return!1;var f=(c.x-d.x)*(b.y-d.y)>(c.y-d.y)*(b.x-d.x);e=(e.x-d.x)*(b.y-d.y)<(e.y-d.y)*(b.x-d.x);a=(a.x-b.x)*(d.y-b.y)>(a.y-b.y)*(d.x-b.x);c=(c.x-b.x)*(d.y-b.y)<(c.y-b.y)*(d.x-b.x);b=b.Ab?c||a:c&&a;return(d.Ab?e||f:e&&f)&&b}k=gh.prototype; k.Dc=function(a,b){var c=a.bd();a=a.ya();var d=this.b.length,e=this.j.b.length,f,g;var h=0;for(f=c.length;hd&&(this.g.push(d),this.f.push(b),this.l.u&&(this.c.push(d),this.l.u=!1));this.j.b.length>e&&Eg(this.j,b,e)}; k.Fc=function(a,b){var c=a.Ic();a=a.ya();if(0=n;){var p=this.g[m];var q=this.f[m];q=x(q).toString(); c[q]&&(g!==l&&(Ef(a,b,g,l),a.clear(a.DEPTH_BUFFER_BIT)),l=p);m--;g=p}g!==l&&(Ef(a,b,g,l),a.clear(a.DEPTH_BUFFER_BIT));g=l=n}}d||(a.disable(a.DEPTH_TEST),a.clear(a.DEPTH_BUFFER_BIT),a.depthMask(f),a.depthFunc(e))}; k.Ue=function(a,b,c,d,e){var f,g;var h=this.g.length-2;var l=this.g[h+1];for(f=this.c.length-1;0<=f;--f){var m=this.v[f];a.uniform4fv(this.I.ea,m);for(g=this.c[f];0<=h&&this.g[h]>=g;){m=this.g[h];var n=this.f[h];var p=x(n).toString();if(void 0===c[p]&&n.V()&&(void 0===e||Jb(e,n.V().D()))&&(a.clear(a.COLOR_BUFFER_BIT|a.DEPTH_BUFFER_BIT),Ef(a,b,m,l),l=d(n)))return l;h--;l=m}}}; k.Ta=function(a,b){a=a?a.b:[0,0,0,0];a instanceof CanvasGradient||a instanceof CanvasPattern?a=Ff:a=Od(a).map(function(a,b){return 3!=b?a/255:a})||Ff;this.l.fillColor&&ld(a,this.l.fillColor)||(this.l.fillColor=a,this.l.u=!0,this.v.push(a));b?this.j.Ta(null,b):this.j.Ta(null,new Og({color:[0,0,0,0],lineWidth:0}))};function xh(){}xh.prototype.i=function(){};function yh(a,b,c){this.f=b;this.j=a;this.c=c;this.a={}}v(yh,rf);function zh(a,b){var c=[],d;for(d in a.a){var e=a.a[d],f;for(f in e)c.push(e[f].Hb(b))}return function(){for(var a=c.length,b,d=0;da.highWaterMark}bi.prototype.Bd=function(a){for(var b,c;ci(this);){b=this.a.ud;c=b.Ka[0].toString();var d;if(d=c in a)b=b.Ka,d=cd(a[c],b[1],b[2]);if(d)break;else Ma(this.pop())}};function di(a,b,c,d){var e=Xc(c,b,a);c=Jc(b,d,c);b=b.dc();void 0!==b&&(c*=b);b=a.dc();void 0!==b&&(c/=b);a=Jc(a,c,e)/c;isFinite(a)&&0Pa&&(Pa=jd,m=ic)}if(0===Pa){g=null;break a}Pa=g[m];g[m]=g[l];g[l]=Pa;for(m=l+1;mthis.b/2){var b=[[a.source[0][0],a.source[0][1]],[a.source[1][0],a.source[1][1]],[a.source[2][0],a.source[2][1]]];b[0][0]-n>this.b/2&&(b[0][0]-=this.b);b[1][0]-n>this.b/2&&(b[1][0]-=this.b);b[2][0]-n>this.b/2&&(b[2][0]-=this.b);Math.max(b[0][0],b[1][0],b[2][0])-Math.min(b[0][0],b[1][0],b[2][0])p,u=!1;if(0a.s),u)){Math.abs(b[0]-d[0])<=Math.abs(b[1]-d[1])?(t=[(c[0]+d[0])/2,(c[1]+d[1])/2],q=a.a(t),n=[(e[0]+b[0])/2,(e[1]+b[1])/2],p=a.a(n),hi(a,b,c,t,n,f,g,q,p,m-1),hi(a,n,t,d,e,p,q,h,l,m-1)):(t=[(b[0]+c[0])/2,(b[1]+c[1])/2],q=a.a(t),n=[(d[0]+e[0])/2,(d[1]+e[1])/2],p=a.a(n),hi(a,b,t,n,e,f,q,p,l,m-1),hi(a,t,c,d,n,q,g,h,p,m-1));return}if(t){if(!a.o)return;a.l=!0}a.c.push({source:[f,h,l],target:[b,d,e]});a.c.push({source:[f,g,h],target:[b,c,d]})}} function ii(a){var b=ib();a.c.forEach(function(a){a=a.source;jb(b,a[0]);jb(b,a[1]);jb(b,a[2])});return b};function ji(a,b,c,d,e,f,g,h,l,m,n){Yh.call(this,e,0);this.B=void 0!==n?n:!1;this.C=g;this.v=h;this.I=null;this.c=b;this.l=d;this.o=f?f:e;this.g=[];this.Sd=null;this.f=0;f=d.Ya(this.o);h=this.l.D();e=this.c.D();f=h?Ib(f,h):f;if(0===Cb(f))this.state=4;else if((h=a.D())&&(e?e=Ib(e,h):e=h),d=di(a,c,Gb(f),d.Ra(this.o[0])),!isFinite(d)||0>=d)this.state=4;else if(this.s=new gi(a,c,f,e,d*(void 0!==m?m:.5)),0===this.s.c.length)this.state=4;else if(this.f=b.dd(d),c=ii(this.s),e&&(a.a?(c[1]=Mb(c[1],e[1],e[3]), c[3]=Mb(c[3],e[1],e[3])):c=Ib(c,e)),Cb(c)){a=af(b,c,this.f);for(b=a.ga;b<=a.da;b++)for(c=a.ha;c<=a.ka;c++)(m=l(this.f,b,c,g))&&this.g.push(m);0===this.g.length&&(this.state=4)}else this.state=4}v(ji,Yh);ji.prototype.xa=function(){1==this.state&&(this.Sd.forEach(Ca),this.Sd=null);Yh.prototype.xa.call(this)};ji.prototype.W=function(){return this.I}; ji.prototype.Ae=function(){var a=[];this.g.forEach(function(b){b&&2==b.getState()&&a.push({extent:this.c.Ya(b.Ka),image:b.W()})},this);this.g.length=0;if(0===a.length)this.state=3;else{var b=this.o[0],c=this.l.gb(b),d="number"===typeof c?c:c[0];c="number"===typeof c?c:c[1];b=this.l.Ra(b);var e=this.c.Ra(this.f),f=this.l.Ya(this.o);this.I=fi(d,c,this.C,e,this.c.D(),b,f,this.s,a,this.v,this.B);this.state=2}this.u()}; ji.prototype.load=function(){if(0==this.state){this.state=1;this.u();var a=0;this.Sd=[];this.g.forEach(function(b){var c=b.getState();if(0==c||1==c){a++;var d=y(b,"change",function(){var c=b.getState();if(2==c||3==c||4==c)Ca(d),a--,0===a&&(this.Sd.forEach(Ca),this.Sd=null,this.Ae())},this);this.Sd.push(d)}},this);this.g.forEach(function(a){0==a.getState()&&a.load()});0===a&&setTimeout(this.Ae.bind(this),0)}};function ki(a,b,c,d){return void 0!==d?(d[0]=a,d[1]=b,d[2]=c,d):[a,b,c]}function li(a){var b=a[0],c=Array(b),d=1<>=1}return c.join("")};function mi(a,b){var c=/\{z\}/g,d=/\{x\}/g,e=/\{y\}/g,f=/\{-y\}/g;return function(g){if(g)return a.replace(c,g[0].toString()).replace(d,g[1].toString()).replace(e,function(){return(-g[2]-1).toString()}).replace(f,function(){var a=b.a?b.a[g[0]]:null;gb(a,55);return(a.ka-a.ha+1+g[2]).toString()})}}function ni(a,b){for(var c=a.length,d=Array(c),e=0;e=a.minZoom;){if(c.call(null,b,af(a,e,b,d)))return!0;--b}return!1}k.D=function(){return this.s};k.wj=function(){return this.maxZoom};k.xj=function(){return this.minZoom};k.kd=function(a){return this.g?this.g:this.c[a]};k.Ra=function(a){return this.b[a]};k.yj=function(){return this.b};function pf(a,b,c,d){return b[0]e||e>c.maxZoom)c=!1;else{var f=c.D();c=(c=f?af(c,f,e):c.a?c.a[e]:null)?cd(c,d,a):!0}return c?b:null} k.Aa=function(){this.a.clear();this.u()};k.zh=ua;function Gi(a,b){Na.call(this,a);this.tile=b}v(Gi,Na);function Hi(a){Di.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,extent:a.extent,logo:a.logo,opaque:a.opaque,projection:a.projection,state:a.state,tileGrid:a.tileGrid,tilePixelRatio:a.tilePixelRatio,wrapX:a.wrapX});this.tileLoadFunction=a.tileLoadFunction;this.tileUrlFunction=this.Yc?this.Yc.bind(this):pi;this.urls=null;a.urls?this.jb(a.urls):a.url&&this.pb(a.url);a.tileUrlFunction&&this.ib(a.tileUrlFunction)}v(Hi,Di);k=Hi.prototype;k.ub=function(){return this.tileLoadFunction}; k.wb=function(){return this.tileUrlFunction};k.xb=function(){return this.urls};k.oj=function(a){a=a.target;switch(a.getState()){case 1:this.b(new Gi("tileloadstart",a));break;case 2:this.b(new Gi("tileloadend",a));break;case 3:this.b(new Gi("tileloaderror",a))}};k.Bb=function(a){this.a.clear();this.tileLoadFunction=a;this.u()};k.ib=function(a,b){this.tileUrlFunction=a;"undefined"!==typeof b?Ei(this,b):this.u()}; k.pb=function(a){var b=this.urls=qi(a);this.ib(this.Yc?this.Yc.bind(this):ni(b,this.tileGrid),a)};k.jb=function(a){this.urls=a;var b=a.join("\n");this.ib(this.Yc?this.Yc.bind(this):ni(a,this.tileGrid),b)};k.zh=function(a,b,c){a=this.cc(a,b,c);this.a.b.hasOwnProperty(a)&&this.a.get(a)};function A(a){Hi.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,extent:a.extent,logo:a.logo,opaque:a.opaque,projection:a.projection,state:a.state,tileGrid:a.tileGrid,tileLoadFunction:a.tileLoadFunction?a.tileLoadFunction:Ii,tilePixelRatio:a.tilePixelRatio,tileUrlFunction:a.tileUrlFunction,url:a.url,urls:a.urls,wrapX:a.wrapX});this.crossOrigin=void 0!==a.crossOrigin?a.crossOrigin:null;this.tileClass=void 0!==a.tileClass?a.tileClass:Zh;this.f={};this.s={};this.wa=a.reprojectionErrorThreshold; this.G=!1}v(A,Hi);k=A.prototype;k.nj=function(){if(ci(this.a))return!0;for(var a in this.f)if(ci(this.f[a]))return!0;return!1};k.Bd=function(a,b){a=this.ne(a);this.a.Bd(this.a==a?b:{});for(var c in this.f){var d=this.f[c];d.Bd(d==a?b:{})}};k.sg=function(a){return this.c&&a&&!Uc(this.c,a)?0:this.tg()};k.tg=function(){return 0};k.wg=function(a){return this.c&&a&&!Uc(this.c,a)?!1:Hi.prototype.wg.call(this,a)}; k.Ob=function(a){var b=this.c;return!this.tileGrid||b&&!Uc(b,a)?(b=x(a).toString(),b in this.s||(this.s[b]=vi(a)),this.s[b]):this.tileGrid};k.ne=function(a){var b=this.c;if(!b||Uc(b,a))return this.a;a=x(a).toString();a in this.f||(this.f[a]=new bi(this.a.highWaterMark));return this.f[a]};function Ji(a,b,c,d,e,f,g){b=[b,c,d];e=(c=Fi(a,b,f))?a.tileUrlFunction(c,e,f):void 0;e=new a.tileClass(b,void 0!==e?0:4,void 0!==e?e:"",a.crossOrigin,a.tileLoadFunction);e.key=g;y(e,"change",a.oj,a);return e} k.cd=function(a,b,c,d,e){if(this.c&&e&&!Uc(this.c,e)){var f=this.ne(e);c=[a,b,c];var g;a=this.cc.apply(this,c);f.b.hasOwnProperty(a)&&(g=f.get(a));b=this.Kc;if(g&&g.key==b)return g;var h=this.c,l=this.Ob(h),m=this.Ob(e),n=Fi(this,c,e);d=new ji(h,l,e,m,c,n,this.vb(d),this.tg(),function(a,b,c,d){return Ki(this,a,b,c,d,h)}.bind(this),this.wa,this.G);d.key=b;g?(d.a=g,f.replace(a,d)):f.set(a,d);return d}return Ki(this,a,b,c,d,e)}; function Ki(a,b,c,d,e,f){var g=a.cc(b,c,d),h=a.Kc;if(a.a.b.hasOwnProperty(g)){var l=a.a.get(g);if(l.key!=h){var m=l;l=Ji(a,b,c,d,e,f,h);0==m.getState()?l.a=m.a:l.a=m;if(l.a){b=l.a;c=l;do{if(2==b.getState()){b.a=null;break}else 1==b.getState()?c=b:0==b.getState()?c.a=b.a:c=b;b=c.a}while(b)}a.a.replace(g,l)}}else l=Ji(a,b,c,d,e,f,h),a.a.set(g,l);return l}k.Ub=function(a){if(this.G!=a){this.G=a;for(var b in this.f)this.f[b].clear();this.u()}}; k.Vb=function(a,b){if(a=Lc(a))a=x(a).toString(),a in this.s||(this.s[a]=b)};function Ii(a,b){a.W().src=b};function Li(a,b){this.b=a;this.a=null;this.o=b||null;this.f=!1;if(a=this.b.get("olcs.proxy"))"function"===typeof a?this.c={getURL:a}:"string"===typeof a&&(this.c=new Cesium.DefaultProxy(a));this.l=new Cesium.Event;this.g=document.createElement("canvas");this.g.width=1;this.g.height=1;this.b.H("change",function(){Mi(this)},this);Mi(this)} Object.defineProperties(Li.prototype,{ready:{get:function(){return this.f}},rectangle:{get:function(){return this.s}},tileWidth:{get:function(){var a=this.b.tileGrid;return a?a.gb(0):256}},tileHeight:{get:function(){return this.tileWidth}},maximumLevel:{get:function(){var a=this.b.tileGrid;return a?a.maxZoom:18}},minimumLevel:{get:function(){return 0}},tilingScheme:{get:function(){return this.i}},tileDiscardPolicy:{get:function(){}},errorEvent:{get:function(){return this.l}},credit:{get:function(){return this.j}}, proxy:{get:function(){return this.c}},hasAlphaChannel:{get:function(){return!0}},pickFeatures:{get:function(){}}});function Mi(a){if(!a.f&&"ready"==a.b.getState()){var b=a.b.c;a.a=b?b:a.o;if(a.a==Lc("EPSG:4326"))a.i=new Cesium.GeographicTilingScheme;else if(a.a==Lc("EPSG:3857"))a.i=new Cesium.WebMercatorTilingScheme;else return;a.s=a.i.rectangle;a.j=Ni(a.b)||void 0;a.f=!0}} function Ni(a){var b="",c=a.j;c&&c.forEach(function(a){b+=a.b.replace(/<\/?[^>]+(>|$)/g,"")+" "});if(0==b.length&&(a=a.C))if("string"==typeof a)var d=a;else{d=a.src;var e=a.href}return d||0e?window.requestAnimationFrame(f):n&&n()}var g=Cesium.Math.clamp,h=Cesium.defaultValue;e=e||{};var l=h(e.duration,500),m=h(e.easing,Pi),n=e.callback,p=0,q=new Cesium.Matrix4,t=Date.now();window.requestAnimationFrame(f)}function Qi(a,b){var c=a.camera.getPickRay(b);return a.globe.pick(c,a)||a.camera.pickEllipsoid(b)} function Ri(a){var b=a.canvas;b=new Cesium.Cartesian2(b.clientWidth/2,b.clientHeight/2);return Qi(a,b)}function Si(a,b,c){var d=new Cesium.Cartesian3,e=new Cesium.Cartesian3,f=new Cesium.Cartesian3;Cesium.Cartesian3.normalize(a,d);Cesium.Cartesian3.normalize(b,e);Cesium.Cartesian3.cross(d,e,f);a=Cesium.Cartesian3.dot(d,e);b=Cesium.Cartesian3.magnitude(f);c=Cesium.Cartesian3.dot(c,f);f=Math.atan2(b,a);return 0<=c?f:-f} function Ti(a,b){var c=a.camera,d=c.frustum.fovy/2;a=a.camera;var e=a.direction,f=Cesium.Quaternion.fromAxisAngle(a.right,a.frustum.fovy/2);f=Cesium.Matrix3.fromQuaternion(f);var g=new Cesium.Cartesian3;Cesium.Matrix3.multiplyByVector(f,e,g);a=new Cesium.Ray(a.position,g);a=Cesium.Cartesian3.clone(a.direction);Cesium.Cartesian3.negate(a,a);e=new Cesium.Cartesian3;Cesium.Ellipsoid.WGS84.geocentricSurfaceNormal(b,e);b=new Cesium.Cartesian3;Cesium.Cartesian3.negate(c.right,b);return Si(e,a,b)+d} function Ui(a,b,c){c&&(c=c.getHeight(b),b.height=c||0);c=Cesium.Ellipsoid.WGS84;b=c.cartographicToCartesian(b);var d=a.position,e=new Cesium.Cartesian3;c.geocentricSurfaceNormal(d,e);a.lookAt(d,b,e)}function Vi(a,b){return a&&b?(a=Yc(a,b,"EPSG:4326"),Cesium.Rectangle.fromDegrees(a[0],a[1],a[2],a[3])):null} function Wi(a,b){if(!(a instanceof Xh))return null;var c=a.ba();if(c instanceof A){var d=c.c;if(!d)d=b;else if(d!==b)return null;var e=d===Lc("EPSG:3857");d=d===Lc("EPSG:4326");if(e||d)c=new Li(c,b);else return null}else return null;e={};(a=a.D())&&b&&(e.rectangle=Vi(a,b));return new Cesium.ImageryLayer(c,e)}function Xi(a,b){var c=a.La();void 0!==c&&(b.alpha=c);a=a.lb();void 0!==a&&(b.show=a)} function Yi(a){return 2c?e:-e);c=Math.acos(Cesium.Cartesian3.dot(b,a));this.j=isNaN(c)?0:c}else this.b.gd(this.a.heading),this.j=-this.a.pitch+Math.PI/2;this.o=!1}}; function fj(a,b){var c=a.s,d=a.a.viewMatrix;c&&Cesium.Matrix4.equalsEpsilon(c,d,1E-5)||(a.s=d.clone(),!0!==b&&a.td())};function gj(a){this.ta=a.opacity;this.j=a.rotateWithView;this.i=a.rotation;this.G=a.scale;this.l=a.snapToPixel}k=gj.prototype;k.La=function(){return this.ta};k.zf=function(){return this.j};k.Af=function(){return this.i};k.Ma=function(){return this.G};k.Ze=function(){return this.l};k.Ld=function(a){this.ta=a};k.Bf=function(a){this.i=a};k.Md=function(a){this.G=a};function hj(a){this.I=this.o=this.c=null;this.$a=void 0!==a.fill?a.fill:null;this.B=[0,0];this.b=a.points;this.a=void 0!==a.radius?a.radius:a.radius1;this.g=void 0!==a.radius2?a.radius2:this.a;this.f=void 0!==a.angle?a.angle:0;this.eb=void 0!==a.stroke?a.stroke:null;this.C=this.ea=this.v=null;this.s=a.atlasManager;ij(this,this.s);gj.call(this,{opacity:1,rotateWithView:void 0!==a.rotateWithView?a.rotateWithView:!1,rotation:void 0!==a.rotation?a.rotation:0,scale:1,snapToPixel:void 0!==a.snapToPixel? a.snapToPixel:!0})}v(hj,gj);k=hj.prototype;k.clone=function(){var a=new hj({fill:this.qa()?this.qa().clone():void 0,points:this.g!==this.a?this.b/2:this.b,radius:this.a,radius2:this.g,angle:this.f,snapToPixel:this.l,stroke:this.pa()?this.pa().clone():void 0,rotation:this.i,rotateWithView:this.j,atlasManager:this.s});a.Ld(this.La());a.Md(this.Ma());return a};k.Gc=function(){return this.v};k.sj=function(){return this.f};k.qa=function(){return this.$a};k.Rg=function(){return this.I};k.W=function(){return this.o}; k.Ye=function(){return this.C};k.yf=function(){return 2};k.jd=function(){return this.B};k.tj=function(){return this.b};k.uj=function(){return this.a};k.ii=function(){return this.g};k.gc=function(){return this.ea};k.pa=function(){return this.eb};k.ri=function(){};k.load=function(){};k.hk=function(){}; function ij(a,b){var c="",d="",e=0,f=null,g=0;if(a.eb){var h=a.eb.b;null===h&&(h=Kd);h=Sd(h);g=a.eb.c;void 0===g&&(g=1);f=a.eb.g;ie||(f=null);d=a.eb.j;void 0===d&&(d="round");c=a.eb.i;void 0===c&&(c="round");e=a.eb.l;void 0===e&&(e=10)}var l=2*(a.a+g)+1;c={strokeStyle:h,strokeWidth:g,size:l,lineCap:c,lineDash:f,lineJoin:d,miterLimit:e};if(void 0===b){var m=pd(l,l);a.o=m.canvas;b=l=a.o.width;a.Wh(c,m,0,0);a.$a?a.I=a.o:(m=pd(c.size,c.size),a.I=m.canvas,a.Vh(c,m,0,0))}else l=Math.round(l),(d=!a.$a)&& (m=a.Vh.bind(a,c)),a.eb?(e=a.eb,void 0===e.a&&(e.a="s",e.a=e.b?"string"===typeof e.b?e.a+e.b:e.a+x(e.b).toString():e.a+"-",e.a+=","+(void 0!==e.i?e.i.toString():"-")+","+(e.g?e.g.toString():"-")+","+(void 0!==e.f?e.f:"-")+","+(void 0!==e.j?e.j:"-")+","+(void 0!==e.l?e.l.toString():"-")+","+(void 0!==e.c?e.c.toString():"-")),e=e.a):e="-",a.$a?(f=a.$a,void 0===f.a&&(f.a=f.b instanceof CanvasPattern||f.b instanceof CanvasGradient?x(f.b).toString():"f"+(f.b?Qd(f.b):"-")),f=f.a):f="-",a.c&&e==a.c[1]&& f==a.c[2]&&a.a==a.c[3]&&a.g==a.c[4]&&a.f==a.c[5]&&a.b==a.c[6]||(a.c=["r"+e+f+(void 0!==a.a?a.a.toString():"-")+(void 0!==a.g?a.g.toString():"-")+(void 0!==a.f?a.f.toString():"-")+(void 0!==a.b?a.b.toString():"-"),e,f,a.a,a.g,a.f,a.b]),m=b.add(a.c[0],l,l,a.Wh.bind(a,c),m),a.o=m.image,a.B=[m.offsetX,m.offsetY],b=m.image.width,a.I=d?m.Pm:a.o;a.v=[l/2,l/2];a.ea=[l,l];a.C=[b,b]} k.Wh=function(a,b,c,d){b.setTransform(1,0,0,1,0,0);b.translate(c,d);b.beginPath();if(Infinity===this.b)b.arc(a.size/2,a.size/2,this.a,0,2*Math.PI,!0);else for(this.g!==this.a&&(this.b*=2),c=0;c<=this.b;c++){d=2*c*Math.PI/this.b-Math.PI/2+this.f;var e=0===c%2?this.a:this.g;b.lineTo(a.size/2+e*Math.cos(d),a.size/2+e*Math.sin(d))}this.$a&&(c=this.$a.b,null===c&&(c=Id),b.fillStyle=Sd(c),b.fill());this.eb&&(b.strokeStyle=a.strokeStyle,b.lineWidth=a.strokeWidth,a.lineDash&&b.setLineDash(a.lineDash),b.lineCap= a.lineCap,b.lineJoin=a.lineJoin,b.miterLimit=a.miterLimit,b.stroke());b.closePath()}; k.Vh=function(a,b,c,d){b.setTransform(1,0,0,1,0,0);b.translate(c,d);b.beginPath();if(Infinity===this.b)b.arc(a.size/2,a.size/2,this.a,0,2*Math.PI,!0);else for(this.g!==this.a&&(this.b*=2),c=0;c<=this.b;c++){var e=2*c*Math.PI/this.b-Math.PI/2+this.f;d=0===c%2?this.a:this.g;b.lineTo(a.size/2+d*Math.cos(e),a.size/2+d*Math.sin(e))}b.fillStyle=Id;b.fill();this.eb&&(b.strokeStyle=a.strokeStyle,b.lineWidth=a.strokeWidth,a.lineDash&&b.setLineDash(a.lineDash),b.stroke());b.closePath()};function jj(a){a=a||{};hj.call(this,{points:Infinity,fill:a.fill,radius:a.radius,snapToPixel:a.snapToPixel,stroke:a.stroke,atlasManager:a.atlasManager})}v(jj,hj);jj.prototype.clone=function(){var a=new jj({fill:this.qa()?this.qa().clone():void 0,stroke:this.pa()?this.pa().clone():void 0,radius:this.a,snapToPixel:this.l,atlasManager:this.s});a.Ld(this.La());a.Md(this.Ma());return a};jj.prototype.qd=function(a){this.a=a;ij(this,this.s)};function kj(a){a=a||{};this.b=void 0!==a.color?a.color:null;this.a=void 0}kj.prototype.clone=function(){var a=this.b;return new kj({color:a&&a.slice?a.slice():a||void 0})};kj.prototype.g=function(){return this.b};kj.prototype.c=function(a){this.b=a;this.a=void 0};function lj(a){a=a||{};this.Zc=null;this.Va=mj;void 0!==a.geometry&&this.Wa(a.geometry);this.$a=void 0!==a.fill?a.fill:null;this.O=void 0!==a.image?a.image:null;this.eb=void 0!==a.stroke?a.stroke:null;this.Ja=void 0!==a.text?a.text:null;this.lk=a.zIndex}k=lj.prototype; k.clone=function(){var a=this.V();a&&a.clone&&(a=a.clone());return new lj({geometry:a,fill:this.qa()?this.qa().clone():void 0,image:this.W()?this.W().clone():void 0,stroke:this.pa()?this.pa().clone():void 0,text:this.ra()?this.ra().clone():void 0,zIndex:this.Da()})};k.V=function(){return this.Zc};k.El=function(){return this.Va};k.qa=function(){return this.$a};k.Kf=function(a){this.$a=a};k.W=function(){return this.O};k.sh=function(a){this.O=a};k.pa=function(){return this.eb}; k.Lf=function(a){this.eb=a};k.ra=function(){return this.Ja};k.Mf=function(a){this.Ja=a};k.Da=function(){return this.lk};k.Wa=function(a){"function"===typeof a?this.Va=a:"string"===typeof a?this.Va=function(b){return b.get(a)}:a?void 0!==a&&(this.Va=function(){return a}):this.Va=mj;this.Zc=a};k.jc=function(a){this.lk=a};function nj(a){if("function"!==typeof a){if(Array.isArray(a))var b=a;else gb(a instanceof lj,41),b=[a];a=function(){return b}}return a}var oj=null; function pj(){if(!oj){var a=new kj({color:"rgba(255,255,255,0.4)"}),b=new Og({color:"#3399CC",width:1.25});oj=[new lj({image:new jj({fill:a,stroke:b,radius:5}),fill:a,stroke:b})]}return oj} function qj(){var a={},b=[255,255,255,1],c=[0,153,255,1];a.Polygon=[new lj({fill:new kj({color:[255,255,255,.5]})})];a.MultiPolygon=a.Polygon;a.LineString=[new lj({stroke:new Og({color:b,width:5})}),new lj({stroke:new Og({color:c,width:3})})];a.MultiLineString=a.LineString;a.Circle=a.Polygon.concat(a.LineString);a.Point=[new lj({image:new jj({radius:6,fill:new kj({color:c}),stroke:new Og({color:b,width:1.5})}),zIndex:Infinity})];a.MultiPoint=a.Point;a.GeometryCollection=a.Polygon.concat(a.LineString, a.Point);return a}function mj(a){return a.V()};function E(a){Wa.call(this);this.a=void 0;this.c="geometry";this.f=null;this.j=void 0;this.i=null;y(this,Ya(this.c),this.cf,this);void 0!==a&&(a instanceof Td||!a?this.Wa(a):this.J(a))}v(E,Wa);k=E.prototype;k.clone=function(){var a=new E(this.L());a.pd(this.c);var b=this.V();b&&a.Wa(b.clone());(b=this.f)&&a.Ig(b);return a};k.V=function(){return this.get(this.c)};k.pn=function(){return this.a};k.Fl=function(){return this.c};k.qn=function(){return this.f};k.Nc=function(){return this.j};k.pm=function(){this.u()}; k.cf=function(){this.i&&(Ca(this.i),this.i=null);var a=this.V();a&&(this.i=y(a,"change",this.pm,this));this.u()};k.Wa=function(a){this.set(this.c,a)};k.Ig=function(a){this.j=(this.f=a)?rj(a):void 0;this.u()};k.xc=function(a){this.a=a;this.u()};k.pd=function(a){Ja(this,Ya(this.c),this.cf,this);this.c=a;y(this,Ya(this.c),this.cf,this);this.cf()}; function rj(a){var b;if("function"===typeof a)2==a.length?b=function(b){return a(this,b)}:b=a;else{if(Array.isArray(a))var c=a;else gb(a instanceof lj,41),c=[a];b=function(){return c}}return b};var sj=void 0,tj=void 0;function uj(){if(void 0===sj){var a=document.createElement("canvas");a.setAttribute("style","image-rendering: -moz-crisp-edges;image-rendering: pixelated;");a=a.style.imageRendering;(sj=!!a)&&(tj=a)}return sj};var vj=document.implementation.createDocument("","",null);function wj(a,b){return vj.createElementNS(a,b)}function xj(a,b){return yj(a,b,[]).join("")}function yj(a,b,c){if(a.nodeType==Node.CDATA_SECTION_NODE||a.nodeType==Node.TEXT_NODE)b?c.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):c.push(a.nodeValue);else for(a=a.firstChild;a;a=a.nextSibling)yj(a,b,c);return c}function zj(a){return a instanceof Document}function Aj(a){return a instanceof Node} function Bj(a){return(new DOMParser).parseFromString(a,"application/xml")}function Cj(a,b){return function(c,d){c=a.call(b,c,d);void 0!==c&&id(d[d.length-1],c)}}function Dj(a,b){return function(c,d){c=a.call(void 0!==b?b:this,c,d);void 0!==c&&d[d.length-1].push(c)}}function Ej(a,b){return function(c,d){c=a.call(void 0!==b?b:this,c,d);void 0!==c&&(d[d.length-1]=c)}} function Fj(a,b){return function(c,d){var e=a.call(this,c,d);if(void 0!==e){d=d[d.length-1];c=void 0!==b?b:c.localName;var f;c in d?f=d[c]:f=d[c]=[];f.push(e)}}}function F(a,b){return function(c,d){var e=a.call(this,c,d);void 0!==e&&(d[d.length-1][void 0!==b?b:c.localName]=e)}}function G(a,b){return function(c,d,e){a.call(void 0!==b?b:this,c,d,e);e[e.length-1].node.appendChild(c)}} function Gj(a){var b,c;return function(d,e,f){if(void 0===b){b={};var g={};g[d.localName]=a;b[d.namespaceURI]=g;c=Hj(d.localName)}Ij(b,c,e,f)}}function Hj(a,b){return function(c,d,e){c=d[d.length-1].node;d=a;void 0===d&&(d=e);e=b;void 0===b&&(e=c.namespaceURI);return wj(e,d)}}var Jj=Hj();function Kj(a,b){for(var c=b.length,d=Array(c),e=0;eh.status){var a=b.U();if("json"==a||"text"==a)var e=h.responseText;else"xml"==a?(e=h.responseXML)||(e=Bj(h.responseText)):"arraybuffer"==a&&(e=h.response);e?c.call(this,b.Oa(e,{featureProjection:g}),b.hb(e)):d.call(this)}else d.call(this)}.bind(this);h.onerror=function(){d.call(this)}.bind(this); h.send()}}function Oj(a,b){return Nj(a,b,function(a){this.yd(a)},ua)};function Pj(){return[[-Infinity,-Infinity,Infinity,Infinity]]};function J(a){a=a||{};Ai.call(this,{attributions:a.attributions,logo:a.logo,projection:void 0,state:"ready",wrapX:void 0!==a.wrapX?a.wrapX:!0});this.$=ua;this.X=a.format;this.Ua=void 0==a.overlaps?!0:a.overlaps;this.la=a.url;void 0!==a.loader?this.$=a.loader:void 0!==this.la&&(gb(this.X,7),this.$=Oj(this.la,this.X));this.rb=void 0!==a.strategy?a.strategy:Pj;var b=void 0!==a.useSpatialIndex?a.useSpatialIndex:!0;this.a=b?new ah:null;this.wa=new ah;this.f={};this.l={};this.o={};this.s={};this.i=null; if(a.features instanceof bb){var c=a.features;var d=c.a}else Array.isArray(a.features)&&(d=a.features);b||void 0!==c||(c=new bb(d));void 0!==d&&Qj(this,d);void 0!==c&&Rj(this,c)}v(J,Ai);k=J.prototype;k.Eb=function(a,b){var c=x(a).toString();if(Sj(this,c,a)){Tj(this,c,a);var d=a.V();d?(c=d.D(),this.a&&this.a.Ha(c,a)):this.f[c]=a;this.b(new Uj("addfeature",a))}b||this.u()};function Tj(a,b,c){a.s[b]=[y(c,"change",a.rj,a),y(c,"propertychange",a.rj,a)]} function Sj(a,b,c){var d=!0,e=c.a;void 0!==e?e.toString()in a.l?d=!1:a.l[e.toString()]=c:(gb(!(b in a.o),30),a.o[b]=c);return d}k.yd=function(a){Qj(this,a);this.u()};function Qj(a,b){var c,d=[],e=[],f=[];var g=0;for(c=b.length;gDa&&(a.$a(b,e),Ua=0);ya>Da&&(b.stroke(),ya=0);Ua||ya||(b.beginPath(),z=D=NaN);++n;break;case 2:q=C[1];t=m[q];C=m[q+1];B=m[q+ 2]-t;q=m[q+3]-C;q=Math.sqrt(B*B+q*q);b.moveTo(t+q,C);b.arc(t,C,q,0,2*Math.PI,!0);++n;break;case 3:b.closePath();++n;break;case 4:q=C[1];t=C[2];var pa=C[3];var $a=C[4]*c;var ra=C[5]*c;var dc=C[6],Pa=C[7],ic=C[8],jd=C[9];var qc=C[10];B=C[11];S=C[12];var Lf=C[13],Cg=C[14];for(qc&&(B+=e);q pa.width?pa.width-ic:Cg;var Ep=dc+jd>pa.height?pa.height-jd:dc;b.drawImage(pa,ic,jd,wh,Ep,C,qc,wh*c,Ep*c);1!=Pa&&(b.globalAlpha=kf);1==S&&0===B||b.setTransform.apply(b,w)}++n;break;case 5:q=C[1];t=C[2];ra=C[3];dc=C[4]*c;Pa=C[5]*c;B=C[6];S=C[7]*c;pa=C[8];$a=C[9];for((qc=C[10])&&(B+=e);qthis.c&&(this.c=this.g.lineWidth,this.f=null)};function hk(a,b,c,d,e,f,g){var h=(c-b)/d;if(3>h){for(;bt&&(m=n,t=B)}t>e&&(l[(m-b)/d]=1,q+dDa&&paDa)&&(0>C&&$aC)||(w[z++]=S,w[z++]=g,D=S,B=g);S=Ua;g=ya}}w[z++]=S;w[z++]=g}g=z}h.push(g);b=n}return g};function jk(a,b,c,d){Xj.call(this,a,b,c,d);this.f=null;this.g={Th:void 0,ge:void 0,ae:void 0,be:null,ce:void 0,de:void 0,ee:void 0,fe:void 0,fillStyle:void 0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}v(jk,Xj); function kk(a,b,c,d,e){var f=a.g,g=void 0!==f.fillStyle;f=void 0!=f.strokeStyle;var h=d.length,l=[1];a.a.push(l);a.b.push(l);for(l=0;lthis.c&&(this.c=c.lineWidth,this.f=null)):(c.strokeStyle=void 0,c.lineCap=void 0,c.lineDash=null,c.lineDashOffset=void 0,c.lineJoin=void 0,c.lineWidth=void 0,c.miterLimit= void 0)};function lk(a,b){var c=a.g,d=c.fillStyle,e=c.strokeStyle,f=c.lineCap,g=c.lineDash,h=c.lineDashOffset,l=c.lineJoin,m=c.lineWidth,n=c.miterLimit;if(void 0!==d&&("string"!==typeof d||c.Th!=d)){var p=[9,d];"string"!==typeof d&&(b=b.D(),p.push([b[0],b[3]]));a.a.push(p);c.Th=c.fillStyle}void 0===e||c.ge==e&&c.ae==f&&ld(c.be,g)&&c.ce==h&&c.de==l&&c.ee==m&&c.fe==n||(a.a.push([10,e,m,f,l,n,g,h,!0,1]),c.ge=e,c.ae=f,c.be=g,c.ce=h,c.de=l,c.ee=m,c.fe=n)};function mk(a,b,c,d){Xj.call(this,a,b,c,d);this.ea=this.B=this.C=null;this.Ja="";this.o=this.l=0;this.s=void 0;this.v=this.I=0;this.j=this.f=this.g=null}v(mk,Xj); mk.prototype.Qc=function(a,b,c,d,e){if(""!==this.Ja&&this.j&&(this.g||this.f)){if(this.g){var f=this.g,g=this.C;if(!g||g.fillStyle!=f.fillStyle){var h=[9,f.fillStyle];this.a.push(h);this.b.push(h);g?g.fillStyle=f.fillStyle:this.C={fillStyle:f.fillStyle}}}this.f&&(f=this.f,g=this.B,g&&g.lineCap==f.lineCap&&g.lineDash==f.lineDash&&g.lineDashOffset==f.lineDashOffset&&g.lineJoin==f.lineJoin&&g.lineWidth==f.lineWidth&&g.miterLimit==f.miterLimit&&g.strokeStyle==f.strokeStyle||(h=[10,f.strokeStyle,f.lineWidth, f.lineCap,f.lineJoin,f.miterLimit,f.lineDash,f.lineDashOffset,!1,1],this.a.push(h),this.b.push(h),g?(g.lineCap=f.lineCap,g.lineDash=f.lineDash,g.lineDashOffset=f.lineDashOffset,g.lineJoin=f.lineJoin,g.lineWidth=f.lineWidth,g.miterLimit=f.miterLimit,g.strokeStyle=f.strokeStyle):this.B={lineCap:f.lineCap,lineDash:f.lineDash,lineDashOffset:f.lineDashOffset,lineJoin:f.lineJoin,lineWidth:f.lineWidth,miterLimit:f.miterLimit,strokeStyle:f.strokeStyle}));f=this.j;g=this.ea;g&&g.font==f.font&&g.textAlign== f.textAlign&&g.textBaseline==f.textBaseline||(h=[11,f.font,f.textAlign,f.textBaseline],this.a.push(h),this.b.push(h),g?(g.font=f.font,g.textAlign=f.textAlign,g.textBaseline=f.textBaseline):this.ea={font:f.font,textAlign:f.textAlign,textBaseline:f.textBaseline});Zj(this,e);f=this.coordinates.length;a=Yj(this,a,b,c,d,!1,!1);a=[5,f,a,this.Ja,this.l,this.o,this.I,this.v,!!this.g,!!this.f,this.s];this.a.push(a);this.b.push(a);ck(this,e)}}; mk.prototype.fc=function(a){if(a){var b=a.qa();b?(b=b.b,b=Sd(b?b:Id),this.g?this.g.fillStyle=b:this.g={fillStyle:b}):this.g=null;var c=a.pa();if(c){b=c.b;var d=c.i,e=c.g,f=c.f,g=c.j,h=c.c;c=c.l;d=void 0!==d?d:"round";e=e?e.slice():Jd;f=void 0!==f?f:0;g=void 0!==g?g:"round";h=void 0!==h?h:1;c=void 0!==c?c:10;b=Sd(b?b:Kd);if(this.f){var l=this.f;l.lineCap=d;l.lineDash=e;l.lineDashOffset=f;l.lineJoin=g;l.lineWidth=h;l.miterLimit=c;l.strokeStyle=b}else this.f={lineCap:d,lineDash:e,lineDashOffset:f,lineJoin:g, lineWidth:h,miterLimit:c,strokeStyle:b}}else this.f=null;var m=a.Zb;b=a.Lc;d=a.Mc;e=a.a;h=a.b;c=a.Ma();f=a.ra();g=a.Vc;l=a.sb;a=void 0!==m?m:"10px sans-serif";g=void 0!==g?g:"center";l=void 0!==l?l:"middle";this.j?(m=this.j,m.font=a,m.textAlign=g,m.textBaseline=l):this.j={font:a,textAlign:g,textBaseline:l};this.Ja=void 0!==f?f:"";this.l=void 0!==b?b:0;this.o=void 0!==d?d:0;this.s=void 0!==e?e:!1;this.I=void 0!==h?h:0;this.v=void 0!==c?c:1}else this.Ja=""};function nk(a,b,c,d,e){this.I=a;this.c=b;this.o=d;this.s=c;this.f=e;this.a={};this.j=pd(1,1);this.l=ve()}v(nk,rf);var ok={0:[[!0]]};function pk(a,b,c){var d,e=Math.floor(a.length/2);if(b>=e)for(d=e;d=d;)pk(c,a+b,a+d),pk(c,a+d,a+b),pk(c,a-d,a+b),pk(c,a-b,a+d),pk(c,a-b,a-d),pk(c,a-d,a-b),pk(c,a+d,a-b),pk(c,a+b,a-d),d++,e+=1+2*d,0<2*(e-b)+1&&(--b,e+=1-2*b);return ok[a]=c}function sk(a){for(var b in a.a){var c=a.a[b],d;for(d in c)c[d].uf()}} nk.prototype.Ga=function(a,b,c,d,e,f){d=Math.round(d);var g=2*d+1,h=Ee(this.l,d+.5,d+.5,1/b,-1/b,-c,-a[0],-a[1]),l=this.j;l.canvas.width!==g||l.canvas.height!==g?(l.canvas.width=g,l.canvas.height=g):l.clearRect(0,0,g,g);if(void 0!==this.f){var m=ib();jb(m,a);kb(m,b*(this.f+d),m)}var n=rk(d);return tk(this,l,h,c,e,function(a){for(var b=l.getImageData(0,0,g,g).data,c=0;ce&&(e=f);f=h;g=l}return e}function Pk(a,b,c,d,e){var f;var g=0;for(f=c.length;g>1),h=+fd(g[e],c),0>h?l=e+1:(m=e,n=!h);e=n?l:~l;0>e?(c=(c-g[-e-2])/(g[-e-1]-g[-e-2]),b+=(-e-2)*d,g=Tb(a[b],a[b+d],c),h=Tb(a[b+1],a[b+d+1],c)):(g=a[b+e*d],h=a[b+e*d+1])}return f? (f[0]=g,f[1]=h,f):[g,h]}function Yk(a,b,c,d,e,f){if(c==b)return null;if(e>1,e=e[0]&&f[2]<=e[2]||f[1]>=e[1]&&f[3]<=e[3]?!0:$k(a,b,c,d,function(a,b){var c=!1,d=qb(e,a),f=qb(e,b);if(1===d||1===f)c=!0;else{var g=e[0],h=e[1],t=e[2],u=e[3],w=b[0];b=b[1];a=(b-a[1])/(w-a[0]);f&2&&!(d&2)&&(c=w-(b-u)/a,c=c>=g&&c<=t);c||!(f&4)||d&4||(c=b-(w-t)*a,c=c>=h&&c<=u);c||!(f&8)||d&8||(c=w-(b-h)/a,c=c>=g&&c<=t);c||!(f&16)||d&16||(c=b-(w-g)*a,c=c>=h&&c<=u)}return c}):!1} function bl(a,b,c,d,e){var f=c[0];if(!(al(a,b,f,d,e)||Hg(a,b,f,d,e[0],e[1])||Hg(a,b,f,d,e[0],e[3])||Hg(a,b,f,d,e[2],e[1])||Hg(a,b,f,d,e[2],e[3])))return!1;if(1===c.length)return!0;b=1;for(f=c.length;bq&&(p=(p+t)/2,Ig(a,b,c,d,p,l)&&(n=p,q=w));p=t}isNaN(n)&&(n=e[f]);return g?(g.push(n,l),g):[n,l]};function M(a,b){Wd.call(this);this.c=[];this.v=-1;this.C=null;this.N=this.B=this.G=-1;this.j=null;this.ua(a,b)}v(M,Wd);k=M.prototype;k.Yk=function(a){this.A?id(this.A,a.ja()):this.A=a.ja().slice();this.c.push(this.A.length);this.u()};k.clone=function(){var a=new M(null);a.fa(this.ma,this.A.slice(),this.c.slice());return a}; k.Lb=function(a,b,c,d){if(da||this.c.length<=a)return null;var b=new cl(null);dl(b,this.ma,this.A.slice(0===a?0:this.c[a-1],this.c[a]));return b};k.Ic=function(){var a=this.ma,b=this.A,c=this.c,d=[],e=0,f;var g=0;for(f=c.length;gm?m:n}else f=new Cesium.PolygonGeometry({polygonHierarchy:d,perPositionHeight:l,height:p,vertexFormat:Cesium.PerInstanceColorAppearance.VERTEX_FORMAT,extrudedHeight:g?h+g.extrudedHeight:void 0});if(!g&&this.bc(a,b,c)===Cesium.HeightReference.CLAMP_TO_GROUND&& Cesium.GroundPolylinePrimitive.isSupported(this.scene)){if(p=pl(e),0c?e=d=void 0:c&&e&&c>e?d=Math.ceil(c/e):c&&d?e=c/d:e&&d&&(c=d*e);200e.T().length?null:this.se(a,b,e,h,c);case "Polygon":return e.T().some(function(a){return 2> a.length})?null:this.jf(a,b,e,h,c);case "MultiPoint":case "MultiLineString":case "MultiPolygon":return(e=this.Fg(a,b,e,h,c,d.billboards,f))?e:null;case "LinearRing":throw Error("LinearRing should only be part of polygon.");default:throw Error("Ol geom type not handled : "+e.U());}}; k.kf=function(a,b,c){var d=b.c;b=b.Ia();if(void 0===b||!d)throw qa("View not ready"),Error("View not ready");var e=a.ba();if(a instanceof wl)if(e instanceof Lk)e=e.vc();else return new jl(d,this.scene);e=e.Rc();d=new jl(d,this.scene);for(var f=d.g,g=0;gl[2];)++S,n=m*S,n=ff(this,a,n),p.i(w,e,n,g,f),h-=m;n=ff(this,a,0)}Ld(w,g,D/2,B/2);w!=c&&(ef(this,"render",w,a,n),c.drawImage(w.canvas,-t,-u),w.translate(-t,-u));w.globalAlpha=z}q&&c.restore();this.Cf(c,a,b,n)}; Fl.prototype.Ga=function(a,b,c,d,e){if(this.i){var f=this.a,g={};return this.i.Ga(a,b.viewState.resolution,b.viewState.rotation,c,{},function(a){var b=x(a).toString();if(!(b in g))return g[b]=!0,d.call(e,a,f)})}};Fl.prototype.C=function(){Ue(this)}; Fl.prototype.Kd=function(a){function b(a){var b=a.Nc();if(b)var d=b.call(a,m);else(b=c.a)&&(d=b(a,m));if(d){if(d){b=!1;if(Array.isArray(d))for(var e=0,f=d.length;ea[0]||a[0]>e[0]||0>a[1]||a[1]>e[1])&&(this.i|| (this.i=pd(1,1)),this.i.clearRect(0,0,1,1),this.i.drawImage(this.O.W(),a[0],a[1],1,1,0,0,1,1),e=this.i.getImageData(0,0,1,1).data,0pa.da)if(ed(C,new bd(Sb(z.ga,$a),Sb(z.da,$a),z.ha,z.ka))||z.da-z.ga+1>$a&&ed(C,pa)){D=!0;break a}}}D=!1}else D=!0}}else D=!1;D?(w in l&&delete l[w],D=u.b,D in m||(m[D]=!0,h[w]=u)):l[w]=u}}}}b=[h,l];p=b[0];b=b[1];for(var ra in this.l)ra in p?(this.f[ra]||(this.l[ra].style.display="",this.f[ra]=!0),delete p[ra]):ra in b?(this.f[ra]&&(this.l[ra].style.display="none",delete this.f[ra]),delete b[ra]):(rd(this.l[ra]),delete this.l[ra],delete this.f[ra]); for(ra in p)t=document.createElement("LI"),t.innerHTML=p[ra].b,this.G.appendChild(t),this.l[ra]=t,this.f[ra]=!0;for(ra in b)t=document.createElement("LI"),t.innerHTML=b[ra].b,t.style.display="none",this.G.appendChild(t),this.l[ra]=t;ra=!Aa(this.f)||!Aa(a.logos);this.B!=ra&&(this.element.style.display=ra?"":"none",this.B=ra);ra&&Aa(this.f)?this.element.classList.add("ol-logo-only"):this.element.classList.remove("ol-logo-only");a=a.logos;ra=this.aa;for(Pa in ra)Pa in a||(rd(ra[Pa]),delete ra[Pa]);for(var dc in a)if(b= a[dc],b instanceof HTMLElement&&(this.s.appendChild(b),ra[dc]=b),!(dc in ra)){var Pa=new Image;Pa.src=dc;""===b?p=Pa:(p=document.createElement("a"),p.href=b,p.appendChild(Pa));this.s.appendChild(p);ra[dc]=p}this.s.style.display=Aa(a)?"none":""}else this.B&&(this.element.style.display="none",this.B=!1)}k=Wl.prototype;k.Pn=function(a){a.preventDefault();Yl(this)};function Yl(a){a.element.classList.toggle("ol-collapsed");a.a?qd(a.v,a.C):qd(a.C,a.v);a.a=!a.a}k.On=function(){return this.j}; k.Rn=function(a){this.j!==a&&(this.j=a,this.element.classList.toggle("ol-uncollapsible"),!a&&this.a&&Yl(this))};k.Qn=function(a){this.j&&this.a!==a&&Yl(this)};k.Nn=function(){return this.a};function Zl(a){return Math.pow(a,3)}function $l(a){return 1-Zl(1-a)}function am(a){return 3*a*a-2*a*a*a}function Pi(a){return a};function bm(a){a=a?a:{};var b=void 0!==a.className?a.className:"ol-rotate",c=void 0!==a.label?a.label:"\u21e7";this.a=null;"string"===typeof c?(this.a=document.createElement("span"),this.a.className="ol-compass",this.a.textContent=c):(this.a=c,this.a.classList.add("ol-compass"));var d=a.tipLabel?a.tipLabel:"Reset rotation";c=document.createElement("button");c.className=b+"-reset";c.setAttribute("type","button");c.title=d;c.appendChild(this.a);y(c,"click",bm.prototype.v,this);d=document.createElement("div"); d.className=b+" ol-unselectable ol-control";d.appendChild(c);b=a.render?a.render:cm;this.j=a.resetNorth?a.resetNorth:void 0;Vl.call(this,{element:d,render:b,target:a.target});this.l=void 0!==a.duration?a.duration:250;this.f=void 0!==a.autoHide?a.autoHide:!0;this.s=void 0;this.f&&this.element.classList.add("ol-hidden")}v(bm,Vl);bm.prototype.v=function(a){a.preventDefault();void 0!==this.j?this.j():(a=this.R.Z())&&void 0!==a.Qa()&&(0=Math.abs(c-f[0])&&25>=g)return!0}return!1}function wm(a){var b=xm(a,a),c=b.preventDefault;b.preventDefault=function(){a.preventDefault();c()};b.pointerId=1;b.isPrimary=!0;b.pointerType="mouse";return b}k=um.prototype; k.Wm=function(a){if(!vm(this,a)){(1).toString()in this.a&&this.cancel(a);var b=wm(a);this.a[(1).toString()]=a;ym(this.b,"pointerdown",b,a)}};k.Xm=function(a){if(!vm(this,a)){var b=wm(a);ym(this.b,"pointermove",b,a)}};k.$m=function(a){if(!vm(this,a)){var b=this.a[(1).toString()];b&&b.button===a.button&&(b=wm(a),ym(this.b,"pointerup",b,a),delete this.a[(1).toString()])}};k.Zm=function(a){if(!vm(this,a)){var b=wm(a);zm(this.b,b,a)}};k.Ym=function(a){if(!vm(this,a)){var b=wm(a);Am(this.b,b,a)}}; k.cancel=function(a){var b=wm(a);this.b.cancel(b,a);delete this.a[(1).toString()]};function Bm(a){tm.call(this,a,{MSPointerDown:this.en,MSPointerMove:this.fn,MSPointerUp:this.jn,MSPointerOut:this.gn,MSPointerOver:this.hn,MSPointerCancel:this.dn,MSGotPointerCapture:this.bn,MSLostPointerCapture:this.cn});this.a=a.g;this.g=["","unavailable","touch","pen","mouse"]}v(Bm,tm);function Cm(a,b){var c=b;"number"===typeof b.pointerType&&(c=xm(b,b),c.pointerType=a.g[b.pointerType]);return c}k=Bm.prototype; k.en=function(a){this.a[a.pointerId.toString()]=a;var b=Cm(this,a);ym(this.b,"pointerdown",b,a)};k.fn=function(a){var b=Cm(this,a);ym(this.b,"pointermove",b,a)};k.jn=function(a){var b=Cm(this,a);ym(this.b,"pointerup",b,a);delete this.a[a.pointerId.toString()]};k.gn=function(a){var b=Cm(this,a);Am(this.b,b,a)};k.hn=function(a){var b=Cm(this,a);zm(this.b,b,a)};k.dn=function(a){var b=Cm(this,a);this.b.cancel(b,a);delete this.a[a.pointerId.toString()]}; k.cn=function(a){this.b.b(new Dm("lostpointercapture",a,a))};k.bn=function(a){this.b.b(new Dm("gotpointercapture",a,a))};function Em(a){tm.call(this,a,{pointerdown:this.cq,pointermove:this.eq,pointerup:this.hq,pointerout:this.fq,pointerover:this.gq,pointercancel:this.bq,gotpointercapture:this.jm,lostpointercapture:this.Vm})}v(Em,tm);k=Em.prototype;k.cq=function(a){Fm(this.b,a)};k.eq=function(a){Fm(this.b,a)};k.hq=function(a){Fm(this.b,a)};k.fq=function(a){Fm(this.b,a)};k.gq=function(a){Fm(this.b,a)};k.bq=function(a){Fm(this.b,a)};k.Vm=function(a){Fm(this.b,a)};k.jm=function(a){Fm(this.b,a)};function Dm(a,b,c){Na.call(this,a);this.b=b;a=c?c:{};this.buttons=Gm(a);this.pressure=Hm(a,this.buttons);this.bubbles="bubbles"in a?a.bubbles:!1;this.cancelable="cancelable"in a?a.cancelable:!1;this.view="view"in a?a.view:null;this.detail="detail"in a?a.detail:null;this.screenX="screenX"in a?a.screenX:0;this.screenY="screenY"in a?a.screenY:0;this.clientX="clientX"in a?a.clientX:0;this.clientY="clientY"in a?a.clientY:0;this.ctrlKey="ctrlKey"in a?a.ctrlKey:!1;this.altKey="altKey"in a?a.altKey:!1;this.shiftKey= "shiftKey"in a?a.shiftKey:!1;this.metaKey="metaKey"in a?a.metaKey:!1;this.button="button"in a?a.button:0;this.relatedTarget="relatedTarget"in a?a.relatedTarget:null;this.pointerId="pointerId"in a?a.pointerId:0;this.width="width"in a?a.width:0;this.height="height"in a?a.height:0;this.tiltX="tiltX"in a?a.tiltX:0;this.tiltY="tiltY"in a?a.tiltY:0;this.pointerType="pointerType"in a?a.pointerType:"";this.isPrimary="isPrimary"in a?a.isPrimary:!1;b.preventDefault&&(this.preventDefault=function(){b.preventDefault()})} v(Dm,Na);function Gm(a){if(a.buttons||Im)a=a.buttons;else switch(a.which){case 1:a=1;break;case 2:a=4;break;case 3:a=2;break;default:a=0}return a}function Hm(a,b){var c=0;a.pressure?c=a.pressure:c=b?.5:0;return c}var Im=!1;try{Im=1===(new MouseEvent("click",{buttons:1})).buttons}catch(a){};function Jm(a,b){tm.call(this,a,{touchstart:this.Fr,touchmove:this.Er,touchend:this.Dr,touchcancel:this.Cr});this.a=a.g;this.j=b;this.g=void 0;this.f=0;this.c=void 0}v(Jm,tm);k=Jm.prototype;k.Pj=function(){this.f=0;this.c=void 0}; function Km(a,b,c){b=xm(b,c);b.pointerId=c.identifier+2;b.bubbles=!0;b.cancelable=!0;b.detail=a.f;b.button=0;b.buttons=1;b.width=c.webkitRadiusX||c.radiusX||0;b.height=c.webkitRadiusY||c.radiusY||0;b.pressure=c.webkitForce||c.force||.5;b.isPrimary=a.g===c.identifier;b.pointerType="touch";b.clientX=c.clientX;b.clientY=c.clientY;b.screenX=c.screenX;b.screenY=c.screenY;return b} function Lm(a,b,c){function d(){b.preventDefault()}var e=Array.prototype.slice.call(b.changedTouches),f=e.length,g;for(g=0;g=b.length){var e=[],f;for(f=0;f>1;){var l=2*b+1,m=2*b+2;l=mb;){var g=c-1>>1;if(a[g]>f)d[c]=d[g],a[c]=a[g],c=g;else break}d[c]=e;a[c]=f} function $m(a){var b=a.o,c=a.b,d=a.g,e=0,f=c.length,g;for(g=0;g>1)-1;0<=b;b--)Ym(a,b)};function an(a,b){Wm.call(this,function(b){return a.apply(null,b)},function(a){return a[0].ob()});this.s=b;this.j=0;this.f={}}v(an,Wm);an.prototype.i=function(a){var b=Wm.prototype.i.call(this,a);b&&y(a[0],"change",this.l,this);return b};an.prototype.l=function(a){a=a.target;var b=a.getState();if(2===b||3===b||4===b||5===b)Ja(a,"change",this.l,this),a=a.ob(),a in this.f&&(delete this.f[a],--this.j),this.s()}; function bn(a,b,c){for(var d=0,e,f;a.j=this.f&&a<=this.a){var b=this.o||0;if(this.j){var c=hd(this.j,a,1);b+=c;if(c==this.j.length-1)return b;var d=this.j[c];c=d/this.j[c+1]}else d=this.a,c=this.B;b+=Math.log(d/a)/Math.log(c)}return b}; k.ng=function(a,b){b=b||{};var c=b.size;c||(c=pn(this));if(a instanceof Wd)if("Circle"===a.U()){a=a.D();var d=gl(a);d.rotate(this.Qa(),Gb(a))}else d=a;else gb(Array.isArray(a),24),gb(!Db(a),25),d=gl(a);var e=void 0!==b.padding?b.padding:[0,0,0,0],f=void 0!==b.constrainResolution?b.constrainResolution:!0,g=void 0!==b.nearest?b.nearest:!1,h;void 0!==b.minResolution?h=b.minResolution:void 0!==b.maxZoom?h=this.constrainResolution(this.a,b.maxZoom-this.o,0):h=0;var l=d.ja(),m=this.Qa();a=Math.cos(-m); m=Math.sin(-m);var n=Infinity,p=Infinity,q=-Infinity,t=-Infinity;d=d.ya();for(var u=0,w=l.length;uc.b.length)c=!1;else{var d=Date.now()-c.f,e=c.b.length-3;if(c.b[e+2]d;)f-=3;d=c.b[e+2]-c.b[f+2];var g=c.b[e]-c.b[f];e=c.b[e+1]-c.b[f+1];c.g=Math.atan2(e,g);c.a=Math.sqrt(g*g+e*e)/d;c=c.a>c.c}}c&&(c=this.a,c=(c.c-c.a)/c.i,e=this.a.g,f=a.va(),f=b.Pa(f),b=b.ab([f[0]-c*Math.cos(e),f[1]-c*Math.sin(e)]),a.animate({center:a.Xc(b),duration:500,easing:$l}));ln(a,1,-1); return!1}this.a&&un(this.a);this.f=null;return!0}function On(a){if(0=this.s}function $n(a){if(In(a)){var b=this.a,c=a.pixel;b.g=this.f;b.a=c;Xn(b);Wn(b);this.b(new co(eo,a.coordinate,a))}}Yn.prototype.V=function(){return this.a.V()}; Yn.prototype.j=ua;function ao(a){if(!In(a))return!0;this.a.setMap(null);this.o(a,this.f,a.pixel)&&(this.j(a),this.b(new co(fo,a.coordinate,a)));return!1}function Zn(a){if(In(a)&&Cn(a)&&this.C(a)){this.f=a.pixel;this.a.setMap(a.map);var b=this.a,c=this.f;b.g=this.f;b.a=c;Xn(b);Wn(b);this.b(new co(go,a.coordinate,a));return!0}return!1}var go="boxstart",eo="boxdrag",fo="boxend";function co(a,b,c){Na.call(this,a);this.coordinate=b;this.mapBrowserEvent=c}v(co,Na);function ho(a){a=a?a:{};var b=a.condition?a.condition:Gn;this.B=void 0!==a.duration?a.duration:200;this.G=void 0!==a.out?a.out:!1;Yn.call(this,{condition:b,className:a.className||"ol-dragzoom"})}v(ho,Yn); ho.prototype.j=function(){var a=this.R,b=a.Z(),c=a.Rb(),d=this.V().D();if(this.G){var e=b.zd(c);d=[a.Pa(yb(d)),a.Pa(Ab(d))];a=rb(Infinity,Infinity,-Infinity,-Infinity,void 0);var f;var g=0;for(f=d.length;gMath.abs(d)?oo:po;if(this.l===oo){b=b.Z();this.o?clearTimeout(this.o): ln(b,1,1);this.o=setTimeout(this.B.bind(this),400);c=b.Ia()*Math.pow(2,d/300);var e=b.f,f=b.a,g=0;cf&&(c=Math.min(c,1.5*f),g=-1);if(this.a){var h=nn(b,c,this.a);b.cb(b.Xc(h))}b.Uc(c);0===g&&this.N&&b.animate({resolution:b.constrainResolution(c,0g&&b.animate({resolution:f,easing:$l,anchor:this.a,duration:500});this.f=a;return!1}this.j+=d;d=Math.max(this.X- (a-this.f),0);clearTimeout(this.s);this.s=setTimeout(this.G.bind(this,b),d);return!1}mo.prototype.B=function(){this.o=void 0;ln(this.R.Z(),1,-1)};mo.prototype.G=function(a){a=a.Z();a.$c()&&a.Ad();xn(a,-Mb(this.j,-1,1),this.a,this.v);this.l=void 0;this.j=0;this.a=null;this.s=this.f=void 0};mo.prototype.aa=function(a){this.C=a;a||(this.a=null)};var oo="trackpad",po="wheel";function qo(a){Kn.call(this,{handleDownEvent:ro,handleDragEvent:so,handleUpEvent:to});a=a||{};this.f=null;this.j=void 0;this.a=!1;this.o=0;this.C=void 0!==a.threshold?a.threshold:.3;this.s=void 0!==a.duration?a.duration:250}v(qo,Kn); function so(a){var b=0,c=this.l[0],d=this.l[1];c=Math.atan2(d.clientY-c.clientY,d.clientX-c.clientX);void 0!==this.j&&(b=c-this.j,this.o+=b,!this.a&&Math.abs(this.o)>this.C&&(this.a=!0));this.j=c;a=a.map;c=a.a.getBoundingClientRect();d=Mn(this.l);d[0]-=c.left;d[1]-=c.top;this.f=a.ab(d);this.a&&(c=a.Z(),d=c.Qa(),a.render(),wn(c,d+b,this.f))}function to(a){if(2>this.l.length){a=a.map.Z();ln(a,1,-1);if(this.a){var b=a.Qa(),c=this.f,d=this.s;b=a.constrainRotation(b,0);wn(a,b,c,d)}return!1}return!0} function ro(a){return 2<=this.l.length?(a=a.map,this.f=null,this.j=void 0,this.a=!1,this.o=0,this.v||ln(a.Z(),1,1),!0):!1}qo.prototype.sd=Gd;function uo(a){Kn.call(this,{handleDownEvent:vo,handleDragEvent:wo,handleUpEvent:xo});a=a?a:{};this.o=a.constrainResolution||!1;this.f=null;this.s=void 0!==a.duration?a.duration:400;this.a=void 0;this.j=1}v(uo,Kn); function wo(a){var b=1,c=this.l[0],d=this.l[1],e=c.clientX-d.clientX;c=c.clientY-d.clientY;e=Math.sqrt(e*e+c*c);void 0!==this.a&&(b=this.a/e);this.a=e;a=a.map;e=a.Z();d=e.Ia();var f=e.a,g=e.f;c=d*b;c>f?(b=f/d,c=f):cthis.l.length){a=a.map.Z();ln(a,1,-1);var b=a.Ia();if(this.o||ba.a){var c=this.f,d=this.s;b=a.constrainResolution(b,0,this.j-1);yn(a,b,c,d)}return!1}return!0}function vo(a){return 2<=this.l.length?(a=a.map,this.f=null,this.a=void 0,this.j=1,this.v||ln(a.Z(),1,1),!0):!1}uo.prototype.sd=Gd;function yo(a){a=a?a:{};var b=new bb,c=new tn(-.005,.05,100);(void 0!==a.altShiftDragRotate?a.altShiftDragRotate:1)&&b.push(new Rn);(void 0!==a.doubleClickZoom?a.doubleClickZoom:1)&&b.push(new zn({delta:a.zoomDelta,duration:a.zoomDuration}));(void 0!==a.dragPan?a.dragPan:1)&&b.push(new Nn({kinetic:c}));(void 0!==a.pinchRotate?a.pinchRotate:1)&&b.push(new qo);(void 0!==a.pinchZoom?a.pinchZoom:1)&&b.push(new uo({constrainResolution:a.constrainResolution,duration:a.zoomDuration}));if(void 0!==a.keyboard? a.keyboard:1)b.push(new io),b.push(new ko({delta:a.zoomDelta,duration:a.zoomDuration}));(void 0!==a.mouseWheelZoom?a.mouseWheelZoom:1)&&b.push(new mo({constrainResolution:a.constrainResolution,duration:a.zoomDuration}));(void 0!==a.shiftDragZoom?a.shiftDragZoom:1)&&b.push(new ho({duration:a.zoomDuration}));return b};function zo(){this.b={};this.a=0}zo.prototype.clear=function(){this.b={};this.a=0};zo.prototype.get=function(a,b,c){a=b+":"+a+":"+(c?Qd(c):"null");return a in this.b?this.b[a]:null};zo.prototype.set=function(a,b,c,d){this.b[b+":"+a+":"+(c?Qd(c):"null")]=d;++this.a};var Ao=new zo;function Bo(a,b){this.R=b;this.c={};this.o={}}v(Bo,La);function Co(a){var b=a.viewState,c=a.coordinateToPixelTransform,d=a.pixelToCoordinateTransform;Ee(c,a.size[0]/2,a.size[1]/2,1/b.resolution,-1/b.resolution,-b.rotation,-b.center[0],-b.center[1]);Fe(ze(d,c))}k=Bo.prototype;k.xa=function(){for(var a in this.c)Ma(this.c[a])};function Do(){if(32p[2])m=[t+q*Math.ceil((p[0]-t)/q),a[1]]}p=b.layerStatesArray;for(q=p.length-1;0<=q;--q){var u=p[q];t=u.layer;if(ad(u,n)&&f.call(g,t)&&(u=Eo(this,t),t.ba()&&(l=u.Ga(t.ba().aa?m:a,b,c,h,e)),l))return l}}; k.gj=function(a,b,c,d,e){return void 0!==this.Ga(a,b,c,Fd,this,d,e)};function Eo(a,b){var c=x(b).toString();if(c in a.c)return a.c[c];b=b.Zd(a);a.c[c]=b;a.o[c]=y(b,"change",a.um,a);return b}k.um=function(){this.R.render()};k.mh=ua;k.br=function(a,b){for(var c in this.c)if(!(b&&c in b.layerStates)){a=c;var d=this.c[a];delete this.c[a];Ca(this.o[a]);delete this.o[a];Ma(d)}};function Fo(a,b){for(var c in a.c)if(!(c in b.layerStates)){b.postRenderFunctions.push(a.br.bind(a));break}} function Go(a,b){return a.zIndex-b.zIndex};function Ho(a,b){Bo.call(this,a,b);this.g=pd();this.b=this.g.canvas;this.b.style.width="100%";this.b.style.height="100%";this.b.style.display="block";this.b.className="ol-unselectable";a.insertBefore(this.b,a.childNodes[0]||null);this.a=!0;this.i=ve()}v(Ho,Bo); function Io(a,b,c){var d=a.R,e=a.g;if(Ra(d,b)){var f=c.extent,g=c.pixelRatio,h=c.viewState.rotation,l=c.viewState,m=c.pixelRatio/l.resolution;a=Ee(a.i,a.b.width/2,a.b.height/2,m,-m,-l.rotation,-l.center[0],-l.center[1]);d.b(new Hd(b,new Ge(e,g,f,a,h),c,e,null))}}Ho.prototype.U=function(){return"canvas"}; Ho.prototype.mh=function(a){if(a){var b=this.g,c=a.pixelRatio,d=Math.round(a.size[0]*c),e=Math.round(a.size[1]*c);this.b.width!=d||this.b.height!=e?(this.b.width=d,this.b.height=e):b.clearRect(0,0,d,e);c=a.viewState.rotation;Co(a);Io(this,"precompose",a);var f=a.layerStatesArray;md(f,Go);c&&(b.save(),Ld(b,c,d/2,e/2));d=a.viewState.resolution;var g;e=0;for(g=f.length;ed?b[0]=d-c:0>e&&(b[0]=Math.abs(e)+c),0>f?b[1]=f-c:0>g&&(b[1]=Math.abs(g)+c),0===b[0]&&0===b[1])|| (c=a.Z().va(),c=a.Pa(c),b=[c[0]+b[0],c[1]+b[1]],a.Z().animate({center:a.ab(b),duration:this.j.duration,easing:this.j.easing}))}}};k.Fm=function(){Uo(this)};k.Sj=function(a){this.set(Po,a)};k.setMap=function(a){this.set(Qo,a)};k.Zj=function(a){this.set(Ro,a)};k.pf=function(a){this.set(So,a)};function Vo(a,b){var c=a.getBoundingClientRect();a=c.left+window.pageXOffset;c=c.top+window.pageYOffset;return[a,c,a+b[0],c+b[1]]}k.bk=function(a){this.set(To,a)}; function Wo(a,b){a.a.visible!==b&&(a.c.style.display=b?"":"none",a.a.visible=b)} function Uo(a){var b=a.nf(),c=a.Ci();if(b&&b.c&&c){c=b.Pa(c);var d=b.Rb();b=a.c.style;var e=a.gi(),f=a.hi();Wo(a,!0);var g=e[0];e=e[1];if("bottom-right"==f||"center-right"==f||"top-right"==f)""!==a.a.gf&&(a.a.gf=b.left=""),g=Math.round(d[0]-c[0]-g)+"px",a.a.Jf!=g&&(a.a.Jf=b.right=g);else{""!==a.a.Jf&&(a.a.Jf=b.right="");if("bottom-center"==f||"center-center"==f||"top-center"==f)g-=a.c.offsetWidth/2;g=Math.round(c[0]+g)+"px";a.a.gf!=g&&(a.a.gf=b.left=g)}if("bottom-left"==f||"bottom-center"==f||"bottom-right"== f)""!==a.a.Sf&&(a.a.Sf=b.top=""),c=Math.round(d[1]-c[1]-e)+"px",a.a.Qe!=c&&(a.a.Qe=b.bottom=c);else{""!==a.a.Qe&&(a.a.Qe=b.bottom="");if("center-left"==f||"center-center"==f||"center-right"==f)e-=a.c.offsetHeight/2;c=Math.round(c[1]+e)+"px";a.a.Sf!=c&&(a.a.Sf=b.top=c)}}else Wo(a,!1)}var Po="element",Qo="map",Ro="offset",So="position",To="positioning";function Xo(a){function b(a){a=h.pg(a);l.R.Z().cb(a);window.removeEventListener("mousemove",c);window.removeEventListener("mouseup",b)}function c(a){a=h.pg({clientX:a.clientX-n.offsetWidth/2,clientY:a.clientY+n.offsetHeight/2});m.pf(a)}a=a?a:{};this.f=void 0!==a.collapsed?a.collapsed:!0;this.j=void 0!==a.collapsible?a.collapsible:!0;this.j||(this.f=!1);var d=void 0!==a.className?a.className:"ol-overviewmap",e=void 0!==a.tipLabel?a.tipLabel:"Overview map",f=void 0!==a.collapseLabel?a.collapseLabel: "\u00ab";"string"===typeof f?(this.s=document.createElement("span"),this.s.textContent=f):this.s=f;f=void 0!==a.label?a.label:"\u00bb";"string"===typeof f?(this.v=document.createElement("span"),this.v.textContent=f):this.v=f;var g=this.j&&!this.f?this.s:this.v;f=document.createElement("button");f.setAttribute("type","button");f.title=e;f.appendChild(g);y(f,"click",this.Vn,this);this.C=document.createElement("DIV");this.C.className="ol-overviewmap-map";var h=this.a=new Q({controls:new bb,interactions:new bb, view:a.view});a.layers&&a.layers.forEach(function(a){h.Nh(a)},this);e=document.createElement("DIV");e.className="ol-overviewmap-box";e.style.boxSizing="border-box";this.l=new Oo({position:[0,0],positioning:"bottom-left",element:e});this.a.Oh(this.l);e=document.createElement("div");e.className=d+" ol-unselectable ol-control"+(this.f&&this.j?" ol-collapsed":"")+(this.j?"":" ol-uncollapsible");e.appendChild(this.C);e.appendChild(f);Vl.call(this,{element:e,render:a.render?a.render:Yo,target:a.target}); var l=this,m=this.l,n=this.l.ke();n.addEventListener("mousedown",function(){window.addEventListener("mousemove",c);window.addEventListener("mouseup",b)})}v(Xo,Vl);k=Xo.prototype;k.setMap=function(a){var b=this.R;a!==b&&(b&&((b=b.Z())&&Ja(b,Ya("rotation"),this.ef,this),this.a.mf(null)),Vl.prototype.setMap.call(this,a),a&&(this.a.mf(this.C),this.o.push(y(a,"propertychange",this.zm,this)),0===this.a.Bi().rc()&&this.a.Xj(a.Nb()),a=a.Z()))&&(y(a,Ya("rotation"),this.ef,this),Rl(a)&&(this.a.Ud(),Zo(this)))}; k.zm=function(a){"view"===a.key&&((a=a.oldValue)&&Ja(a,Ya("rotation"),this.ef,this),a=this.R.Z(),y(a,Ya("rotation"),this.ef,this))};k.ef=function(){this.a.Z().gd(this.R.Z().Qa())};function Yo(){var a=this.R,b=this.a;if(a.c&&b.c){var c=a.Rb();a=a.Z().zd(c);var d=b.Rb();c=b.Z().zd(d);var e=b.Pa(Bb(a)),f=b.Pa(zb(a));b=Math.abs(e[0]-f[0]);e=Math.abs(e[1]-f[1]);f=d[0];d=d[1];b<.1*f||e<.1*d||b>.75*f||e>.75*d?Zo(this):pb(c,a)||(a=this.a,c=this.R.Z(),a.Z().cb(c.va()))}$o(this)} function Zo(a){var b=a.R;a=a.a;var c=b.Rb();b=b.Z().zd(c);a=a.Z();Kb(b,1/(.1*Math.pow(2,Math.log(7.5)/Math.LN2/2)));a.ng(b)}function $o(a){var b=a.R,c=a.a;if(b.c&&c.c){var d=b.Rb(),e=b.Z(),f=c.Z();c=e.Qa();b=a.l;var g=a.l.ke(),h=e.zd(d);d=f.Ia();e=yb(h);f=Ab(h);if(a=a.R.Z().va()){var l=[e[0]-a[0],e[1]-a[1]];zd(l,c);ud(l,a)}b.pf(l);g&&(g.style.width=Math.abs((e[0]-f[0])/d)+"px",g.style.height=Math.abs((f[1]-e[1])/d)+"px")}}k.Vn=function(a){a.preventDefault();ap(this)}; function ap(a){a.element.classList.toggle("ol-collapsed");a.f?qd(a.s,a.v):qd(a.v,a.s);a.f=!a.f;var b=a.a;a.f||b.c||(b.Ud(),Zo(a),Ia(b,"postrender",function(){$o(this)},a))}k.Un=function(){return this.j};k.Xn=function(a){this.j!==a&&(this.j=a,this.element.classList.toggle("ol-uncollapsible"),!a&&this.f&&ap(this))};k.Wn=function(a){this.j&&this.f!==a&&ap(this)};k.Tn=function(){return this.f};k.Wl=function(){return this.a};function bp(a){a=a?a:{};var b=void 0!==a.className?a.className:"ol-scale-line";this.j=document.createElement("DIV");this.j.className=b+"-inner";this.a=document.createElement("DIV");this.a.className=b+" ol-unselectable";this.a.appendChild(this.j);this.s=null;this.l=void 0!==a.minWidth?a.minWidth:64;this.f=!1;this.C=void 0;this.v="";Vl.call(this,{element:this.a,render:a.render?a.render:cp,target:a.target});y(this,Ya(dp),this.G,this);this.B(a.units||"metric")}v(bp,Vl);var ep=[1,2,5]; bp.prototype.Pb=function(){return this.get(dp)};function cp(a){(a=a.frameState)?this.s=a.viewState:this.s=null;fp(this)}bp.prototype.G=function(){fp(this)};bp.prototype.B=function(a){this.set(dp,a)}; function fp(a){var b=a.s;if(b){var c=b.projection,d=c.dc();b=Jc(c,b.resolution,b.center)*d;d=a.l*b;c="";var e=a.Pb();"degrees"==e?(c=pc.degrees,b/=c,dd?(c="in",b/=.0254):1609.344>d?(c="ft",b/=.3048):(c="mi",b/=1609.344):"nautical"==e?(b/=1852,c="nm"):"metric"==e?.001>d?(c="\u03bcm",b*=1E6):1>d?(c="mm",b*=1E3):1E3>d?c="m":(c="km",b/=1E3):"us"==e?.9144>d?(c="in",b*=39.37):1609.344>d?(c="ft",b/=.30480061):(c="mi",b/=1609.3472): gb(!1,33);e=3*Math.floor(Math.log(a.l*b)/Math.log(10));for(var f;;){f=ep[(e%3+3)%3]*Math.pow(10,Math.floor(e/3));d=Math.round(f/b);if(isNaN(d)){a.a.style.display="none";a.f=!1;return}if(d>=a.l)break;++e}b=f+" "+c;a.v!=b&&(a.j.innerHTML=b,a.v=b);a.C!=d&&(a.j.style.width=d+"px",a.C=d);a.f||(a.a.style.display="",a.f=!0)}else a.f&&(a.a.style.display="none",a.f=!1)}var dp="units";function gp(a){a=a?a:{};this.a=void 0;this.f=hp;this.v=this.l=0;this.G=null;this.X=!1;this.aa=void 0!==a.duration?a.duration:200;var b=void 0!==a.className?a.className:"ol-zoomslider",c=document.createElement("button");c.setAttribute("type","button");c.className=b+"-thumb ol-unselectable";var d=document.createElement("div");d.className=b+" ol-unselectable ol-control";d.appendChild(c);this.j=new Om(d);y(this.j,"pointerdown",this.nm,this);y(this.j,"pointermove",this.lm,this);y(this.j,"pointerup",this.mm, this);y(d,"click",this.km,this);y(c,"click",Oa);Vl.call(this,{element:d,render:a.render?a.render:ip})}v(gp,Vl);gp.prototype.xa=function(){Ma(this.j);Vl.prototype.xa.call(this)};var hp=0;k=gp.prototype;k.setMap=function(a){Vl.prototype.setMap.call(this,a);a&&a.render()}; function ip(a){if(a.frameState){if(!this.X){var b=this.element,c=b.offsetWidth,d=b.offsetHeight,e=b.firstElementChild,f=getComputedStyle(e);b=e.offsetWidth+parseFloat(f.marginRight)+parseFloat(f.marginLeft);e=e.offsetHeight+parseFloat(f.marginTop)+parseFloat(f.marginBottom);this.G=[b,e];c>d?(this.f=1,this.v=c-b):(this.f=hp,this.l=d-e);this.X=!0}a=a.frameState.viewState.resolution;a!==this.a&&(this.a=a,jp(this,a))}} k.km=function(a){var b=this.R.Z();a=kp(this,Mb(1===this.f?(a.offsetX-this.G[0]/2)/this.v:(a.offsetY-this.G[1]/2)/this.l,0,1));b.animate({resolution:b.constrainResolution(a),duration:this.aa,easing:$l})};k.nm=function(a){this.s||a.b.target!==this.element.firstElementChild||(ln(this.R.Z(),1,1),this.C=a.clientX,this.B=a.clientY,this.s=!0)}; k.lm=function(a){if(this.s){var b=this.element.firstElementChild;this.a=kp(this,Mb(1===this.f?(a.clientX-this.C+parseInt(b.style.left,10))/this.v:(a.clientY-this.B+parseInt(b.style.top,10))/this.l,0,1));this.R.Z().Uc(this.a);jp(this,this.a);this.C=a.clientX;this.B=a.clientY}};k.mm=function(){if(this.s){var a=this.R.Z();ln(a,1,-1);a.animate({resolution:a.constrainResolution(this.a),duration:this.aa,easing:$l});this.s=!1;this.B=this.C=void 0}}; function jp(a,b){b=1-sn(a.R.Z())(b);var c=a.element.firstElementChild;1==a.f?c.style.left=a.v*b+"px":c.style.top=a.l*b+"px"}function kp(a,b){return rn(a.R.Z())(1-b)};function lp(a){a=a?a:{};this.a=a.extent?a.extent:null;var b=void 0!==a.className?a.className:"ol-zoom-extent",c=void 0!==a.label?a.label:"E",d=void 0!==a.tipLabel?a.tipLabel:"Fit to extent",e=document.createElement("button");e.setAttribute("type","button");e.title=d;e.appendChild("string"===typeof c?document.createTextNode(c):c);y(e,"click",this.f,this);c=document.createElement("div");c.className=b+" ol-unselectable ol-control";c.appendChild(e);Vl.call(this,{element:c,target:a.target})}v(lp,Vl); lp.prototype.f=function(a){a.preventDefault();a=this.R.Z();var b=this.a?this.a:a.c.D();a.ng(b)};function mp(a){Wa.call(this);a=a?a:{};this.a=null;y(this,Ya(np),this.nn,this);this.Hg(void 0!==a.tracking?a.tracking:!1)}v(mp,Wa);k=mp.prototype;k.xa=function(){this.Hg(!1);Wa.prototype.xa.call(this)}; k.Wp=function(a){if(null!==a.alpha){var b=Rb(a.alpha);this.set(op,b);"boolean"===typeof a.absolute&&a.absolute?this.set(pp,b):"number"===typeof a.webkitCompassHeading&&-1!=a.webkitCompassAccuracy&&this.set(pp,Rb(a.webkitCompassHeading))}null!==a.beta&&this.set(qp,Rb(a.beta));null!==a.gamma&&this.set(rp,Rb(a.gamma));this.u()};k.pl=function(){return this.get(op)};k.sl=function(){return this.get(qp)};k.Dl=function(){return this.get(rp)};k.mn=function(){return this.get(pp)};k.xi=function(){return this.get(np)}; k.nn=function(){if(ke){var a=this.xi();a&&!this.a?this.a=y(window,"deviceorientation",this.Wp,this):a||null===this.a||(Ca(this.a),this.a=null)}};k.Hg=function(a){this.set(np,a)};var op="alpha",qp="beta",rp="gamma",pp="heading",np="tracking";function sp(){this.i=this.defaultDataProjection=null}function tp(a,b,c){var d;c&&(d={dataProjection:c.dataProjection?c.dataProjection:a.hb(b),featureProjection:c.featureProjection});return up(a,d)}function up(a,b){return wa({dataProjection:a.defaultDataProjection,featureProjection:a.i},b)} function vp(a,b,c){var d=c?Lc(c.featureProjection):null,e=c?Lc(c.dataProjection):null,f;d&&e&&!Uc(d,e)?a instanceof Td?f=(b?a.clone():a).transform(b?d:e,b?e:d):f=Yc(b?a.slice():a,b?d:e,b?e:d):f=a;if(b&&c&&c.decimals){var g=Math.pow(10,c.decimals);a=function(a){for(var b=0,c=a.length;ba||this.c.length<=a)return null;var b=new K(null);b.fa(this.ma,this.A.slice(0===a?0:this.c[a-1],this.c[a]));return b}; k.Hc=function(){var a=this.A,b=this.c,c=this.ma,d=[],e=0,f;var g=0;for(f=b.length;ga||b<=a)return null;b=new L(null);b.fa(this.ma,this.A.slice(a*this.a,(a+1)*this.a));return b};k.Id=function(){var a=this.A,b=this.ma,c=this.a,d=[],e;var f=0;for(e=a.length;fa||this.c.length<=a)return null;if(0===a)var b=0;else b=this.c[a-1],b=b[b.length-1];a=this.c[a].slice();var c=a[a.length-1];if(0!==b){var d;var e=0;for(d=a.length;ea||0!==this.f&&ac;++c){var d=parseInt(b[c],10).toString(16);b[c]=1==d.length?"0"+d:d}Np(a,b.join(""))}function ft(a,b,c){a={node:a};var d=b.U();if("GeometryCollection"==d){var e=b.Dd();var f=gt}else"MultiPoint"==d?(e=b.Id(),f=ht):"MultiLineString"==d?(e=b.Hc(),f=it):"MultiPolygon"==d?(e=b.bd(),f=jt):gb(!1,39);Mj(a,kt,f,e,c)}function lt(a,b,c){Mj({node:a},mt,nt,[b],c)} function ot(a,b,c){var d={node:a};b.a&&a.setAttribute("id",b.a);a=b.L();var e={address:1,description:1,name:1,open:1,phoneNumber:1,styleUrl:1,visibility:1};e[b.c]=1;var f=Object.keys(a||{}).sort().filter(function(a){return!e[a]});if(0>1,m=-7;f=d?f-1:0;var n=d?-1:1,z=a[b+f];f+=n;d=z&(1<<-m)-1;z>>=-m;for(m+=g;0>=-m;for(m+=e;0>1,n=23===f?Math.pow(2,-24)-Math.pow(2,-77):0;p=e?0:p-1;var D=e?1:-1,B=0>b||0===b&&0>1/b?1:0;b=Math.abs(b);isNaN(b)||Infinity===b?(b=isNaN(b)?1:0,e=l):(e=Math.floor(Math.log(b)/Math.LN2),1>b*(g=Math.pow(2,-e))&&(e--,g*=2),b=1<=e+m?b+n/g:b+n*Math.pow(2,1-m),2<=b*g&&(e++,g/=2),e+m>=l?(b=0,e=l):1<=e+m?(b=(b*g-1)*Math.pow(2,f),e+=m):(b=b*Math.pow(2,m-1)*Math.pow(2,f),e=0));for(;8<=f;a[d+p]=b&255,p+=D,b/=256,f-=8);e=e<>4;if(128>f)return h(a,g,b);f=e[d.ia++];g|=(f&127)<<3;if(128>f)return h(a,g,b);f=e[d.ia++];g|=(f&127)<<10;if(128>f)return h(a,g,b);f=e[d.ia++];g|=(f&127)<<17;if(128>f)return h(a,g,b);f=e[d.ia++];g|=(f&127)<<24;if(128>f)return h(a,g,b);f=e[d.ia++]; if(128>f)return h(a,g|(f&1)<<31,b);throw Error("Expected varint not more than 10 bytes");}function h(a,b,d){return d?4294967296*b+(a>>>0):4294967296*(b>>>0)+(a>>>0)}b.na=d;var l=a("ieee754");d.c=0;d.g=1;d.b=2;d.a=5;d.prototype={destroy:function(){this.mc=null},bh:function(a,b,d){for(d=d||this.length;this.ia>3,g=this.ia;this.type=e&7;a(f,b,this);this.ia===g&&this.Br(e)}return b},yq:function(){var a=l.read(this.mc,this.ia,!0,23,4);this.ia+=4;return a},uq:function(){var a=l.read(this.mc, this.ia,!0,52,8);this.ia+=8;return a},Sa:function(a){var b=this.mc;var d=b[this.ia++];var f=d&127;if(128>d)return f;d=b[this.ia++];f|=(d&127)<<7;if(128>d)return f;d=b[this.ia++];f|=(d&127)<<14;if(128>d)return f;d=b[this.ia++];f|=(d&127)<<21;if(128>d)return f;d=b[this.ia];return e(f|(d&15)<<28,a,this)},Uq:function(){return this.Sa(!0)},ze:function(){var a=this.Sa();return 1===a%2?(a+1)/-2:a/2},nq:function(){return!!this.Sa()},hh:function(){for(var a=this.Sa()+this.ia,b=this.mc,d="",e=this.ia;ea)break;if(1===h)128>f&&(g=f);else if(2===h){var l=b[e+1];128===(l&192)&&(g=(f&31)<<6|l&63,127>=g&&(g=null))}else if(3===h){l=b[e+1];var D=b[e+2];128===(l&192)&&128===(D&192)&&(g=(f&15)<<12|(l&63)<<6|D&63,2047>=g||55296<=g&&57343>=g)&&(g=null)}else if(4===h){l=b[e+1];D=b[e+2];var B=b[e+3];128===(l&192)&&128===(D&192)&&128===(B&192)&&(g=(f&15)<<18|(l&63)<<12|(D&63)<<6|B&63,65535>=g||1114112<=g)&&(g=null)}null===g?(g=65533,h=1):65535>> 10&1023|55296),g=56320|g&1023);d+=String.fromCharCode(g);e+=h}this.ia=a;return d},Br:function(a){a&=7;if(a===d.c)for(;127>=3),e--,1===d||2===d)f+=a.ze(),g+=a.ze(),1===d&&(w&&u.push(w),w=[]),w.push(new h(f,g));else if(7===d)w&&w.push(w[0].clone());else throw Error("unknown command "+d);w&&u.push(w);return u};d.prototype.bbox=function(){var a=this.Wc;a.ia= this.$f;for(var b=a.Sa()+a.ia,d=1,e=0,f=0,g=0,h=Infinity,w=-Infinity,z=Infinity,D=-Infinity;a.ia>=3),e--,1===d||2===d)f+=a.ze(),g+=a.ze(),fw&&(w=f),gD&&(D=g);else if(7!==d)throw Error("unknown command "+d);return[h,z,w,D]}},{"point-geometry":1}],5:[function(a,b){function d(a,b){this.version=1;this.name=null;this.extent=4096;this.length=0;this.Wc=a;this.Le=[];this.Ne=[];this.Ke=[];a.bh(e,this,b);this.length=this.Ke.length}function e(a,b,d){15===a? b.version=d.Sa():1===a?b.name=d.hh():5===a?b.extent=d.Sa():2===a?b.Ke.push(d.ia):3===a?b.Le.push(d.hh()):4===a&&b.Ne.push(h(d))}function h(a){for(var b=null,d=a.Sa()+a.ia;a.ia>3,b=1===b?a.hh():2===b?a.yq():3===b?a.uq():4===b?a.Uq():5===b?a.Sa():6===b?a.ze():7===b?a.nq():null;return b}var l=a("./vectortilefeature.js");b.na=d;d.prototype.feature=function(a){if(0>a||a>=this.Ke.length)throw Error("feature index out of bounds");this.Wc.ia=this.Ke[a];a=this.Wc.Sa()+this.Wc.ia;return new l(this.Wc, a,this.extent,this.Le,this.Ne)}},{"./vectortilefeature.js":4}]},{},[2])(2)});Zg=b.na})();function Ut(a,b,c,d){this.g=a;this.b=b;this.i=c;this.c=d}k=Ut.prototype;k.get=function(a){return this.c[a]};k.$b=function(){return this.i};k.D=function(){this.a||(this.a="Point"===this.g?sb(this.b):tb(this.b,0,this.b.length,2));return this.a};k.sc=function(){return this.b};k.ja=Ut.prototype.sc;k.V=function(){return this};k.L=function(){return this.c};k.me=Ut.prototype.V;k.ya=function(){return 2};k.Nc=ua;k.U=function(){return this.g};function Vt(a){sp.call(this);a=a?a:{};this.defaultDataProjection=new sc({code:"",units:"tile-pixels"});this.b=a.featureClass?a.featureClass:Ut;this.g=a.geometryName;this.a=a.layerName?a.layerName:"layer";this.c=a.layers?a.layers:null}v(Vt,sp);k=Vt.prototype;k.U=function(){return"arraybuffer"}; k.Oa=function(a,b){var c=this.c;a=new Yg(a);a=new Zg.Ek(a);var d=[],e=this.b,f;for(f in a.layers)if(!c||-1!=c.indexOf(f)){var g=a.layers[f];for(var h=0,l=g.length;hc?~(c<<1):c<<1;b="";d=0;for(c=a.length;d>=5;g+=String.fromCharCode(f+63);b+=g}return b} function zu(a,b){b=b?b:1E5;var c=[],d=0,e=0,f;var g=0;for(f=a.length;gh?(c.push(d),e=d=0):e+=5}a=0;for(d=c.length;a>1):e>>1;a=0;for(d=c.length;a=b||"."==b||"-"==b){c.type=4;b=a.b;var d=!1,e=!1;do{if("."==f)d=!0;else if("e"==f||"E"==f)e=!0;var f=a.a.charAt(++a.b)}while("0"<=f&&"9">=f||"."==f&&(void 0===d||!d)||!e&&("e"==f||"E"==f)||e&&("-"==f||"+"==f));a=parseFloat(a.a.substring(b,a.b--));c.value=a}else if("a"<=b&&"z">=b||"A"<=b&&"Z">=b){c.type=1;b=a.b;do f=a.a.charAt(++a.b);while("a"<=f&&"z">= f||"A"<=f&&"Z">=f);a=a.a.substring(b,a.b--).toUpperCase();c.value=a}else{if(" "==b||"\t"==b||"\r"==b||"\n"==b)return Av(a);if(""===b)c.type=6;else throw Error("Unexpected character: "+b);}return c}function wv(a){this.g=a;this.a="XY"}function yv(a){a.b=Av(a.g)}function Bv(a,b){(b=a.b.type==b)&&yv(a);return b} function zv(a){var b=a.b;if(Bv(a,1)){b=b.value;var c="XY",d=a.b;1==a.b.type&&(d=d.value,"Z"===d?c="XYZ":"M"===d?c="XYM":"ZM"===d&&(c="XYZM"),"XY"!==c&&yv(a));a.a=c;if("GEOMETRYCOLLECTION"==b){a:{if(Bv(a,2)){b=[];do b.push(zv(a));while(Bv(a,5));if(Bv(a,3)){a=b;break a}}else if(Cv(a)){a=[];break a}throw Error(Dv(a));}return new Eq(a)}d=Ev[b];c=Fv[b];if(!d||!c)throw Error("Invalid geometry type: "+b);b=d.call(a);return new c(b,a.a)}throw Error(Dv(a));}k=wv.prototype; k.Vg=function(){if(Bv(this,2)){var a=Gv(this);if(Bv(this,3))return a}else if(Cv(this))return null;throw Error(Dv(this));};k.Ug=function(){if(Bv(this,2)){var a=Hv(this);if(Bv(this,3))return a}else if(Cv(this))return[];throw Error(Dv(this));};k.Wg=function(){if(Bv(this,2)){var a=Iv(this);if(Bv(this,3))return a}else if(Cv(this))return[];throw Error(Dv(this));}; k.$p=function(){if(Bv(this,2)){var a;if(2==this.b.type)for(a=[this.Vg()];Bv(this,5);)a.push(this.Vg());else a=Hv(this);if(Bv(this,3))return a}else if(Cv(this))return[];throw Error(Dv(this));};k.Zp=function(){if(Bv(this,2)){var a=Iv(this);if(Bv(this,3))return a}else if(Cv(this))return[];throw Error(Dv(this));};k.aq=function(){if(Bv(this,2)){for(var a=[this.Wg()];Bv(this,5);)a.push(this.Wg());if(Bv(this,3))return a}else if(Cv(this))return[];throw Error(Dv(this));}; function Gv(a){for(var b=[],c=a.a.length,d=0;d=b[0]||a[1]<=b[1]&&a[3]>=b[1]?!0:xb(a,this.yb,this)):!1}; k.cb=function(a){var b=this.a,c=a.slice();c[b]=c[0]+(this.A[b]-this.A[0]);var d;for(d=1;df[2])&&(c=h*Math.ceil((f[0]-c)/h),d=[d[0]+c, d[1],d[2]+c,d[3]]);c=this.o[0];f=this.o[1];h=-1;m=Math.pow(this.G*g,2);p=[];q=[];g=0;for(l=Dw.length;ga.lc:e<=a.lc}a.o?(e=b.coordinate,c=a.j.V(),a.f===Ww?d=a.a:a.f===Vw?(d=a.a[0],d=d[d.length-1],cx(a,b)&&(e=a.o.slice())):(d=a.a,d=d[d.length-1]),d[0]=e[0],d[1]=e[1],a.Va(a.a,c),a.B&&a.B.V().ua(e),c instanceof M&&a.f!==Vw?(a.C||(a.C=new E(new K(null))),e=c.vg(0),b=a.C.V(),b.fa(e.ma,e.ja())):a.G&&(b=a.C.V(),b.ua(a.G)),ex(a)):(b=b.coordinate.slice(),a.B?a.B.V().ua(b):(a.B=new E(new L(b)), ex(a)));return!0}function cx(a,b){var c=!1;if(a.j){var d=!1,e=[a.o];a.f===Xw?d=a.a.length>a.wa:a.f===Vw&&(d=a.a[0].length>a.wa,e=[a.a[0][0],a.a[0][a.a[0].length-2]]);if(d){d=b.map;for(var f=0,g=e.length;f=a.oa&&(a.s?e.pop():d=!0);e.push(b.slice());a.Va(e,c)}else a.f===Vw&&(e=a.a[0],e.length>=a.oa&&(a.s?e.pop():d=!0),e.push(b.slice()),d&&(a.o=e[0]),a.Va(a.a,c));ex(a);d&&a.je()} k.Zq=function(){if(this.j){var a=this.j.V();if(this.f===Xw){var b=this.a;b.splice(-2,1);this.Va(b,a);2<=b.length&&(this.o=b[b.length-2].slice())}else if(this.f===Vw){b=this.a[0];b.splice(-2,1);var c=this.C.V();c.ua(b);this.Va(this.a,a)}0===b.length&&(this.o=null);ex(this)}}; k.je=function(){var a=dx(this),b=this.a,c=a.V();this.f===Xw?(b.pop(),this.Va(b,c)):this.f===Vw&&(b[0].pop(),this.Va(b,c),b=c.T());"MultiPoint"===this.N?a.Wa(new T([b])):"MultiLineString"===this.N?a.Wa(new R([b])):"MultiPolygon"===this.N&&a.Wa(new U([b]));this.b(new fx("drawend",a));this.Xa&&this.Xa.push(a);this.rb&&this.rb.Eb(a)};function dx(a){a.o=null;var b=a.j;b&&(a.j=null,a.B=null,a.C=null,a.la.ba().clear(!0));return b} k.po=function(a){var b=a.V();this.j=a;this.a=b.T();a=this.a[this.a.length-1];this.o=a.slice();this.a.push(a.slice());ex(this);this.b(new fx("drawstart",this.j))};k.sd=Gd;function ex(a){var b=[];a.j&&b.push(a.j);a.C&&b.push(a.C);a.B&&b.push(a.B);a=a.la.ba();a.clear(!0);a.yd(b)}k.Ui=function(){var a=this.R,b=this.c();a&&b||dx(this);this.la.setMap(b?a:null)}; function Uw(a){var b;"Point"===a||"MultiPoint"===a?b=Ww:"LineString"===a||"MultiLineString"===a?b=Xw:"Polygon"===a||"MultiPolygon"===a?b=Vw:"Circle"===a&&(b=bx);return b}var Ww="Point",Xw="LineString",Vw="Polygon",bx="Circle";function fx(a,b){Na.call(this,a);this.feature=b}v(fx,Na);function gx(a){this.a=this.j=null;this.C=!1;this.B=this.o=null;a||(a={});a.extent&&this.f(a.extent);Kn.call(this,{handleDownEvent:hx,handleDragEvent:ix,handleEvent:jx,handleUpEvent:kx});this.s=new N({source:new J({useSpatialIndex:!1,wrapX:!!a.wrapX}),style:a.boxStyle?a.boxStyle:lx(),updateWhileAnimating:!0,updateWhileInteracting:!0});this.G=new N({source:new J({useSpatialIndex:!1,wrapX:!!a.wrapX}),style:a.pointerStyle?a.pointerStyle:mx(),updateWhileAnimating:!0,updateWhileInteracting:!0})}v(gx,Kn); function jx(a){if(!(a instanceof sm))return!0;if("pointermove"==a.type&&!this.v){var b=a.pixel,c=a.map,d=nx(this,b,c);d||(d=c.ab(b));ox(this,d)}Ln.call(this,a);return!1} function hx(a){function b(a){var b=null,c=null;a[0]==e[0]?b=e[2]:a[0]==e[2]&&(b=e[0]);a[1]==e[1]?c=e[3]:a[1]==e[3]&&(c=e[1]);return null!==b&&null!==c?[b,c]:null}var c=a.pixel,d=a.map,e=this.D();(a=nx(this,c,d))&&e?(c=a[0]==e[0]||a[0]==e[2]?a[0]:null,d=a[1]==e[1]||a[1]==e[3]?a[1]:null,null!==c&&null!==d?this.a=px(b(a)):null!==c?this.a=qx(b([c,e[1]]),b([c,e[3]])):null!==d&&(this.a=qx(b([e[0],d]),b([e[2],d])))):(a=d.ab(c),this.f([a[0],a[1],a[0],a[1]]),this.a=px(a));return!0} function ix(a){this.a&&(a=a.coordinate,this.f(this.a(a)),ox(this,a));return!0}function kx(){this.a=null;var a=this.D();a&&0!==Cb(a)||this.f(null);return!1}function lx(){var a=qj();return function(){return a.Polygon}}function mx(){var a=qj();return function(){return a.Point}}function px(a){return function(b){return hb([a,b])}}function qx(a,b){return a[0]==b[0]?function(c){return hb([a,[c[0],b[1]]])}:a[1]==b[1]?function(c){return hb([a,[b[0],c[1]]])}:null} function nx(a,b,c){function d(a,b){return Dd(e,a)-Dd(e,b)}var e=c.ab(b),f=a.D();if(f){f=[[[f[0],f[1]],[f[0],f[3]]],[[f[0],f[3]],[f[2],f[3]]],[[f[2],f[3]],[f[2],f[1]]],[[f[2],f[1]],[f[0],f[1]]]];f.sort(d);f=f[0];var g=vd(e,f),h=c.Pa(g);if(10>=Cd(b,h))return b=c.Pa(f[0]),c=c.Pa(f[1]),b=Bd(h,b),c=Bd(h,c),a.C=10>=Math.sqrt(Math.min(b,c)),a.C&&(g=b>c?f[1]:f[0]),g}return null}function ox(a,b){var c=a.B;c?c.V().ua(b):(c=new E(new L(b)),a.B=c,a.G.ba().Eb(c))} gx.prototype.setMap=function(a){this.s.setMap(a);this.G.setMap(a);Kn.prototype.setMap.call(this,a)};gx.prototype.D=function(){return this.j};gx.prototype.f=function(a){this.j=a?a:null;var b=this.o;b?a?b.Wa(gl(a)):b.Wa(void 0):(this.o=b=a?new E(gl(a)):new E({}),this.s.ba().Eb(b));this.b(new rx(this.j))};function rx(a){Na.call(this,sx);this.b=a}v(rx,Na);var sx="extentchanged";function tx(a){Kn.call(this,{handleDownEvent:ux,handleDragEvent:vx,handleEvent:wx,handleUpEvent:xx});this.rb=a.condition?a.condition:Jn;this.Xa=function(a){return Fn(a)&&En(a)};this.Ua=a.deleteCondition?a.deleteCondition:this.Xa;this.wa=this.f=null;this.oa=[0,0];this.C=this.G=!1;this.a=new ah;this.$=void 0!==a.pixelTolerance?a.pixelTolerance:10;this.o=this.la=!1;this.j=[];this.B=new N({source:new J({useSpatialIndex:!1,wrapX:!!a.wrapX}),style:a.style?a.style:yx(),updateWhileAnimating:!0,updateWhileInteracting:!0}); this.aa={Point:this.wo,LineString:this.Wi,LinearRing:this.Wi,Polygon:this.xo,MultiPoint:this.uo,MultiLineString:this.to,MultiPolygon:this.vo,Circle:this.Lr,GeometryCollection:this.so};this.s=a.features;this.s.forEach(this.Mg,this);y(this.s,"add",this.qo,this);y(this.s,"remove",this.ro,this);this.N=null}v(tx,Kn);k=tx.prototype;k.Mg=function(a){var b=a.V();b&&b.U()in this.aa&&this.aa[b.U()].call(this,a,b);(b=this.R)&&b.c&&this.c()&&zx(this,this.oa,b);y(a,"change",this.Vi,this)}; function Ax(a,b){a.C||(a.C=!0,a.b(new Bx("modifystart",a.s,b)))}function Cx(a,b){Dx(a,b);a.f&&0===a.s.rc()&&(a.B.ba().Ib(a.f),a.f=null);Ja(b,"change",a.Vi,a)}function Dx(a,b){a=a.a;var c=[];a.forEach(function(a){b===a.feature&&c.push(a)});for(var d=c.length-1;0<=d;--d)a.remove(c[d])}k.Na=function(a){this.f&&!a&&(this.B.ba().Ib(this.f),this.f=null);Kn.prototype.Na.call(this,a)};k.setMap=function(a){this.B.setMap(a);Kn.prototype.setMap.call(this,a)};k.qo=function(a){this.Mg(a.element)}; k.Vi=function(a){this.o||(a=a.target,Cx(this,a),this.Mg(a))};k.ro=function(a){Cx(this,a.element)};k.wo=function(a,b){var c=b.T();a={feature:a,geometry:b,sa:[c,c]};this.a.Ha(b.D(),a)};k.uo=function(a,b){var c=b.T(),d;var e=0;for(d=c.length;em?h[1]:h[0]),Ex(a,l),m=1,c=f.length;mn&&(n=0);f=g.geometry;var p=d=f.T();var q=!1;switch(f.U()){case "MultiLineString":2c&&(a.index+=e)})}function yx(){var a=qj();return function(){return a.Point}}function Bx(a,b,c){Na.call(this,a);this.features=b;this.mapBrowserEvent=c}v(Bx,Na);function Jx(a){vn.call(this,{handleEvent:Kx});a=a?a:{};this.C=a.condition?a.condition:En;this.v=a.addCondition?a.addCondition:Gd;this.B=a.removeCondition?a.removeCondition:Gd;this.G=a.toggleCondition?a.toggleCondition:Gn;this.o=a.multi?a.multi:!1;this.l=a.filter?a.filter:Fd;this.j=a.hitTolerance?a.hitTolerance:0;this.f=new N({source:new J({useSpatialIndex:!1,features:a.features,wrapX:a.wrapX}),style:a.style?a.style:Lx(),updateWhileAnimating:!0,updateWhileInteracting:!0});if(a.layers)if("function"=== typeof a.layers)a=a.layers;else{var b=a.layers;a=function(a){return gd(b,a)}}else a=Fd;this.s=a;this.a={};a=this.f.ba().i;y(a,"add",this.yo,this);y(a,"remove",this.Co,this)}v(Jx,vn);k=Jx.prototype;k.zo=function(){return this.f.ba().i};k.Ao=function(){return this.j};k.Bo=function(a){a=x(a);return this.a[a]}; function Kx(a){if(!this.C(a))return!0;var b=this.v(a),c=this.B(a),d=this.G(a),e=!b&&!c&&!d,f=a.map,g=this.f.ba().i,h=[],l=[];if(e){xa(this.a);f.Ve(a.pixel,function(a,b){if(this.l(a,b))return l.push(a),a=x(a),this.a[a]=b,!this.o}.bind(this),{layerFilter:this.s,hitTolerance:this.j});for(e=g.rc()-1;0<=e;--e){f=g.item(e);var m=l.indexOf(f);-1b?g[1]:g[0],f=d.Pa(h)}else this.G&&(h=vd(c,g),f=d.Pa(h),Cd(b,f)<=this.f&&(e=!0,this.$&&(c=d.Pa(g[0]),l=d.Pa(g[1]),c=Bd(f,c),b=Bd(f,l),l=Math.sqrt(Math.min(c, b)),l=l<=this.f)))&&(h=c>b?g[1]:g[0],f=d.Pa(h));e&&(f=[Math.round(f[0]),Math.round(f[1])])}d=h;e&&(a.coordinate=d.slice(0,2),a.pixel=f);return Ln.call(this,a)}function Qx(){var a=za(this.s);a.length&&(a.forEach(this.jk,this),this.s={});return!1}function Rx(a,b){return Dd(this.B,a.sa)-Dd(this.B,b.sa)};function Sx(a){Kn.call(this,{handleDownEvent:Tx,handleDragEvent:Ux,handleMoveEvent:Vx,handleUpEvent:Wx});a=a?a:{};this.f=void 0;this.a=null;this.o=void 0!==a.features?a.features:null;if(a.layers)if("function"===typeof a.layers)var b=a.layers;else{var c=a.layers;b=function(a){return gd(c,a)}}else b=Fd;this.B=b;this.s=a.hitTolerance?a.hitTolerance:0;this.j=null;y(this,Ya("active"),this.C,this)}v(Sx,Kn); function Tx(a){this.j=Xx(this,a.pixel,a.map);if(!this.a&&this.j){this.a=a.coordinate;Vx.call(this,a);var b=this.o||new bb([this.j]);this.b(new Yx("translatestart",b,a.coordinate));return!0}return!1}function Wx(a){if(this.a){this.a=null;Vx.call(this,a);var b=this.o||new bb([this.j]);this.b(new Yx("translateend",b,a.coordinate));return!0}return!1} function Ux(a){if(this.a){a=a.coordinate;var b=a[0]-this.a[0],c=a[1]-this.a[1],d=this.o||new bb([this.j]);d.forEach(function(a){var d=a.V();d.translate(b,c);a.Wa(d)});this.a=a;this.b(new Yx("translating",d,a))}}function Vx(a){var b=a.map.Jc();Xx(this,a.pixel,a.map)?(this.f=void 0!==this.f?this.f:b.style.cursor,b.style.cursor=this.a?"-webkit-grabbing":"-webkit-grab",b.style.cursor=this.a?"grabbing":"grab"):void 0!==this.f&&(b.style.cursor=this.f,this.f=void 0)} function Xx(a,b,c){return c.Ve(b,function(a){if(!this.o||gd(this.o.a,a))return a}.bind(a),{layerFilter:a.B,hitTolerance:a.s})}Sx.prototype.G=function(){return this.s};Sx.prototype.N=function(a){this.s=a};Sx.prototype.setMap=function(a){var b=this.R;Kn.prototype.setMap.call(this,a);Zx(this,b)};Sx.prototype.C=function(){Zx(this,null)};function Zx(a,b){var c=a.R,d=a.c();c&&d||void 0===a.f||(c||(c=b),c.Jc().style.cursor=a.f,a.f=void 0)} function Yx(a,b,c){Na.call(this,a);this.features=b;this.coordinate=c}v(Yx,Na);function X(a){a=a?a:{};var b=wa({},a);delete b.gradient;delete b.radius;delete b.blur;delete b.shadow;delete b.weight;N.call(this,b);this.j=null;this.X=void 0!==a.shadow?a.shadow:250;this.aa=void 0;this.N=null;y(this,Ya($x),this.qm,this);this.Wj(a.gradient?a.gradient:ay);this.Qj(void 0!==a.blur?a.blur:15);this.qd(void 0!==a.radius?a.radius:8);y(this,Ya(by),this.Ag,this);y(this,Ya(cy),this.Ag,this);this.Ag();var c=a.weight?a.weight:"weight",d;"string"===typeof c?d=function(a){return a.get(c)}:d=c; this.f(function(a){a=d(a);a=void 0!==a?Mb(a,0,1):1;var b=255*a|0,c=this.N[b];c||(c=[new lj({image:new vl({opacity:a,src:this.aa})})],this.N[b]=c);return c}.bind(this));this.set(Gl,null);y(this,"render",this.Hm,this)}v(X,N);var ay=["#00f","#0ff","#0f0","#ff0","#f00"];k=X.prototype;k.$h=function(){return this.get(by)};k.fi=function(){return this.get($x)};k.aj=function(){return this.get(cy)}; k.qm=function(){for(var a=this.fi(),b=pd(1,256),c=b.createLinearGradient(0,0,1,256),d=1/(a.length-1),e=0,f=a.length;eTerms of Use'});hy.prototype.X=function(){return this.i};hy.prototype.$=function(){return this.o}; hy.prototype.la=function(a){if(200!=a.statusCode||"OK"!=a.statusDescription||"ValidCredentials"!=a.authenticationResultCode||1!=a.resourceSets.length||1!=a.resourceSets[0].resources.length)Ci(this,"error");else{var b=a.brandLogoUri;-1==b.indexOf("https")&&(b=b.replace("http","https"));var c=a.resourceSets[0].resources[0],d=-1==this.v?c.zoomMax:this.v;a=wi(this.c);var e=yi({extent:a,minZoom:c.zoomMin,maxZoom:d,tileSize:(c.imageWidth==c.imageHeight?c.imageWidth:[c.imageWidth,c.imageHeight])/this.vb()}); this.tileGrid=e;var f=this.N,g=this.B;this.tileUrlFunction=oi(c.imageUrlSubdomains.map(function(a){var b=[0,0,0],d=c.imageUrl.replace("{subdomain}",a).replace("{culture}",f);return function(a){if(a)return ki(a[0],a[1],-a[2]-1,b),a=d,g&&(a+="&dpi=d1&device=mobile"),a.replace("{quadkey}",li(b))}}));if(c.imageryProviders){var h=Kc(Lc("EPSG:4326"),this.c);a=c.imageryProviders.map(function(a){var b=a.attribution,c={};a.coverageAreas.forEach(function(a){var b=a.zoomMin,f=Math.min(a.zoomMax,d);a=a.bbox; a=Lb([a[1],a[0],a[3],a[2]],h);var g;for(g=b;g<=f;++g){var l=g.toString();b=af(e,a,g);l in c?c[l].push(b):c[l]=[b]}});return new zi({html:b,tileRanges:c})});a.push(iy);this.za(a)}this.C=b;Ci(this,"ready")}};function jy(a){a=a||{};var b=void 0!==a.projection?a.projection:"EPSG:3857",c=void 0!==a.tileGrid?a.tileGrid:yi({extent:wi(b),maxZoom:a.maxZoom,minZoom:a.minZoom,tileSize:a.tileSize});A.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,crossOrigin:a.crossOrigin,logo:a.logo,opaque:a.opaque,projection:b,reprojectionErrorThreshold:a.reprojectionErrorThreshold,tileGrid:c,tileLoadFunction:a.tileLoadFunction,tilePixelRatio:a.tilePixelRatio,tileUrlFunction:a.tileUrlFunction,url:a.url,urls:a.urls, wrapX:void 0!==a.wrapX?a.wrapX:!0})}v(jy,A);function ky(a){this.v=a.account;this.B=a.map||"";this.i=a.config||{};this.o={};jy.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,crossOrigin:a.crossOrigin,logo:a.logo,maxZoom:void 0!==a.maxZoom?a.maxZoom:18,minZoom:a.minZoom,projection:a.projection,state:"loading",wrapX:a.wrapX});ly(this)}v(ky,jy);k=ky.prototype;k.wl=function(){return this.i};k.Hr=function(a){wa(this.i,a);ly(this)};k.hr=function(a){this.i=a||{};ly(this)}; function ly(a){var b=JSON.stringify(a.i);if(a.o[b])my(a,a.o[b]);else{var c="https://"+a.v+".cartodb.com/api/v1/map";a.B&&(c+="/named/"+a.B);var d=new XMLHttpRequest;d.addEventListener("load",a.sm.bind(a,b));d.addEventListener("error",a.rm.bind(a));d.open("POST",c);d.setRequestHeader("Content-type","application/json");d.send(JSON.stringify(a.i))}} k.sm=function(a,b){b=b.target;if(!b.status||200<=b.status&&300>b.status){try{var c=JSON.parse(b.responseText)}catch(d){Ci(this,"error");return}my(this,c);this.o[a]=c;Ci(this,"ready")}else Ci(this,"error")};k.rm=function(){Ci(this,"error")};function my(a,b){a.pb("https://"+b.cdn_url.https+"/"+a.v+"/api/v1/map/"+b.layergroupid+"/{z}/{x}/{y}.png")};function O(a){J.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,wrapX:a.wrapX});this.N=void 0;this.B=void 0!==a.distance?a.distance:20;this.oa=!1;this.G=[];this.Va=a.geometryFunction||function(a){a=a.V();gb(a instanceof L,10);return a};this.v=a.source;this.v.H("change",O.prototype.ih,this)}v(O,J);k=O.prototype;k.Po=function(){return this.B};k.vc=function(){return this.v};k.re=function(a,b,c){this.v.re(a,b,c);b!==this.N&&(this.clear(),this.N=b,ny(this),this.yd(this.G))}; k.Qo=function(a){this.B=a;this.ih()};k.tr=function(a){(this.oa=a)||this.ih()};k.ih=function(){this.oa||(this.clear(),ny(this),this.yd(this.G),this.u())};function ny(a){if(void 0!==a.N){a.G.length=0;for(var b=ib(),c=a.B*a.N,d=a.v.Rc(),e={},f=0,g=d.length;fm*l?h*g/(m*p):l*g/(n*p),SETVIEWCENTERX:f[0],SETVIEWCENTERY:f[1]};wa(e,this.f);d=py(d,e);d=new Gw(a,b,c,this.j,d,this.X,this.i);y(d,"change",this.l,this)}else d=null;this.O=d;this.G=this.g;return d};k.Xo=function(){return this.i};k.$o=function(a){wa(this.f,a);this.u()};k.Zo=function(a){this.O=null;this.i=a;this.u()};function sy(a){var b=a.imageExtent,c=void 0!==a.crossOrigin?a.crossOrigin:null,d=void 0!==a.imageLoadFunction?a.imageLoadFunction:Jk;Dk.call(this,{attributions:a.attributions,logo:a.logo,projection:Lc(a.projection)});this.O=new Gw(b,void 0,1,this.j,a.url,c,d);this.i=a.imageSize?a.imageSize:null;y(this.O,"change",this.l,this)}v(sy,Dk);sy.prototype.ad=function(a){return Jb(a,this.O.D())?this.O:null}; sy.prototype.l=function(a){if(2==this.O.getState()){var b=this.O.D(),c=this.O.W();if(this.i){var d=this.i[0];var e=this.i[1]}else d=c.width,e=c.height;b=Math.ceil(Eb(b)/(Fb(b)/e));if(b!=d){b=pd(b,e);var f=b.canvas;b.drawImage(c,0,0,d,e,0,0,f.width,f.height);this.O.sh(f)}}Dk.prototype.l.call(this,a)};function ty(a){a=a||{};Dk.call(this,{attributions:a.attributions,logo:a.logo,projection:a.projection,resolutions:a.resolutions});this.oa=void 0!==a.crossOrigin?a.crossOrigin:null;this.f=a.url;this.B=void 0!==a.imageLoadFunction?a.imageLoadFunction:Jk;this.i=a.params||{};this.s=!0;uy(this);this.$=a.serverType;this.wa=void 0!==a.hidpi?a.hidpi:!0;this.O=null;this.G=[0,0];this.X=0;this.N=void 0!==a.ratio?a.ratio:1.5}v(ty,Dk);var vy=[101,101];k=ty.prototype; k.fp=function(a,b,c,d){if(void 0!==this.f){var e=Hb(a,b,0,vy),f={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.i.LAYERS};wa(f,this.i,d);d=Math.floor((e[3]-a[1])/b);f[this.s?"I":"X"]=Math.floor((a[0]-e[0])/b);f[this.s?"J":"Y"]=d;return wy(this,e,vy,1,Lc(c),f)}};k.hp=function(){return this.i}; k.ad=function(a,b,c,d){if(void 0===this.f)return null;b=Ek(this,b);1==c||this.wa&&void 0!==this.$||(c=1);var e=b/c,f=Gb(a),g=Hb(f,e,0,[Math.ceil(Eb(a)/e),Math.ceil(Fb(a)/e)]);a=Hb(f,e,0,[Math.ceil(this.N*Eb(a)/e),Math.ceil(this.N*Fb(a)/e)]);if((f=this.O)&&this.X==this.g&&f.resolution==b&&f.a==c&&pb(f.D(),g))return f;g={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};wa(g,this.i);this.G[0]=Math.round(Eb(a)/e);this.G[1]=Math.round(Fb(a)/e);d=wy(this,a,this.G,c,d,g); this.O=new Gw(a,b,c,this.j,d,this.oa,this.B);this.X=this.g;y(this.O,"change",this.l,this);return this.O};k.gp=function(){return this.B}; function wy(a,b,c,d,e,f){gb(void 0!==a.f,9);f[a.s?"CRS":"SRS"]=e.tb;"STYLES"in a.i||(f.STYLES="");if(1!=d)switch(a.$){case "geoserver":d=90*d+.5|0;f.FORMAT_OPTIONS="FORMAT_OPTIONS"in f?f.FORMAT_OPTIONS+(";dpi:"+d):"dpi:"+d;break;case "mapserver":f.MAP_RESOLUTION=90*d;break;case "carmentaserver":case "qgis":f.DPI=90*d;break;default:gb(!1,8)}f.WIDTH=c[0];f.HEIGHT=c[1];c=e.b;var g;a.s&&"ne"==c.substr(0,2)?g=[b[1],b[0],b[3],b[2]]:g=b;f.BBOX=g.join(",");return py(a.f,f)}k.ip=function(){return this.f}; k.jp=function(a){this.O=null;this.B=a;this.u()};k.kp=function(a){a!=this.f&&(this.f=a,this.O=null,this.u())};k.lp=function(a){wa(this.i,a);uy(this);this.O=null;this.u()};function uy(a){a.s=0<=td(a.i.VERSION||"1.3.0")};function xy(a){a=a||{};var b;void 0!==a.attributions?b=a.attributions:b=[yy];jy.call(this,{attributions:b,cacheSize:a.cacheSize,crossOrigin:void 0!==a.crossOrigin?a.crossOrigin:"anonymous",opaque:void 0!==a.opaque?a.opaque:!0,maxZoom:void 0!==a.maxZoom?a.maxZoom:19,reprojectionErrorThreshold:a.reprojectionErrorThreshold,tileLoadFunction:a.tileLoadFunction,url:void 0!==a.url?a.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png",wrapX:a.wrapX})}v(xy,jy);var yy=new zi({html:'© OpenStreetMap contributors.'});(function(){var a={},b={na:a};(function(c){if("object"===typeof a&&"undefined"!==typeof b)b.na=c();else{var d;"undefined"!==typeof window?d=window:"undefined"!==typeof global?d=global:"undefined"!==typeof self?d=self:d=this;d.es=c()}})(function(){return function g(a,b,f){function d(h,l){if(!b[h]){if(!a[h]){var m="function"==typeof require&&require;if(!l&&m)return m(h,!0);if(e)return e(h,!0);l=Error("Cannot find module '"+h+"'");throw l.code="MODULE_NOT_FOUND",l;}l=b[h]={na:{}};a[h][0].call(l.na,function(b){var e= a[h][1][b];return d(e?e:b)},l,l.na,g,a,b,f)}return b[h].na}for(var e="function"==typeof require&&require,m=0;mthis.Ok;)this.Xd.shift().callback(null,null)};l.prototype.Ih=function(){if(0===this.Me&& 0Stamen Design, under CC BY 3.0.'}),yy],Iy={terrain:{Mb:"jpg",opaque:!0},"terrain-background":{Mb:"jpg",opaque:!0},"terrain-labels":{Mb:"png",opaque:!1},"terrain-lines":{Mb:"png",opaque:!1},"toner-background":{Mb:"png",opaque:!0},toner:{Mb:"png",opaque:!0},"toner-hybrid":{Mb:"png",opaque:!1},"toner-labels":{Mb:"png",opaque:!1},"toner-lines":{Mb:"png",opaque:!1},"toner-lite":{Mb:"png", opaque:!0},watercolor:{Mb:"jpg",opaque:!0}},Hy={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:1,maxZoom:16}};function Ky(a){a=a||{};A.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,crossOrigin:a.crossOrigin,logo:a.logo,projection:a.projection,reprojectionErrorThreshold:a.reprojectionErrorThreshold,tileGrid:a.tileGrid,tileLoadFunction:a.tileLoadFunction,url:a.url,urls:a.urls,wrapX:void 0!==a.wrapX?a.wrapX:!0});this.i=a.params||{};this.o=ib();Ei(this,Ly(this))}v(Ky,A);function Ly(a){var b=0,c=[],d;for(d in a.i)c[b++]=d+"-"+a.i[d];return c.join("/")}Ky.prototype.v=function(){return this.i}; Ky.prototype.vb=function(a){return a}; Ky.prototype.Yc=function(a,b,c){var d=this.tileGrid;d||(d=this.Ob(c));if(!(d.b.length<=a[0])){var e=d.Ya(a,this.o),f=mf(d.gb(a[0]),this.l);1!=b&&(f=Uh(f,b,this.l));d={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};wa(d,this.i);var g=this.urls;g?(c=c.tb.split(":").pop(),d.SIZE=f[0]+","+f[1],d.BBOX=e.join(","),d.BBOXSR=c,d.IMAGESR=c,d.DPI=Math.round(d.DPI?d.DPI*b:90*b),a=(1==g.length?g[0]:g[Sb((a[1]<a.status){try{var b=JSON.parse(a.responseText)}catch(c){this.wf();return}this.lj(b)}else this.wf()};k.mp=function(){this.wf()};k.dm=function(){return this.i}; k.lj=function(a){var b=Lc("EPSG:4326"),c=this.c;if(void 0!==a.bounds){var d=Kc(b,c);var e=Lb(a.bounds,d)}var f=a.minzoom||0;d=a.maxzoom||22;this.tileGrid=c=yi({extent:wi(c),maxZoom:d,minZoom:f});this.tileUrlFunction=ni(a.tiles,c);if(void 0!==a.attribution&&!this.j){b=void 0!==e?e:b.D();e={};for(var g;f<=d;++f)g=f.toString(),e[g]=[af(c,b,f)];this.za([new zi({html:a.attribution,tileRanges:e})])}this.i=a;Ci(this,"ready")};k.wf=function(){Ci(this,"error")};function Py(a){Di.call(this,{projection:Lc("EPSG:3857"),state:"loading"});this.s=void 0!==a.preemptive?a.preemptive:!0;this.o=pi;this.f=void 0;this.i=a.jsonp||!1;if(a.url)if(this.i)gy(a.url,this.Qg.bind(this),this.xf.bind(this));else{var b=new XMLHttpRequest;b.addEventListener("load",this.rp.bind(this));b.addEventListener("error",this.qp.bind(this));b.open("GET",a.url);b.send()}else a.tileJSON?this.Qg(a.tileJSON):gb(!1,51)}v(Py,Di);k=Py.prototype; k.rp=function(a){a=a.target;if(!a.status||200<=a.status&&300>a.status){try{var b=JSON.parse(a.responseText)}catch(c){this.xf();return}this.Qg(b)}else this.xf()};k.qp=function(){this.xf()};k.am=function(){return this.f};k.jl=function(a,b,c,d,e){this.tileGrid?(b=this.tileGrid.$e(a,b),Qy(this.cd(b[0],b[1],b[2],1,this.c),a,c,d,e)):!0===e?setTimeout(function(){c.call(d,null)},0):c.call(d,null)};k.xf=function(){Ci(this,"error")}; k.Qg=function(a){var b=Lc("EPSG:4326"),c=this.c;if(void 0!==a.bounds){var d=Kc(b,c);var e=Lb(a.bounds,d)}var f=a.minzoom||0;d=a.maxzoom||22;this.tileGrid=c=yi({extent:wi(c),maxZoom:d,minZoom:f});this.f=a.template;var g=a.grids;if(g){this.o=ni(g,c);if(void 0!==a.attribution){b=void 0!==e?e:b.D();for(e={};f<=d;++f)g=f.toString(),e[g]=[af(c,b,f)];this.za([new zi({html:a.attribution,tileRanges:e})])}Ci(this,"ready")}else Ci(this,"error")}; k.cd=function(a,b,c,d,e){var f=this.cc(a,b,c);if(this.a.b.hasOwnProperty(f))return this.a.get(f);a=[a,b,c];b=Fi(this,a,e);d=this.o(b,d,e);d=new Ry(a,void 0!==d?0:4,void 0!==d?d:"",this.tileGrid.Ya(a),this.s,this.i);this.a.set(f,d);return d};k.zh=function(a,b,c){a=this.cc(a,b,c);this.a.b.hasOwnProperty(a)&&this.a.get(a)};function Ry(a,b,c,d,e,f){Yh.call(this,a,b);this.o=c;this.g=d;this.I=e;this.c=this.l=this.f=null;this.s=f}v(Ry,Yh);k=Ry.prototype;k.W=function(){return null}; k.getData=function(a){if(!this.f||!this.l)return null;var b=this.f[Math.floor((1-(a[1]-this.g[1])/(this.g[3]-this.g[1]))*this.f.length)];if("string"!==typeof b)return null;b=b.charCodeAt(Math.floor((a[0]-this.g[0])/(this.g[2]-this.g[0])*b.length));93<=b&&b--;35<=b&&b--;b-=32;a=null;b in this.l&&(b=this.l[b],this.c&&b in this.c?a=this.c[b]:a=b);return a}; function Qy(a,b,c,d,e){0==a.state&&!0===e?(Ia(a,"change",function(){c.call(d,this.getData(b))},a),Sy(a)):!0===e?setTimeout(function(){c.call(d,this.getData(b))}.bind(a),0):c.call(d,a.getData(b))}k.ob=function(){return this.o};k.bf=function(){this.state=3;this.u()};k.mj=function(a){this.f=a.grid;this.l=a.keys;this.c=a.data;this.state=4;this.u()}; function Sy(a){if(0==a.state)if(a.state=1,a.s)gy(a.o,a.mj.bind(a),a.bf.bind(a));else{var b=new XMLHttpRequest;b.addEventListener("load",a.pp.bind(a));b.addEventListener("error",a.op.bind(a));b.open("GET",a.o);b.send()}}k.pp=function(a){a=a.target;if(!a.status||200<=a.status&&300>a.status){try{var b=JSON.parse(a.responseText)}catch(c){this.bf();return}this.mj(b)}else this.bf()};k.op=function(){this.bf()};k.load=function(){this.I&&Sy(this)};function Ty(a){a=a||{};var b=a.params||{};A.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,crossOrigin:a.crossOrigin,logo:a.logo,opaque:!("TRANSPARENT"in b?b.TRANSPARENT:1),projection:a.projection,reprojectionErrorThreshold:a.reprojectionErrorThreshold,tileGrid:a.tileGrid,tileLoadFunction:a.tileLoadFunction,url:a.url,urls:a.urls,wrapX:void 0!==a.wrapX?a.wrapX:!0});this.v=void 0!==a.gutter?a.gutter:0;this.i=b;this.o=!0;this.B=a.serverType;this.X=void 0!==a.hidpi?a.hidpi:!0;this.N=""; Uy(this);this.$=ib();Vy(this);Ei(this,Wy(this))}v(Ty,A);k=Ty.prototype; k.sp=function(a,b,c,d){c=Lc(c);var e=this.tileGrid;e||(e=this.Ob(c));b=e.$e(a,b);if(!(e.b.length<=b[0])){var f=e.Ra(b[0]),g=e.Ya(b,this.$);e=mf(e.gb(b[0]),this.l);var h=this.v;0!==h&&(e=Th(e,h,this.l),g=kb(g,f*h,g));h={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.i.LAYERS};wa(h,this.i,d);d=Math.floor((g[3]-a[1])/f);h[this.o?"I":"X"]=Math.floor((a[0]-g[0])/f);h[this.o?"J":"Y"]=d;return Xy(this,b,e,g,1,c,h)}};k.tg=function(){return this.v}; k.cc=function(a,b,c){return this.N+A.prototype.cc.call(this,a,b,c)};k.tp=function(){return this.i}; function Xy(a,b,c,d,e,f,g){var h=a.urls;if(h){g.WIDTH=c[0];g.HEIGHT=c[1];g[a.o?"CRS":"SRS"]=f.tb;"STYLES"in a.i||(g.STYLES="");if(1!=e)switch(a.B){case "geoserver":c=90*e+.5|0;g.FORMAT_OPTIONS="FORMAT_OPTIONS"in g?g.FORMAT_OPTIONS+(";dpi:"+c):"dpi:"+c;break;case "mapserver":g.MAP_RESOLUTION=90*e;break;case "carmentaserver":case "qgis":g.DPI=90*e;break;default:gb(!1,52)}f=f.b;a.o&&"ne"==f.substr(0,2)&&(a=d[0],d[0]=d[1],d[1]=a,a=d[2],d[2]=d[3],d[3]=a);g.BBOX=d.join(",");return py(1==h.length?h[0]:h[Sb((b[1]<< b[0])+b[2],h.length)],g)}}k.vb=function(a){return this.X&&void 0!==this.B?a:1};function Uy(a){var b=0,c=[];if(a.urls){var d;var e=0;for(d=a.urls.length;ef||d>f;)e.push([Math.ceil(c/f),Math.ceil(d/f)]),f+=f;break;case fz:for(;c>f||d>f;)e.push([Math.ceil(c/f),Math.ceil(d/f)]),c>>=1,d>>=1;break;default:gb(!1,53)}e.push([1,1]);e.reverse();f=[1];var g=[0];d=1;for(c=e.length;d=b+this.b&&h.height>=c+this.b)return f={offsetX:h.x+this.b,offsetY:h.y+this.b,image:this.i},this.c[a]=f,d.call(e,this.g,h.x+this.b,h.y+this.b),a=g,b+=this.b,d=c+this.b,h.width-b>h.height-d?(c={x:h.x+b,y:h.y,width:h.width-b,height:h.height},b={x:h.x,y:h.y+d,width:b,height:h.height-d},iz(this,a,c,b)):(c={x:h.x+b,y:h.y,width:h.width-b,height:d},b={x:h.x,y:h.y+d,width:h.width,height:h.height-d}, iz(this,a,c,b)),f}return null};function iz(a,b,c,d){b=[b,1];0this.g||c+this.b>this.g)return null;d=kz(this,!1,a,b,c,d,f);if(!d)return null;a=kz(this,!0,a,b,c,void 0!==e?e:ua,f);return{offsetX:d.offsetX,offsetY:d.offsetY,image:d.image,Pm:a.image}}; function kz(a,b,c,d,e,f,g){var h=b?a.f:a.i,l;var m=0;for(l=h.length;ma?am(2*a):1-am(2*(a-.5))}); r("ol.extent.boundingExtent",hb);r("ol.extent.buffer",kb);r("ol.extent.containsCoordinate",nb);r("ol.extent.containsExtent",pb);r("ol.extent.containsXY",ob);r("ol.extent.createEmpty",ib);r("ol.extent.equals",vb);r("ol.extent.extend",wb);r("ol.extent.getBottomLeft",yb);r("ol.extent.getBottomRight",zb);r("ol.extent.getCenter",Gb);r("ol.extent.getHeight",Fb);r("ol.extent.getIntersection",Ib);r("ol.extent.getSize",function(a){return[a[2]-a[0],a[3]-a[1]]});r("ol.extent.getTopLeft",Bb); r("ol.extent.getTopRight",Ab);r("ol.extent.getWidth",Eb);r("ol.extent.intersects",Jb);r("ol.extent.isEmpty",Db);r("ol.extent.applyTransform",Lb);r("ol.Feature",E);E.prototype.clone=E.prototype.clone;E.prototype.getGeometry=E.prototype.V;E.prototype.getId=E.prototype.pn;E.prototype.getGeometryName=E.prototype.Fl;E.prototype.getStyle=E.prototype.qn;E.prototype.getStyleFunction=E.prototype.Nc;E.prototype.setGeometry=E.prototype.Wa;E.prototype.setStyle=E.prototype.Ig;E.prototype.setId=E.prototype.xc; E.prototype.setGeometryName=E.prototype.pd;r("ol.featureloader.xhr",Oj);r("ol.Geolocation",vw);vw.prototype.getAccuracy=vw.prototype.nl;vw.prototype.getAccuracyGeometry=vw.prototype.ol;vw.prototype.getAltitude=vw.prototype.rn;vw.prototype.getAltitudeAccuracy=vw.prototype.ql;vw.prototype.getHeading=vw.prototype.sn;vw.prototype.getPosition=vw.prototype.tn;vw.prototype.getProjection=vw.prototype.yi;vw.prototype.getSpeed=vw.prototype.$l;vw.prototype.getTracking=vw.prototype.zi; vw.prototype.getTrackingOptions=vw.prototype.ji;vw.prototype.setProjection=vw.prototype.Ai;vw.prototype.setTracking=vw.prototype.lf;vw.prototype.setTrackingOptions=vw.prototype.dk;r("ol.Graticule",Bw);Bw.prototype.getMap=Bw.prototype.xn;Bw.prototype.getMeridians=Bw.prototype.Pl;Bw.prototype.getParallels=Bw.prototype.Xl;Bw.prototype.setMap=Bw.prototype.setMap;r("ol.has.DEVICE_PIXEL_RATIO",he);r("ol.has.CANVAS",je);r("ol.has.DEVICE_ORIENTATION",ke);r("ol.has.GEOLOCATION",le);r("ol.has.TOUCH",me); r("ol.has.WEBGL",be);Gw.prototype.getImage=Gw.prototype.W;Gw.prototype.load=Gw.prototype.load;Zh.prototype.getImage=Zh.prototype.W;r("ol.inherits",v);r("ol.interaction.defaults",yo);r("ol.Kinetic",tn);r("ol.loadingstrategy.all",Pj);r("ol.loadingstrategy.bbox",function(a){return[a]});r("ol.loadingstrategy.tile",function(a){return function(b,c){c=a.dd(c);b=af(a,b,c);var d=[];c=[c,0,0];for(c[1]=b.ga;c[1]<=b.da;++c[1])for(c[2]=b.ha;c[2]<=b.ka;++c[2])d.push(a.Ya(c));return d}});r("ol.Map",Q); Q.prototype.addControl=Q.prototype.Uk;Q.prototype.addInteraction=Q.prototype.Vk;Q.prototype.addLayer=Q.prototype.Nh;Q.prototype.addOverlay=Q.prototype.Oh;Q.prototype.forEachFeatureAtPixel=Q.prototype.Ve;Q.prototype.forEachLayerAtPixel=Q.prototype.Dn;Q.prototype.hasFeatureAtPixel=Q.prototype.Om;Q.prototype.getEventCoordinate=Q.prototype.pg;Q.prototype.getEventPixel=Q.prototype.Xe;Q.prototype.getTarget=Q.prototype.yg;Q.prototype.getTargetElement=Q.prototype.Jc;Q.prototype.getCoordinateFromPixel=Q.prototype.ab; Q.prototype.getControls=Q.prototype.xl;Q.prototype.getOverlays=Q.prototype.Vl;Q.prototype.getOverlayById=Q.prototype.Ul;Q.prototype.getInteractions=Q.prototype.Gl;Q.prototype.getLayerGroup=Q.prototype.Nb;Q.prototype.getLayers=Q.prototype.Bi;Q.prototype.getPixelFromCoordinate=Q.prototype.Pa;Q.prototype.getSize=Q.prototype.Rb;Q.prototype.getView=Q.prototype.Z;Q.prototype.getViewport=Q.prototype.hm;Q.prototype.renderSync=Q.prototype.dr;Q.prototype.render=Q.prototype.render; Q.prototype.removeControl=Q.prototype.Xq;Q.prototype.removeInteraction=Q.prototype.Yq;Q.prototype.removeLayer=Q.prototype.$q;Q.prototype.removeOverlay=Q.prototype.ar;Q.prototype.setLayerGroup=Q.prototype.Xj;Q.prototype.setSize=Q.prototype.th;Q.prototype.setTarget=Q.prototype.mf;Q.prototype.setView=Q.prototype.En;Q.prototype.updateSize=Q.prototype.Ud;qm.prototype.originalEvent=qm.prototype.originalEvent;qm.prototype.pixel=qm.prototype.pixel;qm.prototype.coordinate=qm.prototype.coordinate; qm.prototype.dragging=qm.prototype.dragging;pm.prototype.map=pm.prototype.map;pm.prototype.frameState=pm.prototype.frameState;r("ol.Object",Wa);Wa.prototype.get=Wa.prototype.get;Wa.prototype.getKeys=Wa.prototype.P;Wa.prototype.getProperties=Wa.prototype.L;Wa.prototype.set=Wa.prototype.set;Wa.prototype.setProperties=Wa.prototype.J;Wa.prototype.unset=Wa.prototype.S;ab.prototype.key=ab.prototype.key;ab.prototype.oldValue=ab.prototype.oldValue;r("ol.Observable",Sa);r("ol.Observable.unByKey",Ta); Sa.prototype.changed=Sa.prototype.u;Sa.prototype.dispatchEvent=Sa.prototype.b;Sa.prototype.getRevision=Sa.prototype.M;Sa.prototype.on=Sa.prototype.H;Sa.prototype.once=Sa.prototype.once;Sa.prototype.un=Sa.prototype.K;r("ol.Overlay",Oo);Oo.prototype.getElement=Oo.prototype.ke;Oo.prototype.getId=Oo.prototype.Fn;Oo.prototype.getMap=Oo.prototype.nf;Oo.prototype.getOffset=Oo.prototype.gi;Oo.prototype.getPosition=Oo.prototype.Ci;Oo.prototype.getPositioning=Oo.prototype.hi;Oo.prototype.setElement=Oo.prototype.Sj; Oo.prototype.setMap=Oo.prototype.setMap;Oo.prototype.setOffset=Oo.prototype.Zj;Oo.prototype.setPosition=Oo.prototype.pf;Oo.prototype.setPositioning=Oo.prototype.bk;r("ol.proj.METERS_PER_UNIT",pc);r("ol.proj.setProj4",function(a){rc=a});r("ol.proj.getPointResolution",Jc);r("ol.proj.addEquivalentProjections",Mc);r("ol.proj.addProjection",Qc);r("ol.proj.addCoordinateTransforms",Sc);r("ol.proj.fromLonLat",function(a,b){return Xc(a,"EPSG:4326",void 0!==b?b:"EPSG:3857")}); r("ol.proj.toLonLat",function(a,b){return Xc(a,void 0!==b?b:"EPSG:3857","EPSG:4326")});r("ol.proj.get",Lc);r("ol.proj.equivalent",Uc);r("ol.proj.getTransform",Vc);r("ol.proj.transform",Xc);r("ol.proj.transformExtent",Yc);r("ol.render.toContext",function(a,b){var c=a.canvas,d=b?b:{};b=d.pixelRatio||he;if(d=d.size)c.width=d[0]*b,c.height=d[1]*b,c.style.width=d[0]+"px",c.style.height=d[1]+"px";c=[0,0,c.width,c.height];d=Ce(ve(),b,b);return new Ge(a,b,c,d,0)});r("ol.size.toSize",mf);r("ol.Sphere",hc); hc.prototype.geodesicArea=hc.prototype.a;hc.prototype.haversineDistance=hc.prototype.b;r("ol.Sphere.getLength",lc);r("ol.Sphere.getArea",nc);Yh.prototype.getTileCoord=Yh.prototype.i;Yh.prototype.load=Yh.prototype.load;r("ol.tilegrid.createXYZ",yi);Yy.prototype.getFormat=Yy.prototype.Gn;Yy.prototype.setFeatures=Yy.prototype.Tj;Yy.prototype.setProjection=Yy.prototype.Jg;Yy.prototype.setLoader=Yy.prototype.Yj;r("ol.View",P);P.prototype.animate=P.prototype.animate;P.prototype.getAnimating=P.prototype.$c; P.prototype.cancelAnimations=P.prototype.Ad;P.prototype.constrainCenter=P.prototype.Xc;P.prototype.constrainResolution=P.prototype.constrainResolution;P.prototype.constrainRotation=P.prototype.constrainRotation;P.prototype.getCenter=P.prototype.va;P.prototype.calculateExtent=P.prototype.zd;P.prototype.getMaxResolution=P.prototype.Hn;P.prototype.getMinResolution=P.prototype.Jn;P.prototype.getMaxZoom=P.prototype.In;P.prototype.setMaxZoom=P.prototype.qr;P.prototype.getMinZoom=P.prototype.Kn; P.prototype.setMinZoom=P.prototype.rr;P.prototype.getProjection=P.prototype.Ln;P.prototype.getResolution=P.prototype.Ia;P.prototype.getResolutions=P.prototype.Mn;P.prototype.getRotation=P.prototype.Qa;P.prototype.getZoom=P.prototype.ki;P.prototype.getZoomForResolution=P.prototype.af;P.prototype.fit=P.prototype.ng;P.prototype.centerOn=P.prototype.cl;P.prototype.rotate=P.prototype.rotate;P.prototype.setCenter=P.prototype.cb;P.prototype.setResolution=P.prototype.Uc;P.prototype.setRotation=P.prototype.gd; P.prototype.setZoom=P.prototype.Ar;r("ol.xml.getAllTextContent",xj);r("ol.xml.parse",Bj);Wf.prototype.getGL=Wf.prototype.Ip;Wf.prototype.useProgram=Wf.prototype.ld;r("ol.tilegrid.TileGrid",ri);ri.prototype.forEachTileCoord=ri.prototype.Zh;ri.prototype.getMaxZoom=ri.prototype.wj;ri.prototype.getMinZoom=ri.prototype.xj;ri.prototype.getOrigin=ri.prototype.kd;ri.prototype.getResolution=ri.prototype.Ra;ri.prototype.getResolutions=ri.prototype.yj;ri.prototype.getTileCoordExtent=ri.prototype.Ya; ri.prototype.getTileCoordForCoordAndResolution=ri.prototype.$e;ri.prototype.getTileCoordForCoordAndZ=ri.prototype.zg;ri.prototype.getTileSize=ri.prototype.gb;ri.prototype.getZForResolution=ri.prototype.dd;r("ol.tilegrid.WMTS",az);az.prototype.getMatrixIds=az.prototype.o;r("ol.tilegrid.WMTS.createFromCapabilitiesMatrixSet",bz);r("ol.style.AtlasManager",jz);r("ol.style.Circle",jj);jj.prototype.setRadius=jj.prototype.qd;r("ol.style.Fill",kj);kj.prototype.clone=kj.prototype.clone; kj.prototype.getColor=kj.prototype.g;kj.prototype.setColor=kj.prototype.c;r("ol.style.Icon",vl);vl.prototype.clone=vl.prototype.clone;vl.prototype.getAnchor=vl.prototype.Gc;vl.prototype.getColor=vl.prototype.zp;vl.prototype.getImage=vl.prototype.W;vl.prototype.getOrigin=vl.prototype.jd;vl.prototype.getSrc=vl.prototype.Ap;vl.prototype.getSize=vl.prototype.gc;vl.prototype.load=vl.prototype.load;r("ol.style.Image",gj);gj.prototype.getOpacity=gj.prototype.La;gj.prototype.getRotateWithView=gj.prototype.zf; gj.prototype.getRotation=gj.prototype.Af;gj.prototype.getScale=gj.prototype.Ma;gj.prototype.getSnapToPixel=gj.prototype.Ze;gj.prototype.setOpacity=gj.prototype.Ld;gj.prototype.setRotation=gj.prototype.Bf;gj.prototype.setScale=gj.prototype.Md;r("ol.style.RegularShape",hj);hj.prototype.clone=hj.prototype.clone;hj.prototype.getAnchor=hj.prototype.Gc;hj.prototype.getAngle=hj.prototype.sj;hj.prototype.getFill=hj.prototype.qa;hj.prototype.getImage=hj.prototype.W;hj.prototype.getOrigin=hj.prototype.jd; hj.prototype.getPoints=hj.prototype.tj;hj.prototype.getRadius=hj.prototype.uj;hj.prototype.getRadius2=hj.prototype.ii;hj.prototype.getSize=hj.prototype.gc;hj.prototype.getStroke=hj.prototype.pa;r("ol.style.Stroke",Og);Og.prototype.clone=Og.prototype.clone;Og.prototype.getColor=Og.prototype.Bp;Og.prototype.getLineCap=Og.prototype.Jl;Og.prototype.getLineDash=Og.prototype.Cp;Og.prototype.getLineDashOffset=Og.prototype.Kl;Og.prototype.getLineJoin=Og.prototype.Ll;Og.prototype.getMiterLimit=Og.prototype.Ql; Og.prototype.getWidth=Og.prototype.Dp;Og.prototype.setColor=Og.prototype.Ep;Og.prototype.setLineCap=Og.prototype.mr;Og.prototype.setLineDash=Og.prototype.setLineDash;Og.prototype.setLineDashOffset=Og.prototype.nr;Og.prototype.setLineJoin=Og.prototype.pr;Og.prototype.setMiterLimit=Og.prototype.sr;Og.prototype.setWidth=Og.prototype.yr;r("ol.style.Style",lj);lj.prototype.clone=lj.prototype.clone;lj.prototype.getGeometry=lj.prototype.V;lj.prototype.getGeometryFunction=lj.prototype.El; lj.prototype.getFill=lj.prototype.qa;lj.prototype.setFill=lj.prototype.Kf;lj.prototype.getImage=lj.prototype.W;lj.prototype.setImage=lj.prototype.sh;lj.prototype.getStroke=lj.prototype.pa;lj.prototype.setStroke=lj.prototype.Lf;lj.prototype.getText=lj.prototype.ra;lj.prototype.setText=lj.prototype.Mf;lj.prototype.getZIndex=lj.prototype.Da;lj.prototype.setGeometry=lj.prototype.Wa;lj.prototype.setZIndex=lj.prototype.jc;r("ol.style.Text",Pr);Pr.prototype.clone=Pr.prototype.clone; Pr.prototype.getFont=Pr.prototype.Cl;Pr.prototype.getOffsetX=Pr.prototype.Rl;Pr.prototype.getOffsetY=Pr.prototype.Sl;Pr.prototype.getFill=Pr.prototype.qa;Pr.prototype.getRotateWithView=Pr.prototype.Fp;Pr.prototype.getRotation=Pr.prototype.Gp;Pr.prototype.getScale=Pr.prototype.Ma;Pr.prototype.getStroke=Pr.prototype.pa;Pr.prototype.getText=Pr.prototype.ra;Pr.prototype.getTextAlign=Pr.prototype.bm;Pr.prototype.getTextBaseline=Pr.prototype.cm;Pr.prototype.setFont=Pr.prototype.Uj; Pr.prototype.setOffsetX=Pr.prototype.$j;Pr.prototype.setOffsetY=Pr.prototype.ak;Pr.prototype.setFill=Pr.prototype.Kf;Pr.prototype.setRotation=Pr.prototype.Hp;Pr.prototype.setScale=Pr.prototype.vj;Pr.prototype.setStroke=Pr.prototype.Lf;Pr.prototype.setText=Pr.prototype.Mf;Pr.prototype.setTextAlign=Pr.prototype.ck;Pr.prototype.setTextBaseline=Pr.prototype.wr;r("ol.source.BingMaps",hy);r("ol.source.BingMaps.TOS_ATTRIBUTION",iy);hy.prototype.getApiKey=hy.prototype.X;hy.prototype.getImagerySet=hy.prototype.$; r("ol.source.CartoDB",ky);ky.prototype.getConfig=ky.prototype.wl;ky.prototype.updateConfig=ky.prototype.Hr;ky.prototype.setConfig=ky.prototype.hr;r("ol.source.Cluster",O);O.prototype.getDistance=O.prototype.Po;O.prototype.getSource=O.prototype.vc;O.prototype.setDistance=O.prototype.Qo;O.prototype.setPause=O.prototype.tr;r("ol.source.Image",Dk);Fk.prototype.image=Fk.prototype.image;r("ol.source.ImageArcGISRest",qy);qy.prototype.getParams=qy.prototype.So;qy.prototype.getImageLoadFunction=qy.prototype.Ro; qy.prototype.getUrl=qy.prototype.To;qy.prototype.setImageLoadFunction=qy.prototype.Uo;qy.prototype.setUrl=qy.prototype.Vo;qy.prototype.updateParams=qy.prototype.Wo;r("ol.source.ImageCanvas",Kk);r("ol.source.ImageMapGuide",ry);ry.prototype.getParams=ry.prototype.Yo;ry.prototype.getImageLoadFunction=ry.prototype.Xo;ry.prototype.updateParams=ry.prototype.$o;ry.prototype.setImageLoadFunction=ry.prototype.Zo;r("ol.source.ImageStatic",sy);r("ol.source.ImageVector",Lk);Lk.prototype.getSource=Lk.prototype.vc; Lk.prototype.getStyle=Lk.prototype.ap;Lk.prototype.getStyleFunction=Lk.prototype.bp;Lk.prototype.setStyle=Lk.prototype.kj;r("ol.source.ImageWMS",ty);ty.prototype.getGetFeatureInfoUrl=ty.prototype.fp;ty.prototype.getParams=ty.prototype.hp;ty.prototype.getImageLoadFunction=ty.prototype.gp;ty.prototype.getUrl=ty.prototype.ip;ty.prototype.setImageLoadFunction=ty.prototype.jp;ty.prototype.setUrl=ty.prototype.kp;ty.prototype.updateParams=ty.prototype.lp;r("ol.source.OSM",xy); r("ol.source.OSM.ATTRIBUTION",yy);r("ol.source.Raster",zy);zy.prototype.setOperation=zy.prototype.B;Dy.prototype.extent=Dy.prototype.extent;Dy.prototype.resolution=Dy.prototype.resolution;Dy.prototype.data=Dy.prototype.data;r("ol.source.Source",Ai);Ai.prototype.getAttributions=Ai.prototype.Ea;Ai.prototype.getLogo=Ai.prototype.Ca;Ai.prototype.getProjection=Ai.prototype.Fa;Ai.prototype.getState=Ai.prototype.getState;Ai.prototype.refresh=Ai.prototype.Aa;Ai.prototype.setAttributions=Ai.prototype.za; r("ol.source.Stamen",Gy);r("ol.source.Tile",Di);Di.prototype.getTileGrid=Di.prototype.fb;Gi.prototype.tile=Gi.prototype.tile;r("ol.source.TileArcGISRest",Ky);Ky.prototype.getParams=Ky.prototype.v;Ky.prototype.updateParams=Ky.prototype.B;r("ol.source.TileDebug",My);r("ol.source.TileImage",A);A.prototype.setRenderReprojectionEdges=A.prototype.Ub;A.prototype.setTileGridForProjection=A.prototype.Vb;r("ol.source.TileJSON",Oy);Oy.prototype.getTileJSON=Oy.prototype.dm;r("ol.source.TileUTFGrid",Py); Py.prototype.getTemplate=Py.prototype.am;Py.prototype.forDataAtCoordinateAndResolution=Py.prototype.jl;r("ol.source.TileWMS",Ty);Ty.prototype.getGetFeatureInfoUrl=Ty.prototype.sp;Ty.prototype.getParams=Ty.prototype.tp;Ty.prototype.updateParams=Ty.prototype.vp;Hi.prototype.getTileLoadFunction=Hi.prototype.ub;Hi.prototype.getTileUrlFunction=Hi.prototype.wb;Hi.prototype.getUrls=Hi.prototype.xb;Hi.prototype.setTileLoadFunction=Hi.prototype.Bb;Hi.prototype.setTileUrlFunction=Hi.prototype.ib; Hi.prototype.setUrl=Hi.prototype.pb;Hi.prototype.setUrls=Hi.prototype.jb;r("ol.source.Vector",J);J.prototype.addFeature=J.prototype.Eb;J.prototype.addFeatures=J.prototype.yd;J.prototype.clear=J.prototype.clear;J.prototype.forEachFeature=J.prototype.Xh;J.prototype.forEachFeatureInExtent=J.prototype.oc;J.prototype.forEachFeatureIntersectingExtent=J.prototype.Yh;J.prototype.getFeaturesCollection=J.prototype.ei;J.prototype.getFeatures=J.prototype.Rc;J.prototype.getFeaturesAtCoordinate=J.prototype.di; J.prototype.getFeaturesInExtent=J.prototype.rg;J.prototype.getClosestFeatureToCoordinate=J.prototype.ai;J.prototype.getExtent=J.prototype.D;J.prototype.getFeatureById=J.prototype.qg;J.prototype.getFormat=J.prototype.pj;J.prototype.getUrl=J.prototype.qj;J.prototype.removeFeature=J.prototype.Ib;Uj.prototype.feature=Uj.prototype.feature;r("ol.source.VectorTile",$y);r("ol.source.WMTS",Z);Z.prototype.getDimensions=Z.prototype.Al;Z.prototype.getFormat=Z.prototype.wp;Z.prototype.getLayer=Z.prototype.xp; Z.prototype.getMatrixSet=Z.prototype.Ol;Z.prototype.getRequestEncoding=Z.prototype.Zl;Z.prototype.getStyle=Z.prototype.yp;Z.prototype.getVersion=Z.prototype.gm;Z.prototype.updateDimensions=Z.prototype.Ir; r("ol.source.WMTS.optionsFromCapabilities",function(a,b){var c=kd(a.Contents.Layer,function(a){return a.Identifier==b.layer});if(null===c)return null;var d=a.Contents.TileMatrixSet;var e=1e&&(e=0);var f=c.TileMatrixSetLink[e].TileMatrixSet;var g=c.TileMatrixSetLink[e].TileMatrixSetLimits;var h=c.Format[0];"format"in b&&(h=b.format);e=nd(c.Style,function(a){return"style"in b?a.Title==b.style:a.isDefault});0>e&&(e=0);e=c.Style[e].Identifier;var l={};"Dimension"in c&&c.Dimension.forEach(function(a){var b=a.Identifier,c=a.Default;void 0===c&&(c=a.Value[0]);l[b]=c});var m=kd(a.Contents.TileMatrixSet,function(a){return a.Identifier==f});var n="projection"in b?Lc(b.projection): Lc(m.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"));var p=c.WGS84BoundingBox;if(void 0!==p){var q=Lc("EPSG:4326").D();q=p[0]==q[0]&&p[2]==q[2];var t=Yc(p,"EPSG:4326",n);(p=n.D())&&(pb(p,t)||(t=void 0))}g=bz(m,t,g);var u=[];m=b.requestEncoding;m=void 0!==m?m:"";if("OperationsMetadata"in a&&"GetTile"in a.OperationsMetadata)for(a=a.OperationsMetadata.GetTile.DCP.HTTP.Get,t=0,p=a.length;t