!function(t,e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define([],e):t.ol=e()}(this,function(){var t,e,o,r={},n=this;function i(t,e){var o,i=r;t=t.split("."),i=i||n,t[0]in i||!i.execScript||i.execScript("var "+t[0]);for(;t.length&&(o=t.shift());)t.length||void 0===e?i=i[o]&&i[o]!==Object.prototype[o]?i[o]:i[o]={}:i[o]=e}function N(t,e){return e>>0,r=0;r=e.ca&&t.da<=e.ia&&t.ia>=e.da}function w(t,e,o){return Math.min(Math.max(t,e),o)}s(h,Error);var f="cosh"in Math?Math.cosh:function(t){return((t=Math.exp(t))+1/t)/2};function x(t,e,o,i,r,n){var p=r-o,s=n-i;if(p||s){var a=((t-o)*p+(e-i)*s)/(p*p+s*s);1t[2]&&(t[2]=e[2]),e[1]t[3]&&(t[3]=e[3]),t}function q(t,e){e[0]t[2]&&(t[2]=e[0]),e[1]t[3]&&(t[3]=e[1])}function J(t,e,o,i,r){for(;oe[0]?t[0]:e[0],o[1]=t[1]>e[1]?t[1]:e[1],o[2]=t[2]=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function ht(t){return t[2]=t.minZoom;){if(o.call(null,e,re(t,r,e,i)))return!0;--e}return!1}function oe(t,e,o,i){return e[0]P.$)&&(C(M,new I(L(x.ca,A),L(x.$,A),x.da,x.ia))||x.$-x.ca+1>A&&C(M,P))){v=!0;break t}}}v=!1}else v=!0}else v=!1;v?(g in a&&delete a[g],(v=f.b)in h||(h[v]=!0,s[g]=f)):a[g]=f}}}}for(var E in u=(e=[s,a])[0],e=e[1],this.l)E in u?(this.j[E]||(this.l[E].style.display="",this.j[E]=!0),delete u[E]):E in e?(this.j[E]&&(this.l[E].style.display="none",delete this.j[E]),delete e[E]):($e(this.l[E]),delete this.l[E],delete this.j[E]);for(E in u)(y=document.createElement("LI")).innerHTML=u[E].b,this.I.appendChild(y),this.l[E]=y,this.j[E]=!0;for(E in e)(y=document.createElement("LI")).innerHTML=e[E].b,y.style.display="none",this.I.appendChild(y),this.l[E]=y;for(j in E=!gt(this.j)||!gt(t.logos),this.B!=E&&(this.element.style.display=E?"":"none",this.B=E),E&>(this.j)?this.element.classList.add("ol-logo-only"):this.element.classList.remove("ol-logo-only"),t=t.logos,E=this.T)j in t||($e(E[j]),delete E[j]);for(var T in t)if((e=t[T])instanceof HTMLElement&&(this.u.appendChild(e),E[T]=e),!(T in E)){var j=new Image;j.src=T,""===e?u=j:((u=document.createElement("a")).href=e,u.appendChild(j)),this.u.appendChild(u),E[T]=u}this.u.style.display=gt(t)?"none":""}else this.B&&(this.element.style.display="none",this.B=!1)}function oo(t){t.element.classList.toggle("ol-collapsed"),t.c?_e(t.D,t.C):_e(t.C,t.D),t.c=!t.c}function io(t){return Math.pow(t,3)}function ro(t){return 1-io(1-t)}function no(t){return 3*t*t-2*t*t*t}function po(t){return t}function so(t){var e=void 0!==(t=t||{}).className?t.className:"ol-rotate",o=void 0!==t.label?t.label:"⇧";this.c=null,"string"==typeof o?(this.c=document.createElement("span"),this.c.className="ol-compass",this.c.textContent=o):(this.c=o,this.c.classList.add("ol-compass"));var i=t.tipLabel?t.tipLabel:"Reset rotation";(o=document.createElement("button")).className=e+"-reset",o.setAttribute("type","button"),o.title=i,o.appendChild(this.c),me(o,"click",so.prototype.D,this),(i=document.createElement("div")).className=e+" ol-unselectable ol-control",i.appendChild(o),e=t.render?t.render:ao,this.o=t.resetNorth?t.resetNorth:void 0,Qe.call(this,{element:i,render:e,target:t.target}),this.l=void 0!==t.duration?t.duration:250,this.j=void 0===t.autoHide||t.autoHide,this.u=void 0,this.j&&this.element.classList.add("ol-hidden")}function ao(t){if(t=t.frameState){if((t=t.viewState.rotation)!=this.u){var e="rotate("+t+"rad)";if(this.j){var o=this.element.classList.contains("ol-hidden");o||t?o&&t&&this.element.classList.remove("ol-hidden"):this.element.classList.add("ol-hidden")}this.c.style.msTransform=e,this.c.style.webkitTransform=e,this.c.style.transform=e}this.u=t}}function ho(t){var e=void 0!==(t=t||{}).className?t.className:"ol-zoom",o=void 0!==t.delta?t.delta:1,i=void 0!==t.zoomInLabel?t.zoomInLabel:"+",r=void 0!==t.zoomOutLabel?t.zoomOutLabel:"−",n=void 0!==t.zoomInTipLabel?t.zoomInTipLabel:"Zoom in",p=void 0!==t.zoomOutTipLabel?t.zoomOutTipLabel:"Zoom out",s=document.createElement("button");s.className=e+"-in",s.setAttribute("type","button"),s.title=n,s.appendChild("string"==typeof i?document.createTextNode(i):i),me(s,"click",ho.prototype.j.bind(this,o)),(i=document.createElement("button")).className=e+"-out",i.setAttribute("type","button"),i.title=p,i.appendChild("string"==typeof r?document.createTextNode(r):r),me(i,"click",ho.prototype.j.bind(this,-o)),(o=document.createElement("div")).className=e+" ol-unselectable ol-control",o.appendChild(s),o.appendChild(i),Qe.call(this,{element:o,target:t.target}),this.c=void 0!==t.duration?t.duration:250}function lo(t){t=t||{};var e=new De;return void 0!==t.zoom&&!t.zoom||e.push(new ho(t.zoomOptions)),void 0!==t.rotate&&!t.rotate||e.push(new so(t.rotateOptions)),void 0!==t.attribution&&!t.attribution||e.push(new to(t.attributionOptions)),e}function uo(t){t=t||{},this.c=void 0!==t.className?t.className:"ol-full-screen";var e=void 0!==t.label?t.label:"⤢";this.o="string"==typeof e?document.createTextNode(e):e,e=void 0!==t.labelActive?t.labelActive:"×",this.l="string"==typeof e?document.createTextNode(e):e;var o=t.tipLabel?t.tipLabel:"Toggle full-screen";(e=document.createElement("button")).className=this.c+"-"+yo(),e.setAttribute("type","button"),e.title=o,e.appendChild(this.o),me(e,"click",this.C,this),(o=document.createElement("div")).className=this.c+" ol-unselectable ol-control "+(co()?"":"ol-unsupported"),o.appendChild(e),Qe.call(this,{element:o,target:t.target}),this.D=void 0!==t.keys&&t.keys,this.j=t.source}function co(){var t=document.body;return!!(t.webkitRequestFullscreen||t.mozRequestFullScreen&&document.mozFullScreenEnabled||t.msRequestFullscreen&&document.msFullscreenEnabled||t.requestFullscreen&&document.fullscreenEnabled)}function yo(){return!!(document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement||document.fullscreenElement)}function fo(t){t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen&&t.webkitRequestFullscreen()}s(Qe,Re),Qe.prototype.ka=function(){$e(this.element),Re.prototype.ka.call(this)},Qe.prototype.g=function(){return this.a},Qe.prototype.setMap=function(t){this.a&&$e(this.element);for(var e=0,o=this.v.length;e=e.length){var r,n=[];for(r=0;rt.D||Math.abs(e.clientY-t.c.clientY)>t.D}function vi(t,e){this.l=t,this.c=e,this.b=[],this.i=[],this.a={}}function bi(t){var e=t.b,o=t.i,i=e[0];return 1==e.length?(e.length=0,o.length=0):(e[0]=e.pop(),o[0]=o.pop(),mi(t,0)),e=t.c(i),delete t.a[e],i}function mi(t,e){for(var o=t.b,i=t.i,r=o.length,n=o[e],p=i[e],s=e;e>1;){var a=2*e+1,h=2*e+2;a=h>1;if(!(t[p]>n))break;i[o]=i[p],t[o]=t[p],o=p}i[o]=r,t[o]=n}function xi(t){var e,o=t.l,i=t.b,r=t.i,n=0,p=i.length;for(e=0;e>1)-1;0<=o;o--)mi(t,o)}function Si(e,t){vi.call(this,function(t){return e.apply(null,t)},function(t){return t[0].bb()}),this.v=t,this.j=0,this.g={}}function Mi(t,e,o){for(var i,r,n=0;t.j=l[0]&&r[2]<=l[2]||r[1]>=l[1]&&r[3]<=l[3])||gr(t,e,o,i,function(t,e){var o=!1,i=X(l,t),r=X(l,e);if(1===i||1===r)o=!0;else{var n=l[0],p=l[1],s=l[2],a=l[3],h=e[0];t=((e=e[1])-t[1])/(h-t[0]),2&r&&!(2&i)&&(o=n<=(o=h-(e-a)/t)&&o<=s),o||!(4&r)||4&i||(o=p<=(o=e-(h-s)*t)&&o<=a),o||!(8&r)||8&i||(o=n<=(o=h-(e-p)/t)&&o<=s),o||!(16&r)||16&i||(o=p<=(o=e-(h-n)*t)&&o<=a)}return o}))}function vr(t,e,o,i,r){var n=o[0];if(!(dr(t,e,n,i,r)||cr(t,e,n,i,r[0],r[1])||cr(t,e,n,i,r[0],r[3])||cr(t,e,n,i,r[2],r[1])||cr(t,e,n,i,r[2],r[3])))return!1;if(1===o.length)return!0;for(e=1,n=o.length;ee;)i-=3;if((e=t.b[o+2]-t.b[i+2])<1e3/60)return!1;var r=t.b[o]-t.b[i];return o=t.b[o+1]-t.b[i+1],t.i=Math.atan2(o,r),t.a=Math.sqrt(r*r+o*o)/e,t.a>t.c}(this.a)){var e=this.a;e=(e.c-e.a)/e.f;var o=this.a.i,i=t.wa(),r=(i=r.Ja(i),r.Wa([i[0]-e*Math.cos(o),i[1]-e*Math.sin(o)]));t.animate({center:t.Ec(r),duration:500,easing:ro})}return Dr(t,1,-1),!1}function sn(t){if(0=this.u}function vn(t){if($r(t)){var e=this.a,o=t.pixel;e.c=this.g,e.i=o,fn(e),yn(e),this.b(new Mn(xn,t.coordinate,t))}}function bn(t){return!$r(t)||(this.a.setMap(null),this.l(t,this.g,t.pixel)&&(this.j(t),this.b(new Mn(Sn,t.coordinate,t))),!1)}function mn(t){if($r(t)&&zr(t)&&this.C(t)){this.g=t.pixel,this.a.setMap(t.map);var e=this.a,o=this.g;return e.c=this.g,e.i=o,fn(e),yn(e),this.b(new Mn(wn,t.coordinate,t)),!0}return!1}s(fi,je),(t=fi.prototype).Jh=function(t){gi(this,t);var e=new zo("pointerup",this.i,t);this.b(e),this.o||t.button||function(t,e){var o=new zo("click",t.i,e);t.b(o),t.j?(clearTimeout(t.j),t.j=0,o=new zo("dblclick",t.i,e),t.b(o)):t.j=setTimeout(function(){this.j=0;var t=new zo("singleclick",this.i,e);this.b(t)}.bind(t),250)}(this,this.c),this.S||(this.f.forEach(Se),this.f.length=0,this.o=!1,this.c=null,Ae(this.a),this.a=null)},t.Ol=function(t){gi(this,t);var e=new zo("pointerdown",this.i,t);this.b(e),this.c=t,this.f.length||(this.a=new ni(document),this.f.push(me(this.a,"pointermove",this.Hm,this),me(this.a,"pointerup",this.Jh,this),me(this.g,"pointercancel",this.Jh,this)))},t.Hm=function(t){if(di(this,t)){this.o=!0;var e=new zo("pointerdrag",this.i,t,this.o);this.b(e)}t.preventDefault()},t.Lp=function(t){this.b(new zo(t.type,this.i,t,!(!this.c||!di(this,t))))},t.ka=function(){this.v&&(Se(this.v),this.v=null),this.l&&(Se(this.l),this.l=null),this.f.forEach(Se),this.f.length=0,this.a&&(Ae(this.a),this.a=null),this.g&&(Ae(this.g),this.g=null),je.prototype.ka.call(this)},vi.prototype.clear=function(){this.b.length=0,this.i.length=0,yt(this.a)},vi.prototype.f=function(t){R(!(this.c(t)in this.a),31);var e=this.l(t);return 1/0!=e&&(this.b.push(t),this.i.push(e),this.a[this.c(t)]=!0,wi(this,0,this.b.length-1),!0)},s(Si,vi),Si.prototype.f=function(t){var e=vi.prototype.f.call(this,t);return e&&me(t[0],"change",this.o,this),e},Si.prototype.o=function(t){var e=(t=t.target).getState();2!==e&&3!==e&&4!==e&&5!==e||(xe(t,"change",this.o,this),(t=t.bb())in this.g&&(delete this.g[t],--this.j),this.v())},s(Xi,Re),(t=Xi.prototype).Ab=function(t,e){return e=e||[NaN,NaN],this.Kb(t[0],t[1],e,1/0),e},t.sb=function(t){return this.Mc(t[0],t[1])},t.Mc=Bi,t.G=function(t){this.v!=this.i&&(this.l=this.se(this.l),this.v=this.i);var e=this.l;return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3]):t=e,t},t.Rb=function(t){return this.Vd(t*t)},t.tb=function(t,e){return this.Dc(Kt(t,e)),this},s(Zi,Xi),(t=Zi.prototype).Mc=Bi,t.se=function(t){return z(this.A,0,this.A.length,this.a,t)},t.ac=function(){return this.A.slice(0,this.a)},t.ga=function(){return this.A},t.bc=function(){return this.A.slice(this.A.length-this.a)},t.cc=function(){return this.ja},t.Vd=function(t){if(this.o!=this.i&&(yt(this.f),this.g=0,this.o=this.i),t<0||this.g&&t<=this.g)return this;var e=t.toString();if(this.f.hasOwnProperty(e))return this.f[e];var o=this.hd(t);return o.ga().length=this.f&&t<=this.a){var e=this.l||0;if(this.j){var o=l(this.j,t,1);if(e+=o,o==this.j.length-1)return e;var i=this.j[o];o=i/this.j[o+1]}else i=this.a,o=this.C;e+=Math.log(i/t)/Math.log(o)}return e},t.Qf=function(t,e){var o=(e=e||{}).size;if(o=o||Nr(this),t instanceof Zi)if("Circle"===t.U()){var i=Ar(t=t.G());i.rotate(this.Qa(),et(t))}else i=t;else R(Array.isArray(t),24),R(!ht(t),25),i=Ar(t);var r,n=e.padding?e.padding:[0,0,0,0],p=void 0===e.constrainResolution||e.constrainResolution,s=void 0!==e.nearest&&e.nearest;r=void 0!==e.minResolution?e.minResolution:void 0!==e.maxZoom?this.constrainResolution(this.a,e.maxZoom-this.l,0):0;var a=i.ga(),h=this.Qa();t=Math.cos(-h);h=Math.sin(-h);var l=1/0,u=1/0,c=-1/0,y=-1/0;i=i.qa();for(var f=0,g=a.length;fthis.C&&(this.a=!0)),this.j=o,(o=(t=t.map).Z()).g.rotation!==Pi){i=t.a.getBoundingClientRect();var r=en(this.o);r[0]-=i.left,r[1]-=i.top,this.g=t.Wa(r),this.a&&(i=o.Qa(),t.render(),Br(o,i+e,this.g))}}function kn(t){if(this.o.length<2){if(Dr(t=t.map.Z(),1,-1),this.a){var e=t.Qa(),o=this.g,i=this.u;e=t.constrainRotation(e,0);Br(t,e,o,i)}return!1}return!0}function Dn(t){return 2<=this.o.length&&(t=t.map,this.g=null,this.j=void 0,this.a=!1,this.l=0,this.D||Dr(t.Z(),1,1),!0)}function On(t){tn.call(this,{handleDownEvent:Bn,handleDragEvent:Un,handleUpEvent:Gn}),t=t||{},this.l=t.constrainResolution||!1,this.g=null,this.u=void 0!==t.duration?t.duration:400,this.a=void 0,this.j=1}function Un(t){var e=1,o=this.o[0],i=this.o[1],r=o.clientX-i.clientX;o=o.clientY-i.clientY,r=Math.sqrt(r*r+o*o);void 0!==this.a&&(e=this.a/r),this.a=r;i=(r=(t=t.map).Z()).Pa();var n=r.a,p=r.f;n<(o=i*e)?(e=n/i,o=n):ot.a){var o=this.g,i=this.u;e=t.constrainResolution(e,0,this.j-1);Vr(t,e,o,i)}return!1}return!0}function Bn(t){return 2<=this.o.length&&(t=t.map,this.g=null,this.a=void 0,this.j=1,this.D||Dr(t.Z(),1,1),!0)}function Xn(t){t=t||{};var e=new De,o=new Or(-.005,.05,100);return void 0!==t.altShiftDragRotate&&!t.altShiftDragRotate||e.push(new an),void 0!==t.doubleClickZoom&&!t.doubleClickZoom||e.push(new Wr({delta:t.zoomDelta,duration:t.zoomDuration})),void 0!==t.dragPan&&!t.dragPan||e.push(new rn({kinetic:o})),void 0!==t.pinchRotate&&!t.pinchRotate||e.push(new Nn),void 0!==t.pinchZoom&&!t.pinchZoom||e.push(new On({constrainResolution:t.constrainResolution,duration:t.zoomDuration})),void 0!==t.keyboard&&!t.keyboard||(e.push(new An),e.push(new Tn({delta:t.zoomDelta,duration:t.zoomDuration}))),void 0!==t.mouseWheelZoom&&!t.mouseWheelZoom||e.push(new Cn({constrainResolution:t.constrainResolution,duration:t.zoomDuration})),void 0!==t.shiftDragZoom&&!t.shiftDragZoom||e.push(new Pn({duration:t.zoomDuration})),e}function Vn(t){Re.call(this);var e=ct({},t);e.opacity=void 0!==t.opacity?t.opacity:1,e.visible=void 0===t.visible||t.visible,e.zIndex=void 0!==t.zIndex?t.zIndex:0,e.maxResolution=void 0!==t.maxResolution?t.maxResolution:1/0,e.minResolution=void 0!==t.minResolution?t.minResolution:0,this.H(e),this.a={layer:this,Je:!0}}function Wn(t){return t.a.opacity=w(t.hc(),0,1),t.a.yj=t.$f(),t.a.visible=t.Mb(),t.a.extent=t.G(),t.a.zIndex=t.Ba(),t.a.maxResolution=t.fc(),t.a.minResolution=Math.max(t.gc(),0),t.a}function Zn(t){var e=t||{};delete(t=ct({},e)).layers,e=e.layers,Vn.call(this,t),this.f=[],this.c={},me(this,Ne(Kn),this.Hl,this),e?Array.isArray(e)?e=new De(e.slice(),{unique:!0}):R(e instanceof De,43):e=new De(void 0,{unique:!0}),this.xi(e)}s(Nn,tn),Nn.prototype.Xc=Bi,s(On,tn),On.prototype.Xc=Bi,s(Vn,Re),(t=Vn.prototype).G=function(){return this.get("extent")},t.fc=function(){return this.get("maxResolution")},t.gc=function(){return this.get("minResolution")},t.hc=function(){return this.get("opacity")},t.Mb=function(){return this.get("visible")},t.Ba=function(){return this.get("zIndex")},t.vc=function(t){this.set("extent",t)},t.Ac=function(t){this.set("maxResolution",t)},t.Bc=function(t){this.set("minResolution",t)},t.wc=function(t){this.set("opacity",t)},t.xc=function(t){this.set("visible",t)},t.Vb=function(t){this.set("zIndex",t)},s(Zn,Vn),(t=Zn.prototype).Fd=function(){},t.Fe=function(){this.Mb()&&this.s()},t.Hl=function(){this.f.forEach(Se),this.f.length=0;var t,e=this.qd();for(var o in this.f.push(me(e,"add",this.Gl,this),me(e,"remove",this.Il,this)),this.c)this.c[o].forEach(Se);for(yt(this.c),o=0,t=(e=e.a).length;o=t.minResolution&&el[2])&&(u=[f+c*Math.ceil((l[0]-f)/c),t[1]])}for(c=(l=r.layerStatesArray).length-1;0<=c;--c){var y=l[c],f=y.layer;if(Yn(y,h)&&o.call(i,f)&&(y=lp(this,f),f.ha()&&(a=y.Ea(f.ha().u?u:t,r,e,s,p)),a))return a}},t.Ei=function(t,e,o,i,r){return void 0!==this.Ea(t,e,o,Gi,this,i,r)},t.Fl=function(){this.o.render()},t.Jg=m,t.Rp=function(t,e){for(var o in this.c)if(!(e&&o in e.layerStates)){t=o;var i=this.c[t];delete this.c[t],Se(this.v[t]),delete this.v[t],Ae(i)}},s(yp,Ee);var fp=[0,0,0,1],gp=[],dp=[0,0,0,1];function vp(t,e,o,i){e&&(t.translate(o,i),t.rotate(e),t.translate(-o,-i))}function bp(){}function mp(t,e,o,i,r){this.i=t,this.u=e,this.c=o,this.S=i,this.Yb=r,this.M=this.b=this.a=this.Ua=this.R=this.I=null,this.na=this.T=this.l=this.B=this.C=this.D=0,this.fa=!1,this.f=this.fb=0,this.pa=!1,this.oa=0,this.Ia="",this.va=this.Jb=0,this.Sa=!1,this.j=this.$a=0,this.ra=this.o=this.g=null,this.v=[],this.xb=[1,0,0,1,0,0]}function wp(t,e,o){if(t.M){e=Vi(e,0,o,2,t.S,t.v),o=t.i;var i=t.xb,r=o.globalAlpha;1!=t.l&&(o.globalAlpha=r*t.l);var n,p=t.fb;t.fa&&(p+=t.Yb);var s=0;for(n=e.length;s=s;){var a=this.i[p],h=this.f[p];o[h=G(h).toString()]&&(i!==n&&Bp(t,e,i,n),n=a),p--,i=a}i!==n&&Bp(t,e,i,n),i=n=s}}},t.ve=function(t,e,o,i,r){var n,p,s=this.i.length-2,a=this.i[s+1];for(n=this.u.length-1;0<=n;--n){var h=this.j[n];for(t.uniform4fv(this.v.B,h[0]),qp(this,t,h[1],h[2]),p=this.u[n];0<=s&&this.i[s]>=p;){h=this.i[s];var l=this.f[s];if(void 0===o[G(l).toString()]&&l.V()&&(void 0===r||at(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),Bp(t,e,h,a),a=i(l)))return a;s--,a=h}}},t.Ma=function(t,e){if(e){var o=e.i;this.c.lineDash=o||Vp,o=e.g,this.c.lineDashOffset=o||0,o=(o=e.a)instanceof CanvasGradient||o instanceof CanvasPattern?Wp:We(o).map(function(t,e){return 3!=e?t/255:t})||Wp,e=void 0!==(e=e.c)?e:1}else o=[0,0,0,0],e=0;t=(t=t?t.b:[0,0,0,0])instanceof CanvasGradient||t instanceof CanvasPattern?Xp:We(t).map(function(t,e){return 3!=e?t/255:t})||Xp,this.c.strokeColor&&U(this.c.strokeColor,o)&&this.c.fillColor&&U(this.c.fillColor,t)&&this.c.lineWidth===e||(this.c.s=!0,this.c.fillColor=t,this.c.strokeColor=o,this.c.lineWidth=e,this.j.push([t,o,e]))},s(Jp,Rp);var _p=new Jp;function $p(){this.b="varying vec2 a;varying float b;attribute vec2 c;attribute vec2 d;attribute vec2 e;attribute float f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;void main(void){mat4 offsetMatrix=i;if(g==1.0){offsetMatrix=i*j;}vec4 offsets=offsetMatrix*vec4(e,0.0,0.0);gl_Position=h*vec4(c,0.0,1.0)+offsets;a=d;b=f;}"}s($p,Ip);var Qp=new $p;function ts(t,e){this.c=t.getUniformLocation(e,"j"),this.f=t.getUniformLocation(e,"i"),this.a=t.getUniformLocation(e,"k"),this.i=t.getUniformLocation(e,"h"),this.v=t.getAttribLocation(e,"e"),this.u=t.getAttribLocation(e,"f"),this.b=t.getAttribLocation(e,"c"),this.D=t.getAttribLocation(e,"g"),this.C=t.getAttribLocation(e,"d")}function es(t,e){this.j=t,this.b=e,this.a={},this.c={},this.i={},this.l=this.v=this.f=this.o=null,(this.g=d(o,"OES_element_index_uint"))&&e.getExtension("OES_element_index_uint"),me(this.j,"webglcontextlost",this.Xo,this),me(this.j,"webglcontextrestored",this.Yo,this)}function os(t,e,o){var i=t.b,r=o.b,n=String(G(o));if(n in t.a)i.bindBuffer(e,t.a[n].buffer);else{var p,s=i.createBuffer();i.bindBuffer(e,s),34962==e?p=new Float32Array(r):34963==e&&(p=t.g?new Uint32Array(r):new Uint16Array(r)),i.bufferData(e,p,o.a),t.a[n]={lc:o,buffer:s}}}function is(t,e){var o=t.b;e=String(G(e));var i=t.a[e];o.isContextLost()||o.deleteBuffer(i.buffer),delete t.a[e]}function rs(t){if(!t.f){var e=t.b,o=e.createFramebuffer();e.bindFramebuffer(e.FRAMEBUFFER,o);var i=as(e,1,1),r=e.createRenderbuffer();e.bindRenderbuffer(e.RENDERBUFFER,r),e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_COMPONENT16,1,1),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,i,0),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,r),e.bindTexture(e.TEXTURE_2D,null),e.bindRenderbuffer(e.RENDERBUFFER,null),e.bindFramebuffer(e.FRAMEBUFFER,null),t.f=o,t.v=i,t.l=r}return t.f}function ns(t,e){var o=String(G(e));if(o in t.c)return t.c[o];var i=t.b,r=i.createShader(e.U());return i.shaderSource(r,e.b),i.compileShader(r),t.c[o]=r}function ps(t,e,o){var i=G(e)+"/"+G(o);if(i in t.i)return t.i[i];var r=t.b,n=r.createProgram();return r.attachShader(n,ns(t,e)),r.attachShader(n,ns(t,o)),r.linkProgram(n),t.i[i]=n}function ss(t,e,o){var i=t.createTexture();return t.bindTexture(t.TEXTURE_2D,i),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),void 0!==e&&t.texParameteri(3553,10242,e),void 0!==o&&t.texParameteri(3553,10243,o),i}function as(t,e,o){var i=ss(t,void 0,void 0);return t.texImage2D(t.TEXTURE_2D,0,t.RGBA,e,o,0,t.RGBA,t.UNSIGNED_BYTE,null),i}function hs(t,e){var o=ss(t,33071,33071);return t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e),o}function ls(t,e){Gp.call(this,0,e),this.C=this.D=void 0,this.S=[],this.v=[],this.oa=void 0,this.j=[],this.c=[],this.I=this.ra=void 0,this.B=null,this.fb=this.fa=this.na=this.T=this.Ua=this.R=void 0,this.va=[],this.u=[],this.pa=void 0}function us(t,e,o,i){var r,n=t.D,p=t.C,s=t.oa,a=t.ra,h=t.I,l=t.R,u=t.Ua,c=t.T,y=t.na?1:0,f=-t.fa,g=t.fb,d=t.pa,v=Math.cos(f),b=(f=Math.sin(f),t.b.length),m=t.a.length;for(r=0;r=a;){var h=this.i[s],l=this.f[s];if(void 0===o[G(l).toString()]&&l.V()&&(void 0===r||at(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),Bp(t,e,h,p),p=i(l)))return p;p=h,s--}}},t.Ub=function(t){var e=t.Hc(),o=t.Y(1),i=t.ye(),r=t.qg(1),n=t.f,p=t.Oc(),s=t.l,a=t.g,h=t.ic();if(t=t.a,this.j.length){var l=this.j[this.j.length-1];G(l)!=G(o)&&(this.S.push(this.b.length),this.j.push(o))}else this.j.push(o);this.c.length?G(l=this.c[this.c.length-1])!=G(r)&&(this.v.push(this.b.length),this.c.push(r)):this.c.push(r),this.D=e[0],this.C=e[1],this.oa=h[1],this.ra=i[1],this.I=i[0],this.R=n,this.Ua=p[0],this.T=p[1],this.fa=a,this.na=s,this.fb=t,this.pa=h[0]},s(fs,Rp);var gs=new fs;function ds(){this.b="varying float a;varying vec2 b;varying float c;attribute vec2 d;attribute vec2 e;attribute vec2 f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;uniform float k;uniform float l;bool nearlyEquals(in float value,in float ref){float epsilon=0.000000000001;return value>=ref-epsilon&&value<=ref+epsilon;}void alongNormal(out vec2 offset,in vec2 nextP,in float turnDir,in float direction){vec2 dirVect=nextP-e;vec2 normal=normalize(vec2(-turnDir*dirVect.y,turnDir*dirVect.x));offset=k/2.0*normal*direction;}void miterUp(out vec2 offset,out float round,in bool isRound,in float direction){float halfWidth=k/2.0;vec2 tangent=normalize(normalize(f-e)+normalize(e-d));vec2 normal=vec2(-tangent.y,tangent.x);vec2 dirVect=f-e;vec2 tmpNormal=normalize(vec2(-dirVect.y,dirVect.x));float miterLength=abs(halfWidth/dot(normal,tmpNormal));offset=normal*direction*miterLength;round=0.0;if(isRound){round=1.0;}else if(miterLength>l+k){offset=halfWidth*tmpNormal*direction;}} bool miterDown(out vec2 offset,in vec4 projPos,in mat4 offsetMatrix,in float direction){bool degenerate=false;vec2 tangent=normalize(normalize(f-e)+normalize(e-d));vec2 normal=vec2(-tangent.y,tangent.x);vec2 dirVect=d-e;vec2 tmpNormal=normalize(vec2(-dirVect.y,dirVect.x));vec2 longOffset,shortOffset,longVertex;vec4 shortProjVertex;float halfWidth=k/2.0;if(length(f-e)>length(d-e)){longOffset=tmpNormal*direction*halfWidth;shortOffset=normalize(vec2(dirVect.y,-dirVect.x))*direction*halfWidth;longVertex=f;shortProjVertex=h*vec4(d,0.0,1.0);}else{shortOffset=tmpNormal*direction*halfWidth;longOffset=normalize(vec2(dirVect.y,-dirVect.x))*direction*halfWidth;longVertex=d;shortProjVertex=h*vec4(f,0.0,1.0);}vec4 p1=h*vec4(longVertex,0.0,1.0)+offsetMatrix*vec4(longOffset,0.0,0.0);vec4 p2=projPos+offsetMatrix*vec4(longOffset,0.0,0.0);vec4 p3=shortProjVertex+offsetMatrix*vec4(-shortOffset,0.0,0.0);vec4 p4=shortProjVertex+offsetMatrix*vec4(shortOffset,0.0,0.0);float denom=(p4.y-p3.y)*(p2.x-p1.x)-(p4.x-p3.x)*(p2.y-p1.y);float firstU=((p4.x-p3.x)*(p1.y-p3.y)-(p4.y-p3.y)*(p1.x-p3.x))/denom;float secondU=((p2.x-p1.x)*(p1.y-p3.y)-(p2.y-p1.y)*(p1.x-p3.x))/denom;float epsilon=0.000000000001;if(firstU>epsilon&&firstU<1.0-epsilon&&secondU>epsilon&&secondU<1.0-epsilon){shortProjVertex.x=p1.x+firstU*(p2.x-p1.x);shortProjVertex.y=p1.y+firstU*(p2.y-p1.y);offset=shortProjVertex.xy;degenerate=true;}else{float miterLength=abs(halfWidth/dot(normal,tmpNormal));offset=normal*direction*miterLength;}return degenerate;}void squareCap(out vec2 offset,out float round,in bool isRound,in vec2 nextP,in float turnDir,in float direction){round=0.0;vec2 dirVect=e-nextP;vec2 firstNormal=normalize(dirVect);vec2 secondNormal=vec2(turnDir*firstNormal.y*direction,-turnDir*firstNormal.x*direction);vec2 hypotenuse=normalize(firstNormal-secondNormal);vec2 normal=vec2(turnDir*hypotenuse.y*direction,-turnDir*hypotenuse.x*direction);float length=sqrt(c*c*2.0);offset=normal*length;if(isRound){round=1.0;}} void main(void){bool degenerate=false;float direction=float(sign(g));mat4 offsetMatrix=i*j;vec2 offset;vec4 projPos=h*vec4(e,0.0,1.0);bool round=nearlyEquals(mod(g,2.0),0.0);a=0.0;c=k/2.0;b=projPos.xy;if(nearlyEquals(mod(g,3.0),0.0)||nearlyEquals(mod(g,17.0),0.0)){alongNormal(offset,f,1.0,direction);}else if(nearlyEquals(mod(g,5.0),0.0)||nearlyEquals(mod(g,13.0),0.0)){alongNormal(offset,d,-1.0,direction);}else if(nearlyEquals(mod(g,23.0),0.0)){miterUp(offset,a,round,direction);}else if(nearlyEquals(mod(g,19.0),0.0)){degenerate=miterDown(offset,projPos,offsetMatrix,direction);}else if(nearlyEquals(mod(g,7.0),0.0)){squareCap(offset,a,round,f,1.0,direction);}else if(nearlyEquals(mod(g,11.0),0.0)){squareCap(offset,a,round,d,-1.0,direction);}if(!degenerate){vec4 offsets=offsetMatrix*vec4(offset,0.0,0.0);gl_Position=projPos+offsets;}else{gl_Position=vec4(offset,0.0,1.0);}}"}s(ds,Ip);var vs=new ds;function bs(t,e){this.B=t.getUniformLocation(e,"n"),this.oa=t.getUniformLocation(e,"k"),this.R=t.getUniformLocation(e,"l"),this.c=t.getUniformLocation(e,"j"),this.f=t.getUniformLocation(e,"i"),this.a=t.getUniformLocation(e,"m"),this.ra=t.getUniformLocation(e,"p"),this.i=t.getUniformLocation(e,"h"),this.I=t.getUniformLocation(e,"o"),this.g=t.getAttribLocation(e,"g"),this.o=t.getAttribLocation(e,"d"),this.l=t.getAttribLocation(e,"f"),this.b=t.getAttribLocation(e,"e")}function ms(t,e){Gp.call(this,0,e),this.v=null,this.u=[],this.j=[],this.c={strokeColor:null,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0,s:!1}}function ws(t,e,o,i){var r,n=t.a.length,p=t.b.length,s="bevel"===t.c.lineJoin?0:"miter"===t.c.lineJoin?1:2,a="butt"===t.c.lineCap?0:"square"===t.c.lineCap?1:2,h=ys(e,o,i),l=p,u=1;for(r=0;ro&&(this.i.push(o),this.f.push(e),this.c.s&&(this.j.push(o),this.c.s=!1))},t.Db=function(){this.l=new zp(this.a),this.o=new zp(this.b),this.i.push(this.b.length),!this.j.length&&0=l;){var u=this.i[h],c=this.f[h];o[c=G(c).toString()]&&(p!==a&&(Bp(t,e,p,a),t.clear(t.DEPTH_BUFFER_BIT)),a=u),h--,p=u}p!==a&&(Bp(t,e,p,a),t.clear(t.DEPTH_BUFFER_BIT)),p=a=l}}i||(t.disable(t.DEPTH_TEST),t.clear(t.DEPTH_BUFFER_BIT),t.depthMask(n),t.depthFunc(r))},t.ve=function(t,e,o,i,r){var n,p,s=this.i.length-2,a=this.i[s+1];for(n=this.j.length-1;0<=n;--n){var h=this.u[n];for(As(this,t,h[0],h[1],h[2]),p=this.j[n];0<=s&&this.i[s]>=p;){h=this.i[s];var l=this.f[s];if(void 0===o[G(l).toString()]&&l.V()&&(void 0===r||at(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),Bp(t,e,h,a),a=i(l)))return a;s--,a=h}}},t.Ma=function(t,e){t=e.f,this.c.lineCap=void 0!==t?t:"round",t=e.i,this.c.lineDash=t||Vp,t=e.g,this.c.lineDashOffset=t||0,t=e.j,this.c.lineJoin=void 0!==t?t:"round",t=(t=e.a)instanceof CanvasGradient||t instanceof CanvasPattern?Wp:We(t).map(function(t,e){return 3!=e?t/255:t})||Wp;var o=void 0!==(o=e.c)?o:1;e=void 0!==(e=e.o)?e:10,this.c.strokeColor&&U(this.c.strokeColor,t)&&this.c.lineWidth===o&&this.c.miterLimit===e||(this.c.s=!0,this.c.strokeColor=t,this.c.lineWidth=o,this.c.miterLimit=e,this.u.push([t,o,e]))};var Es=3,Ts=5,js=7,Cs=11,Ls=13,Rs=17,Is=19,Ns=23;function Fs(){this.b="precision mediump float;uniform vec4 e;uniform float f;void main(void){gl_FragColor=e;float alpha=e.a*f;if(alpha==0.0){discard;}gl_FragColor.a=alpha;}"}s(Fs,Rp);var ks=new Fs;function Ds(){this.b="attribute vec2 a;uniform mat4 b;uniform mat4 c;uniform mat4 d;void main(void){gl_Position=b*vec4(a,0.0,1.0);}"}s(Ds,Ip);var Os=new Ds;function Us(t,e){this.B=t.getUniformLocation(e,"e"),this.c=t.getUniformLocation(e,"d"),this.f=t.getUniformLocation(e,"c"),this.a=t.getUniformLocation(e,"f"),this.i=t.getUniformLocation(e,"b"),this.b=t.getAttribLocation(e,"a")}function Gs(t){t=t||{},this.a=void 0!==t.color?t.color:null,this.f=t.lineCap,this.i=void 0!==t.lineDash?t.lineDash:null,this.g=t.lineDashOffset,this.j=t.lineJoin,this.o=t.miterLimit,this.c=t.width,this.b=void 0}function Bs(t){this.b=this.a=this.i=void 0,this.f=void 0===t||t,this.c=0}function Xs(t){var e=t.b;if(e){var o=e.next,i=e.ub;o&&(o.ub=i),i&&(i.next=o),t.b=o||i,t.i===t.a?(t.b=void 0,t.i=void 0,t.a=void 0):t.i===e?t.i=t.b:t.a===e&&(t.a=i?t.b.ub:t.b),t.c--}}function Vs(t){if(t.b=t.i,t.b)return t.b.data}function Ws(t){if(t.b&&t.b.next)return t.b=t.b.next,t.b.data}function Zs(t){if(t.b&&t.b.next)return t.b.next.data}function Ks(t){if(t.b&&t.b.ub)return t.b=t.b.ub,t.b.data}function zs(t){if(t.b&&t.b.ub)return t.b.ub.data}function Ys(t){if(t.b)return t.b.data}(t=Gs.prototype).clone=function(){var t=this.a;return new Gs({color:t&&t.slice?t.slice():t||void 0,lineCap:this.f,lineDash:this.i?this.i.slice():void 0,lineDashOffset:this.g,lineJoin:this.j,miterLimit:this.o,width:this.c})},t.No=function(){return this.a},t.Vk=function(){return this.f},t.Oo=function(){return this.i},t.Wk=function(){return this.g},t.Xk=function(){return this.j},t.bl=function(){return this.o},t.Po=function(){return this.c},t.Qo=function(t){this.a=t,this.b=void 0},t.aq=function(t){this.f=t,this.b=void 0},t.setLineDash=function(t){this.i=t,this.b=void 0},t.bq=function(t){this.g=t,this.b=void 0},t.cq=function(t){this.j=t,this.b=void 0},t.gq=function(t){this.o=t,this.b=void 0},t.jq=function(t){this.c=t,this.b=void 0},Bs.prototype.concat=function(t){if(t.b){if(this.b){var e=this.b.next;this.b.next=t.i,t.i.ub=this.b,e.ub=t.a,t.a.next=e,this.c+=t.c}else this.b=t.b,this.i=t.i,this.a=t.a,this.c=t.c;t.b=void 0,t.i=void 0,t.a=void 0,t.c=0}};var Hs,qs,Js={$d:function(){}};function _s(t,e,o){var i=t[e];t[e]=t[o],t[o]=i}function $s(t,e){return t=t.ca&&e.ia>=t.da}function ha(t){return{children:t,height:1,ib:!0,ca:1/0,da:1/0,$:-1/0,ia:-1/0}}function la(t,e,o,i,r){for(var n,p=[e,o];p.length;)(o=p.pop())-(e=p.pop())<=i||(n=e+Math.ceil((o-e)/i/2)*i,qs(t,n,e,o,r),p.push(e,n,n,o))}function ua(t){this.a=Js.$d(t),this.b={}}function ca(t,e,o){var i=t.b[G(o)];Y([i.ca,i.da,i.$,i.ia],e)||(t.remove(o),t.Ca(e,o))}function ya(t){return t.a.all().map(function(t){return t.value})}function fa(t,e){return t.a.search({ca:e[0],da:e[1],$:e[2],ia:e[3]}).map(function(t){return t.value})}function ga(t,e,o,i){return da(fa(t,e),o,i)}function da(t,e,o){for(var i,r=0,n=t.length;rn&&(n=e[y],c=e[y+1]),u=f}}else for(u=s=Aa(t,e[y=e.length-o],e[y+1],a++),n=e[y],c=e[y+1],y-=o,p=0;p<=y;y-=o)f=Aa(t,e[y],e[y+1],a++),l.push(Ea(u,f,i)),h.push([Math.min(u.x,f.x),Math.min(u.y,f.y),Math.max(u.x,f.x),Math.max(u.y,f.y)]),e[y]>n&&(n=e[y],c=e[y+1]),u=f;return l.push(Ea(f,s,i)),h.push([Math.min(u.x,f.x),Math.min(u.y,f.y),Math.max(u.x,f.x),Math.max(u.y,f.y)]),r.load(h,l),[n,c]}function wa(t,e,o){var i=Vs(t),r=i,n=Ws(t),p=!1;do{var s=o?Zp(n.W.x,n.W.y,r.W.x,r.W.y,r.aa.x,r.aa.y):Zp(r.aa.x,r.aa.y,r.W.x,r.W.y,n.W.x,n.W.y);void 0===s?(Ta(r,n,t,e),p=!0,n===i&&(i=Zs(t)),n=r,Ks(t)):r.W.Fb!==s&&(r.W.Fb=s,p=!0),r=n,n=Ws(t)}while(r!==i);return p}function xa(t,e,o,i,r){for(var n=Vs(t);n.W.x!==e;)n=Ws(t);var p,s=1/0,a=Ca({aa:e=n.W,W:i={x:i,y:e.y,hb:-1}},r,!0),h=0;for(p=a.length;h(o.y-i.y)*(e.x-i.x);return r=(r.x-i.x)*(e.y-i.y)<(r.y-i.y)*(e.x-i.x),t=(t.x-e.x)*(i.y-e.y)>(t.y-e.y)*(i.x-e.x),o=(o.x-e.x)*(i.y-e.y)<(o.y-e.y)*(i.x-e.x),e=e.Fb?o||t:o&&t,(i.Fb?r||n:r&&n)&&e}function Ia(){}function Na(t,e,o){this.f=e,this.g=t,this.c=o,this.a={}}function Fa(t,e){var o,i=[];for(o in t.a){var r,n=t.a[o];for(r in n)i.push(n[r].Eb(e))}return function(){for(var t,e=i.length,o=0;othis.Hf;)this.jk(i,e),e--;this.Zj(o,i,e)},jk:function(t,e){var o=t[e],i=o.children.length,r=this.fh;this.$j(o,r,i),i=this.ak(o,r,i),(i=ha(o.children.splice(i,o.children.length-i))).height=o.height,i.ib=o.ib,ta(o,this.wb),ta(i,this.wb),e?t[e-1].children.push(i):this.hh(o,i)},hh:function(t,e){this.data=ha([t,e]),this.data.height=t.height+1,this.data.ib=!1,ta(this.data,this.wb)},ak:function(t,e,o){var i,r,n=r=1/0;for(i=e;i<=o-e;i++){var p=ea(t,0,i,this.wb),s=ea(t,i,o,this.wb),a=Math.max(0,Math.min(p.$,s.$)-Math.max(p.ca,s.ca))*Math.max(0,Math.min(p.ia,s.ia)-Math.max(p.da,s.da));if(p=na(p)+na(s),as&&(this.i.push(s),this.f.push(e),this.j.s&&(this.c.push(s),this.j.s=!1)),this.g.b.length>a&&Ps(this.g,e,a)},t.rc=function(t,e){var o=t.Bb(),i=t.qa();if(0=l;){var u=this.i[h],c=this.f[h];o[c=G(c).toString()]&&(p!==a&&(Bp(t,e,p,a),t.clear(t.DEPTH_BUFFER_BIT)),a=u),h--,p=u}p!==a&&(Bp(t,e,p,a),t.clear(t.DEPTH_BUFFER_BIT)),p=a=l}}i||(t.disable(t.DEPTH_TEST),t.clear(t.DEPTH_BUFFER_BIT),t.depthMask(n),t.depthFunc(r))},t.ve=function(t,e,o,i,r){var n,p,s=this.i.length-2,a=this.i[s+1];for(n=this.c.length-1;0<=n;--n){var h=this.u[n];for(t.uniform4fv(this.v.B,h),p=this.c[n];0<=s&&this.i[s]>=p;){h=this.i[s];var l=this.f[s];if(void 0===o[G(l).toString()]&&l.V()&&(void 0===r||at(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),Bp(t,e,h,a),a=i(l)))return a;s--,a=h}}},t.Ma=function(t,e){t=(t=t?t.b:[0,0,0,0])instanceof CanvasGradient||t instanceof CanvasPattern?Xp:We(t).map(function(t,e){return 3!=e?t/255:t})||Xp,this.j.fillColor&&U(t,this.j.fillColor)||(this.j.fillColor=t,this.j.s=!0,this.u.push(t)),e?this.g.Ma(null,e):this.g.Ma(null,new Gs({color:[0,0,0,0],lineWidth:0}))},Ia.prototype.La=function(){},s(Na,Cp),Na.prototype.b=function(t,e){var o=void 0!==t?t.toString():"0";return void 0===(t=this.a[o])&&(t={},this.a[o]=t),void 0===(o=t[e])&&(o=new Oa[e](this.g,this.f),t[e]=o),o},Na.prototype.i=function(){return gt(this.a)},Na.prototype.La=function(t,e,o,i,r,n,p,s){var a,h,l=Object.keys(this.a).map(Number);l.sort(N);var u=0;for(a=l.length;u=t.l)break;++n}o=r+" "+i,t.D!=o&&(t.o.innerHTML=o,t.D=o),t.B!=e&&(t.o.style.width=e+"px",t.B=e),t.j||(t.c.style.display="",t.j=!0)}else t.j&&(t.c.style.display="none",t.j=!1)}ph.prototype.C=function(){return this.get(lh)},ph.prototype.T=function(){hh(this)},ph.prototype.I=function(t){this.set(lh,t)};var lh="units";function uh(t){t=t||{},this.c=void 0,this.j=ch,this.D=this.l=0,this.I=null,this.na=!1,this.T=void 0!==t.duration?t.duration:200;var e=void 0!==t.className?t.className:"ol-zoomslider",o=document.createElement("button");o.setAttribute("type","button"),o.className=e+"-thumb ol-unselectable";var i=document.createElement("div");i.className=e+" ol-unselectable ol-control",i.appendChild(o),this.o=new ni(i),me(this.o,"pointerdown",this.yl,this),me(this.o,"pointermove",this.wl,this),me(this.o,"pointerup",this.xl,this),me(i,"click",this.vl,this),me(o,"click",Te),Qe.call(this,{element:i,render:t.render?t.render:yh})}s(uh,Qe),uh.prototype.ka=function(){Ae(this.o),Qe.prototype.ka.call(this)};var ch=0;function yh(t){if(t.frameState){if(!this.na){var e=(n=this.element).offsetWidth,o=n.offsetHeight,i=n.firstElementChild,r=getComputedStyle(i),n=i.offsetWidth+parseFloat(r.marginRight)+parseFloat(r.marginLeft);i=i.offsetHeight+parseFloat(r.marginTop)+parseFloat(r.marginBottom);this.I=[n,i],o>1)],o))<0?h=r+1:(l=r,a=!s);s=(r=a?h:~h)<0?(o=(o-p[-r-2])/(p[-r-1]-p[-r-2]),p=M(t[e+=(-r-2)*i],t[e+i],o),M(t[e+1],t[e+i+1],o)):(p=t[e+r*i],t[e+r*i+1])}return n?(n[0]=p,n[1]=s,n):[p,s]}function ul(t,e,o,i,r,n){if(o==e)return null;if(r>1)+1)*i-1]?o=n:e=n+1;if(r==(o=t[e*i-1]))return t.slice((e-1)*i,(e-1)*i+i);var p;for(n=(r-o)/(t[(e+1)*i-1]-o),o=[],p=0;p>>0):4294967296*(e>>>0)+(t>>>0)}function Wf(t,e,o,i,r){this.g=r,this.i=t,this.b=e,this.f=o,this.c=i}function Zf(t){rl.call(this),t=t||{},this.defaultDataProjection=new wt({code:"",units:"tile-pixels"}),this.b=t.featureClass?t.featureClass:Wf,this.a=t.geometryName,this.i=t.layerName?t.layerName:"layer",this.c=t.layers?t.layers:null}function Kf(t,e,o){for(var i=0,r=0,n=t.length;r>1,a=-7,h=o?-1:1,l=t[e+(r=o?r-1:0)];for(r+=h,o=l&(1<<-a)-1,l>>=-a,a+=n;0>=-a,a+=i;0>3,n=this.ea;this.type=7&i,t(r,e,this),this.ea===n&&this.mq(i)}return e},yp:function(){var t=Lf(this.lc,this.ea,!0,23,4);return this.ea+=4,t},up:function(){var t=Lf(this.lc,this.ea,!0,52,8);return this.ea+=8,t},Ka:function(t){var e=this.lc,o=e[this.ea++],i=127&o;return o<128?i:(i|=(127&(o=e[this.ea++]))<<7,o<128?i:(i|=(127&(o=e[this.ea++]))<<14,o<128?i:(i|=(127&(o=e[this.ea++]))<<21,o<128?i:function(t,e,o){var i=o.lc,r=i[o.ea++],n=(112&r)>>4;if(r<128)return Vf(t,n,e);if(n|=(127&(r=i[o.ea++]))<<3,r<128)return Vf(t,n,e);if(n|=(127&(r=i[o.ea++]))<<10,r<128)return Vf(t,n,e);if(n|=(127&(r=i[o.ea++]))<<17,r<128)return Vf(t,n,e);if(n|=(127&(r=i[o.ea++]))<<24,r<128)return Vf(t,n,e);if((r=i[o.ea++])<128)return Vf(t,n|(1&r)<<31,e);throw Error("Expected varint not more than 10 bytes")}(i|(15&(o=e[this.ea]))<<28,t,this))))},Kp:function(){return this.Ka(!0)},ce:function(){var t=this.Ka();return 1==t%2?(t+1)/-2:t/2},sp:function(){return!!this.Ka()},Gg:function(){for(var t=this.Ka()+this.ea,e=this.lc,o="",i=this.ea;i>>10&1023|55296),n=56320|1023&n),o+=String.fromCharCode(n),i+=p}return this.ea=t,o},mq:function(t){if((t&=7)===Xf.c)for(;127>3)?t.Gg():2===e?t.yp():3===e?t.up():4===e?t.Kp():5===e?t.Ka():6===e?t.ce():7===e?t.sp():null;return e}(o))}function p(t,e,o){3===t&&((t=new s(o,o.Ka()+o.ea)).length&&(e[t.name]=t))}a.prototype={clone:function(){return new a(this.x,this.y)},add:function(t){return this.clone().Yj(t)},rotate:function(t){return this.clone().hk(t)},round:function(){return this.clone().ik()},angle:function(){return Math.atan2(this.y,this.x)},Yj:function(t){return this.x+=t.x,this.y+=t.y,this},hk:function(t){var e=Math.cos(t),o=(t=Math.sin(t))*this.x+e*this.y;return this.x=e*this.x-t*this.y,this.y=o,this},ik:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},a.Kq=function(t){return t instanceof a?t:Array.isArray(t)?new a(t[0],t[1]):t},o.b=["Unknown","Point","LineString","Polygon"],o.prototype.Oh=function(){var t=this.Cc;t.ea=this.Ef;for(var e,o=t.Ka()+t.ea,i=1,r=0,n=0,p=0,s=[];t.ea>=3),r--,1===i||2===i)n+=t.ce(),p+=t.ce(),1===i&&(e&&s.push(e),e=[]),e.push(new a(n,p));else{if(7!==i)throw Error("unknown command "+i);e&&e.push(e[0].clone())}return e&&s.push(e),s},o.prototype.bbox=function(){var t=this.Cc;t.ea=this.Ef;for(var e=t.Ka()+t.ea,o=1,i=0,r=0,n=0,p=1/0,s=-1/0,a=1/0,h=-1/0;t.ea>=3),i--,1===o||2===o)(r+=t.ce())=this.me.length)throw Error("feature index out of bounds");return this.Cc.ea=this.me[t],t=this.Cc.Ka()+this.Cc.ea,new o(this.Cc,t,this.extent,this.ne,this.pe)};var h=s;t.default={Bf:e,Wj:o,Xj:h},t.Bf=e,t.Wj=o,t.Xj=h}(Js.xf=Js.xf||{}),(t=Wf.prototype).get=function(t){return this.c[t]},t.Bb=function(){return this.f},t.G=function(){return this.a||(this.a="Point"===this.i?K(this.b):z(this.b,0,this.b.length,2)),this.a},t.Wn=function(){return this.g},t.ec=function(){return this.b},t.ga=Wf.prototype.ec,t.V=function(){return this},t.Xn=function(){return this.c},t.Vd=Wf.prototype.V,t.qa=function(){return 2},t.Lc=m,t.U=function(){return this.i},s(Zf,rl),(t=Zf.prototype).U=function(){return"arraybuffer"},t.Oa=function(t,e){var o=this.c;t=new Js.Dd(t),t=new Js.xf.Bf(t);var i,r=[],n=this.b;for(i in t.layers)if(!o||-1!=o.indexOf(i))for(var p=t.layers[i],s=0,a=p.length;s>=5;e+=p+=String.fromCharCode(n+63)}return e}function xg(t,e){e=e||1e5;var o,i=[],r=0,n=0,p=0;for(o=t.length;p>1):n>>1;for(t=0,r=i.length;t=e[0]||t[1]<=e[1]&&t[3]>=e[1]||_(t,this.sb,this))},t.ob=function(t){var e,o=this.a,i=t.slice();for(i[o]=i[0]+(this.A[o]-this.A[0]),e=1;en[2])&&(o=s*Math.ceil((n[0]-o)/s),i=[i[0]+o,i[1],i[2]+o,i[3]]),o=this.S[0],n=this.S[1],s=-1,h=Math.pow(this.Jb*p,2),u=[],c=[],p=0,a=iv.length;pP.width?P.width-C:N,D=T+L>P.height?P.height-L:T;e.drawImage(P,C,L,k,D,M,R,k*o,D*o),1!=j&&(e.globalAlpha=F),1==f&&!y||e.setTransform.apply(e,m)}++g;break;case 5:for(v=M[1],l=M[2],E=M[3],T=M[4]*o,j=M[5]*o,y=M[6],f=M[7]*o,P=M[8],A=M[9],(R=M[10])&&(y+=r);vthis.c&&(this.c=this.i.lineWidth,this.f=null)},s(Dv,Ev),(t=Dv.prototype).Zb=function(t,e){var o=this.i,i=o.strokeStyle;if(void 0!==o.fillStyle||void 0!==i){Uv(this,t),jv(this,e),this.b.push([9,Ze(fp)]),void 0!==o.strokeStyle&&this.b.push([10,o.strokeStyle,o.lineWidth,o.lineCap,o.lineJoin,o.miterLimit,o.lineDash,o.lineDashOffset,!0,1]);var r=t.ga();i=this.coordinates.length;Tv(this,r,0,r.length,t.qa(),!1,!1),t=[1],i=[2,i],this.a.push(t,i),this.b.push(t,i),t=[7],this.b.push(t),void 0!==o.fillStyle&&this.a.push(t),void 0!==o.strokeStyle&&(o=[12],this.a.push(o),this.b.push(o)),Rv(this,e)}},t.rc=function(t,e){var o=this.i;Uv(this,t),jv(this,e),this.b.push([9,Ze(fp)]),void 0!==o.strokeStyle&&this.b.push([10,o.strokeStyle,o.lineWidth,o.lineCap,o.lineJoin,o.miterLimit,o.lineDash,o.lineDashOffset,!0,1]);o=t.Bb();Ov(this,t.ec(),0,o,t.qa()),Rv(this,e)},t.pc=function(t,e){var o=this.i,i=o.strokeStyle;if(void 0!==o.fillStyle||void 0!==i){Uv(this,t),jv(this,e),this.b.push([9,Ze(fp)]),void 0!==o.strokeStyle&&this.b.push([10,o.strokeStyle,o.lineWidth,o.lineCap,o.lineJoin,o.miterLimit,o.lineDash,o.lineDashOffset,!0,1]),o=t.c,i=wl(t),t=t.qa();var r,n=0,p=0;for(r=o.length;pthis.c&&(this.c=o.lineWidth,this.f=null)):(o.strokeStyle=void 0,o.lineCap=void 0,o.lineDash=null,o.lineDashOffset=void 0,o.lineJoin=void 0,o.lineWidth=void 0,o.miterLimit=void 0)},s(Gv,Ev),Gv.prototype.yc=function(t,e,o,i,r,n){if(""!==this.Ia&&this.g&&(this.i||this.f)){if(this.i){r=this.i;var p=this.S;if(!p||p.fillStyle!=r.fillStyle){var s=[9,r.fillStyle];this.a.push(s),this.b.push(s),p?p.fillStyle=r.fillStyle:this.S={fillStyle:r.fillStyle}}}this.f&&(r=this.f,(p=this.D)&&p.lineCap==r.lineCap&&p.lineDash==r.lineDash&&p.lineDashOffset==r.lineDashOffset&&p.lineJoin==r.lineJoin&&p.lineWidth==r.lineWidth&&p.miterLimit==r.miterLimit&&p.strokeStyle==r.strokeStyle||(s=[10,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset,!1,1],this.a.push(s),this.b.push(s),p?(p.lineCap=r.lineCap,p.lineDash=r.lineDash,p.lineDashOffset=r.lineDashOffset,p.lineJoin=r.lineJoin,p.lineWidth=r.lineWidth,p.miterLimit=r.miterLimit,p.strokeStyle=r.strokeStyle):this.D={lineCap:r.lineCap,lineDash:r.lineDash,lineDashOffset:r.lineDashOffset,lineJoin:r.lineJoin,lineWidth:r.lineWidth,miterLimit:r.miterLimit,strokeStyle:r.strokeStyle})),r=this.g,(p=this.C)&&p.font==r.font&&p.textAlign==r.textAlign&&p.textBaseline==r.textBaseline||(s=[11,r.font,r.textAlign,r.textBaseline],this.a.push(s),this.b.push(s),p?(p.font=r.font,p.textAlign=r.textAlign,p.textBaseline=r.textBaseline):this.C={font:r.font,textAlign:r.textAlign,textBaseline:r.textBaseline}),jv(this,n),t=[5,r=this.coordinates.length,t=Tv(this,t,e,o,i,!1,!1),this.Ia,this.j,this.o,this.v,this.u,!!this.i,!!this.f,this.l],this.a.push(t),this.b.push(t),Rv(this,n)}},Gv.prototype.Cb=function(t){if(t){if((e=t.Fa())?(e=qe((e=e.b)||fp),this.i?this.i.fillStyle=e:this.i={fillStyle:e}):this.i=null,s=t.Ga()){var e=s.a,o=s.f,i=s.i,r=s.g,n=s.j,p=s.c,s=s.o;o=void 0!==o?o:"round",i=i?i.slice():gp,r=void 0!==r?r:0,n=void 0!==n?n:"round",p=void 0!==p?p:1,s=void 0!==s?s:10,e=qe(e||dp);if(this.f)(h=this.f).lineCap=o,h.lineDash=i,h.lineDashOffset=r,h.lineJoin=n,h.lineWidth=p,h.miterLimit=s,h.strokeStyle=e;else this.f={lineCap:o,lineDash:i,lineDashOffset:r,lineJoin:n,lineWidth:p,miterLimit:s,strokeStyle:e}}else this.f=null;var a=t.a,h=(e=t.i,o=t.c,i=t.o,p=t.f,s=t.b,r=t.Na(),n=t.g,t.j);t=void 0!==a?a:"10px sans-serif",n=void 0!==n?n:"center",h=void 0!==h?h:"middle",this.g?((a=this.g).font=t,a.textAlign=n,a.textBaseline=h):this.g={font:t,textAlign:n,textBaseline:h},this.Ia=void 0!==r?r:"",this.j=void 0!==e?e:0,this.o=void 0!==o?o:0,this.l=void 0!==i&&i,this.v=void 0!==p?p:0,this.u=void 0!==s?s:1}else this.Ia=""},s(Bv,Cp);var Xv={0:[[!0]]};function Vv(t,e,o){var i,r=Math.floor(t.length/2);if(r<=e)for(i=r;it.$&&(t.$=i.$),i.dat.ia&&(t.ia=i.ia)):t[e][o]=i:(t[e]={},t[e][o]=i)}function Qv(t,e,o,i,r,n,p,s,a,h){var l=G(e).toString();l in t.wantedTiles||(t.wantedTiles[l]={});var u=t.wantedTiles[l];t=t.tileQueue;var c,y,f,g=o.minZoom;for(f=p;g<=f;--f){var d=re(o,n,f,d),v=o.Da(f);for(c=d.ca;c<=d.$;++c)for(y=d.da;y<=d.ia;++y)if(p-f<=s){var b=e.Nc(f,c,y,i,r);0==b.getState()&&(u[b.bb()]=!0,b.bb()in t.a||t.f([b,l,ne(o,b.ta),v])),a&&a.call(h,b)}else e.Ug(f,c,y,r)}}function tb(t){zv.call(this,t),this.fa=[1,0,0,1,0,0]}function eb(t,e,o){var i=e.pixelRatio,r=e.size[0]*i,n=e.size[1]*i,p=e.viewState.rotation,s=nt(o),a=pt(o),h=tt(o);o=Q(o),ep(e.coordinateToPixelTransform,s),ep(e.coordinateToPixelTransform,a),ep(e.coordinateToPixelTransform,h),ep(e.coordinateToPixelTransform,o),t.save(),vp(t,-p,r/2,n/2),t.beginPath(),t.moveTo(s[0]*i,s[1]*i),t.lineTo(a[0]*i,a[1]*i),t.lineTo(h[0]*i,h[1]*i),t.lineTo(o[0]*i,o[1]*i),t.clip(),vp(t,p,r/2,n/2)}function ob(t,e,o,i,r){var n=t.a;if(Ce(n,e)){var p=i.size[0]*i.pixelRatio,s=i.size[1]*i.pixelRatio,a=i.viewState.rotation;vp(o,-a,p/2,s/2),t=r||ib(t,i,0),n.b(new yp(e,new mp(o,i.pixelRatio,i.extent,t,i.viewState.rotation),i,o,null)),vp(o,a,p/2,s/2)}}function ib(t,e,o){var i=e.viewState,r=e.pixelRatio,n=r/i.resolution;return np(t.fa,r*e.size[0]/2,r*e.size[1]/2,n,-n,-i.rotation,-i.center[0]+o,-i.center[1])}function rb(t,e){return G(t)-G(e)}function nb(t,e){return(t=.5*t/e)*t}function pb(t,e,o,i,r,n){var p,s=!1;if(p=o.Y()){var a=p.Ye();2==a||3==a?p.Bj(r,n):(0==a&&p.load(),p.Nh(r,n),s=!0)}return(r=(0,o.Za)(e))&&(i=r.Vd(i),(0,sb[i.U()])(t,i,o,e)),s}s(zv,Le),zv.prototype.Ea=m,zv.prototype.Ue=Bi,zv.prototype.Nf=function(o,i,r){return function(e,t){return Pw(o,i,e,t,function(t){r[e]||(r[e]={}),r[e][t.ta.toString()]=t})}},zv.prototype.na=function(t){2===t.target.getState()&&Hv(this)},s(tb,zv),tb.prototype.u=function(t,e,o,i){if(this.Ea(t,e,0,Gi,this))return o.call(i,this.a,null)},tb.prototype.ef=function(t,e,o,i){ob(this,"postcompose",t,e,i)};var sb={Point:function(t,e,o,i){var r=o.Y();if(r){if(2!=r.Ye())return;var n=t.b(o.Ba(),"Image");n.Ub(r),n.qc(e,i)}(r=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(r),t.yc(e.ga(),0,2,2,e,i))},LineString:function(t,e,o,i){var r=o.Ga();if(r){var n=t.b(o.Ba(),"LineString");n.Ma(null,r),n.mc(e,i)}(r=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(r),t.yc(yl(e),0,2,2,e,i))},Polygon:function(t,e,o,i){var r=o.Fa(),n=o.Ga();if(r||n){var p=t.b(o.Ba(),"Polygon");p.Ma(r,n),p.rc(e,i)}(r=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(r),t.yc(Mr(e),0,2,2,e,i))},MultiPoint:function(t,e,o,i){var r=o.Y();if(r){if(2!=r.Ye())return;var n=t.b(o.Ba(),"Image");n.Ub(r),n.oc(e,i)}(r=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(r),o=e.ga(),t.yc(o,0,o.length,e.qa(),e,i))},MultiLineString:function(t,e,o,i){var r=o.Ga();if(r){var n=t.b(o.Ba(),"LineString");n.Ma(null,r),n.nc(e,i)}(r=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(r),o=gl(e),t.yc(o,0,o.length,2,e,i))},MultiPolygon:function(t,e,o,i){var r=o.Fa(),n=o.Ga();if(n||r){var p=t.b(o.Ba(),"Polygon");p.Ma(r,n),p.pc(e,i)}(r=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(r),o=ml(e),t.yc(o,0,o.length,2,e,i))},GeometryCollection:function(t,e,o,i){var r,n=0;for(r=(e=e.a).length;na[2];)l=ib(this,t,l=h*++m),u.La(g,r,l,s,n),p-=h;l=ib(this,t,0)}vp(g,s,v/2,b/2),g!=o&&(ob(this,"render",g,t,l),o.drawImage(g.canvas,-y,-f),g.translate(-y,-f)),g.globalAlpha=d}c&&o.restore(),this.ef(o,t,e,l)},ab.prototype.Ea=function(t,e,o,i,r){if(this.f){var n=this.a,p={};return this.f.Ea(t,e.viewState.resolution,e.viewState.rotation,o,{},function(t){var e=G(t).toString();if(!(e in p))return p[e]=!0,i.call(r,t,n)})}},ab.prototype.D=function(){Hv(this)},ab.prototype.sd=function(t){function e(t){var e=t.Lc();if(e)var o=e.call(t,h);else(e=n.f)&&(o=e(t,h));if(o){if(o){if(e=!1,Array.isArray(o))for(var i=0,r=o.length;it.ad:r<=t.ad}return t.l?(r=e.coordinate,o=t.j.V(),t.g===Gb?i=t.a:t.g===Xb?(i=(i=t.a[0])[i.length-1],Fb(t,e)&&(r=t.l.slice())):i=(i=t.a)[i.length-1],i[0]=r[0],i[1]=r[1],t.Za(t.a,o),t.B&&t.B.V().ma(r),o instanceof Sr&&t.g!==Xb?(t.C||(t.C=new Fh(new cl(null))),r=o.Ch(0),(e=t.C.V()).ba(r.ja,r.ga())):t.I&&(e=t.C.V()).ma(t.I),Ub(t)):(e=e.coordinate.slice(),t.B?t.B.V().ma(e):(t.B=new Fh(new lr(e)),Ub(t))),!0}function Fb(t,e){var o=!1;if(t.j){var i=!1,r=[t.l];if(t.g===Bb?i=t.a.length>t.Sa:t.g===Xb&&(i=t.a[0].length>t.Sa,r=[t.a[0][0],t.a[0][t.a[0].length-2]]),i){i=e.map;for(var n=0,p=r.length;n=t.va&&(t.u?r.pop():o=!0),r.push(e.slice()),t.Za(r,i)}else t.g===Xb&&((r=t.a[0]).length>=t.va&&(t.u?r.pop():o=!0),r.push(e.slice()),o&&(t.l=r[0]),t.Za(t.a,i));Ub(t),o&&t.Pd()}function Ob(t){t.l=null;var e=t.j;return e&&(t.j=null,t.B=null,t.C=null,t.pa.ha().clear(!0)),e}function Ub(t){var e=[];t.j&&e.push(t.j),t.C&&e.push(t.C),t.B&&e.push(t.B),(t=t.pa.ha()).clear(!0),t.cd(e)}s(wb,Re),(t=wb.prototype).Ea=m,t.ya=function(){return this.j},t.xa=function(){return this.D},t.za=function(){return this.c},t.getState=function(){return this.na},t.sa=function(){this.s()},t.ua=function(t){this.j=xb(t),this.s()},s(Mb,wb),(t=Mb.prototype).yb=function(t){var e=G(t).toString();if(Ab(this,e,t)){Pb(this,e,t);var o=t.V();o?(e=o.G(),this.a&&this.a.Ca(e,t)):this.g[e]=t,this.b(new jb("addfeature",t))}this.s()},t.cd=function(t){Eb(this,t),this.s()},t.clear=function(t){if(t){for(var e in this.v)this.v[e].forEach(Se);this.f||(this.v={},this.o={},this.l={})}else if(this.a)for(var o in this.a.forEach(this.Ig,this),this.g)this.Ig(this.g[o]);this.f&&this.f.clear(),this.a&&this.a.clear(),this.R.clear(),this.g={},this.b(new jb("clear")),this.s()},t.sh=function(t,e){return this.a?this.a.forEach(t,e):this.f?this.f.forEach(t,e):void 0},t.$b=function(t,e,o){return this.a?ga(this.a,t,e,o):this.f?this.f.forEach(e,o):void 0},t.th=function(e,o,i){return this.$b(e,function(t){if(t.V().Xa(e)&&(t=o.call(i,t)))return t})},t.Ah=function(){return this.f},t.Xe=function(){if(this.f)var t=this.f.a;else this.a&&(t=ya(this.a),gt(this.g)||c(t,ft(this.g)));return t},t.zh=function(t){var e=[];return function(t,e,o){t.$b([e[0],e[1],e[0],e[1]],function(t){if(t.V().sb(e))return o.call(void 0,t)})}(this,t,function(t){e.push(t)}),e},t.Uf=function(t){return fa(this.a,t)},t.vh=function(t,e){var i=t[0],r=t[1],n=null,p=[NaN,NaN],s=1/0,a=[-1/0,-1/0,1/0,1/0],h=e||Gi;return ga(this.a,a,function(t){if(h(t)){var e=t.V(),o=s;(s=e.Kb(i,r,p,s))o&&(t.index+=r)})}function fm(t,e,o){Ee.call(this,t),this.features=e,this.mapBrowserEvent=o}function gm(t){if(Gr.call(this,{handleEvent:dm}),t=t||{},this.C=t.condition?t.condition:Hr,this.D=t.addCondition?t.addCondition:Bi,this.B=t.removeCondition?t.removeCondition:Bi,this.I=t.toggleCondition?t.toggleCondition:Jr,this.l=!!t.multi&&t.multi,this.o=t.filter?t.filter:Gi,this.j=t.hitTolerance?t.hitTolerance:0,this.g=new vb({source:new Mb({useSpatialIndex:!1,features:t.features,wrapX:t.wrapX}),style:t.style?t.style:function(){var e=Ih();return c(e.Polygon,e.LineString),c(e.GeometryCollection,e.LineString),function(t){return t.V()?e[t.V().U()]:null}}(),updateWhileAnimating:!0,updateWhileInteracting:!0}),t.layers)if("function"==typeof t.layers)t=t.layers;else{var e=t.layers;t=function(t){return d(e,t)}}else t=Gi;this.u=t,this.a={},me(t=this.g.ha().f,"add",this.Fn,this),me(t,"remove",this.Jn,this)}function dm(t){if(!this.C(t))return!0;var o=this.D(t),i=this.B(t),r=this.I(t),e=!o&&!i&&!r,n=t.map,p=this.g.ha().f,s=[],a=[];if(e){for(yt(this.a),n.we(t.pixel,function(t,e){if(this.o(t,e))return a.push(t),t=G(t),this.a[t]=e,!this.l}.bind(this),{layerFilter:this.u,hitTolerance:this.j}),e=p.dc()-1;0<=e;--e){n=p.item(e);var h=a.indexOf(n);-1e.v),g))return void(Math.abs(o[0]-r[0])<=Math.abs(o[1]-r[1])?(f=[(i[0]+r[0])/2,(i[1]+r[1])/2],y=e.a(f),u=[(n[0]+o[0])/2,(n[1]+o[1])/2],c=e.a(u),t(e,o,i,f,u,p,s,y,c,l-1),t(e,u,f,r,n,c,y,a,h,l-1)):(f=[(o[0]+i[0])/2,(o[1]+i[1])/2],y=e.a(f),u=[(r[0]+n[0])/2,(r[1]+n[1])/2],c=e.a(u),t(e,o,f,u,n,p,y,c,h,l-1),t(e,f,i,r,u,y,s,a,c,l-1)));if(f){if(!e.l)return;e.o=!0}e.c.push({source:[p,a,h],target:[o,r,n]}),e.c.push({source:[p,s,a],target:[o,i,r]})}}(this,t,e,i,o,r,s,a,h,10),this.o){var l=1/0;this.c.forEach(function(t){l=Math.min(l,t.source[0][0],t.source[1][0],t.source[2][0])}),this.c.forEach(function(t){if(Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-l>this.b/2){var e=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]];e[0][0]-l>this.b/2&&(e[0][0]-=this.b),e[1][0]-l>this.b/2&&(e[1][0]-=this.b),e[2][0]-l>this.b/2&&(e[2][0]-=this.b),Math.max(e[0][0],e[1][0],e[2][0])-Math.min(e[0][0],e[1][0],e[2][0])r[0]||t[1]<0||t[1]>r[1])&&(this.f||(this.f=Je(1,1)),this.f.clearRect(0,0,1,1),this.f.drawImage(this.M.Y(),t[0],t[1],1,1,0,0,1,1),0<(r=this.f.getImageData(0,0,1,1).data)[3]))return o.call(i,this.a,r)}},s(tw,zn),tw.prototype.Fd=function(t){var e=null,o=t.U();return"canvas"===o?e=new Om(this):"webgl"===o&&(e=new Qm(t,this)),e},s(ew,Dm),ew.prototype.sd=function(t,e){var o=t.pixelRatio,i=t.size,r=(p=t.viewState).projection,n=p.resolution,p=p.center,s=this.a,a=s.ha(),h=a.i,l=a.Ta(r),u=l.tc(n,this.T),c=l.Da(u),y=Math.round(n/c)||1,f=t.extent;if(void 0!==e.extent&&(f=rt(f,e.extent)),ht(f))return!1;var g=ie(l,f,c),d=l.Pc(u),v=l.Da(u),b=F(l.gb(u),l.j);d=W(d[0]+g.ca*b[0]*v,d[1]+g.da*b[1]*v,d[0]+(g.$+1)*b[0]*v,d[1]+(g.ia+1)*b[1]*v,void 0),v=a.nb(o),(b={})[u]={};var m,w,x=this.Nf(a,r,b),S=this.l,M=this.va,P=!1;for(m=g.ca;m<=g.$;++m)for(w=g.da;w<=g.ia;++w){var A=a.Nc(u,m,w,o,r);3!=A.getState()||this.a.kd()||uv(A,2),ow(this,A)||(A=lv(A)),ow(this,A)?2==A.getState()&&(b[u][A.ta.toString()]=A,P||-1!=this.g.indexOf(A)||(P=!0)):ee(l,A.ta,x,M,S)||(A=oe(l,A.ta,M,S))&&x(u+1,A)}if(m=(m=t.viewHints)[0]||m[1],!(this.f&&16t.highWaterMark}function Mw(t){wb.call(this,{attributions:t.attributions,extent:t.extent,logo:t.logo,projection:t.projection,state:t.state,wrapX:t.wrapX}),this.va=void 0!==t.opaque&&t.opaque,this.$a=void 0!==t.tilePixelRatio?t.tilePixelRatio:1,this.tileGrid=void 0!==t.tileGrid?t.tileGrid:null,this.a=new xw(t.cacheSize),this.o=[0,0],this.uc=""}function Pw(t,e,o,i,r){if(!(e=t.Wd(e)))return!1;for(var n,p,s=!0,a=i.ca;a<=i.$;++a)for(var h=i.da;h<=i.ia;++h)n=t.Sb(o,a,h),p=!1,e.b.hasOwnProperty(n)&&((p=2===(n=e.get(n)).getState())&&(p=!1!==r(n))),p||(s=!1);return s}function Aw(t,e){t.uc!==e&&(t.uc=e,t.s())}function Ew(t,e,o){var i=void 0!==o?o:t.c;if(o=t.Ta(i),t.u&&i.c){var r=e;e=r[0],t=ne(o,r),e=D(i=ue(i),t)?r:(r=st(i),t[0]+=r*Math.ceil((i[0]-t[0])/r),o.bg(t,e))}if(r=e[0],i=e[1],t=e[2],o.minZoom>r||r>o.maxZoom)o=!1;else{var n=o.G();o=!(o=n?re(o,n,r):o.a?o.a[r]:null)||y(o,i,t)}return o?e:null}function Tw(t,e){Ee.call(this,t),this.tile=e}function jw(t){Mw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,extent:t.extent,logo:t.logo,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tilePixelRatio:t.tilePixelRatio,wrapX:t.wrapX}),this.tileLoadFunction=t.tileLoadFunction,this.tileUrlFunction=this.Fc?this.Fc.bind(this):mw,this.urls=null,t.urls?this.eb(t.urls):t.url&&this.jb(t.url),t.tileUrlFunction&&this.cb(t.tileUrlFunction)}function Cw(t){jw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,extent:t.extent,logo:t.logo,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction?t.tileLoadFunction:Iw,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX}),this.crossOrigin=void 0!==t.crossOrigin?t.crossOrigin:null,this.tileClass=t.tileClass?t.tileClass:cv,this.g={},this.v={},this.Sa=t.reprojectionErrorThreshold,this.I=!1}function Lw(t,e,o,i,r,n,p){return r=(o=Ew(t,e=[e,o,i],n))?t.tileUrlFunction(o,r,n):void 0,(r=new t.tileClass(e,void 0!==r?0:4,void 0!==r?r:"",t.crossOrigin,t.tileLoadFunction)).key=p,me(r,"change",t.Li,t),r}function Rw(t,e,o,i,r,n){var p=t.Sb(e,o,i),s=t.uc;if(t.a.b.hasOwnProperty(p)){var a=t.a.get(p);if(a.key!=s){var h=a;if(a=Lw(t,e,o,i,r,n,s),0==h.getState()?a.i=h.i:a.i=h,a.i){e=a.i,o=a;do{if(2==e.getState()){e.i=null;break}1==e.getState()?o=e:0==e.getState()?o.i=e.i:o=e,e=o.i}while(e)}t.a.replace(p,a)}}else a=Lw(t,e,o,i,r,n,s),t.a.set(p,a);return a}function Iw(t,e){t.Y().src=e}function Nw(t){this.B=void 0!==t.hidpi&&t.hidpi,Cw.call(this,{cacheSize:t.cacheSize,crossOrigin:"anonymous",opaque:!0,projection:Wt("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:"loading",tileLoadFunction:t.tileLoadFunction,tilePixelRatio:this.B?2:1,wrapX:void 0===t.wrapX||t.wrapX}),this.R=void 0!==t.culture?t.culture:"en-us",this.C=void 0!==t.maxZoom?t.maxZoom:-1,this.f=t.key,this.l=t.imagerySet,fw("https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+this.l+"?uriScheme=https&include=ImageryProviders&key="+this.f,this.pa.bind(this),void 0,"jsonp")}(t=lw.prototype).sd=function(t,e){var o=this.a,i=o.i;return this.pa!=i&&(this.g.length=0,o=o.j,this.c||"vector"==o||(this.c=Je()),this.c&&"vector"==o&&(this.c=null)),this.pa=i,ew.prototype.sd.apply(this,arguments)},t.Of=function(t,e,o,i,r,n,p,s){var a=t,h=this.a,l=e.pixelRatio,u=e.viewState.projection,c=h.i,y=h.get(bb)||null,f=a.o;if(f.Nd||f.mf!=c||f.Kg!=y){for(var g=0,d=a.a.length;gTerms of Use'});function kw(t){var e=void 0!==(t=t||{}).projection?t.projection:"EPSG:3857",o=void 0!==t.tileGrid?t.tileGrid:ae({extent:ue(e),maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});Cw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,opaque:t.opaque,projection:e,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:o,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX})}function Dw(t){this.C=t.account,this.B=t.map||"",this.f=t.config||{},this.l={},kw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,maxZoom:void 0!==t.maxZoom?t.maxZoom:18,minZoom:t.minZoom,projection:t.projection,state:"loading",wrapX:t.wrapX}),Ow(this)}function Ow(t){var e=JSON.stringify(t.f);if(t.l[e])Uw(t,t.l[e]);else{var o="https://"+t.C+".cartodb.com/api/v1/map";t.B&&(o+="/named/"+t.B);var i=new XMLHttpRequest;i.addEventListener("load",t.Dl.bind(t,e)),i.addEventListener("error",t.Cl.bind(t)),i.open("POST",o),i.setRequestHeader("Content-type","application/json"),i.send(JSON.stringify(t.f))}}function Uw(t,e){t.jb("https://"+e.cdn_url.https+"/"+t.C+"/api/v1/map/"+e.layergroupid+"/{z}/{x}/{y}.png")}function Gw(t){Mb.call(this,{attributions:t.attributions,extent:t.extent,logo:t.logo,projection:t.projection,wrapX:t.wrapX}),this.resolution=void 0,this.distance=void 0!==t.distance?t.distance:20,this.features=[],this.geometryFunction=t.geometryFunction||function(t){return R((t=t.V())instanceof lr,10),t},this.source=t.source,this.source.J("change",Gw.prototype.sa,this)}function Bw(t){if(void 0!==t.resolution)for(var e=[1/(t.features.length=0),1/0,-1/0,-1/0],o=t.distance*t.resolution,i=t.source.Xe(),r={},n=0,p=i.length;n>=1}return i.join("")}(e))}})),i.imageryProviders){var a=zt(Wt("EPSG:4326"),this.c);(t=i.imageryProviders.map(function(t){var e=t.attribution,n={};return t.coverageAreas.forEach(function(t){var e,o=t.zoomMin,i=Math.min(t.zoomMax,p);for(t=ut([(t=t.bbox)[1],t[0],t[3],t[2]],a),e=o;e<=i;++e){var r=e.toString();o=re(s,t,e),r in n?n[r].push(o):n[r]=[o]}}),new ce({html:e,tileRanges:n})})).push(Fw),this.ua(t)}this.D=e,Sb(this,"ready")}},s(kw,Cw),s(Dw,kw),(t=Dw.prototype).Kk=function(){return this.f},t.tq=function(t){ct(this.f,t),Ow(this)},t.Xp=function(t){this.f=t||{},Ow(this)},t.Dl=function(t,e){if(!(e=e.target).status||200<=e.status&&e.status<300){try{var o=JSON.parse(e.responseText)}catch(t){return void Sb(this,"error")}Uw(this,o),this.l[t]=o,Sb(this,"ready")}else Sb(this,"error")},t.Cl=function(){Sb(this,"error")},s(Gw,Mb),(t=Gw.prototype).$n=function(){return this.distance},t.ao=function(){return this.source},t.Yd=function(t,e,o){this.source.Yd(t,e,o),e!==this.resolution&&(this.clear(),this.resolution=e,Bw(this),this.cd(this.features))},t.Yp=function(t){this.distance=t,this.sa()},t.sa=function(){this.clear(),Bw(this),this.cd(this.features),Mb.prototype.sa.call(this)},s(Ww,Zm),(t=Ww.prototype).co=function(){return this.v},t.Jc=function(t,e,o,i){if(void 0===this.f)return null;e=Km(this,e),o=this.T?o:1;var r=this.M;if(r&&this.I==this.i&&r.resolution==e&&r.a==o&&O(r.G(),t))return r;ct(r={F:"image",FORMAT:"PNG32",TRANSPARENT:!0},this.v);var n=((t=t.slice())[0]+t[2])/2,p=(t[1]+t[3])/2;if(1!=this.B){var s=this.B*st(t)/2,a=this.B*it(t)/2;t[0]=n-s,t[1]=p-a,t[2]=n+s,t[3]=p+a}s=e/o,a=Math.ceil(st(t)/s);var h=Math.ceil(it(t)/s);return t[0]=n-s*a/2,t[2]=n+s*a/2,t[1]=p-s*h/2,t[3]=p+s*h/2,this.l[0]=a,this.l[1]=h,n=t,p=this.l,s=o,i=i.mb.split(":").pop(),r.SIZE=p[0]+","+p[1],r.BBOX=n.join(","),r.BBOXSR=i,r.IMAGESR=i,r.DPI=Math.round(90*s),(n=(i=this.f).replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage"))==i&&R(!1,50),r=Vw(n,r),this.M=new sv(t,e,o,this.j,r,this.R,this.g),this.I=this.i,me(this.M,"change",this.o,this),this.M},t.bo=function(){return this.g},t.eo=function(){return this.f},t.fo=function(t){this.M=null,this.g=t,this.s()},t.ho=function(t){t!=this.f&&(this.f=t,this.M=null,this.s())},t.io=function(t){ct(this.v,t),this.M=null,this.s()},s(Zw,Zm),(t=Zw.prototype).ko=function(){return this.g},t.Jc=function(t,e,o){if(e=Km(this,e),o=this.T?o:1,(r=this.M)&&this.B==this.i&&r.resolution==e&&r.a==o&&O(r.G(),t))return r;1!=this.v&<(t=t.slice(),this.v);var i=[st(t)/e*o,it(t)/e*o];if(void 0!==this.I){var r=this.I,n=et(t),p=this.pa,s=st(t),a=it(t),h=i[0],l=i[1],u=.0254/this.l;i={OPERATION:this.va?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol.source.ImageMapGuide source",CLIP:"1",SETDISPLAYDPI:this.l,SETDISPLAYWIDTH:Math.round(i[0]),SETDISPLAYHEIGHT:Math.round(i[1]),SETVIEWSCALE:h*aOpenStreetMap contributors.'});function $w(t){this.B=null,this.va=void 0!==t.operationType?t.operationType:"pixel",this.Sa=void 0!==t.threads?t.threads:1,this.g=function(t){for(var e=t.length,o=Array(e),i=0;ithis.fk;)this.Ed.shift().callback(null,null)},e.prototype.dh=function(){if(0===this.oe&&0Stamen Design, under CC BY 3.0.'}),_w],nx={terrain:{Lb:"jpg",opaque:!0},"terrain-background":{Lb:"jpg",opaque:!0},"terrain-labels":{Lb:"png",opaque:!1},"terrain-lines":{Lb:"png",opaque:!1},"toner-background":{Lb:"png",opaque:!0},toner:{Lb:"png",opaque:!0},"toner-hybrid":{Lb:"png",opaque:!1},"toner-labels":{Lb:"png",opaque:!1},"toner-lines":{Lb:"png",opaque:!1},"toner-lite":{Lb:"png",opaque:!0},watercolor:{Lb:"jpg",opaque:!0}},px={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:1,maxZoom:16}};function sx(t){Cw.call(this,{attributions:(t=t||{}).attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX}),this.f=t.params||{},this.l=[1/0,1/0,-1/0,-1/0],Aw(this,ax(this))}function ax(t){var e,o=0,i=[];for(e in t.f)i[o++]=e+"-"+t.f[e];return i.join("/")}function hx(t){Mw.call(this,{opaque:!1,projection:t.projection,tileGrid:t.tileGrid,wrapX:void 0===t.wrapX||t.wrapX})}function lx(t,e,o){hv.call(this,t,2),this.c=e,this.Ia=o,this.a=null}function ux(t){if(this.f=null,Cw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,projection:Wt("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:"loading",tileLoadFunction:t.tileLoadFunction,wrapX:void 0===t.wrapX||t.wrapX}),t.url)if(t.jsonp)fw(t.url,this.og.bind(this),this.Ve.bind(this));else{var e=new XMLHttpRequest;e.addEventListener("load",this.Ao.bind(this)),e.addEventListener("error",this.zo.bind(this)),e.open("GET",t.url),e.send()}else t.tileJSON?this.og(t.tileJSON):R(!1,51)}function cx(t){if(Mw.call(this,{projection:Wt("EPSG:3857"),state:"loading"}),this.v=void 0===t.preemptive||t.preemptive,this.l=mw,this.g=void 0,this.f=t.jsonp||!1,t.url)if(this.f)fw(t.url,this.pg.bind(this),this.We.bind(this));else{var e=new XMLHttpRequest;e.addEventListener("load",this.Eo.bind(this)),e.addEventListener("error",this.Do.bind(this)),e.open("GET",t.url),e.send()}else t.tileJSON?this.pg(t.tileJSON):R(!1,51)}function yx(t,e,o,i,r,n){hv.call(this,t,e),this.o=o,this.a=i,this.v=r,this.c=this.j=this.g=null,this.l=n}function fx(t){if(0==t.state)if(t.state=1,t.l)fw(t.o,t.Ji.bind(t),t.De.bind(t));else{var e=new XMLHttpRequest;e.addEventListener("load",t.Co.bind(t)),e.addEventListener("error",t.Bo.bind(t)),e.open("GET",t.o),e.send()}}function gx(t){var e=(t=t||{}).params||{};Cw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,opaque:!(!("TRANSPARENT"in e)||e.TRANSPARENT),projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX}),this.C=void 0!==t.gutter?t.gutter:0,this.f=e,this.l=!0,this.B=t.serverType,this.T=void 0===t.hidpi||t.hidpi,this.R="",vx(this),this.fa=[1/0,1/0,-1/0,-1/0],mx(this),Aw(this,bx(this))}function dx(t,e,o,i,r,n,p){var s=t.urls;if(s){if(p.WIDTH=o[0],p.HEIGHT=o[1],p[t.l?"CRS":"SRS"]=n.mb,"STYLES"in t.f||(p.STYLES=""),1!=r)switch(t.B){case"geoserver":o=90*r+.5|0,p.FORMAT_OPTIONS="FORMAT_OPTIONS"in p?p.FORMAT_OPTIONS+";dpi:"+o:"dpi:"+o;break;case"mapserver":p.MAP_RESOLUTION=90*r;break;case"carmentaserver":case"qgis":p.DPI=90*r;break;default:R(!1,52)}return n=n.b,t.l&&"ne"==n.substr(0,2)&&(t=i[0],i[0]=i[1],i[1]=t,t=i[2],i[2]=i[3],i[3]=t),p.BBOX=i.join(","),Vw(1==s.length?s[0]:s[L((e[1]<>=1,i>>=1;break;default:R(!1,53)}n.push([1,1]),n.reverse();r=[1];var p=[0];for(i=1,o=n.length;i=e+this.b&&s.height>=o+this.b)return n={offsetX:s.x+this.b,offsetY:s.y+this.b,image:this.f},this.c[t]=n,i.call(r,this.i,s.x+this.b,s.y+this.b),t=p,e+=this.b,i=o+this.b,e=s.width-e>s.height-i?(o={x:s.x+e,y:s.y,width:s.width-e,height:s.height},{x:s.x,y:s.y+i,width:e,height:s.height-i}):(o={x:s.x+e,y:s.y,width:s.width-e,height:i},{x:s.x,y:s.y+i,width:s.width,height:s.height-i}),Nx(this,t,o,e),n}return null},Fx.prototype.add=function(t,e,o,i,r,n){return e+this.b>this.i||o+this.b>this.i?null:(i=kx(this,!1,t,e,o,i,n))?(t=kx(this,!0,t,e,o,r||m,n),{offsetX:i.offsetX,offsetY:i.offsetY,image:i.image,Zl:t.image}):null},h.prototype.code=h.prototype.code,i("ol.Attribution",ce),ce.prototype.getHTML=ce.prototype.i,i("ol.Collection",De),De.prototype.clear=De.prototype.clear,De.prototype.extend=De.prototype.fg,De.prototype.forEach=De.prototype.forEach,De.prototype.getArray=De.prototype.tm,De.prototype.item=De.prototype.item,De.prototype.getLength=De.prototype.dc,De.prototype.insertAt=De.prototype.He,De.prototype.pop=De.prototype.pop,De.prototype.push=De.prototype.push,De.prototype.remove=De.prototype.remove,De.prototype.removeAt=De.prototype.Hg,De.prototype.setAt=De.prototype.Wp,Be.prototype.element=Be.prototype.element,i("ol.color.asArray",We),i("ol.color.asString",Ze),i("ol.colorlike.asColorLike",qe),i("ol.control.defaults",lo),i("ol.coordinate.add",ji),i("ol.coordinate.createStringXY",function(e){return function(t){return Ui(t,e)}}),i("ol.coordinate.format",Ri),i("ol.coordinate.rotate",Ni),i("ol.coordinate.toStringHDMS",function(t,e){return t?Li("NS",t[1],e)+" "+Li("EW",t[0],e):""}),i("ol.coordinate.toStringXY",Ui),i("ol.DeviceOrientation",vh),vh.prototype.getAlpha=vh.prototype.Fk,vh.prototype.getBeta=vh.prototype.Ik,vh.prototype.getGamma=vh.prototype.Ok,vh.prototype.getHeading=vh.prototype.um,vh.prototype.getTracking=vh.prototype.Th,vh.prototype.setTracking=vh.prototype.gg,i("ol.easing.easeIn",io),i("ol.easing.easeOut",ro),i("ol.easing.inAndOut",no),i("ol.easing.linear",po),i("ol.easing.upAndDown",function(t){return t<.5?no(2*t):1-no(2*(t-.5))}),i("ol.extent.boundingExtent",E),i("ol.extent.buffer",T),i("ol.extent.containsCoordinate",D),i("ol.extent.containsExtent",O),i("ol.extent.containsXY",B),i("ol.extent.createEmpty",V),i("ol.extent.equals",Y),i("ol.extent.extend",H),i("ol.extent.getArea",$),i("ol.extent.getBottomLeft",Q),i("ol.extent.getBottomRight",tt),i("ol.extent.getCenter",et),i("ol.extent.getHeight",it),i("ol.extent.getIntersection",rt),i("ol.extent.getSize",function(t){return[t[2]-t[0],t[3]-t[1]]}),i("ol.extent.getTopLeft",nt),i("ol.extent.getTopRight",pt),i("ol.extent.getWidth",st),i("ol.extent.intersects",at),i("ol.extent.isEmpty",ht),i("ol.extent.applyTransform",ut),i("ol.Feature",Fh),Fh.prototype.clone=Fh.prototype.clone,Fh.prototype.getGeometry=Fh.prototype.V,Fh.prototype.getId=Fh.prototype.wm,Fh.prototype.getGeometryName=Fh.prototype.Qk,Fh.prototype.getStyle=Fh.prototype.xm,Fh.prototype.getStyleFunction=Fh.prototype.Lc,Fh.prototype.setGeometry=Fh.prototype.Ra,Fh.prototype.setStyle=Fh.prototype.hg,Fh.prototype.setId=Fh.prototype.jc,Fh.prototype.setGeometryName=Fh.prototype.Tc,i("ol.featureloader.xhr",il),i("ol.Geolocation",_d),_d.prototype.getAccuracy=_d.prototype.Dk,_d.prototype.getAccuracyGeometry=_d.prototype.Ek,_d.prototype.getAltitude=_d.prototype.Gk,_d.prototype.getAltitudeAccuracy=_d.prototype.Hk,_d.prototype.getHeading=_d.prototype.ym,_d.prototype.getPosition=_d.prototype.zm,_d.prototype.getProjection=_d.prototype.Uh,_d.prototype.getSpeed=_d.prototype.ll,_d.prototype.getTracking=_d.prototype.Vh,_d.prototype.getTrackingOptions=_d.prototype.Gh,_d.prototype.setProjection=_d.prototype.Wh,_d.prototype.setTracking=_d.prototype.Ke,_d.prototype.setTrackingOptions=_d.prototype.wj,i("ol.Graticule",ev),ev.prototype.getMap=ev.prototype.Cm,ev.prototype.getMeridians=ev.prototype.al,ev.prototype.getParallels=ev.prototype.hl,ev.prototype.setMap=ev.prototype.setMap,i("ol.has.DEVICE_PIXEL_RATIO",Fo),i("ol.has.CANVAS",Do),i("ol.has.DEVICE_ORIENTATION",Oo),i("ol.has.GEOLOCATION",Uo),i("ol.has.TOUCH",Go),i("ol.has.WEBGL",To),sv.prototype.getImage=sv.prototype.Y,sv.prototype.load=sv.prototype.load,cv.prototype.getImage=cv.prototype.Y,i("ol.inherits",s),i("ol.interaction.defaults",Xn),i("ol.Kinetic",Or),i("ol.loadingstrategy.all",mb),i("ol.loadingstrategy.bbox",function(t){return[t]}),i("ol.loadingstrategy.tile",function(i){return function(t,e){e=i.tc(e),t=re(i,t,e);var o=[];for((e=[e,0,0])[1]=t.ca;e[1]<=t.$;++e[1])for(e[2]=t.da;e[2]<=t.ia;++e[2])o.push(i.Aa(e));return o}}),i("ol.Map",Ka),Ka.prototype.addControl=Ka.prototype.kk,Ka.prototype.addInteraction=Ka.prototype.lk,Ka.prototype.addLayer=Ka.prototype.ih,Ka.prototype.addOverlay=Ka.prototype.jh,Ka.prototype.forEachFeatureAtPixel=Ka.prototype.we,Ka.prototype.forEachLayerAtPixel=Ka.prototype.Im,Ka.prototype.hasFeatureAtPixel=Ka.prototype.Yl,Ka.prototype.getEventCoordinate=Ka.prototype.Tf,Ka.prototype.getEventPixel=Ka.prototype.xe,Ka.prototype.getTarget=Ka.prototype.ag,Ka.prototype.getTargetElement=Ka.prototype.jd,Ka.prototype.getCoordinateFromPixel=Ka.prototype.Wa,Ka.prototype.getControls=Ka.prototype.Lk,Ka.prototype.getOverlays=Ka.prototype.fl,Ka.prototype.getOverlayById=Ka.prototype.el,Ka.prototype.getInteractions=Ka.prototype.Sk,Ka.prototype.getLayerGroup=Ka.prototype.Kc,Ka.prototype.getLayers=Ka.prototype.Xh,Ka.prototype.getPixelFromCoordinate=Ka.prototype.Ja,Ka.prototype.getSize=Ka.prototype.Ob,Ka.prototype.getView=Ka.prototype.Z,Ka.prototype.getViewport=Ka.prototype.sl,Ka.prototype.renderSync=Ka.prototype.Tp,Ka.prototype.render=Ka.prototype.render,Ka.prototype.removeControl=Ka.prototype.Mp,Ka.prototype.removeInteraction=Ka.prototype.Np,Ka.prototype.removeLayer=Ka.prototype.Pp,Ka.prototype.removeOverlay=Ka.prototype.Qp,Ka.prototype.setLayerGroup=Ka.prototype.qj,Ka.prototype.setSize=Ka.prototype.Qg,Ka.prototype.setTarget=Ka.prototype.Le,Ka.prototype.setView=Ka.prototype.iq,Ka.prototype.updateSize=Ka.prototype.Ad,Po.prototype.originalEvent=Po.prototype.originalEvent,Po.prototype.pixel=Po.prototype.pixel,Po.prototype.coordinate=Po.prototype.coordinate,Po.prototype.dragging=Po.prototype.dragging,Mo.prototype.map=Mo.prototype.map,Mo.prototype.frameState=Mo.prototype.frameState,i("ol.Object",Re),Re.prototype.get=Re.prototype.get,Re.prototype.getKeys=Re.prototype.O,Re.prototype.getProperties=Re.prototype.N,Re.prototype.set=Re.prototype.set,Re.prototype.setProperties=Re.prototype.H,Re.prototype.unset=Re.prototype.P,ke.prototype.key=ke.prototype.key,ke.prototype.oldValue=ke.prototype.oldValue,i("ol.Observable",Le),i("ol.Observable.unByKey",function(t){if(Array.isArray(t))for(var e=0,o=t.length;e