Files
openlayers/master/build/ol.js
Éric Lemoine 535febbd07 Updated
2012-11-14 21:17:03 +01:00

143 lines
82 KiB
JavaScript

(function(){var h=void 0,i=!0,j=null,l=!1;function ca(a){return function(){return this[a]}}var m,n=this;function t(){}function ea(a){a.ra=function(){return a.zb?a.zb:a.zb=new a}}
function fa(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function u(a){return a!==h}function ga(a){return"array"==fa(a)}function ha(a){var b=fa(a);return"array"==b||"object"==b&&"number"==typeof a.length}function v(a){return"string"==typeof a}function ia(a){return"function"==fa(a)}function ja(a){var b=typeof a;return"object"==b&&a!=j||"function"==b}function w(a){return a[ka]||(a[ka]=++la)}var ka="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),la=0;
function ma(a,b,c){return a.call.apply(a.bind,arguments)}function na(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function oa(a,b,c){oa=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ma:na;return oa.apply(j,arguments)}
function pa(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=Array.prototype.slice.call(arguments);b.unshift.apply(b,c);return a.apply(this,b)}}var qa=Date.now||function(){return+new Date};function z(a,b){var c=a.split("."),d=n;!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&u(b)?d[e]=b:d=d[e]?d[e]:d[e]={}}function A(a,b){function c(){}c.prototype=b.prototype;a.i=b.prototype;a.prototype=new c};function ra(a){Error.captureStackTrace?Error.captureStackTrace(this,ra):this.stack=Error().stack||"";a&&(this.message=String(a))}A(ra,Error);ra.prototype.name="CustomError";function sa(a){if(!ta.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(ua,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(va,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(xa,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(ya,"&quot;"));return a}var ua=/&/g,va=/</g,xa=/>/g,ya=/\"/g,ta=/[&<>\"]/;var B=Array.prototype,za=B.indexOf?function(a,b,c){return B.indexOf.call(a,b,c)}:function(a,b,c){c=c==j?0:0>c?Math.max(0,a.length+c):c;if(v(a))return!v(b)||1!=b.length?-1:a.indexOf(b,c);for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},C=B.forEach?function(a,b,c){B.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=v(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Aa=B.map?function(a,b,c){return B.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=v(a)?a.split(""):
a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e},Ba=B.some?function(a,b,c){return B.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=v(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return i;return l};function Ca(a){return B.concat.apply(B,arguments)}function Da(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}function Ea(a,b,c,d){B.splice.apply(a,Fa(arguments,1))}
function Fa(a,b,c){return 2>=arguments.length?B.slice.call(a,b):B.slice.call(a,b,c)}function Ga(a,b){return a>b?1:a<b?-1:0};function Ha(a,b,c){return Math.min(Math.max(a,b),c)}function Ia(a,b){var c=a%b;return 0>c*b?c+b:c};function D(a,b){this.x=u(a)?a:0;this.y=u(b)?b:0}D.prototype.F=function(){return new D(this.x,this.y)};function Ja(a,b){this.x=a;this.y=b}A(Ja,D);Ja.prototype.F=function(){return new Ja(this.x,this.y)};Ja.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};Ja.prototype.rotate=function(a){var b=Math.cos(a),a=Math.sin(a),c=this.y*b+this.x*a;this.x=this.x*b-this.y*a;this.y=c;return this};function E(a,b){Ja.call(this,a,b)}A(E,Ja);function Ka(a,b){var c=Ia(a+180,360)-180,d=Math.abs(Math.round(3600*c));return Math.floor(d/3600)+"\u00b0 "+Math.floor(d/60%60)+"\u2032 "+Math.floor(d%60)+"\u2033 "+b.charAt(0>c?1:0)};function La(a,b){this.width=a;this.height=b}La.prototype.F=function(){return new La(this.width,this.height)};La.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};La.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};La.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Ma(a,b){La.call(this,a,b)}A(Ma,La);function Na(a,b,c,d){this.k=a;this.a=b;this.p=c;this.b=d}Na.prototype.c=function(){return this.b-this.a};Na.prototype.d=function(){return this.p-this.k};function Oa(a,b){return a.k<=b.p&&a.p>=b.k&&a.a<=b.b&&a.b>=b.a}Na.prototype.toString=function(){return"("+[this.k,this.a,this.p,this.b].join(", ")+")"};function Pa(a,b,c,d){Na.call(this,a,b,c,d)}A(Pa,Na);function Qa(a){var b=arguments[0],b=new Pa(b.x,b.y,b.x,b.y),c;for(c=1;c<arguments.length;++c){var d=arguments[c];b.k=Math.min(b.k,d.x);b.a=Math.min(b.a,d.y);b.p=Math.max(b.p,d.x);b.b=Math.max(b.b,d.y)}return b}Pa.prototype.transform=function(a){var b=a(new E(this.k,this.a)),a=a(new E(this.p,this.b));return new Pa(b.x,b.y,a.x,a.y)};function Ra(a){this.extent=a}Ra.prototype.transform=function(a){a=this.extent.transform(a);return new Ra(a)};function F(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Sa(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Ta(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function Ua(a){for(var b in a)return l;return i}var Va="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function Wa(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Va.length;f++)c=Va[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var Xa={Uc:"degrees",Xc:"m"};function G(a,b,c){this.a=a;this.c=b;this.b=c}G.prototype.d=ca("a");G.prototype.f=ca("b");G.prototype.e=ca("c");function Ya(a,b){G.call(this,a,b.units,j);this.Ib=b}A(Ya,G);var Za={},$a={},ab={};function bb(a){C(a,function(a){cb(a)});C(a,function(b){C(a,function(a){b!==a&&db(b,a,eb)})})}function cb(a){$a[a.a]=a;db(a,a,eb)}function fb(a,b){return a!=j?v(a)?gb(a):a:gb(b)}function db(a,b,c){a=a.a;b=b.a;a in ab||(ab[a]={});ab[a][b]=c}
function gb(a){var b=$a[a];"Proj4js"in n&&!u(b)&&(b=hb(a));u(b)||(b=j);return b}function hb(a){var b=Za[a];u(b)||(b=new Proj4js.Proj(a),b=new Ya(a,b),Za[a]=b);return b}function ib(a,b){var c=a.a,d=b.a,e;c in ab&&d in ab[c]&&(e=ab[c][d]);if("Proj4js"in n&&!u(e)){var f;f=(a instanceof Ya?a:hb(a.a)).Ib;var g;g=(b instanceof Ya?b:hb(a.a)).Ib;e=function(a){a=new Proj4js.Point(a.x,a.y);a=Proj4js.transform(f,g,a);return new E(a.x,a.y)};db(a,b,e)}u(e)||(e=jb);return e}
function kb(a,b){var c=gb(a),d=gb(b);return ib(c,d)}function jb(a){return a}function eb(a){return new E(a.x,a.y)}var lb=6378137*Math.PI,mb=new Pa(-lb,-lb,lb,lb),nb=Aa(["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913"],function(a){return new G(a,"m",mb)}),ob=new Pa(-180,-90,180,90),pb=Aa(["CRS:84","EPSG:4326","urn:ogc:def:crs:EPSG:6.6:4326"],function(a){return new G(a,"degrees",ob)});bb(nb);bb(pb);
function qb(a){var b=6378137*Math.PI*a.x/180,a=6378137*Math.log(Math.tan(Math.PI*(a.y+90)/360));return new E(b,a)}function rb(a){return new E(180*a.x/(6378137*Math.PI),360*Math.atan(Math.exp(a.y/6378137))/Math.PI-90)}C(pb,function(a){C(nb,function(b){db(a,b,qb);db(b,a,rb)})});function sb(a,b,c){this.b=a;this.a=b||j;this.c=c||j};function tb(a){if("function"==typeof a.K)return a.K();if(v(a))return a.split("");if(ha(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Sa(a)};function ub(a,b){this.b={};this.a=[];var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a){a instanceof ub?(c=a.Y(),d=a.K()):(c=Ta(a),d=Sa(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}}m=ub.prototype;m.l=0;m.fb=0;m.K=function(){vb(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.b[this.a[b]]);return a};m.Y=function(){vb(this);return this.a.concat()};
m.clear=function(){this.b={};this.fb=this.l=this.a.length=0};function vb(a){if(a.l!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];wb(a.b,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.l!=a.a.length){for(var e={},c=b=0;b<a.a.length;)d=a.a[b],wb(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}}function xb(a,b){return wb(a.b,b)?a.b[b]:h}m.set=function(a,b){wb(this.b,a)||(this.l++,this.a.push(a),this.fb++);this.b[a]=b};m.F=function(){return new ub(this)};
function wb(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var yb,zb,Ab,Bb,Cb,Db,Eb;function Fb(){return n.navigator?n.navigator.userAgent:j}function Gb(){return n.navigator}Bb=Ab=zb=yb=l;var Hb;if(Hb=Fb()){var Ib=Gb();yb=0==Hb.indexOf("Opera");zb=!yb&&-1!=Hb.indexOf("MSIE");Ab=!yb&&-1!=Hb.indexOf("WebKit");Bb=!yb&&!Ab&&"Gecko"==Ib.product}var Jb=yb,H=zb,I=Bb,J=Ab,Kb,Lb=Gb();Kb=Lb&&Lb.platform||"";Cb=-1!=Kb.indexOf("Mac");Db=-1!=Kb.indexOf("Win");Eb=-1!=Kb.indexOf("Linux");var Mb=!!Gb()&&-1!=(Gb().appVersion||"").indexOf("X11"),Nb;
a:{var Ob="",Pb;if(Jb&&n.opera)var Qb=n.opera.version,Ob="function"==typeof Qb?Qb():Qb;else if(I?Pb=/rv\:([^\);]+)(\)|;)/:H?Pb=/MSIE\s+([^\);]+)(\)|;)/:J&&(Pb=/WebKit\/(\S+)/),Pb)var Rb=Pb.exec(Fb()),Ob=Rb?Rb[1]:"";if(H){var Sb,Tb=n.document;Sb=Tb?Tb.documentMode:h;if(Sb>parseFloat(Ob)){Nb=String(Sb);break a}}Nb=Ob}var Ub={};
function L(a){var b;if(!(b=Ub[a])){b=0;for(var c=String(Nb).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var g=c[f]||"",k=d[f]||"",r=RegExp("(\\d*)(\\D*)","g"),s=RegExp("(\\d*)(\\D*)","g");do{var p=r.exec(g)||["","",""],q=s.exec(k)||["","",""];if(0==p[0].length&&0==q[0].length)break;b=((0==p[1].length?0:parseInt(p[1],10))<(0==q[1].length?0:parseInt(q[1],10))?-1:(0==p[1].length?0:parseInt(p[1],
10))>(0==q[1].length?0:parseInt(q[1],10))?1:0)||((0==p[2].length)<(0==q[2].length)?-1:(0==p[2].length)>(0==q[2].length)?1:0)||(p[2]<q[2]?-1:p[2]>q[2]?1:0)}while(0==b)}b=Ub[a]=0<=b}return b}var Vb={};function Wb(a){return Vb[a]||(Vb[a]=H&&!!document.documentMode&&document.documentMode>=a)};var Xb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function Yb(a){if(a[1]){var b=a[0],c=b.indexOf("#");0<=c&&(a.push(b.substr(c)),a[0]=b=b.substr(0,c));c=b.indexOf("?");0>c?a[1]="?":c==b.length-1&&(a[1]=h)}return a.join("")}function Zb(a,b,c){if(ga(b))for(var d=0;d<b.length;d++)Zb(a,String(b[d]),c);else b!=j&&c.push("&",a,""===b?"":"=",encodeURIComponent(String(b)))}
function gc(a,b){for(var c in b)Zb(c,b[c],a);return a};function hc(a,b){var c;if(a instanceof hc)this.R=u(b)?b:a.R,ic(this,a.ba),c=a.Ma,jc(this),this.Ma=c,c=a.ea,jc(this),this.ea=c,kc(this,a.Ha),c=a.Fa,jc(this),this.Fa=c,lc(this,a.a.F()),c=a.qa,jc(this),this.qa=c;else if(a&&(c=String(a).match(Xb))){this.R=!!b;ic(this,c[1]||"",i);var d=c[2]||"";jc(this);this.Ma=d?decodeURIComponent(d):"";d=c[3]||"";jc(this);this.ea=d?decodeURIComponent(d):"";kc(this,c[4]);d=c[5]||"";jc(this);this.Fa=d?decodeURIComponent(d):"";lc(this,c[6]||"",i);c=c[7]||"";jc(this);this.qa=
c?decodeURIComponent(c):""}else this.R=!!b,this.a=new mc(j,0,this.R)}m=hc.prototype;m.ba="";m.Ma="";m.ea="";m.Ha=j;m.Fa="";m.qa="";m.zc=l;m.R=l;
m.toString=function(){var a=[],b=this.ba;b&&a.push(nc(b,oc),":");if(b=this.ea){a.push("//");var c=this.Ma;c&&a.push(nc(c,oc),"@");a.push(encodeURIComponent(String(b)));b=this.Ha;b!=j&&a.push(":",String(b))}if(b=this.Fa)this.ea&&"/"!=b.charAt(0)&&a.push("/"),a.push(nc(b,"/"==b.charAt(0)?pc:qc));(b=this.a.toString())&&a.push("?",b);(b=this.qa)&&a.push("#",nc(b,rc));return a.join("")};m.F=function(){return new hc(this)};
function ic(a,b,c){jc(a);a.ba=c?b?decodeURIComponent(b):"":b;a.ba&&(a.ba=a.ba.replace(/:$/,""))}function kc(a,b){jc(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Ha=b}else a.Ha=j}
function lc(a,b,c){jc(a);if(b instanceof mc){a.a=b;b=a.a;if((a=a.R)&&!b.b){sc(b);b.a=j;var d=b.s,c=function(a,b){var c=b.toLowerCase();b!=c&&(tc(this,b),uc(this,c,a))};if("function"==typeof d.forEach)d.forEach(c,b);else if(ha(d)||v(d))C(d,c,b);else{var e;if("function"==typeof d.Y)e=d.Y();else if("function"!=typeof d.K)if(ha(d)||v(d)){e=[];for(var f=d.length,g=0;g<f;g++)e.push(g)}else e=Ta(d);else e=h;d=tb(d);f=d.length;for(g=0;g<f;g++)c.call(b,d[g],e&&e[g])}}b.b=a}else c||(b=nc(b,vc)),a.a=new mc(b,
0,a.R)}function wc(a,b,c){jc(a);ga(c)||(c=[String(c)]);uc(a.a,b,c)}function jc(a){if(a.zc)throw Error("Tried to modify a read-only Uri");}function nc(a,b){return v(a)?encodeURI(a).replace(b,xc):j}function xc(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var oc=/[#\/\?@]/g,qc=/[\#\?:]/g,pc=/[\#\?]/g,vc=/[\#\?@]/g,rc=/#/g;function mc(a,b,c){this.a=a||j;this.b=!!c}
function sc(a){if(!a.s&&(a.s=new ub,a.l=0,a.a))for(var b=a.a.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=j,f=j;0<=d?(e=b[c].substring(0,d),f=b[c].substring(d+1)):e=b[c];e=decodeURIComponent(e.replace(/\+/g," "));e=yc(a,e);a.add(e,f?decodeURIComponent(f.replace(/\+/g," ")):"")}}m=mc.prototype;m.s=j;m.l=j;m.add=function(a,b){sc(this);this.a=j;var a=yc(this,a),c=xb(this.s,a);c||this.s.set(a,c=[]);c.push(b);this.l++;return this};
function tc(a,b){sc(a);b=yc(a,b);if(wb(a.s.b,b)){a.a=j;a.l-=xb(a.s,b).length;var c=a.s;wb(c.b,b)&&(delete c.b[b],c.l--,c.fb++,c.a.length>2*c.l&&vb(c))}}m.clear=function(){this.s=this.a=j;this.l=0};function zc(a,b){sc(a);b=yc(a,b);return wb(a.s.b,b)}m.Y=function(){sc(this);for(var a=this.s.K(),b=this.s.Y(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
m.K=function(a){sc(this);var b=[];if(a)zc(this,a)&&(b=Ca(b,xb(this.s,yc(this,a))));else for(var a=this.s.K(),c=0;c<a.length;c++)b=Ca(b,a[c]);return b};m.set=function(a,b){sc(this);this.a=j;a=yc(this,a);zc(this,a)&&(this.l-=xb(this.s,a).length);this.s.set(a,[b]);this.l++;return this};function uc(a,b,c){tc(a,b);0<c.length&&(a.a=j,a.s.set(yc(a,b),Da(c)),a.l+=c.length)}
m.toString=function(){if(this.a)return this.a;if(!this.s)return"";for(var a=[],b=this.s.Y(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.K(d),f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="="+encodeURIComponent(String(d[f])));a.push(g)}return this.a=a.join("&")};m.F=function(){var a=new mc;a.a=this.a;this.s&&(a.s=this.s.F());return a};function yc(a,b){var c=String(b);a.b&&(c=c.toLowerCase());return c};var Ac=!H||Wb(9),Bc=!H||Wb(9),Cc=H&&!L("9");!J||L("528");I&&L("1.9b")||H&&L("8")||Jb&&L("9.5")||J&&L("528");I&&!L("8")||H&&L("9");function M(){0!=Dc&&(this.Wc=Error().stack,Ec[w(this)]=this)}var Dc=0,Ec={};M.prototype.Ob=l;M.prototype.Ra=function(){if(!this.Ob&&(this.Ob=i,this.q(),0!=Dc)){var a=w(this);delete Ec[a]}};function Fc(a,b){a.U||(a.U=[]);a.U.push(b)}M.prototype.q=function(){this.U&&Gc.apply(j,this.U);if(this.hb)for(;this.hb.length;)this.hb.shift()()};function Hc(a){a&&"function"==typeof a.Ra&&a.Ra()}function Gc(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ha(d)?Gc.apply(j,d):Hc(d)}};function Ic(a,b){this.type=a;this.b=this.target=b}m=Ic.prototype;m.Ra=function(){};m.V=l;m.ua=l;m.Ka=i;m.Sa=function(){this.V=i};m.v=function(){this.ua=i;this.Ka=l};function Jc(a){a.Sa()};function Kc(a){Kc[" "](a);return a}Kc[" "]=t;function Lc(a,b){a&&Mc(this,a,b)}A(Lc,Ic);var Nc=[1,4,2];m=Lc.prototype;m.target=j;m.mc=j;m.kc=0;m.lc=0;m.clientX=0;m.clientY=0;m.nc=0;m.oc=0;m.ic=0;m.Z=0;m.sa=0;m.ta=l;m.H=l;m.S=l;m.jc=l;m.Ga=l;m.A=j;
function Mc(a,b,c){var d=a.type=b.type;Ic.call(a,d);a.target=b.target||b.srcElement;a.b=c;if(c=b.relatedTarget){if(I){var e;a:{try{Kc(c.nodeName);e=i;break a}catch(f){}e=l}e||(c=j)}}else"mouseover"==d?c=b.fromElement:"mouseout"==d&&(c=b.toElement);a.mc=c;a.kc=J||b.offsetX!==h?b.offsetX:b.layerX;a.lc=J||b.offsetY!==h?b.offsetY:b.layerY;a.clientX=b.clientX!==h?b.clientX:b.pageX;a.clientY=b.clientY!==h?b.clientY:b.pageY;a.nc=b.screenX||0;a.oc=b.screenY||0;a.ic=b.button;a.Z=b.keyCode||0;a.sa=b.charCode||
("keypress"==d?b.keyCode:0);a.ta=b.ctrlKey;a.H=b.altKey;a.S=b.shiftKey;a.jc=b.metaKey;a.Ga=Cb?b.metaKey:b.ctrlKey;a.d=b.state;a.A=b;b.defaultPrevented&&a.v();delete a.V}function Oc(a){return(Ac?0==a.A.button:"click"==a.type?i:!!(a.A.button&Nc[0]))&&!(J&&Cb&&a.ta)}m.Sa=function(){Lc.i.Sa.call(this);this.A.stopPropagation?this.A.stopPropagation():this.A.cancelBubble=i};
m.v=function(){Lc.i.v.call(this);var a=this.A;if(a.preventDefault)a.preventDefault();else if(a.returnValue=l,Cc)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};m.hc=ca("A");function Pc(){}var Qc=0;Pc.prototype.key=0;Pc.prototype.aa=l;Pc.prototype.a=l;Pc.prototype.handleEvent=function(a){return this.b?this.ka.call(this.Ua||this.src,a):this.ka.handleEvent.call(this.ka,a)};var Rc={},Sc={},Tc={},Uc={};
function R(a,b,c,d,e){if(b){if(ga(b)){for(var f=0;f<b.length;f++)R(a,b[f],c,d,e);return j}var d=!!d,g=Sc;b in g||(g[b]={l:0,B:0});g=g[b];d in g||(g[d]={l:0,B:0},g.l++);var g=g[d],k=w(a),r;g.B++;if(g[k]){r=g[k];for(f=0;f<r.length;f++)if(g=r[f],g.ka==c&&g.Ua==e){if(g.aa)break;return r[f].key}}else r=g[k]=[],g.l++;var s=Vc,p=Bc?function(a){return s.call(p.src,p.key,a)}:function(a){a=s.call(p.src,p.key,a);if(!a)return a},f=p;f.src=a;var q=g=new Pc;if(ia(c))q.b=i;else if(c&&c.handleEvent&&ia(c.handleEvent))q.b=
l;else throw Error("Invalid listener argument");q.ka=c;q.c=f;q.src=a;q.type=b;q.capture=!!d;q.Ua=e;q.a=l;q.key=++Qc;q.aa=l;c=g.key;f.key=c;r.push(g);Rc[c]=g;Tc[k]||(Tc[k]=[]);Tc[k].push(g);a.addEventListener?(a==n||!a.nb)&&a.addEventListener(b,f,d):a.attachEvent(b in Uc?Uc[b]:Uc[b]="on"+b,f);return c}throw Error("Invalid event type");}function Wc(a,b,c,d,e){if(ga(b)){for(var f=0;f<b.length;f++)Wc(a,b[f],c,d,e);return j}a=R(a,b,c,d,e);Rc[a].a=i;return a}
function Xc(a,b,c,d,e){if(ga(b))for(var f=0;f<b.length;f++)Xc(a,b[f],c,d,e);else{d=!!d;a:{f=Sc;if(b in f&&(f=f[b],d in f&&(f=f[d],a=w(a),f[a]))){a=f[a];break a}a=j}if(a)for(f=0;f<a.length;f++)if(a[f].ka==c&&a[f].capture==d&&a[f].Ua==e){T(a[f].key);break}}}
function T(a){if(!Rc[a])return l;var b=Rc[a];if(b.aa)return l;var c=b.src,d=b.type,e=b.c,f=b.capture;c.removeEventListener?(c==n||!c.nb)&&c.removeEventListener(d,e,f):c.detachEvent&&c.detachEvent(d in Uc?Uc[d]:Uc[d]="on"+d,e);c=w(c);if(Tc[c]){var e=Tc[c],g=za(e,b);0<=g&&B.splice.call(e,g,1);0==e.length&&delete Tc[c]}b.aa=i;if(b=Sc[d][f][c])b.Db=i,Yc(d,f,c,b);delete Rc[a];return i}
function Yc(a,b,c,d){if(!d.Da&&d.Db){for(var e=0,f=0;e<d.length;e++)d[e].aa?d[e].c.src=j:(e!=f&&(d[f]=d[e]),f++);d.length=f;d.Db=l;0==f&&(delete Sc[a][b][c],Sc[a][b].l--,0==Sc[a][b].l&&(delete Sc[a][b],Sc[a].l--),0==Sc[a].l&&delete Sc[a])}}function Zc(a,b,c,d,e){var f=1,b=w(b);if(a[b]){a.B--;a=a[b];a.Da?a.Da++:a.Da=1;try{for(var g=a.length,k=0;k<g;k++){var r=a[k];r&&!r.aa&&(f&=$c(r,e)!==l)}}finally{a.Da--,Yc(c,d,b,a)}}return Boolean(f)}function $c(a,b){a.a&&T(a.key);return a.handleEvent(b)}
function U(a,b){var c=b.type||b,d=Sc;if(!(c in d))return i;if(v(b))b=new Ic(b,a);else if(b instanceof Ic)b.target=b.target||a;else{var e=b,b=new Ic(c,a);Wa(b,e)}var e=1,f,d=d[c],c=i in d,g;if(c){f=[];for(g=a;g;g=g.Za)f.push(g);g=d[i];g.B=g.l;for(var k=f.length-1;!b.V&&0<=k&&g.B;k--)b.b=f[k],e&=Zc(g,f[k],b.type,i,b)&&b.Ka!=l}if(l in d)if(g=d[l],g.B=g.l,c)for(k=0;!b.V&&k<f.length&&g.B;k++)b.b=f[k],e&=Zc(g,f[k],b.type,l,b)&&b.Ka!=l;else for(d=a;!b.V&&d&&g.B;d=d.Za)b.b=d,e&=Zc(g,d,b.type,l,b)&&b.Ka!=
l;return Boolean(e)}
function Vc(a,b){if(!Rc[a])return i;var c=Rc[a],d=c.type,e=Sc;if(!(d in e))return i;var e=e[d],f,g;if(!Bc){var k;if(!(k=b))a:{k=["window","event"];for(var r=n;f=k.shift();)if(r[f]!=j)r=r[f];else{k=j;break a}k=r}f=k;k=i in e;r=l in e;if(k){if(0>f.keyCode||f.returnValue!=h)return i;a:{var s=l;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(p){s=i}if(s||f.returnValue==h)f.returnValue=i}}s=new Lc;Mc(s,f,this);f=i;try{if(k){for(var q=[],x=s.b;x;x=x.parentNode)q.push(x);g=e[i];g.B=g.l;for(var y=q.length-
1;!s.V&&0<=y&&g.B;y--)s.b=q[y],f&=Zc(g,q[y],d,i,s);if(r){g=e[l];g.B=g.l;for(y=0;!s.V&&y<q.length&&g.B;y++)s.b=q[y],f&=Zc(g,q[y],d,l,s)}}else f=$c(c,s)}finally{q&&(q.length=0)}return f}d=new Lc(b,this);return f=$c(c,d)};var ad,bd=!H||Wb(9);!I&&!H||H&&Wb(9)||I&&L("1.9.1");H&&L("9");function cd(a,b){var c;c=a.className;c=v(c)&&c.match(/\S+/g)||[];for(var d=Fa(arguments,1),e=c.length+d.length,f=c,g=0;g<d.length;g++)0<=za(f,d[g])||f.push(d[g]);a.className=c.join(" ");return c.length==e};function dd(a){return a?new ed(fd(a)):ad||(ad=new ed)}function gd(a,b){F(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in hd?a.setAttribute(hd[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var hd={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};
function id(a){a=a.document.documentElement;return new La(a.clientWidth,a.clientHeight)}function jd(a,b,c){var d=arguments,e=document,f=d[0],g=d[1];if(!bd&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',sa(g.name),'"');if(g.type){f.push(' type="',sa(g.type),'"');var k={};Wa(k,g);delete k.type;g=k}f.push(">");f=f.join("")}f=e.createElement(f);g&&(v(g)?f.className=g:ga(g)?cd.apply(j,[f].concat(g)):gd(f,g));2<d.length&&kd(e,f,d,2);return f}
function kd(a,b,c,d){function e(c){c&&b.appendChild(v(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];if(ha(f)&&!(ja(f)&&0<f.nodeType)){var g=C,k;a:{if((k=f)&&"number"==typeof k.length){if(ja(k)){k="function"==typeof k.item||"string"==typeof k.item;break a}if(ia(k)){k="function"==typeof k.item;break a}}k=l}g(k?Da(f):f,e)}else e(f)}}function ld(a,b){kd(fd(a),a,arguments,1)}function md(a){a&&a.parentNode&&a.parentNode.removeChild(a)}
function fd(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function ed(a){this.a=a||n.document||document}ed.prototype.createElement=function(a){return this.a.createElement(a)};ed.prototype.createTextNode=function(a){return this.a.createTextNode(a)};function nd(a){var b=a.a,a=!J?b.documentElement:b.body,b=b.parentWindow||b.defaultView;return new D(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}ed.prototype.appendChild=function(a,b){a.appendChild(b)};/*
Portions of this code are from MochiKit, received by
The Closure Authors under the MIT license. All other code is Copyright
2005-2009 The Closure Authors. All Rights Reserved.
*/
function od(a,b){this.a=[];this.f=a;this.e=b||j}m=od.prototype;m.P=l;m.ga=l;m.na=0;m.Nb=l;m.ac=l;m.$b=0;m.mb=function(a,b){pd(this,a,b);this.na--;0==this.na&&this.P&&qd(this)};function pd(a,b,c){a.P=i;a.b=c;a.ga=!b;qd(a)}function rd(a){if(a.P){if(!a.Nb)throw new sd(a);a.Nb=l}}function td(a){return Ba(a.a,function(a){return ia(a[1])})}
function qd(a){a.c&&(a.P&&td(a))&&(n.clearTimeout(a.c),delete a.c);a.d&&(a.d.$b--,delete a.d);for(var b=a.b,c=l,d=l;a.a.length&&0==a.na;){var e=a.a.shift(),f=e[0],g=e[1],e=e[2];if(f=a.ga?g:f)try{var k=f.call(e||a.e,b);u(k)&&(a.ga=a.ga&&(k==b||k instanceof Error),a.b=b=k);b instanceof od&&(d=i,a.na++)}catch(r){b=r,a.ga=i,td(a)||(c=i)}}a.b=b;d&&a.na&&(d=b,k=oa(a.mb,a,i),f=oa(a.mb,a,l),d.a.push([k,f,h]),d.P&&qd(d),b.ac=i);c&&(a.c=n.setTimeout(function(){throw b;},0))}
function sd(a){ra.call(this);this.a=a}A(sd,ra);sd.prototype.message="Deferred has already fired";sd.prototype.name="AlreadyCalledError";function ud(a,b){var c=b||{},d=c.document||document,e=document.createElement("SCRIPT"),f={Lb:e,La:h},g=new od(vd,f),k=j,r=c.timeout!=j?c.timeout:5E3;0<r&&(k=window.setTimeout(function(){wd(e,i);var b=new xd(yd,"Timeout reached for loading script "+a);rd(g);pd(g,l,b)},r),f.La=k);e.onload=e.onreadystatechange=function(){if(!e.readyState||"loaded"==e.readyState||"complete"==e.readyState)wd(e,c.lb||l,k),rd(g),pd(g,i,j)};e.onerror=function(){wd(e,i,k);var b=new xd(zd,"Error while loading script "+a);rd(g);
pd(g,l,b)};gd(e,{type:"text/javascript",charset:"UTF-8",src:a});f=d.getElementsByTagName("HEAD");(!f||0==f.length?d.documentElement:f[0]).appendChild(e);return g}function vd(){if(this&&this.Lb){var a=this.Lb;a&&"SCRIPT"==a.tagName&&wd(a,i,this.La)}}function wd(a,b,c){c!=j&&n.clearTimeout(c);a.onload=t;a.onerror=t;a.onreadystatechange=t;b&&window.setTimeout(function(){md(a)},0)}var zd=0,yd=1;function xd(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);ra.call(this,c);this.a=a}A(xd,ra);function Ad(a){this.b=new hc(a);this.a="jsonp";this.La=5E3}var Bd=0;function Cd(a,b){n._callbacks_[a]&&(b?delete n._callbacks_[a]:n._callbacks_[a]=t)};function Dd(a,b,c,d){Na.call(this,a,b,c,d)}A(Dd,Na);function V(a,b,c){Ja.call(this,b,c);this.j=a}A(V,E);function Ed(a){a=a.split("/");a=Aa(a,function(a){return parseInt(a,10)});return new V(a[0],a[1],a[2])}V.prototype.hash=function(){return(this.x<<this.j)+this.y};function Fd(a){var b=Array(a.j),c=1<<a.j-1,d,e;for(d=0;d<a.j;++d)e=48,a.x&c&&(e+=1),a.y&c&&(e+=2),b[d]=String.fromCharCode(e),c>>=1;return b.join("")}V.prototype.toString=function(){return[this.j,this.x,this.y].join("/")};function Gd(a,b,c,d){Na.call(this,a,b,c,d)}A(Gd,Na);function Hd(a,b,c,d){var e,f;for(e=a.k;e<=a.p;++e)for(f=a.a;f<=a.b;++f)c.call(d,new V(b,e,f))}Gd.prototype.c=function(){return this.b-this.a+1};Gd.prototype.d=function(){return this.p-this.k+1};function Id(a,b){var c=a.length;if(a[0]<=b)return 0;if(!(b<=a[c-1])){var d;for(d=1;d<c;++d){if(a[d]==b)return d;if(a[d]<b)return a[d-1]-b<b-a[d]?d-1:d}}return c-1};function Jd(a){this.a=a.resolutions;this.f=this.a.length;this.g=u(a.extent)?a.extent:j;this.d=u(a.origin)?a.origin:j;this.e=j;u(a.Fc)&&(this.e=a.Fc);this.b=u(a.bb)?a.bb:new Ma(256,256)}Jd.prototype.c=function(a,b,c){for(var d=Kd(this,a),a=a.j-1;0<=a&&!b.call(c,a,Ld(this,d,this.a[a]));)--a};function Md(a,b){return a.d===j?a.e[b]:a.d}
function Nd(a,b,c){var c=c/a.a[b.j],a=a.b,a=new Ma(a.width/c,a.height/c),d,e,c=Math.round(b.x*a.width);d=Math.round((b.x+1)*a.width);e=Math.round(b.y*a.height);b=Math.round((b.y+1)*a.height);return new Dd(c,e,d,b)}function Ld(a,b,c){var d=Od(a,new E(b.k,b.a),c),a=Od(a,new E(b.p,b.b),c);return new Gd(d.x,d.y,a.x,a.y)}function Kd(a,b){var c=Md(a,b.j),d=a.a[b.j],e=a.b,f=c.x+b.x*e.width*d,c=c.y+b.y*e.height*d;return new Pa(f,c,f+e.width*d,c+e.height*d)}
function Od(a,b,c){var d=Id(a.a,c),e=c/a.a[d],f=Md(a,d),b=new E(Math.floor((b.x-f.x)/c),Math.floor((b.y-f.y)/c)),f=a.b,f=new Ma(f.width/e,f.height/e),d=new V(d,Math.floor(b.x/f.width),Math.floor(b.y/f.height)),a=Nd(a,d,c);b.x<a.k?d.x-=1:b.x>=a.p&&(d.x+=1);b.y<a.a?d.y-=1:b.y>=a.b&&(d.y+=1);return d};function Pd(a,b,c,d){this.extent=b;this.c=a;this.b=c;this.a=d}A(Pd,Ra);Pd.prototype.transform=function(a){a=this.extent.transform(a);return new Pd(this.c,a,this.b,this.a)};function Qd(){M.call(this)}A(Qd,M);m=Qd.prototype;m.nb=i;m.Za=j;m.addEventListener=function(a,b,c,d){R(this,a,b,c,d)};m.removeEventListener=function(a,b,c,d){Xc(this,a,b,c,d)};m.q=function(){Qd.i.q.call(this);var a,b=0,c=a==j;a=!!a;if(this==j)F(Tc,function(d){for(var e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)T(f.key),b++}});else{var d=w(this);if(Tc[d])for(var d=Tc[d],e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)T(f.key),b++}}this.Za=j};function Rd(a,b,c){M.call(this);this.ab=a;this.g=b;this.a=0;this.b=new Image;c!==j&&(this.b.crossOrigin=c);this.d={};this.c=j}A(Rd,Qd);function Sd(a,b){if(u(b)){var c,d=w(b);if(d in a.d)return a.d[d];c=Ua(a.d)?a.b:a.b.cloneNode(l);return a.d[d]=c}return a.b}Rd.prototype.e=function(){this.a=3;C(this.c,T);this.c=j};Rd.prototype.f=function(){this.a=2;C(this.c,T);this.c=j;U(this,"change")};function Td(a){0==a.a&&(a.a=1,a.c=[Wc(a.b,"error",a.e,l,a),Wc(a.b,"load",a.f,l,a)],a.b.src=a.g)};function Ud(a){var b=/\{(\d)-(\d)\}/.exec(a)||/\{([a-z])-([a-z])\}/.exec(a);if(b){var c=[],d=b[2].charCodeAt(0),e;for(e=b[1].charCodeAt(0);e<=d;++e)c.push(a.replace(b[0],String.fromCharCode(e)));return Vd(Aa(c,Ud))}return function(b){return b===j?h:a.replace("{z}",b.j).replace("{x}",b.x).replace("{y}",b.y)}}function Vd(a){return function(b){if(b!==j){var c=Ia(b.hash(),a.length);return a[c](b)}}}
function Wd(a,b){return function(c){if(c!==j)return c=Kd(b,c),Yb([a,"&","BBOX","=",encodeURIComponent(String([c.k,c.a,c.p,c.b].join()))])}}function Xd(){}function Yd(a,b){return function(c){return c===j?h:b(a(c))}};function Zd(a){return function(){return a}}var $d=Zd(l),ae=Zd(i),be=Zd(j);function ce(a){M.call(this);this.h=u(a.projection)?a.projection:j;this.g=u(a.extent)?a.extent:a.projection.b;this.a=u(a.attributions)?a.attributions:j}A(ce,Qd);ce.prototype.T=ae;function de(a){ce.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.tileGrid=u(a.tileGrid)?a.tileGrid:j;this.J=u(a.J)?a.J:Xd;this.d=u(a.crossOrigin)?a.crossOrigin:"anonymous";this.b={}}A(de,ce);function ee(a,b){var c=b.toString();if(c in a.b)return a.b[c];var d=a.J(b),d=u(d)?new Rd(b,d,a.d):j;return a.b[c]=d};function fe(a){var b=Array(a.maxZoom+1),c;for(c=0;c<=a.maxZoom;++c)b[c]=lb/(128<<c);Jd.call(this,{extent:mb,origin:new E(-lb,lb),resolutions:b,bb:new Ma(256,256)})}A(fe,Jd);fe.prototype.c=function(a,b,c){for(var d=a.x,e=a.y,a=a.j,f;;){a-=1;if(0>a)break;d=Math.floor(d/2);e=Math.floor(e/2);f=new Gd(d,e,d,e);if(b.call(c,a,f))break}};var ge={Rc:"Aerial",Sc:"AerialWithLabels",Zc:"Road",Yc:"OrdnanceSurvey",Tc:"CollinsBart"};
function he(a){de.call(this,{projection:gb("EPSG:3857")});this.cc=u(a.culture)?a.culture:"en-us";this.c=l;var b=new hc("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style),b=new Ad(b),a={include:"ImageryProviders",key:a.key},c=oa(this.e,this),a=a||j,d="_"+(Bd++).toString(36)+qa().toString(36);n._callbacks_||(n._callbacks_={});var e=b.b.F();if(a)for(var f in a)(!a.hasOwnProperty||a.hasOwnProperty(f))&&wc(e,f,a[f]);c&&(n._callbacks_[d]=function(a){Cd(d,i);c.apply(h,arguments)},wc(e,b.a,"_callbacks_."+
d));f=ud(e.toString(),{timeout:b.La,lb:i});f.a.push([j,function(){Cd(d,l)},h]);f.P&&qd(f)}A(he,de);
he.prototype.e=function(a){var b=a.resourceSets[0].resources[0],c=b.zoomMin,d=b.zoomMax,e=new fe({maxZoom:d,bb:new Ma(b.imageWidth,b.imageHeight)});this.tileGrid=e;this.J=Yd(function(a){if(a.j<c||d<a.j)return j;var b=1<<a.j,e=-a.y-1;return 0>e||b<=e?j:new V(a.j,Ia(a.x,b),e)},Vd(Aa(b.imageUrlSubdomains,function(a){var c=b.imageUrl.replace("{subdomain}",a).replace("{culture}",this.cc);return function(a){return a===j?h:c.replace("{quadkey}",Fd(a))}})));var f=gb("EPSG:4326");this.a=Aa(b.imageryProviders,
function(a){var b=a.attribution,a=Aa(a.coverageAreas,function(a){var b=a.bbox;return new Pd(e,new Pa(b[1],b[0],b[3],b[2]),a.zoomMin,a.zoomMax)});return new sb(b,a,f)});this.c=i;U(this,"load")};he.prototype.T=ca("c");function W(a){M.call(this);u(a)&&this.Wa(a)}A(W,Qd);var ie={},je={},ke={};function le(a){return a.substr(0,1).toUpperCase()+a.substr(1)}function me(a){return a.ol_accessors_||(a.ol_accessors_={})}function X(a){return ie[a]||(ie[a]=a.toLowerCase()+"_changed")}function ne(a){return a.ol_bindings_||(a.ol_bindings_={})}m=W.prototype;m.Zb=function(a,b,c,d){c=c||a;this.eb(a);var e=X(c);ne(this)[a]=R(b,e,function(){oe(this,a)},h,this);me(this)[a]={target:b,key:c};d||oe(this,a)};m.bc=t;
m.t=function(a){var b=me(this);if(a in b){var b=b[a],a=b.target,b=b.key,c=je[b]||(je[b]="get"+le(b));return a[c]?a[c]():a.t(b)}return this[a]};m.Eb=function(a){var b=me(this);a in b?(a=b[a],a.target.Eb(a.key)):oe(this,a)};function oe(a,b){var c=X(b);U(a,c)}m.set=function(a,b){var c=me(this);if(a in c){var d=c[a],c=d.target,d=d.key,e=ke[d]||(ke[d]="set"+le(d));if(c[e])c[e](b);else c.set(d,b)}else this[a]=b,oe(this,a)};
m.Mb=function(a){F(a,function(a,c){var d=ke[c]||(ke[c]="set"+le(c));if(this[d])this[d](a);else this.set(c,a)},this)};m.Wa=W.prototype.Mb;m.eb=function(a){var b=ne(this),c=b[a];c&&(delete b[a],T(c),b=this.t(a),delete me(this)[a],this[a]=b)};m.Qc=function(){var a=ne(this);C(Ta(a),function(a){this.eb(a)},this)};function pe(a,b,c,d,e){Ic.call(this,a,e);this.a=b;this.index=c;this.c=d}A(pe,Ic);function Y(a){W.call(this);this.a=a||[];qe(this)}A(Y,W);m=Y.prototype;m.clear=function(){for(;this.length;)this.Fb()};m.forEach=function(a,b){C(this.a,a,b)};m.fc=ca("a");m.gc=function(a){return this.a[a]};m.ob=function(){return this.t("length")};m.za=function(a,b){Ea(this.a,a,0,b);qe(this);U(this,new pe("add",b,h,h,this));U(this,new pe("insert_at",b,a,h,this))};m.Fb=function(){return this.Jb(this.ob()-1)};
m.push=function(a){var b=this.a.length;this.za(b,a);return b};m.Jb=function(a){var b=this.a[a];B.splice.call(this.a,a,1);qe(this);U(this,new pe("remove",b,h,h,this));U(this,new pe("remove_at",h,a,b,this));return b};m.Hc=function(a,b){var c=this.length;if(a<c)c=this.a[a],this.a[a]=b,U(this,new pe("set_at",b,a,c,this)),U(this,new pe("remove",c,h,h,this)),U(this,new pe("add",b,h,h,this));else{for(;c<a;++c)this.za(c,h);this.za(a,b)}};function qe(a){a.set("length",a.a.length)};function re(a){M.call(this);this.X=a||window;this.Ca=R(this.X,"resize",this.vc,l,this);this.W=id(this.X||window);if(J&&Db||Jb&&this.X.self!=this.X.top)this.Na=window.setInterval(oa(this.kb,this),se)}A(re,Qd);var se=500;m=re.prototype;m.Ca=j;m.X=j;m.W=j;m.Na=j;m.q=function(){re.i.q.call(this);this.Ca&&(T(this.Ca),this.Ca=j);this.Na&&(window.clearInterval(this.Na),this.Na=j);this.W=this.X=j};m.vc=function(){this.kb()};
m.kb=function(){var a=id(this.X||window);if(!(a==this.W||(!a||!this.W?0:a.width==this.W.width&&a.height==this.W.height)))this.W=a,U(this,"resize")};function te(a,b,c,d,e){if(!H&&(!J||!L("525")))return i;if(Cb&&e)return ue(a);if(e&&!d||!c&&(17==b||18==b)||H&&d&&b==a)return l;switch(a){case 13:return!(H&&Wb(9));case 27:return!J}return ue(a)}function ue(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||J&&0==a)return i;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return i;default:return l}}
function ve(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function we(a,b){M.call(this);a&&(this.Ba&&xe(this),this.fa=a,this.Aa=R(this.fa,"keypress",this,b),this.Va=R(this.fa,"keydown",this.a,b,this),this.Ba=R(this.fa,"keyup",this.b,b,this))}A(we,Qd);m=we.prototype;m.fa=j;m.Aa=j;m.Va=j;m.Ba=j;m.N=-1;m.M=-1;m.Oa=l;
var ye={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},ze={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},Ae=H||J&&L("525"),Be=Cb&&I;
we.prototype.a=function(a){if(J&&(17==this.N&&!a.ta||18==this.N&&!a.H))this.M=this.N=-1;Ae&&!te(a.Z,this.N,a.S,a.ta,a.H)?this.handleEvent(a):(this.M=I?ve(a.Z):a.Z,Be&&(this.Oa=a.H))};we.prototype.b=function(a){this.M=this.N=-1;this.Oa=a.H};
we.prototype.handleEvent=function(a){var b=a.A,c,d,e=b.altKey;H&&"keypress"==a.type?(c=this.M,d=13!=c&&27!=c?b.keyCode:0):J&&"keypress"==a.type?(c=this.M,d=0<=b.charCode&&63232>b.charCode&&ue(c)?b.charCode:0):Jb?(c=this.M,d=ue(c)?b.keyCode:0):(c=b.keyCode||this.M,d=b.charCode||0,Be&&(e=this.Oa),Cb&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in ye?f=ye[c]:25==c&&a.S&&(f=9):g&&g in ze&&(f=ze[g]);a=f==this.N;this.N=f;b=new Ce(f,d,a,b);b.H=e;U(this,b)};
function xe(a){a.Aa&&(T(a.Aa),T(a.Va),T(a.Ba),a.Aa=j,a.Va=j,a.Ba=j);a.fa=j;a.N=-1;a.M=-1}we.prototype.q=function(){we.i.q.call(this);xe(this)};function Ce(a,b,c,d){d&&Mc(this,d,h);this.type="key";this.Z=a;this.sa=b;this.a=c}A(Ce,Lc);function De(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}De.prototype.F=function(){return new De(this.top,this.right,this.bottom,this.left)};function Ee(a,b,c){v(b)?Fe(a,c,b):F(b,pa(Fe,a))}function Fe(a,b,c){a.style[String(c).replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()})]=b}function Ge(a,b){var c=fd(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,j))?c[b]||c.getPropertyValue(b)||"":""}function He(a,b){return a.currentStyle?a.currentStyle[b]:j}function Ie(a,b){return Ge(a,b)||He(a,b)||a.style&&a.style[b]}
function Je(a,b){var c,d,e=I&&(Cb||Mb)&&L("1.9");b instanceof D?(c=b.x,d=b.y):(c=b,d=h);a.style.left=Ke(c,e);a.style.top=Ke(d,e)}function Le(a){var b=a.getBoundingClientRect();H&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
function Me(a){if(H&&!Wb(8))return a.offsetParent;for(var b=fd(a),c=Ie(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Ie(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return j}function Ne(a,b){var c=Oe(a),d=Oe(b);return new D(c.x-d.x,c.y-d.y)}
function Oe(a){var b=new D;if(1==a.nodeType){if(a.getBoundingClientRect){var c=Le(a);b.x=c.left;b.y=c.top}else{c=nd(dd(a));var d,e=fd(a),f=Ie(a,"position"),g=I&&e.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==f&&(d=e.getBoxObjectFor(a))&&(0>d.screenX||0>d.screenY),k=new D(0,0),r;d=e?fd(e):document;if(r=H)if(r=!Wb(9))dd(d),r=l;r=r?d.body:d.documentElement;if(a!=r)if(a.getBoundingClientRect)d=Le(a),e=nd(dd(e)),k.x=d.left+e.x,k.y=d.top+e.y;else if(e.getBoxObjectFor&&!g)d=e.getBoxObjectFor(a),
e=e.getBoxObjectFor(r),k.x=d.screenX-e.screenX,k.y=d.screenY-e.screenY;else{g=a;do{k.x+=g.offsetLeft;k.y+=g.offsetTop;g!=a&&(k.x+=g.clientLeft||0,k.y+=g.clientTop||0);if(J&&"fixed"==Ie(g,"position")){k.x+=e.body.scrollLeft;k.y+=e.body.scrollTop;break}g=g.offsetParent}while(g&&g!=a);if(Jb||J&&"absolute"==f)k.y-=e.body.offsetTop;for(g=a;(g=Me(g))&&g!=e.body&&g!=r;)if(k.x-=g.scrollLeft,!Jb||"TR"!=g.tagName)k.y-=g.scrollTop}b.x=k.x-c.x;b.y=k.y-c.y}if(I&&!L(12)){var s;H?s="-ms-transform":J?s="-webkit-transform":
Jb?s="-o-transform":I&&(s="-moz-transform");var p;s&&(p=Ie(a,s));p||(p=Ie(a,"transform"));p?(a=p.match(Pe),a=!a?new D(0,0):new D(parseFloat(a[1]),parseFloat(a[2]))):a=new D(0,0);b=new D(b.x+a.x,b.y+a.y)}}else s=ia(a.hc),p=a,a.targetTouches?p=a.targetTouches[0]:s&&a.A.targetTouches&&(p=a.A.targetTouches[0]),b.x=p.clientX,b.y=p.clientY;return b}function Ke(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Qe(a,b){a.style.display=b?"":"none"}
function Re(a,b){dd(fd(a));if(H&&!L("8")){var c=a.style,d;if(H){d=Se(a,He(a,"paddingLeft"));var e=Se(a,He(a,"paddingRight")),f=Se(a,He(a,"paddingTop")),g=Se(a,He(a,"paddingBottom"));d=new De(f,e,g,d)}else d=Ge(a,"paddingLeft"),e=Ge(a,"paddingRight"),f=Ge(a,"paddingTop"),g=Ge(a,"paddingBottom"),d=new De(parseFloat(f),parseFloat(e),parseFloat(g),parseFloat(d));if(H)var e=Te(a,"borderLeft"),f=Te(a,"borderRight"),g=Te(a,"borderTop"),k=Te(a,"borderBottom"),e=new De(g,f,k,e);else e=Ge(a,"borderLeftWidth"),
f=Ge(a,"borderRightWidth"),g=Ge(a,"borderTopWidth"),k=Ge(a,"borderBottomWidth"),e=new De(parseFloat(g),parseFloat(f),parseFloat(k),parseFloat(e));c.pixelWidth=b.width-e.left-d.left-d.right-e.right;c.pixelHeight=b.height-e.top-d.top-d.bottom-e.bottom}else c=a.style,I?c.MozBoxSizing="border-box":J?c.WebkitBoxSizing="border-box":c.boxSizing="border-box",c.width=Math.max(b.width,0)+"px",c.height=Math.max(b.height,0)+"px"}
function Se(a,b){if(/^\d+px?$/.test(b))return parseInt(b,10);var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;var e=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return e}var Ue={thin:2,medium:4,thick:6};function Te(a,b){if("none"==He(a,b+"Style"))return 0;var c=He(a,b+"Width");return c in Ue?Ue[c]:Se(a,c)}var Pe=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function Ve(a){M.call(this);this.a=a;a=ja(this.a)&&1==this.a.nodeType?this.a:this.a?this.a.body:j;this.e=!!a&&"rtl"==Ie(a,"direction");this.b=R(this.a,I?"DOMMouseScroll":"mousewheel",this)}A(Ve,Qd);
Ve.prototype.handleEvent=function(a){var b=0,c=0,d=0,a=a.A;if("mousewheel"==a.type){c=1;if(H||J&&(Db||L("532.0")))c=40;d=We(-a.wheelDelta,c);u(a.wheelDeltaX)?(b=We(-a.wheelDeltaX,c),c=We(-a.wheelDeltaY,c)):c=d}else d=a.detail,100<d?d=3:-100>d&&(d=-3),u(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;"number"==typeof this.c&&(b=Ha(b,-this.c,this.c));"number"==typeof this.d&&(c=Ha(c,-this.d,this.d));this.e&&(b=-b);b=new Xe(d,a,b,c);U(this,b)};function We(a,b){return J&&(Cb||Eb)&&0!=a%b?a:a/b}
Ve.prototype.q=function(){Ve.i.q.call(this);T(this.b);delete this.b};function Xe(a,b,c,d){b&&Mc(this,b,h);this.type="mousewheel";this.e=a;this.c=c;this.a=d}A(Xe,Lc);var Ye=n.window;function Ze(a,b,c){M.call(this);this.b=a;this.e=b||0;this.c=c;this.d=oa(this.f,this)}A(Ze,M);Ze.prototype.a=0;Ze.prototype.q=function(){Ze.i.q.call(this);$e(this);delete this.b;delete this.c};function $e(a){0!=a.a&&Ye.clearTimeout(a.a);a.a=0}Ze.prototype.f=function(){this.a=0;this.b&&this.b.call(this.c)};var af={},bf=j;function cf(){bf||(bf=new Ze(function(){qa();F(af,function(a){df(a)});Ua(af)||cf()},20));var a=bf;if(0==a.a){$e(a);var b;b=a.d;var c=u(h)?h:a.e;if(!ia(b))if(b&&"function"==typeof b.handleEvent)b=oa(b.handleEvent,b);else throw Error("Invalid listener argument");b=2147483647<c?-1:Ye.setTimeout(b,c||0);a.a=b}};var ef=document&&"ontouchstart"in document.documentElement;function ff(a,b,c,d){this.d=a;this.c=b;this.b=c;this.a=d};function gf(a,b){if(u(a))return a+b};function hf(a){this.resolution=a;this.a=gf};function jf(a,b){Ic.call(this,a);this.map=b;this.ua=l}A(jf,Ic);jf.prototype.v=function(){jf.i.v.call(this);this.ua=i};function kf(a,b){D.call(this,a,b)}A(kf,D);function lf(a,b,c){jf.call(this,a,b);this.a=c;this.e=this.d=j}A(lf,jf);lf.prototype.c=function(){if(this.d===j){var a=this.map,b=mf(this);this.d=a.w()?nf(a.f,b):j}return this.d};function mf(a){if(a.e===j){var b=Ne(a.a,a.map.b);a.e=new kf(b.x,b.y)}return a.e}function of(a){this.a=a;this.d=j;this.c=l;this.f=0;this.e=this.b=j;a=this.a.b;ef||R(a,["click","dblclick"],this.Pa,l,this);R(a,ef?"touchstart":"mousedown",this.sb,l,this)}A(of,Qd);
function pf(a){if(ef){var b=a.A;b.touches&&b.touches.length&&(b=b.touches[0],a.clientX=b.clientX,a.clientY=b.clientY)}}m=of.prototype;m.Pa=function(a){if(!this.c){var b;"dblclick"!==a.type&&(b=new lf(qf,this.a,a),U(this,b));this.f||(b=new lf(rf,this.a,a),U(this,b))}};m.yb=function(a){if(this.d){if(!this.c){var b=(new Date).getTime();this.f=!this.f||250<b-this.f?b:0;ef&&this.Pa(this.e)}this.e=j;C(this.b,T);this.d=this.b=j;this.c&&U(this,new lf(sf,this.a,a))}};
m.sb=function(a){this.d||(pf(a),this.e=a,this.d={clientX:a.clientX,clientY:a.clientY},this.c=l,this.b=[R(document,ef?"touchmove":"mousemove",this.dc,l,this),R(document,ef?"touchend":"mouseup",this.yb,l,this)],"mousedown"===a.type&&a.v())};m.dc=function(a){var b;this.c||(this.c=i,b=new lf(tf,this.a,this.e),U(this,b));pf(a);this.d={clientX:a.clientX,clientY:a.clientY};a.v();b=new lf(uf,this.a,a);U(this,b)};
m.q=function(){var a=this.a.b;Xc(a,ef?"touchstart":"mousedown",this.sb,l,this);Xc(a,ef?"touchend":"mouseup",this.yb,l,this);Xc(a,"click",this.Pa,l,this);this.b!==j&&(C(this.b,T),this.b=j);of.i.q.call(this)};var qf="click",rf="dblclick",tf="dragstart",uf="drag",sf="dragend";function vf(a){M.call(this);this.element=u(a.element)?a.element:j;this.g=a.target;this.a=j;u(a.map)&&this.C(a.map)}A(vf,M);vf.prototype.q=function(){md(this.element);vf.i.q.call(this)};vf.prototype.C=function(a){this.a===j||md(this.element);this.a=a;this.a!==j&&(u(this.g)?this.g:a.u).appendChild(this.element)};function Z(a){W.call(this);this.a=a.source;this.g(u(a.brightness)?a.brightness:0);this.h(u(a.contrast)?a.contrast:0);this.m(u(a.hue)?a.hue:0);this.n(u(a.opacity)?a.opacity:1);this.u(u(a.saturation)?a.saturation:0);this.z(u(a.visible)?a.visible:i);this.a.T()||Wc(this.a,"load",this.I,l,this)}A(Z,W);Z.prototype.c=function(){return this.t("brightness")};Z.prototype.getBrightness=Z.prototype.c;Z.prototype.d=function(){return this.t("contrast")};Z.prototype.getContrast=Z.prototype.d;Z.prototype.e=function(){return this.t("hue")};
Z.prototype.getHue=Z.prototype.e;Z.prototype.b=function(){return this.t("opacity")};Z.prototype.getOpacity=Z.prototype.b;Z.prototype.f=function(){return this.t("saturation")};Z.prototype.getSaturation=Z.prototype.f;Z.prototype.L=function(){return this.t("visible")};Z.prototype.getVisible=Z.prototype.L;Z.prototype.I=function(){U(this,"load")};Z.prototype.T=function(){return this.a.T()};Z.prototype.g=function(a){a=Ha(a,-1,1);a!=this.c()&&this.set("brightness",a)};Z.prototype.setBrightness=Z.prototype.g;
Z.prototype.h=function(a){a=Ha(a,-1,1);a!=this.d()&&this.set("contrast",a)};Z.prototype.setContrast=Z.prototype.h;Z.prototype.m=function(a){a!=this.e()&&this.set("hue",a)};Z.prototype.setHue=Z.prototype.m;Z.prototype.n=function(a){a=Ha(a,0,1);a!=this.b()&&this.set("opacity",a)};Z.prototype.setOpacity=Z.prototype.n;Z.prototype.u=function(a){a=Ha(a,-1,1);a!=this.f()&&this.set("saturation",a)};Z.prototype.setSaturation=Z.prototype.u;Z.prototype.z=function(a){a=!!a;a!=this.L()&&this.set("visible",a)};
Z.prototype.setVisible=Z.prototype.z;function wf(a){this.f=document.createElement("UL");var b=jd("DIV",{"class":"ol-attribution"},this.f);this.c=j;this.e={};this.O={};this.b={};this.d=j;vf.call(this,{element:b,map:a.map,target:a.target})}A(wf,vf);m=wf.prototype;m.Hb=function(a){var b=w(a);this.e[b]=R(a,X("visible"),this.sc,l,this);a.a.T()?xf(this,a):Wc(a,"load",this.Ac,l,this)};
function xf(a,b){var c=b.a.a;if(c!==j){var d=a.a,e=d.w(),f=yf(d),g=d.g(),k=d.a(),r=b.L(),s;s=e&&r?zf(a,b,f,k,g):j;C(c,function(a){var b=w(a),c=document.createElement("LI");c.innerHTML=a.b;(!d.w||!r||s===j||!s[b])&&"none"!=c.style.display&&Qe(c,l);this.f.appendChild(c);this.O[b]=c},a)}}
function zf(a,b,c,d,e){var f=b.a,b=f.a;if(b===j)return j;var g;f instanceof de&&(g=Id(f.tileGrid.a,d));var k={};C(b,function(a){var b=w(a),p=i;if(b in this.b)a=this.b[b];else{var q=a.c,a=a.a;if(a!==j&&!(q===e||(q.c!=e.c?0:ib(q,e)===eb))){var x=ib(q,e);x!==eb&&(a=Aa(a,function(a){return a.transform(x)}))}this.b[b]=a}a===j||(p=f instanceof de?Ba(a,function(a){return a.b<=g&&g<=a.a&&Oa(a.extent,c)}):Ba(a,function(a){return a.b<=Id(a.c.a,d)&&Id(a.c.a,d)<=a.a&&Oa(a.extent,c)}));k[b]=p},a);return k}
m.Ac=function(a){xf(this,a.target)};m.sc=function(a){var b=this.a,c=b.w(),d=yf(b),e=b.g(),b=b.a();Af(this,a.target,c,d,b,e)};m.Bc=function(a){this.Hb(a.a)};m.Cc=function(a){var a=a.a,b=w(a);T(this.e[b]);delete this.e[b];C(a.a.a,function(a){a=w(a);delete this.b[a];md(this.O[a]);delete this.O[a]},this)};m.Ta=function(){var a=this.a,b=a.w(),c=yf(a),d=a.g(),e=a.a();a.t(Bf).forEach(function(a){Af(this,a,b,c,e,d)},this)};
m.xb=function(){this.c!==j&&(C(this.c,T),this.c=j);F(this.O,function(a){md(a)},this);this.O={};this.b={};var a=this.a.t(Bf);a!=j&&(a.forEach(this.Hb,this),this.c=[R(a,"add",this.Bc,l,this),R(a,"remove",this.Cc,l,this)])};m.C=function(a){this.d===j||C(this.d,T);this.d=j;wf.i.C.call(this,a);a!==j&&(this.d=[R(a,X(Cf),this.Ta,l,this),R(a,X(Bf),this.xb,l,this),R(a,X(Df),this.Ta,l,this),R(a,X(Ef),this.Ta,l,this)],this.xb())};
function Af(a,b,c,d,e,f){c&&b.L()?(b=zf(a,b,d,e,f),F(b,function(a,b){var c=this.O[b];"none"!=c.style.display!=a&&Qe(c,a)},a)):(b=b.a.a,b===j||C(b,function(a){a=w(a);Qe(this.O[a],l)},a))};function Ff(a){var b=ef?"touchend":"click",c=jd("A",{href:"#zoomIn","class":"ol-zoom-in"},"+");R(c,b,this.c,l,this);var d=jd("A",{href:"#zoomOut","class":"ol-zoom-out"},"\u2212");R(d,b,this.d,l,this);b=jd("DIV","ol-zoom ol-unselectable",c,d);vf.call(this,{element:b,map:a.map,target:a.target});this.b=u(a.delta)?a.delta:1}A(Ff,vf);Ff.prototype.c=function(a){a.v();this.a.zoom(this.b)};Ff.prototype.d=function(a){a.v();this.a.zoom(-this.b)};function Gf(){};function Hf(a){this.a=a}A(Hf,Gf);Hf.prototype.b=function(a){var b=a.a;if(a.type==rf&&(ef||Oc(a.a))){var c=a.map,d=a.c();c.zoom(a.a.S?-this.a:this.a,d);a.v();b.v()}};function If(a){return a.H&&!a.Ga&&!a.S}function Jf(a){return!a.H&&!a.Ga&&!a.S}function Kf(a){return!a.H&&!a.Ga&&a.S};function Lf(){this.f=l;this.I=this.z=this.n=this.m=0;this.pa=this.h=j}A(Lf,Gf);Lf.prototype.g=t;Lf.prototype.U=t;Lf.prototype.d=$d;Lf.prototype.b=function(a){var b=a.map;if(b.w()){var c=a.a;this.f?a.type==uf?(this.c=c.clientX-this.m,this.a=c.clientY-this.n,this.g(a)):a.type==sf&&(this.c=c.clientX-this.m,this.a=c.clientY-this.n,this.U(a),this.f=l):a.type==tf&&(this.m=c.clientX,this.n=c.clientY,this.a=this.c=0,this.h=b.c(),this.pa=a.c(),this.d(a)&&(this.f=i,a.v()))}};function Mf(a){Lf.call(this);this.e=a}A(Mf,Lf);Mf.prototype.g=function(a){var a=a.map,b=a.a(),c=a.e(),b=new E(-b*this.c,b*this.a);a.f.$()&&u(c)&&b.rotate(c);a.h(new E(this.h.x+b.x,this.h.y+b.y))};Mf.prototype.d=function(a){return this.e(a.a)?i:l};function Nf(a){Lf.call(this);this.u=a;this.e=0}A(Nf,Lf);Nf.prototype.g=function(a){var b=a.map,c=b.d(),a=mf(a);b.rotate(this.e,-Math.atan2(c.height/2-a.y,a.x-c.width/2))};Nf.prototype.d=function(a){var b=a.a,c=a.map;return Oc(b)&&this.u(b)&&c.f.$()?(b=c.d(),a=mf(a),a=Math.atan2(b.height/2-a.y,a.x-b.width/2),this.e=(c.e()||0)+a,i):l};function Of(a){var b=jd("DIV","ol-dragbox");this.b=j;this.d=a.pa;this.c=j;vf.call(this,{element:b,map:a.map})}A(Of,vf);Of.prototype.C=function(a){this.c!==j&&(T(this.c),this.c=j);a!==j&&(this.b=Pf(a,this.d),Je(this.element,this.b),Re(this.element,new Ma(0,0)),this.c=R(a,uf,this.e,l,this));Of.i.C.call(this,a)};Of.prototype.e=function(a){var b=this.a,a=a.c(),b=Pf(b,a);Je(this.element,new kf(Math.min(b.x,this.b.x),Math.min(b.y,this.b.y)));Re(this.element,new Ma(Math.abs(b.x-this.b.x),Math.abs(b.y-this.b.y)))};function Qf(a){Lf.call(this);this.u=a;this.e=j}A(Qf,Lf);Qf.prototype.U=function(a){this.e.C(j);this.e=j;if(64<=this.c*this.c+this.a*this.a){var b=a.map,c=Qa(this.pa,a.c());Rf(b,function(){this.h(new E((c.k+c.p)/2,(c.a+c.b)/2));var a;a=this.d();a=u(a)?Math.max((c.p-c.k)/a.width,(c.b-c.a)/a.height):h;a=this.I.resolution(a,0);this.z(a);this.f.$()&&this.Ia(0)},b)}};Qf.prototype.d=function(a){var b=a.a;return Oc(b)&&this.u(b)?(this.e=new Of({map:a.map,pa:this.pa}),i):l};function Sf(a){this.a=a}A(Sf,Gf);Sf.prototype.b=function(a){if("key"==a.type){var b=a.a,c=b.Z;if(40==c||37==c||39==c||38==c){var d=a.map,e=d.a()*this.a,c=40==c?new E(0,-e):37==c?new E(-e,0):39==c?new E(e,0):new E(0,e),e=d.c();d.h(new E(e.x+c.x,e.y+c.y));b.v();a.v()}}};function Tf(){}A(Tf,Gf);Tf.prototype.b=function(a){if("key"==a.type){var b=a.a,c=b.sa;if(43==c||45==c)a.map.zoom(43==c?4:-4),b.v(),a.v()}};function Uf(a){this.a=a}A(Uf,Gf);Uf.prototype.b=function(a){if("mousewheel"==a.type){var b=a.map,c=a.a,d=a.c();b.zoom(0>c.a?this.a:-this.a,d);a.v();c.v()}};function Vf(a,b){W.call(this);this.e=a;this.a=b;R(this.a,X("brightness"),this.tb,l,this);R(this.a,X("contrast"),this.ub,l,this);R(this.a,X("hue"),this.vb,l,this);R(this.a,"load",this.Xa,l,this);R(this.a,X("opacity"),this.va,l,this);R(this.a,X("saturation"),this.wb,l,this);R(this.a,X("visible"),this.wa,l,this)}A(Vf,W);m=Vf.prototype;m.G=ca("a");m.Q=ca("e");m.tb=t;m.ub=t;m.vb=t;m.Xa=t;m.va=t;m.wb=t;m.wa=t;function Wf(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}Wf.prototype.a=4;Wf.prototype.set=function(a,b){for(var b=b||0,c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};Wf.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(Wf.BYTES_PER_ELEMENT=4,Wf.prototype.BYTES_PER_ELEMENT=Wf.prototype.a,Wf.prototype.set=Wf.prototype.set,Wf.prototype.toString=Wf.prototype.toString,z("Float32Array",Wf));function Xf(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}Xf.prototype.a=8;Xf.prototype.set=function(a,b){for(var b=b||0,c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};Xf.prototype.toString=Array.prototype.join;"undefined"==typeof Float64Array&&(Xf.BYTES_PER_ELEMENT=8,Xf.prototype.BYTES_PER_ELEMENT=Xf.prototype.a,Xf.prototype.set=Xf.prototype.set,Xf.prototype.toString=Xf.prototype.toString,z("Float64Array",Xf));function Yf(){var a=Array(16);a[0]=0;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=0;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=0;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=0;return a}function Zf(a){a[0]=1;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=1;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=1;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1}function $f(a,b,c){var d=b[0],e=b[1],b=b[2];c[0]=d*a[0]+e*a[4]+b*a[8]+a[12];c[1]=d*a[1]+e*a[5]+b*a[9]+a[13];c[2]=d*a[2]+e*a[6]+b*a[10]+a[14]}
function ag(a,b,c){var d=a[1]*b+a[5]*c+0*a[9]+a[13],e=a[2]*b+a[6]*c+0*a[10]+a[14],f=a[3]*b+a[7]*c+0*a[11]+a[15];a[12]=a[0]*b+a[4]*c+0*a[8]+a[12];a[13]=d;a[14]=e;a[15]=f}function bg(a,b,c){var d=a[1]*b,e=a[2]*b,f=a[3]*b,g=a[4]*c,k=a[5]*c,r=a[6]*c,c=a[7]*c,s=1*a[8],p=1*a[9],q=1*a[10],x=1*a[11],y=a[12],N=a[13],K=a[14],S=a[15];a[0]*=b;a[1]=d;a[2]=e;a[3]=f;a[4]=g;a[5]=k;a[6]=r;a[7]=c;a[8]=s;a[9]=p;a[10]=q;a[11]=x;a[12]=y;a[13]=N;a[14]=K;a[15]=S}
function cg(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],k=a[5],r=a[6],s=a[7],p=Math.cos(b),q=Math.sin(b);a[0]=c*p+g*q;a[1]=d*p+k*q;a[2]=e*p+r*q;a[3]=f*p+s*q;a[4]=c*-q+g*p;a[5]=d*-q+k*p;a[6]=e*-q+r*p;a[7]=f*-q+s*p}new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);function dg(a,b){M.call(this);this.Ia=a;this.map=b;this.D={};this.e=j;this.c=Yf();this.I=Yf();this.d=i;this.la=[R(b,X(eg),this.pb,l,this),R(b,X(Cf),this.ha,l,this),R(b,X(Bf),this.tc,l,this),R(b,X(Df),this.ia,l,this),R(b,X(fg),this.xa,l,this),R(b,X(Ef),this.ja,l,this)]}A(dg,M);m=dg.prototype;m.Ea=function(a){var b=this.Qa(a);this.$a(a,b)};m.$=$d;m.Qa=be;m.q=function(){F(this.D,function(a){Hc(a)});C(this.la,T);this.e===j||C(this.e,T);dg.i.q.call(this)};
function gg(a,b,c){var d=a.map.t(Bf);u(d)&&d.forEach(function(a,d){if(a.T()&&a.L()){var g=w(a);b.call(c,a,this.D[g],d)}},a)}function nf(a,b){hg(a);var c=[b.x,b.y,0];$f(a.I,c,c);return new E(c[0],c[1])}m.pb=t;m.ha=function(){this.d=i};m.Dc=function(a){this.Ea(a.a)};m.tc=function(){C(Sa(this.D),function(a){this.Ja(a)},this);this.D={};this.e!==j&&(C(this.e,T),this.e=j);var a=this.map.t(Bf);a!=j&&(a.forEach(this.Ea,this),this.e=[R(a,"add",this.Dc,l,this),R(a,"remove",this.Ec,l,this)])};m.Ec=function(a){this.Ya(a.a)};
m.ia=function(){this.d=i};m.xa=function(){this.d=i};m.ja=function(){this.d=i};m.Ya=function(a){Hc(this.Ja(a))};m.Ja=function(a){a=w(a);if(a in this.D){var b=this.D[a];delete this.D[a];return b}return j};m.r=$d;m.$a=function(a,b){var c=w(a);this.D[c]=b};
function hg(a){if(a.d){var b=a.map,c=b.c(),d=b.a(),e=b.e(),b=b.d();Zf(a.c);ag(a.c,b.width/2,b.height/2);bg(a.c,1/d,-1/d);a.$()&&u(e)&&cg(a.c,-e);ag(a.c,-c.x,-c.y);var f=a.c,c=a.I,d=f[0],e=f[1],b=f[2],g=f[3],k=f[4],r=f[5],s=f[6],p=f[7],q=f[8],x=f[9],y=f[10],N=f[11],K=f[12],S=f[13],O=f[14],f=f[15],P=d*r-e*k,da=d*s-b*k,aa=d*p-g*k,ba=e*s-b*r,wa=e*p-g*r,$b=b*p-g*s,ac=q*S-x*K,bc=q*O-y*K,cc=q*f-N*K,dc=x*O-y*S,ec=x*f-N*S,fc=y*f-N*O,Q=P*fc-da*ec+aa*dc+ba*cc-wa*bc+$b*ac;0!=Q&&(Q=1/Q,c[0]=(r*fc-s*ec+p*dc)*Q,
c[1]=(-e*fc+b*ec-g*dc)*Q,c[2]=(S*$b-O*wa+f*ba)*Q,c[3]=(-x*$b+y*wa-N*ba)*Q,c[4]=(-k*fc+s*cc-p*bc)*Q,c[5]=(d*fc-b*cc+g*bc)*Q,c[6]=(-K*$b+O*aa-f*da)*Q,c[7]=(q*$b-y*aa+N*da)*Q,c[8]=(k*ec-r*cc+p*ac)*Q,c[9]=(-d*ec+e*cc-g*ac)*Q,c[10]=(K*wa-S*aa+f*P)*Q,c[11]=(-q*wa+x*aa-N*P)*Q,c[12]=(-k*dc+r*bc-s*ac)*Q,c[13]=(d*dc-e*bc+b*ac)*Q,c[14]=(-K*ba+S*da-O*P)*Q,c[15]=(q*ba-x*da+y*P)*Q);a.d=l}};function ig(a){Z.call(this,a)}A(ig,Z);function jg(a,b,c){Vf.call(this,a,b);this.target=c;this.origin=j;this.va();this.wa()}A(jg,Vf);jg.prototype.Q=function(){return jg.i.Q.call(this)};jg.prototype.Xa=function(){this.e.map.r()};jg.prototype.va=function(){var a=this.G().b(),b=this.target.style;"opacity"in b?b.opacity=a:"MozOpacity"in b?b.MozOpacity=a:"filter"in b&&(b.filter=""===a?"":"alpha(opacity="+100*a+")")};jg.prototype.wa=function(){Qe(this.target,this.G().L())};function kg(a,b,c){jg.call(this,a,b,c);this.b={};this.f=h;this.d={}}A(kg,jg);kg.prototype.G=function(){return kg.i.G.call(this)};kg.prototype.h=function(a){a=w(a.target);delete this.d[a];this.r()};
kg.prototype.r=function(){var a=this.e.map;if(a.w()){var b=lg(a),a=a.a(),c=a!==this.f,d=this.G().a,e=d.tileGrid,f=Id(e.a,a),g={};g[f]={};Hd(Ld(e,b,a),f,function(a){var b=ee(d,a);if(b!==j){var c=b.ab.toString();2==b.a?g[f][c]=b:(c=w(b),c in this.d||(this.d[c]=R(b,"change",this.h,l,this),Td(b)),e.c(a,function(a,b){var c=i;Hd(b,a,function(b){var e=b.toString();if(!g[a]||!g[a][e])b=ee(d,b),b!==j&&2==b.a?(a in g||(g[a]={}),g[a][e]=b):c=l});return c}))}},this);var k=Aa(Ta(g),Number);B.sort.call(k,Ga);for(var b=
document.createDocumentFragment(),r=document.createDocumentFragment(),s=l,p=l,q=0,x=k.length;q<x;++q){var y=k[q],N=g[y],K;K=a;var S=Md(this.G().a.tileGrid,y);K=new E(Math.round((this.origin.x-S.x)/K),Math.round((S.y-this.origin.y)/K));for(var O in N){var S=N[O],P=Nd(e,S.ab,a),da=Sd(S,this),aa=da.style,ba=!(O in this.b);if(ba||c)aa.left=P.k-K.x+"px",aa.top=-P.b-K.y+"px",aa.width=P.d()+"px",aa.height=P.c()+"px";ba&&(this.b[O]=S,aa.position="absolute",y===f?(b.appendChild(da),s=i):(r.appendChild(da),
p=i))}}p&&((O=this.target.firstChild)?O.parentNode&&O.parentNode.insertBefore(r,O):this.target.appendChild(r));s&&this.target.appendChild(b);this.f=a;for(var wa in this.b)a=Ed(wa),a=g[a.j],a&&wa in a||(a=this.b[wa],delete this.b[wa],md(Sd(a,this)))}};function mg(a,b){dg.call(this,a,b);this.a=document.createElement("DIV");this.a.className="ol-layers-pane ol-unselectable";var c=this.a.style;c.position="absolute";c.width="100%";c.height="100%";a.insertBefore(this.a,a.childNodes[0]||j);this.z={};this.f=j;this.n=h;this.g=j;this.u=h;this.h=j}A(mg,dg);
function ng(a,b,c,d){b="translate("+Math.round(b)+"px, "+Math.round(c)+"px) rotate("+d.toFixed(6)+"rad) scale3d(1, 1, 1)";a=a.a.style;a.WebkitTransform=b;a.MozTransform=b;a.a=b;a.msTransform=b;a.transform=b}m=mg.prototype;m.$=ae;m.Qa=function(a){if(a instanceof ig){var b=document.createElement("DIV");b.className="ol-layer";b.style.position="absolute";this.a.appendChild(b);a=new kg(this,a,b);this.z[w(a)]=b;return a}return j};m.ha=function(){mg.i.ha.call(this);var a=this.map;a.w()&&a.r()};
m.ia=function(){mg.i.ia.call(this);var a=this.map;a.w()&&a.r()};m.xa=function(){var a=this.map;a.w()&&a.r()};m.ja=function(){mg.i.ja.call(this);var a=this.map;a.w()&&a.r()};
m.r=function(){var a=this.map;if(!a.w())return l;var b=a.c(),c=a.d(),d=a.a(),a=a.e();if(this.f===j)og(this);else if(d!==this.n||!(c.width==this.g.width&&c.height==this.g.height))og(this);else if(!(b==this.f||this.f&&b.x==this.f.x&&b.y==this.f.y)||a!==this.u){var e=this.map,f=e.a(),g=e.c(),k=e.d(),r=this.h,s=(g.x-r.x)/f,f=(r.y-g.y)/f;pg(this,s,f);ng(this,-(s-k.width/2),-(f-k.height/2),e.e())}this.f=b;this.n=d;this.u=a;this.g=c;var p=l;gg(this,function(a,b){b.r()&&(p=i)});return p};
function og(a){var b=a.map,c=b.d(),d=c.width/2,c=c.height/2,e=b.c(),f=b.a(),g=new E(e.x-f*d,e.y+f*c);a.h=g;pg(a,d,c);ng(a,0,0,b.e());F(a.D,function(a){a.origin=g})}function pg(a,b,c){b=Math.round(b)+"px "+Math.round(c)+"px";a=a.a.style;a.WebkitTransformOrigin=b;a.MozTransformOrigin=b;a.b=b;a.c=b;a.d=b};var qg=["webgl","webgl-experimental","webkit-3d","moz-webgl"];function rg(a,b){var c,d,e=qg.length;for(d=0;d<e;++d)try{if(c=a.getContext(qg[d],b),c!==j)return c}catch(f){}return j};function sg(){if(!("WebGLRenderingContext"in n))return l;try{var a=document.createElement("CANVAS");return rg(a)!==j}catch(b){return l}};function tg(a){this.a=a}function ug(a){this.a=a}A(ug,tg);ug.prototype.b=function(){return 35632};function vg(a){this.a=a}A(vg,tg);vg.prototype.b=function(){return 35633};function wg(a,b){Vf.call(this,a,b)}A(wg,Vf);function xg(a){U(a,"change")}m=wg.prototype;m.Q=function(){return wg.i.Q.call(this)};m.tb=function(){xg(this)};m.ub=function(){xg(this)};m.vb=function(){xg(this)};m.Xa=function(){xg(this)};m.va=function(){xg(this)};m.wb=function(){xg(this)};m.wa=function(){xg(this)};m.ya=t;function yg(){this.a="precision mediump float;\n\nuniform sampler2D uTexture;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n gl_FragColor = texture2D(uTexture, vTexCoord);\n}"}A(yg,ug);ea(yg);function zg(){this.a="attribute vec2 aPosition;\nattribute vec2 aTexCoord;\n\nvarying vec2 vTexCoord;\n\nuniform vec4 uTileOffset;\n\nvoid main(void) {\n gl_Position.xy = aPosition * uTileOffset.xy + uTileOffset.zw;\n gl_Position.z = 0.;\n gl_Position.w = 1.;\n vTexCoord = aTexCoord;\n}"}A(zg,vg);ea(zg);
function Ag(a,b){Vf.call(this,a,b);this.u=yg.ra();this.z=zg.ra();this.d=this.g=this.f=this.o=j;this.h=h;this.m={};this.c=Yf();this.n=this.b=j}A(Ag,wg);m=Ag.prototype;m.q=function(){var a=this.Q().b;a.isContextLost()||(a.deleteBuffer(this.f),a.deleteFramebuffer(this.d),a.deleteTexture(this.g));Ag.i.q.call(this)};m.G=function(){return Ag.i.G.call(this)};m.wc=function(a){a=w(a.target);delete this.m[a];xg(this)};m.ya=function(){this.d=this.g=this.f=this.o=j;this.h=h};
m.r=function(){var a=l,b=this.Q(),c=this.e.map,d=b.b,e=c.c(),f=yf(c),g=c.a(),k=lg(c),r=c.e(),s=this.G().a,p=s.tileGrid,q=Id(p.a,g),x=p.a[q],k=Ld(p,k,x),y;if(this.b!==j&&this.b.k==k.k&&k.p==this.b.p&&this.b.a==k.a&&k.a==this.b.a)y=this.n;else{var g=new Ma(k.d(),k.c()),N=p.b,g=Math.max(g.width*N.width,g.height*N.height),g=Math.pow(2,Math.ceil(Math.log(g)/Math.log(2))),K=new Ma(x*g,x*g),S=Md(p,q),O=S.x+k.k*N.width*x,x=S.y+k.a*N.height*x;y=new Pa(O,x,O+K.width,x+K.height);x=this.Q().b;!u(this.h)||this.h!=
g?(Wc(this.e.map,Bg,pa(function(a,b,c){a.isContextLost()||(a.deleteFramebuffer(b),a.deleteTexture(c))},x,this.d,this.g)),N=x.createTexture(),x.bindTexture(3553,N),x.texImage2D(3553,0,6408,g,g,0,6408,5121,j),x.texParameteri(3553,10240,9729),x.texParameteri(3553,10241,9729),O=x.createFramebuffer(),x.bindFramebuffer(36160,O),x.framebufferTexture2D(36160,36064,3553,N,0),this.g=N,this.d=O,this.h=g):x.bindFramebuffer(36160,this.d);d.viewport(0,0,g,g);d.clearColor(0,0,0,0);d.clear(16384);d.disable(3042);
g=Cg(b,this.u,this.z);d.useProgram(g);this.o===j&&(this.o={ca:d.getAttribLocation(g,"aPosition"),da:d.getAttribLocation(g,"aTexCoord"),Pc:d.getUniformLocation(g,"uTileOffset"),cb:d.getUniformLocation(g,"uTexture")});this.f===j?(g=d.createBuffer(),d.bindBuffer(34962,g),d.bufferData(34962,new Float32Array([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]),35044),this.f=g):d.bindBuffer(34962,this.f);d.enableVertexAttribArray(this.o.ca);d.vertexAttribPointer(this.o.ca,2,5126,l,16,0);d.enableVertexAttribArray(this.o.da);
d.vertexAttribPointer(this.o.da,2,5126,l,16,8);d.uniform1i(this.o.cb,0);var P={},da=[],aa=i;P[q]={};Hd(k,q,function(a){var c=ee(s,a);if(c!==j){if(2==c.a){if(Sd(c).src in b.m){P[q][a.toString()]=c;return}da.push(Sd(c))}else{var d=w(c);d in this.m||(Td(c),this.m[d]=R(c,"change",this.wc,l,this))}aa=l}p.c(a,function(a,b){var c=i;Hd(b,a,function(b){var d=b.toString();if(!P[a]||!P[a][d])b=ee(s,b),b!==j&&2==b.a?(P[a]||(P[a]={}),P[a][d]=b):c=l});return c})},this);g=Aa(Ta(P),Number);B.sort.call(g,Ga);var ba=
new Float32Array(4);C(g,function(a){F(P[a],function(a){var c=Kd(p,a.ab),e=2*c.c()/K.height,f=2*(c.k-y.k)/K.width-1,g=2*(c.a-y.a)/K.height-1;ba[0]=2*c.d()/K.width;ba[1]=e;ba[2]=f;ba[3]=g;d.uniform4fv(this.o.Pc,ba);Dg(b,Sd(a));d.drawArrays(5,0,4)},this)},this);0!=da.length&&(Wc(c,Bg,pa(function(a,b){C(b,function(b){Dg(a,b)})},b,da)),a=i);aa?(this.b=k,this.n=y):this.n=this.b=j}Zf(this.c);ag(this.c,(e.x-y.k)/(y.p-y.k),(e.y-y.a)/(y.b-y.a));u(r)&&cg(this.c,r);bg(this.c,(f.p-f.k)/(y.p-y.k),(f.b-f.a)/(y.b-
y.a));ag(this.c,-0.5,-0.5);return a};function Eg(){this.a="precision mediump float;\n\nuniform float uBrightness;\nuniform float uContrast;\nuniform float uHue;\nuniform float uOpacity;\nuniform mat4 uMatrix;\nuniform float uSaturation;\nuniform sampler2D uTexture;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n\n vec4 texCoord = uMatrix * vec4(vTexCoord, 0., 1.);\n vec4 color = texture2D(uTexture, texCoord.st);\n\n if (uHue != 0.) {\n float angle = uHue * 3.14159265;\n float s = sin(angle), c = cos(angle);\n vec3 weights = (vec3(2. * c, -sqrt(3.) * s - c, sqrt(3.) * s - c)\n + 1.) / 3.;\n color.rgb = vec3(\n dot(color.rgb, weights.xyz),\n dot(color.rgb, weights.zxy),\n dot(color.rgb, weights.yzx)\n );\n }\n\n if (uSaturation != 0.) {\n float average = (color.r + color.g + color.b) / 3.;\n if (uSaturation > 0.) {\n color.rgb += (average - color.rgb)\n * (1. - 1. / (1. - uSaturation));\n } else {\n color.rgb += (average - color.rgb) * -uSaturation;\n }\n }\n\n color.rgb += uBrightness;\n\n if (uContrast != 0.) {\n if (uContrast > 0.) {\n color.rgb = (color.rgb - 0.5) / (1. - uContrast) + 0.5;\n } else {\n color.rgb = (color.rgb - 0.5) * (1. + uContrast) + 0.5;\n }\n }\n\n color.a = color.a * uOpacity;\n\n gl_FragColor = color;\n\n}"}
A(Eg,ug);ea(Eg);function Fg(){this.a="attribute vec2 aPosition;\nattribute vec2 aTexCoord;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n gl_Position = vec4(aPosition, 0., 1.);\n vTexCoord = aTexCoord;\n}"}A(Fg,vg);ea(Fg);
function Gg(a,b){dg.call(this,a,b);this.a=document.createElement("CANVAS");this.a.height=a.clientHeight;this.a.width=a.clientWidth;this.a.className="ol-unselectable";a.insertBefore(this.a,a.childNodes[0]||j);this.u=new Ma(a.clientHeight,a.clientWidth);this.b=rg(this.a,{alpha:l,antialias:i,depth:l,preserveDrawingBuffer:l,stencil:l});R(this.a,"webglcontextlost",this.ya,l,this);R(this.a,"webglcontextrestored",this.yc,l,this);this.f=new ff(1,1,1,1);this.n=this.o=j;this.h={};this.g={};this.m={};this.ma=
Eg.ra();this.oa=Fg.ra();this.z={};Hg(this)}A(Gg,dg);m=Gg.prototype;m.Ea=function(a){Gg.i.Ea.call(this,a);a.L()&&this.map.r()};
function Dg(a,b){var c=a.b,d=b.src,e=a.m[d];u(e)?(c.bindTexture(3553,e.Pb),9729!=e.Ab&&(c.texParameteri(3553,10240,9729),e.Ab=9729),9729!=e.Bb&&(c.texParameteri(3553,10240,9729),e.Bb=9729)):(e=c.createTexture(),c.bindTexture(3553,e),c.texImage2D(3553,0,6408,6408,5121,b),c.texParameteri(3553,10240,9729),c.texParameteri(3553,10241,9729),c.texParameteri(3553,10242,33071),c.texParameteri(3553,10243,33071),a.m[d]={Pb:e,Ab:9729,Bb:9729})}m.$=ae;m.Qa=function(a){return a instanceof ig?new Ag(this,a):j};
m.q=function(){var a=this.b;a.isContextLost()||(F(this.g,function(b){a.deleteProgram(b)}),F(this.h,function(b){a.deleteShader(b)}),F(this.m,function(b){a.deleteTexture(b.Pb)}));Gg.i.q.call(this)};function Cg(a,b,c){var d=w(b)+"/"+w(c);if(d in a.g)return a.g[d];var e=a.b,f=e.createProgram();e.attachShader(f,Ig(a,b));e.attachShader(f,Ig(a,c));e.linkProgram(f);return a.g[d]=f}
function Ig(a,b){var c=w(b);if(c in a.h)return a.h[c];var d=a.b,e=d.createShader(b.b());d.shaderSource(e,b.a);d.compileShader(e);return a.h[c]=e}m.pb=function(){var a=this.map.Qb();this.f=new ff(a.d/255,a.c/255,a.b/255,a.a/255);this.map.r()};m.ha=function(){Gg.i.ha.call(this);this.map.r()};m.rc=function(){this.map.r()};m.ia=function(){Gg.i.ia.call(this);this.map.r()};m.xa=function(){Gg.i.xa.call(this);this.map.r()};m.ja=function(){Gg.i.ja.call(this);this.map.r()};
m.ya=function(a){a.v();this.n=this.o=j;this.h={};this.g={};this.m={};F(this.D,function(a){a.ya()})};m.yc=function(){Hg(this);this.map.r()};function Hg(a){a=a.b;a.activeTexture(33984);a.blendFunc(770,771);a.disable(2884);a.disable(2929);a.disable(3089)}m.Ya=function(a){Gg.i.Ya.call(this,a);a.L()&&this.map.r()};m.Ja=function(a){var b=Gg.i.Ja.call(this,a);b!==j&&(a=w(a),T(this.z[a]),delete this.z[a]);return b};
m.r=function(){if(!this.map.w())return l;var a=this.map.d();this.u.width==a.width&&this.u.height==a.height||(this.a.width=a.width,this.a.height=a.height,this.u=a);var b=l;gg(this,function(a,c){c.r()&&(b=i)});var c=this.b;c.bindFramebuffer(36160,j);c.clearColor(this.f.d,this.f.c,this.f.b,this.f.a);c.clear(16384);c.enable(3042);c.viewport(0,0,a.width,a.height);a=Cg(this,this.ma,this.oa);c.useProgram(a);this.o===j&&(this.o={ca:c.getAttribLocation(a,"aPosition"),da:c.getAttribLocation(a,"aTexCoord"),
Jc:c.getUniformLocation(a,"uBrightness"),Kc:c.getUniformLocation(a,"uContrast"),Lc:c.getUniformLocation(a,"uHue"),Mc:c.getUniformLocation(a,"uMatrix"),Nc:c.getUniformLocation(a,"uOpacity"),Oc:c.getUniformLocation(a,"uSaturation"),cb:c.getUniformLocation(a,"uTexture")});this.n===j?(a=c.createBuffer(),c.bindBuffer(34962,a),c.bufferData(34962,new Float32Array([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]),35044),this.n=a):c.bindBuffer(34962,this.n);c.enableVertexAttribArray(this.o.ca);c.vertexAttribPointer(this.o.ca,
2,5126,l,16,0);c.enableVertexAttribArray(this.o.da);c.vertexAttribPointer(this.o.da,2,5126,l,16,8);c.uniform1i(this.o.cb,0);gg(this,function(a,b){c.uniformMatrix4fv(this.o.Mc,l,b.c);c.uniform1f(this.o.Jc,a.c());c.uniform1f(this.o.Kc,a.d());c.uniform1f(this.o.Lc,a.e());c.uniform1f(this.o.Nc,a.b());c.uniform1f(this.o.Oc,a.f());c.bindTexture(3553,b.g);c.drawArrays(5,0,4)},this);return b};m.$a=function(a,b){Gg.i.$a.call(this,a,b);var c=w(a);this.z[c]=R(b,"change",this.rc,l,this)};var Jg={Vc:"dom",$c:"webgl"},Kg=["webgl","dom"],Bg="postrender",eg="backgroundColor",Cf="center",Bf="layers",Df="resolution",fg="rotation",Ef="size";
function $(a){var b,c;W.call(this);var d={};u(a.center)&&(d[Cf]=a.center);d[Bf]=u(a.layers)?a.layers:new Y;d.projection=fb(a.projection,"EPSG:3857");u(a.resolution)?d[Df]=a.resolution:u(a.zoom)&&(d[Df]=lb/(128<<a.zoom));d.userProjection=fb(a.userProjection,"EPSG:4326");c=dg;var e;e=u(a.renderers)?a.renderers:u(a.renderer)?[a.renderer]:Kg;var f;for(f=0;f<e.length;++f)if(b=e[f],"dom"==b){if(ae()){c=mg;break}}else if("webgl"==b&&sg()){c=Gg;break}if(u(a.resolutions)){var g=a.resolutions;e=function(a,
b){if(u(a)){var c=Id(g,a),c=Ha(c+b,0,g.length-1);return g[c]}}}else{u(a.maxResolution)&&u(a.numZoomLevels)&&u(a.zoomFactor)?(e=a.maxResolution,f=a.numZoomLevels,b=a.zoomFactor):(e=lb/128,f=116,b=Math.exp(Math.log(2)/4));var k=b,r=e,s=f-1;e=function(a,b){if(u(a)){var c=Math.floor(Math.log(r/a)/Math.log(k)+0.5),c=Math.max(c+b,0);u(s)&&(c=Math.min(c,s));return r/Math.pow(k,c)}}}f=new hf(e);u(a.controls)?e=a.controls:(e=new Y,e.push(new wf({})),e.push(new Ff({delta:u(a.zoomDelta)?a.zoomDelta:4})));if(u(a.interactions))b=
a.interactions;else{b=new Y;(u(a.rotate)?a.rotate:1)&&b.push(new Nf(If));if(u(a.doubleClickZoom)?a.doubleClickZoom:1)b.push(new Hf(u(a.zoomDelta)?a.zoomDelta:4));(u(a.dragPan)?a.dragPan:1)&&b.push(new Mf(Jf));var p=u(a.keyboardPanOffset)?a.keyboardPanOffset:80;if(u(a.keyboard)?a.keyboard:1)b.push(new Sf(p)),b.push(new Tf);if(u(a.mouseWheelZoom)?a.mouseWheelZoom:1)b.push(new Uf(u(a.mouseWheelZoomDelta)?a.mouseWheelZoomDelta:1));(u(a.shiftDragZoom)?a.shiftDragZoom:1)&&b.push(new Qf(Kf))}a=v(a.target)?
document.getElementById(a.target):a.target;this.jb=jb;this.gb=eb;this.Kb=l;this.ma=this.m=0;this.la=l;this.oa=a;this.I=f;this.b=jd("DIV","ol-viewport");this.b.style.position="relative";this.b.style.overflow="hidden";this.b.style.width="100%";this.b.style.height="100%";this.oa.appendChild(this.b);this.u=jd("DIV","ol-overlaycontainer");R(this.u,["click",ef?"touchstart":"mousedown"],Jc);this.b.appendChild(this.u);a=new of(this);R(a,[qf,rf,tf,uf,sf],this.Gb,l,this);Fc(this,a);a=new we(document);R(a,"key",
this.qb,l,this);Fc(this,a);a=new Ve(this.b);R(a,"mousewheel",this.qb,l,this);Fc(this,a);this.n=e;R(this.n,"add",this.pc,l,this);R(this.n,"remove",this.qc,l,this);this.Sb=b;this.f=new c(this.b,this);Fc(this,this.f);this.Yb=new re;R(this.Yb,"resize",this.rb,l,this);R(this,X("projection"),this.uc,l,this);R(this,X("userProjection"),this.xc,l,this);this.Wa(d);this.rb();this.n.forEach(function(a){a.C(this)},this)}A($,W);$.prototype.q=function(){md(this.b);$.i.q.call(this)};$.prototype.Qb=function(){return this.t(eg)};
$.prototype.getBackgroundColor=$.prototype.Qb;$.prototype.c=function(){return this.t(Cf)};$.prototype.getCenter=$.prototype.c;$.prototype.Tb=ca("n");function yf(a){if(a.w()){var b=a.c(),c=a.a(),a=a.d();return new Pa(b.x-c*a.width/2,b.y-c*a.height/2,b.x+c*a.width/2,b.y+c*a.height/2)}}$.prototype.Ub=ca("Sb");function Pf(a,b){if(a.w()){var c=a.f;hg(c);var d=[b.x,b.y,0];$f(c.c,d,d);return new kf(d[0],d[1])}}$.prototype.g=function(){return this.t("projection")};$.prototype.getProjection=$.prototype.g;
$.prototype.a=function(){return this.t(Df)};$.prototype.getResolution=$.prototype.a;function lg(a){var b=a.c(),c=a.a(),d=a.e()||0,e=a.d(),a=c*e.width/2,c=c*e.height/2,c=[new E(-a,-c),new E(-a,c),new E(a,-c),new E(a,c)];C(c,function(a){a.rotate(d);a.add(b)});return Qa.apply(j,c)}$.prototype.e=function(){return this.t(fg)||0};$.prototype.getRotation=$.prototype.e;$.prototype.d=function(){return this.t(Ef)};$.prototype.getSize=$.prototype.d;$.prototype.Rb=function(){return this.t("userProjection")};
$.prototype.getUserProjection=$.prototype.Rb;m=$.prototype;m.qb=function(a,b){this.Gb(new lf(b||a.type,this,a))};m.pc=function(a){a.a.C(this)};m.qc=function(a){a.a.C(j)};m.Gb=function(a){var b=this.Sb.a;if(U(this,a)!==l)for(var c=b.length-1;0<=c&&!(b[c].b(a),a.ua);c--);};m.uc=function(){Lg(this)};m.xc=function(){Lg(this)};m.rb=function(){this.ib(new Ma(this.oa.clientWidth,this.oa.clientHeight))};m.w=function(){var a;if(a=this.c()!=j)if(a=u(this.a()))a=this.d()!=j;return a};
function Lg(a){var b=a.g(),c=a.Rb();b!=j&&c!=j?(a.gb=ib(b,c),a.jb=ib(c,b)):(a.gb=eb,a.jb=jb)}m.r=function(){1>this.m&&(0===this.ma?df(this):this.la=i)};function df(a){var b=a.f.r();a.la=l;if(b!=a.Kb){if(b){if(1==++a.m){var c=w(a);c in af||(af[c]=a);cf()}}else 0===--a.m&&(c=w(a),delete af[c],Ua(af)&&bf&&$e(bf));a.Kb=b}U(a,Bg)}m.rotate=function(a,b){a=this.I.a(a,b);this.Ia(a)};m.Ic=function(a){this.set(eg,a)};$.prototype.setBackgroundColor=$.prototype.Ic;$.prototype.h=function(a){this.set(Cf,a)};
$.prototype.setCenter=$.prototype.h;$.prototype.Wb=function(a){this.set(Bf,a)};$.prototype.setLayers=$.prototype.Wb;$.prototype.Vb=function(a){this.set("projection",a)};$.prototype.setProjection=$.prototype.Vb;$.prototype.z=function(a){this.set(Df,a)};$.prototype.setResolution=$.prototype.z;$.prototype.Ia=function(a){this.set(fg,a)};$.prototype.setRotation=$.prototype.Ia;$.prototype.ib=function(a){this.set(Ef,a)};$.prototype.setSize=$.prototype.ib;
$.prototype.Xb=function(a){this.set("userProjection",a)};$.prototype.setUserProjection=$.prototype.Xb;function Rf(a,b,c){++a.ma;try{b.call(c)}finally{0===--a.ma&&(1>a.m&&a.la)&&df(a)}}$.prototype.zoom=function(a,b){var c=this.I.resolution(this.a(),a);if(c!=j&&b!=j){var d=this.c(),e=this.a(),f=new E(b.x-c*(b.x-d.x)/e,b.y-c*(b.y-d.y)/e);Rf(this,function(){this.h(f);this.z(c)},this)}else this.z(c)};function Mg(a){var b=jd("DIV",{"class":"ol-mouse-position"});vf.call(this,{element:b,map:a.map,target:a.target});this.h=a.projection;this.e=a.coordinateFormat;this.d=u(a.undefinedHtml)?a.undefinedHtml:"";this.c=jb;this.b=[];this.f()}A(Mg,vf);Mg.prototype.f=function(){Ng(this);this.element.innerHTML=this.d};Mg.prototype.m=function(a){var b=this.a,a=Ne(a,b.b),b=b.w()?nf(b.f,new kf(a.x,a.y)):j;b===j?b=this.d:(b=this.c(b),b=u(this.e)?this.e(b):b.toString());this.element.innerHTML=b};
Mg.prototype.n=function(){this.element.innerHTML=this.d};Mg.prototype.C=function(a){this.b!==j&&(C(this.b,T),this.b=j);Mg.i.C.call(this,a);if(a!==j){var b=a.b;this.u=[R(a,X("projection"),this.f,l,this),R(b,"mousemove",this.m,l,this),R(b,"mouseout",this.n,l,this)];Ng(this)}};function Ng(a){var b=a.a;b===j?a.c=jb:(b=b.g(),a.c=!u(b)||!u(a.h)?jb:ib(b,a.h))};function Og(){this.a={}}A(Og,Gf);Og.prototype.c=function(a,b){var c;for(c=0;c<a.length;++c)this.a[a.charCodeAt(c)]=b};Og.prototype.b=function(a){if("key"==a.type){var b=this.a[a.a.sa];b&&(b(),a.v())}};function Pg(a){this.c=this.a=this.e=j;this.d=[Qg,Rg];this.f=[];u(a.coordinate)&&this.h(a.coordinate);u(a.element)&&Sg(this,a.element);u(a.map)&&this.g(a.map);u(a.positioning)&&(this.d=a.positioning,this.b())}Pg.prototype.h=function(a){this.e=a;this.b()};function Sg(a,b){a.a&&md(a.a);a.a=b;a.c&&(Ee(a.a,"position","absolute"),ld(a.c.u,a.a));a.b()}Pg.prototype.m=ca("a");
Pg.prototype.g=function(a){this.c=a;C(this.f,T);this.a&&Sg(this,this.a);this.f=a?[R(a,X(Cf),this.b,l,this),R(a,X(Df),this.b,l,this),R(a,X(fg),this.b,l,this),R(a,X(Ef),this.b,l,this)]:[];this.b()};Pg.prototype.b=function(){if(this.c!==j&&this.e!==j&&this.a!==j){var a=Pf(this.c,this.e),b=this.c.t(Ef),c=Math.round(a.x);this.d[0]===Tg&&(c=b.width-c);a=Math.round(a.y);this.d[1]===Rg&&(a=b.height-a);Ee(this.a,this.d[0],c+"px");Ee(this.a,this.d[1],a+"px")}};var Qg="left",Tg="right",Rg="bottom";function Ug(a){var b=a.projection||gb("EPSG:3857"),c=Xd;u(a.J)?c=a.J:u(a.urls)?c=Vd(Aa(a.urls,Ud)):u(a.url)&&(c=Ud(a.url));var d=new fe({maxZoom:a.maxZoom}),e=a.extent,c=e!=j?Yd(function(b){if(a.maxZoom<b.j)return j;var c=1<<b.j,k=-b.y-1;if(0>k||c<=k)return j;c=Ia(b.x,c);return!Oa(Kd(d,new V(b.j,c,b.y)),e)?j:new V(b.j,c,k)},c):Yd(function(b){if(a.maxZoom<b.j)return j;var c=1<<b.j,d=-b.y-1;return 0>d||c<=d?j:new V(b.j,Ia(b.x,c),d)},c);de.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,
extent:a.extent,projection:b,tileGrid:d,J:c})}A(Ug,de);function Vg(){Ug.call(this,{attributions:[new sb('Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">'),new sb('Data &copy; <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>')],maxZoom:28,url:"http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg"})}A(Vg,Ug);
function Wg(){Ug.call(this,{attributions:[new sb('Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">'),new sb("Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency")],maxZoom:18,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})}A(Wg,Ug);function Xg(){Ug.call(this,{attributions:[new sb('&copy; <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>')],maxZoom:18,url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}A(Xg,Ug);var Yg={terrain:{type:"jpg",Cb:4,maxZoom:18},toner:{type:"png",Cb:0,maxZoom:20},watercolor:{type:"jpg",Cb:3,maxZoom:16}};
function Zg(a){var b=new sb('Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>.'),c=a.Gc;u(a.ec)&&(c+="-"+a.ec);a=Yg[a.Gc];Ug.call(this,{attributions:[b],maxZoom:a.maxZoom,url:"http://{a-d}.tile.stamen.com/"+c+"/{z}/{x}/{y}."+a.type})}A(Zg,Ug);var $g=[];z("grid",function(a){$g.push(a)});function ah(a){de.call(this,{projection:gb("EPSG:3857")});this.c=l;a=this.e=ud(a.uri,{lb:i});a.a.push([this.f,j,this]);a.P&&qd(a)}A(ah,de);
ah.prototype.f=function(){var a=$g.pop(),b=gb("EPSG:4326"),c,d;u(a.bounds)?(c=a.bounds,c=new Pa(c[0],c[1],c[2],c[3]),this.g=d=c.transform(ib(b,this.h))):d=c=j;var e=a.minzoom||0,f=a.maxzoom||22,g=new fe({maxZoom:f});this.tileGrid=g;this.J=Yd(function(a){if(a.j<e||f<a.j)return j;var b=1<<a.j,c=-a.y-1;if(0>c||b<=c)return j;b=Ia(a.x,b);return d!==j&&!Oa(Kd(g,new V(a.j,b,a.y)),d)?j:new V(a.j,b,c)},Vd(Aa(a.tiles,Ud)));u(a.attribution)&&(this.a=[new sb(a.attribution,[new Pd(g,c,e,f)],b)]);this.c=i;U(this,
"load")};ah.prototype.T=ca("c");function bh(a){var b=fb(a.projection,"EPSG:3857"),c=b.b,d=u(a.extent)?a.extent:c,e=u(a.version)?a.version:"1.3",f;if(u(a.tileGrid))f=a.tileGrid;else{Math.max(c.p-c.k,c.b-c.a);for(var g=Array((u(a.maxZoom)?a.maxZoom:18)+1),k=0,r=g.length;k<r;++k)g[k]=lb/(128<<k);f=new Jd({origin:new E(c.k,c.b),resolutions:g})}var s={SERVICE:"WMS",VERSION:e,REQUEST:"GetMap",STYLES:"",FORMAT:"image/png",TRANSPARENT:i},g=f.b;s.WIDTH=g.width;s.HEIGHT=g.height;s["1.3"<=e?"CRS":"SRS"]=b.a;Wa(s,a.params);a.urls?(e=Aa(a.urls,
function(a){a=Yb(gc([a],s));return Wd(a,f)}),e=Vd(e)):a.url?(e=Yb(gc([a.url],s)),e=Wd(e,f)):e=Xd;de.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:d,tileGrid:f,projection:b,J:Yd(function(a){if(f.a.length<=a.j)return j;var b=a.x,e=Kd(f,a);d.k===c.k&&d.p===c.p&&(e=Math.ceil((d.p-d.k)/(e.p-e.k)),b=Ia(b,e),e=Kd(f,new V(a.j,b,a.y)));return!Oa(e,d)?j:new V(a.j,b,a.y)},e)})}A(bh,de);z("goog.require",t);z("ol.Attribution",sb);z("ol.BingMapsStyle",ge);ge.AERIAL="Aerial";ge.AERIAL_WITH_LABELS="AerialWithLabels";ge.COLLINS_BART="CollinsBart";ge.ORDNANCE_SURVEY="OrdnanceSurvey";ge.ROAD="Road";z("ol.Collection",Y);Y.prototype.clear=Y.prototype.clear;Y.prototype.forEach=Y.prototype.forEach;Y.prototype.getArray=Y.prototype.fc;Y.prototype.getAt=Y.prototype.gc;Y.prototype.getLength=Y.prototype.ob;Y.prototype.insertAt=Y.prototype.za;Y.prototype.pop=Y.prototype.Fb;Y.prototype.push=Y.prototype.push;
Y.prototype.removeAt=Y.prototype.Jb;Y.prototype.setAt=Y.prototype.Hc;z("ol.Coordinate",E);E.toStringHDMS=function(a){return u(a)?Ka(a.y,"NS")+" "+Ka(a.x,"EW"):""};z("ol.Extent",Pa);
function ch(a){$.call(this,{center:a.center,controls:a.controls,doubleClickZoom:a.doubleClickZoom,dragPan:a.dragPan,interactions:a.interactions,keyboard:a.keyboard,keyboardPanOffset:a.keyboardPanOffset,layers:a.layers,maxResolution:a.maxResolution,mouseWheelZoom:a.mouseWheelZoom,mouseWheelZoomDelta:a.mouseWheelZoomDelta,numZoomLevels:a.numZoomLevels,projection:a.projection,renderer:a.renderer,renderers:a.renderers,resolution:a.resolution,resolutions:a.resolutions,rotate:a.rotate,shiftDragZoom:a.shiftDragZoom,
target:a.target,userProjection:a.userProjection,zoom:a.zoom,zoomDelta:a.zoomDelta,zoomFactor:a.zoomFactor})}A(ch,$);z("ol.Map",ch);$.prototype.getControls=$.prototype.Tb;$.prototype.getInteractions=$.prototype.Ub;lf.prototype.getCoordinate=lf.prototype.c;z("ol.Object",W);W.prototype.bindTo=W.prototype.Zb;W.prototype.changed=W.prototype.bc;W.prototype.get=W.prototype.t;W.prototype.notify=W.prototype.Eb;W.prototype.set=W.prototype.set;W.prototype.setOptions=W.prototype.Mb;W.prototype.setValues=W.prototype.Wa;
W.prototype.unbind=W.prototype.eb;W.prototype.unbindAll=W.prototype.Qc;z("ol.Projection",G);G.addProjection=cb;G.getFromCode=gb;G.getTransform=ib;G.getTransformFromCodes=kb;G.transform=function(a,b,c){return ib(b,c)(a)};G.transformWithCodes=function(a,b,c){return kb(b,c)(a)};G.prototype.getCode=G.prototype.d;G.prototype.getExtent=G.prototype.f;G.prototype.getUnits=G.prototype.e;z("ol.ProjectionUnits",Xa);Xa.DEGREES="degrees";Xa.METERS="m";z("ol.RendererHint",Jg);Jg.DOM="dom";Jg.WEBGL="webgl";
function dh(a){wf.call(this,{map:a.map,target:a.target})}A(dh,wf);z("ol.control.Attribution",dh);function eh(a){Mg.call(this,{coordinateFormat:a.coordinateFormat,map:a.map,projection:a.projection,target:a.target,undefinedHtml:a.undefinedHtml})}A(eh,Mg);z("ol.control.MousePosition",eh);function fh(a){Ff.call(this,{delta:a.delta,map:a.map,target:a.target})}A(fh,Ff);z("ol.control.Zoom",fh);z("ol.interaction.Keyboard",Og);Og.prototype.addCallback=Og.prototype.c;
function gh(a){Z.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}A(gh,ig);z("ol.layer.TileLayer",gh);function hh(a){Pg.call(this,{coordinate:a.coordinate,element:a.element,map:a.map,positioning:a.positioning})}A(hh,Pg);z("ol.overlay.Overlay",hh);Pg.prototype.getElement=Pg.prototype.m;Pg.prototype.setCoordinate=Pg.prototype.h;Pg.prototype.setMap=Pg.prototype.g;z("ol.source.BingMaps",he);
z("ol.source.MapQuestOSM",Vg);z("ol.source.MapQuestOpenAerial",Wg);z("ol.source.OpenStreetMap",Xg);z("ol.source.Stamen",Zg);z("ol.source.TileJSON",ah);z("ol.source.TiledWMS",bh);})();