!function(t,e){"object"==typeofexports?module.exports=e():"function"==typeofdefine&&define.amd?define([],e):t.ol=e()}(this,function(){varr={},n=this;functiont(t,e){varo,i=r;(t=t.split("."))[0]in(i=i||n)||!i.execScript||i.execScript("var "+t[0]);for(;t.length&&(o=t.shift());)t.length||void0===e?i=i[o]&&i[o]!==Object.prototype[o]?i[o]:i[o]={}:i[o]=e}functionD(t,e){returne<t?1:t<e?-1:0}functiond(t,e){return0<=t.indexOf(e)}functionv(t,e,o){vari=t.length;if(t[0]<=e)return0;if(!(e<=t[i-1]))if(0<o){for(o=1;o<i;++o)if(t[o]<e)returno-1}elseif(o<0){for(o=1;o<i;++o)if(t[o]<=e)returno}elsefor(o=1;o<i;++o){if(t[o]==e)returno;if(t[o]<e)returnt[o-1]-e<e-t[o]?o-1:o}returni-1}functionc(t,e){varo=Array.isArray(e)?e:[e],i=o.length;for(e=0;e<i;e++)t[t.length]=o[e]}functions(t,e){-1<(e=t.indexOf(e))&&t.splice(e,1)}functionb(t,e){for(varo,i=t.length>>>0,r=0;r<i;r++)if(e(o=t[r],r,t))returno;returnnull}functionU(t,e){varo=t.length;if(o===e.length){for(vari=0;i<o;i++)if(t[i]!==e[i])return;return1}}functionh(t){for(varo=hs,e=t.length,i=Array(t.length),r=0;r<e;r++)i[r]={index:r,value:t[r]};for(i.sort(function(t,e){returno(t.value,e.value)||t.index-e.index}),r=0;r<t.length;r++)t[r]=i[r].value}functionm(o,i){varr;returno.every(function(t,e){return!i(t,r=e,o)})?-1:r}functione(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t}functionw(){}functionG(t){returnt.Vo||(t.Vo=++o)}varo=0;functiona(t){this.message="Assertion failed. See https://openlayers.org/en/v4.2.0/doc/errors/#"+t+" for details.",this.code=t,this.name="AssertionError"}functionO(t,e){if(!t)thrownewa(e)}functionB(t,e,o,i){this.ca=t,this.$=e,this.da=o,this.ia=i}functionp(t,e,o){returnt.ca<=e&&e<=t.$&&t.da<=o&&o<=t.ia}functionC(t,e){returnt.ca<=e.$&&t.$>=e.ca&&t.da<=e.ia&&t.ia>=e.da}functionx(t,e,o){returnMath.min(Math.max(t,e),o)}e(a,Error);vari="cosh"inMath?Math.cosh:function(t){return((t=Math.exp(t))+1/t)/2};functionS(t,e,o,i,r,n){vars,a=r-o,p=n-i;return(a||p)&&(1<(s=((t-o)*a+(e-i)*p)/(a*a+p*p))?(o=r,i=n):0<s&&(o+=a*s,i+=p*s)),y(t,e,o,i)}functiony(t,e,o,i){return(t=o-t)*t+(e=i-e)*e}functionM(t){returnt*Math.PI/180}functionL(t,e){return(t%=e)*e<0?t+e:t}functionf(t,e,o){returnt+o*(e-t)}functionl(t,e,o){return(o=void0===o?[0,0]:o)[0]=t[0]+2*e,o[1]=t[1]+2*e,o}functionu(t,e,o){return(o=void0===o?[0,0]:o)[0]=t[0]*e+.5|0,o[1]=t[1]*e+.5|0,o}functionX(t,e){returnArray.isArray(t)?t:(void0===e?e=[t,t]:e[0]=e[1]=t,e)}functionP(t){for(vare=V(),o=0,i=t.length;o<i;++o)z(e,t[o]);returne}functionA(t,e,o){returno?(o[0]=t[0]-e,o[1]=t[1]-e,o[2]=t[2]+e,o[3]=t[3]+e,o):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}functiong(t,e){returne?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}functionE(t,e,o){return(e=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0)*e+(t=o<t[1]?t[1]-o:t[3]<o?o-t[3]:0)*t}functionT(t,e){returnj(t,e[0],e[1])}functionN(t,e){returnt[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}functionj(t,e,o){returnt[0]<=e&&e<=t[2]&&t[1]<=o&&o<=t[3]}functionR(t,e){varo=t[1],i=t[2],r=t[3],n=e[0];e=e[1];vars=0;returnn<t[0]?s|=16:i<n&&(s|=4),e<o?s|=8:r<e&&(s|=2),s=s||1}functionV(){return[1/0,1/0,-1/0,-1/0]}functionF(t,e,o,i,r){returnr?(r[0]=t,r[1]=e,r[2]=o,r[3]=i,r):[t,e,o,i]}functionI(t){returnF(1/0,1/0,-1/0,-1/0,t)}functionk(t,e){varo=t[0];returnF(o,t=t[1],o,t,e)}functionW(t,e,o,i,r){returnY(r=I(r),t,e,o,i)}functionZ(t,e){returnt[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}functionK(t,e){returne[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t}functionz(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}functionY(t,e,o,i,r){for(;o<i;o+=r){varn=t,s=e[o],a=e[o+1];n[0]=Math.min(n[0],s),n[1]=Math.min(n[1],a),n[2]=Math.max(n[2],s),n[3]=Math.max(n[3],a)}returnt}functionH(t,e,o){vari;return((i=e.call(o,J(t)))||(i=e.call(o,_(t)))||(i=e.call(o,it(t)))||!!(i=e.call(o,ot(t))))&&i}functionq(t){vare=0;returne=!st(t)?rt(t)*tt(t):e}functionJ(t){return[t[0],t[1]]}function_(t){return[t[2],t[1]]}function$(t){return[(t[0]+t[2])/2,(t[1