// OpenLayers 3. see http://ol3js.org/ (function(){function ba(){return function(){}}function k(a){return function(){return this[a]}}function ca(a){return function(){return a}}var l,da=da||{},s=this;function fa(){}function ga(a){a.Ka=function(){return a.fe?a.fe:a.fe=new a}} function ha(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 t(a){return void 0!==a}function ia(a){return"array"==ha(a)}function ja(a){var b=ha(a);return"array"==b||"object"==b&&"number"==typeof a.length}function la(a){return"string"==typeof a}function na(a){return"number"==typeof a}function oa(a){return"function"==ha(a)}function pa(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function A(a){return a[qa]||(a[qa]=++ra)} var qa="closure_uid_"+(1E9*Math.random()>>>0),ra=0;function ta(a,b,c){return a.call.apply(a.bind,arguments)}function ua(a,b,c){if(!a)throw Error();if(2/g,Fa=/\"/g,Ba=/[&<>\"]/;function Ga(a){a=t(void 0)?a.toFixed(void 0):String(a);var b=a.indexOf(".");-1==b&&(b=a.length);b=Math.max(0,2-b);return Array(b+1).join("0")+a} function Ha(a,b){for(var c=0,d=za(String(a)).split("."),e=za(String(b)).split("."),f=Math.max(d.length,e.length),g=0;0==c&&g(0==q[1].length?0:parseInt(q[1],10))?1:0)||((0==r[2].length)<(0==q[2].length)? -1:(0==r[2].length)>(0==q[2].length)?1:0)||(r[2]q[2]?1:0)}while(0==c)}return c};var Ia=Array.prototype,Ja=Ia.indexOf?function(a,b,c){return Ia.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(la(a))return la(b)&&1==b.length?a.indexOf(b,c):-1;for(;cc?null:la(a)?a.charAt(c):a[c]}function Oa(a,b,c){for(var d=a.length,e=la(a)?a.split(""):a,f=0;f=arguments.length?Ia.slice.call(a,b):Ia.slice.call(a,b,c)}function Va(a,b){Ia.sort.call(a,b||Wa)}function Xa(a,b){if(!ja(a)||!ja(b)||a.length!=b.length)return!1;for(var c=a.length,d=Ya,e=0;eb?1:a>=1;return b.join("")}$a.prototype.toString=function(){return bb(this.a,this.x,this.y)};function db(a,b,c,d){this.a=a;this.d=b;this.b=c;this.c=d}function eb(a,b,c,d,e){return t(e)?(e.a=a,e.d=b,e.b=c,e.c=d,e):new db(a,b,c,d)}db.prototype.contains=function(a){return this.a<=a.x&&a.x<=this.d&&this.b<=a.y&&a.y<=this.c};function fb(a){this.c=a.html;this.a=t(a.tileRanges)?a.tileRanges:null};var gb,hb,ib,kb,lb,mb,nb;function ob(){return s.navigator?s.navigator.userAgent:null}function pb(){return s.navigator}kb=ib=hb=gb=!1;var qb;if(qb=ob()){var rb=pb();gb=0==qb.lastIndexOf("Opera",0);hb=!gb&&(-1!=qb.indexOf("MSIE")||-1!=qb.indexOf("Trident"));ib=!gb&&-1!=qb.indexOf("WebKit");kb=!gb&&!ib&&!hb&&"Gecko"==rb.product}var sb=gb,H=hb,ub=kb,vb=ib,wb,xb=pb();wb=xb&&xb.platform||"";lb=-1!=wb.indexOf("Mac");mb=-1!=wb.indexOf("Win");nb=-1!=wb.indexOf("Linux"); var yb=!!pb()&&-1!=(pb().appVersion||"").indexOf("X11");function zb(){var a=s.document;return a?a.documentMode:void 0}var Ab;a:{var Bb="",Cb;if(sb&&s.opera)var Db=s.opera.version,Bb="function"==typeof Db?Db():Db;else if(ub?Cb=/rv\:([^\);]+)(\)|;)/:H?Cb=/\b(?:MSIE|rv)\s+([^\);]+)(\)|;)/:vb&&(Cb=/WebKit\/(\S+)/),Cb)var Eb=Cb.exec(ob()),Bb=Eb?Eb[1]:"";if(H){var Fb=zb();if(Fb>parseFloat(Bb)){Ab=String(Fb);break a}}Ab=Bb}var Gb={};function Hb(a){return Gb[a]||(Gb[a]=0<=Ha(Ab,a))} var Ib=s.document,Jb=Ib&&H?zb()||("CSS1Compat"==Ib.compatMode?parseInt(Ab,10):5):void 0;var Kb,Lb=!H||H&&9<=Jb;!ub&&!H||H&&H&&9<=Jb||ub&&Hb("1.9.1");H&&Hb("9");function Nb(a){a=a.className;return la(a)&&a.match(/\S+/g)||[]}function Ob(a,b){for(var c=Nb(a),d=Ua(arguments,1),e=c.length+d.length,f=c,g=0;gc*b?c+b:c}function Sb(a){return a*Math.PI/180};function Tb(a,b){this.x=t(a)?a:0;this.y=t(b)?b:0}l=Tb.prototype;l.J=function(){return new Tb(this.x,this.y)};l.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};l.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};l.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};l.scale=function(a,b){var c=na(b)?b:a;this.x*=a;this.y*=c;return this};function Ub(a,b){this.width=a;this.height=b}l=Ub.prototype;l.J=function(){return new Ub(this.width,this.height)};l.aa=function(){return!(this.width*this.height)};l.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};l.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};l.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; l.scale=function(a,b){var c=na(b)?b:a;this.width*=a;this.height*=c;return this};function Vb(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Wb(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1}function Xb(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Yb(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function Zb(a){for(var b in a)return!1;return!0}function $b(a){for(var b in a)delete a[b]}function ac(a,b){b in a&&delete a[b]}function I(a,b,c){return b in a?a[b]:c}function bc(a){var b={},c;for(c in a)b[c]=a[c];return b}var cc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "); function dc(a,b){for(var c,d,e=1;e=a.keyCode)a.keyCode=-1}catch(b){}};l.df=k("Q");var Sc="closure_listenable_"+(1E6*Math.random()|0);function Tc(a){return!(!a||!a[Sc])}var Uc=0;function Vc(a,b,c,d,e,f){this.xa=a;this.a=b;this.src=c;this.type=d;this.capture=!!e;this.cb=f;this.key=++Uc;this.Ha=this.kb=!1}function Wc(a){a.Ha=!0;a.xa=null;a.a=null;a.src=null;a.cb=null};var Xc={},Yc={},Zc={},$c={};function J(a,b,c,d,e){if(ia(b)){for(var f=0;fe.keyCode||void 0!=e.returnValue)return!0;a:{var h=!1;if(0==e.keyCode)try{e.keyCode=-1;break a}catch(m){h=!0}if(h||void 0==e.returnValue)e.returnValue=!0}}h=new Oc;Pc(h,e,this);e=!0;try{if(c){for(var n=[],p=h.c;p;p=p.parentNode)n.push(p);f=d[!0];for(var r=n.length- 1;!h.Qa&&0<=r;r--)h.c=n[r],e&=kd(f,n[r],h);if(g)for(f=d[!1],r=0;!h.Qa&&r>>0);function ad(a){return oa(a)?a:a[md]||(a[md]=function(b){return a.handleEvent(b)})};function nd(a){return function(){return a}}var od=nd(!1),pd=nd(!0);function qd(a){return a}function rd(a){return function(){throw a;}}function sd(a){var b;b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}}function td(a){var b=arguments,c=b.length;return function(){for(var a=0;a=c||(1<=c?(g=h,e=f):(g+=c*m,e+=c*n));return[g,e]}function we(a,b){var c=Rb(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 xe(a,b,c){return t(a)?b.replace("{x}",a[0].toFixed(c)).replace("{y}",a[1].toFixed(c)):""}function ye(a,b){for(var c=!0,d=a.length-1;0<=d;--d)if(a[d]!=b[d]){c=!1;break}return c}function ze(a,b){var c=Math.cos(b),d=Math.sin(b),e=a[1]*c+a[0]*d;a[0]=a[0]*c-a[1]*d;a[1]=e;return a}function Ae(a,b){var c=a[0]-b[0],d=a[1]-b[1];return c*c+d*d}function Be(a,b){return xe(a,"{x}, {y}",b)};function Ce(a){for(var b=De(),c=0,d=a.length;ce[2]&&(e[2]=f[0]);f[1]e[3]&&(e[3]=f[1])}return b}function Ee(a,b,c){var d=Math.min.apply(null,a),e=Math.min.apply(null,b);a=Math.max.apply(null,a);b=Math.max.apply(null,b);return Fe(d,e,a,b,c)}function Ge(a,b,c){return t(c)?(c[0]=a[0]-b,c[1]=a[1]-b,c[2]=a[2]+b,c[3]=a[3]+b,c):[a[0]-b,a[1]-b,a[2]+b,a[3]+b]} function He(a,b){return t(b)?(b[0]=a[0],b[1]=a[1],b[2]=a[2],b[3]=a[3],b):a.slice()}function Ie(a,b,c){b=ba[2]&&(a[2]=b[2]);b[1]a[3]&&(a[3]=b[3]);return a}function Ne(a,b,c,d,e){for(;cf;++f)g=e[f],h=d[f],e[f]=a[0]+g*b-h*c,d[f]=a[1]+g*c+h*b;return Ee(e,d,void 0)}function Re(a){return a[3]-a[1]}function Se(a){return[a[0],a[3]]}function Te(a){return a[2]-a[0]}function Ue(a,b){return a[0]<=b[2]&&a[2]>=b[0]&&a[1]<=b[3]&&a[3]>=b[1]}function Ve(a){return a[2]>1;){var m=2*b+1,n=2*b+2,m=nb;){var g=c-1>>1;if(a[g]>f)d[c]=d[g],a[c]=a[g],c=g;else break}d[c]=e;a[c]=f}function If(a){var b=a.f,c=a.a,d=a.c,e=0,f=c.length,g,h,m;for(h=0;h>1)-1;0<=b;b--)Ff(a,b)};function Jf(a,b){Df.call(this,function(b){return a.apply(null,b)},function(a){return a[0].d()});this.h=b;this.d=0}G(Jf,Df);Jf.prototype.g=function(){--this.d;this.h()};function Kf(a){yd.call(this);this.l=xf(a.projection);this.O=t(a.extent)?a.extent:t(a.projection)?this.l.p():null;this.d=t(a.attributions)?a.attributions:null;this.q=a.logo;this.f=t(a.state)?a.state:1}G(Kf,yd);Kf.prototype.k=fa;Kf.prototype.p=k("O");Kf.prototype.V=k("f");function Lf(a,b){a.f=b;a.u()};function T(a){P.call(this);a=bc(a);a.brightness=t(a.brightness)?a.brightness:0;a.contrast=t(a.contrast)?a.contrast:1;a.hue=t(a.hue)?a.hue:0;a.opacity=t(a.opacity)?a.opacity:1;a.saturation=t(a.saturation)?a.saturation:1;a.visible=t(a.visible)?a.visible:!0;a.maxResolution=t(a.maxResolution)?a.maxResolution:Infinity;a.minResolution=t(a.minResolution)?a.minResolution:0;this.Y(a)}G(T,P);T.prototype.i=function(){return this.s("brightness")};T.prototype.getBrightness=T.prototype.i;T.prototype.k=function(){return this.s("contrast")}; T.prototype.getContrast=T.prototype.k;T.prototype.n=function(){return this.s("hue")};T.prototype.getHue=T.prototype.n;function Mf(a){var b=a.i(),c=a.k(),d=a.n(),e=a.G(),f=a.B(),g=a.Xc(),h=a.b(),m=a.o();a=a.q();return{brightness:t(b)?Qb(b,-1,1):0,contrast:t(c)?Math.max(c,0):1,hue:t(d)?d:0,opacity:t(e)?Qb(e,0,1):1,saturation:t(f)?Math.max(f,0):1,sd:g,visible:t(h)?!!h:!0,maxResolution:t(m)?m:Infinity,minResolution:t(a)?Math.max(a,0):0}}T.prototype.o=function(){return this.s("maxResolution")}; T.prototype.getMaxResolution=T.prototype.o;T.prototype.q=function(){return this.s("minResolution")};T.prototype.getMinResolution=T.prototype.q;T.prototype.G=function(){return this.s("opacity")};T.prototype.getOpacity=T.prototype.G;T.prototype.B=function(){return this.s("saturation")};T.prototype.getSaturation=T.prototype.B;T.prototype.b=function(){return this.s("visible")};T.prototype.getVisible=T.prototype.b;T.prototype.Ua=function(a){this.t("brightness",a)};T.prototype.setBrightness=T.prototype.Ua; T.prototype.jb=function(a){this.t("contrast",a)};T.prototype.setContrast=T.prototype.jb;T.prototype.Jc=function(a){this.t("hue",a)};T.prototype.setHue=T.prototype.Jc;T.prototype.Kc=function(a){this.t("maxResolution",a)};T.prototype.setMaxResolution=T.prototype.Kc;T.prototype.Lc=function(a){this.t("minResolution",a)};T.prototype.setMinResolution=T.prototype.Lc;T.prototype.Mc=function(a){this.t("opacity",a)};T.prototype.setOpacity=T.prototype.Mc;T.prototype.Oc=function(a){this.t("saturation",a)}; T.prototype.setSaturation=T.prototype.Oc;T.prototype.Pc=function(a){this.t("visible",a)};T.prototype.setVisible=T.prototype.Pc;function Nf(a){var b=bc(a);delete b.source;T.call(this,b);this.a=a.source;J(this.a,"change",this.Ng,!1,this)}G(Nf,T);l=Nf.prototype;l.Wc=function(a){a=t(a)?a:[];a.push(this);return a};l.Vc=function(a){a=t(a)?a:{layers:[],$:[]};a.layers.push(this);a.$.push(Mf(this));return a};l.Mg=k("a");l.Xc=function(){return this.a.f};l.Ng=function(){this.u()};function Of(){P.call(this);this.k=[0,0]}G(Of,P);Of.prototype.N=ca(null);Of.prototype.gd=ca(!1);function Pf(a,b){a.k[1]+=b};function Qf(a){return 1-Math.pow(1-a,3)};function Rf(a){return 3*a*a-2*a*a*a}function Sf(a){return a}function Tf(a){return 0.5>a?Rf(2*a):1-Rf(2*(a-0.5))};function Uf(a){var b=a.source,c=t(a.start)?a.start:wa(),d=b[0],e=b[1],f=t(a.duration)?a.duration:1E3,g=t(a.easing)?a.easing:Rf;return function(a,b){if(b.timeb;)d-=3;if(0<=d){var b=a.a[c+2]-a.a[d+2],e=a.a[c]-a.a[d],c=a.a[c+1]-a.a[d+1];a.b=Math.atan2(c,e);a.c=Math.sqrt(e*e+c*c)/b;return a.c>a.d}return!1} function Zf(a,b){var c=a.e,d=a.c,e=a.d,f=Math.log(a.d/a.c)/a.e;return Uf({source:b,duration:f,easing:function(a){return d*(Math.exp(c*a*f)-1)/(e-d)}})};function $f(a){if("function"==typeof a.Ba)return a.Ba();if(la(a))return a.split("");if(ja(a)){for(var b=[],c=a.length,d=0;d2*this.H&&dg(this),!0):!1};function dg(a){if(a.H!=a.a.length){for(var b=0,c=0;bc?a[1]="?":c==b.length-1&&(a[1]=void 0)}return a.join("")} function kg(a,b,c){if(ia(b))for(var d=0;db)throw Error("Bad port number "+b);a.xb=b}else a.xb=null}function qg(a,b,c){og(a);b instanceof rg?(a.a=b,xg(a.a,a.$a)):(c||(b=sg(b,yg)),a.a=new rg(b,0,a.$a))}function zg(a,b,c){og(a);ia(c)||(c=[String(c)]);Ag(a.a,b,c)}function og(a){if(a.qg)throw Error("Tried to modify a read-only Uri");} function Bg(a){return a instanceof mg?a.J():new mg(a,void 0)} function Cg(a,b){a instanceof mg||(a=Bg(a));b instanceof mg||(b=Bg(b));var c=a,d=b,e=c.J(),f=!!d.Ra;f?ng(e,d.Ra):f=!!d.hb;if(f){var g=d.hb;og(e);e.hb=g}else f=!!d.za;f?(g=d.za,og(e),e.za=g):f=null!=d.xb;g=d.ya;if(f)pg(e,d.xb);else if(f=!!d.ya)if("/"!=g.charAt(0)&&(c.za&&!c.ya?g="/"+g:(c=e.ya.lastIndexOf("/"),-1!=c&&(g=e.ya.substr(0,c+1)+g))),".."==g||"."==g)g="";else if(-1!=g.indexOf("./")||-1!=g.indexOf("/.")){for(var c=0==g.lastIndexOf("/",0),g=g.split("/"),h=[],m=0;m>4&15).toString(16)+(a&15).toString(16)}var tg=/[#\/\?@]/g,vg=/[\#\?:]/g,ug=/[\#\?]/g,yg=/[\#\?@]/g,wg=/#/g; function rg(a,b,c){this.a=a||null;this.c=!!c}function Eg(a){if(!a.R&&(a.R=new bg,a.H=0,a.a))for(var b=a.a.split("\x26"),c=0;c=a||96<=a&&106>=a||65<=a&&90>=a||vb&&0==a)return!0;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!0;default:return!1}}function Pg(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function Qg(a,b){wd.call(this);a&&Rg(this,a,b)}G(Qg,wd);l=Qg.prototype;l.Tb=null;l.vc=null;l.bd=null;l.wc=null;l.ba=-1;l.Ma=-1;l.Qc=!1; var Tg={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},Ug={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},Vg=H||vb&&Hb("525"),Wg=lb&&ub; Qg.prototype.a=function(a){vb&&(17==this.ba&&!a.Sb||18==this.ba&&!a.fa||lb&&91==this.ba&&!a.Zc)&&(this.Ma=this.ba=-1);-1==this.ba&&(a.Sb&&17!=a.Ca?this.ba=17:a.fa&&18!=a.Ca?this.ba=18:a.Zc&&91!=a.Ca&&(this.ba=91));Vg&&!Ng(a.Ca,this.ba,a.Da,a.Sb,a.fa)?this.handleEvent(a):(this.Ma=ub?Pg(a.Ca):a.Ca,Wg&&(this.Qc=a.fa))};Qg.prototype.c=function(a){this.Ma=this.ba=-1;this.Qc=a.fa}; Qg.prototype.handleEvent=function(a){var b=a.Q,c,d,e=b.altKey;H&&"keypress"==a.type?(c=this.Ma,d=13!=c&&27!=c?b.keyCode:0):vb&&"keypress"==a.type?(c=this.Ma,d=0<=b.charCode&&63232>b.charCode&&Og(c)?b.charCode:0):sb?(c=this.Ma,d=Og(c)?b.keyCode:0):(c=b.keyCode||this.Ma,d=b.charCode||0,Wg&&(e=this.Qc),lb&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in Tg?f=Tg[c]:25==c&&a.Da&&(f=9):g&&g in Ug&&(f=Ug[g]);a=f==this.ba;this.ba=f;b=new Xg(f,d,a,b);b.fa=e;N(this,b)}; function Rg(a,b,c){a.wc&&Yg(a);a.Tb=b;a.vc=J(a.Tb,"keypress",a,c);a.bd=J(a.Tb,"keydown",a.a,c,a);a.wc=J(a.Tb,"keyup",a.c,c,a)}function Yg(a){a.vc&&(K(a.vc),K(a.bd),K(a.wc),a.vc=null,a.bd=null,a.wc=null);a.Tb=null;a.ba=-1;a.Ma=-1}Qg.prototype.A=function(){Qg.F.A.call(this);Yg(this)};function Xg(a,b,c,d){d&&Pc(this,d,void 0);this.type="key";this.Ca=a;this.Yc=b;this.a=c}G(Xg,Oc);function Zg(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}l=Zg.prototype;l.J=function(){return new Zg(this.top,this.right,this.bottom,this.left)};l.contains=function(a){return this&&a?a instanceof Zg?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1}; l.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};l.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};l.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this}; l.scale=function(a,b){var c=na(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};function $g(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}l=$g.prototype;l.J=function(){return new $g(this.left,this.top,this.width,this.height)};l.contains=function(a){return a instanceof $g?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height}; l.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};l.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};l.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; l.scale=function(a,b){var c=na(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};function ah(a,b){var c=gc(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function bh(a,b){return ah(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}function ch(a,b,c){var d,e=ub&&(lb||yb)&&Hb("1.9");b instanceof Tb?(d=b.x,b=b.y):(d=b,b=c);a.style.left=dh(d,e);a.style.top=dh(b,e)} function eh(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}H&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b} function fh(a){if(H&&!(H&&8<=Jb))return a.offsetParent;var b=gc(a),c=bh(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=bh(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 null} function gh(a){var b,c=gc(a),d=bh(a,"position"),e=ub&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),f=new Tb(0,0),g;b=c?gc(c):document;(g=!H)||(g=H&&9<=Jb)||(ec(b),g=!0);g=g?b.documentElement:b.body;if(a==g)return f;if(a.getBoundingClientRect)b=eh(a),a=wc(ec(c)),f.x=b.left+a.x,f.y=b.top+a.y;else if(c.getBoxObjectFor&&!e)b=c.getBoxObjectFor(a),a=c.getBoxObjectFor(g),f.x=b.screenX-a.screenX,f.y=b.screenY-a.screenY;else{e=a;do{f.x+=e.offsetLeft; f.y+=e.offsetTop;e!=a&&(f.x+=e.clientLeft||0,f.y+=e.clientTop||0);if(vb&&"fixed"==bh(e,"position")){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}e=e.offsetParent}while(e&&e!=a);if(sb||vb&&"absolute"==d)f.y-=c.body.offsetTop;for(e=a;(e=fh(e))&&e!=c.body&&e!=g;)f.x-=e.scrollLeft,sb&&"TR"==e.tagName||(f.y-=e.scrollTop)}return f}function hh(a,b){var c=ih(a),d=ih(b);return new Tb(c.x-d.x,c.y-d.y)} function ih(a){if(1==a.nodeType){var b;if(a.getBoundingClientRect)b=eh(a),b=new Tb(b.left,b.top);else{b=wc(ec(a));var c=gh(a);b=new Tb(c.x-b.x,c.y-b.y)}if(ub&&!Hb(12)){var d;H?d="-ms-transform":vb?d="-webkit-transform":sb?d="-o-transform":ub&&(d="-moz-transform");var e;d&&(e=bh(a,d));e||(e=bh(a,"transform"));a=e?(a=e.match(jh))?new Tb(parseFloat(a[1]),parseFloat(a[2])):new Tb(0,0):new Tb(0,0);a=new Tb(b.x+a.x,b.y+a.y)}else a=b;return a}d=oa(a.df);e=a;a.targetTouches?e=a.targetTouches[0]:d&&a.Q.targetTouches&& (e=a.Q.targetTouches[0]);return new Tb(e.clientX,e.clientY)}function dh(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function kh(a){var b=lh;if("none"!=bh(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a} function lh(a){var b=a.offsetWidth,c=a.offsetHeight,d=vb&&!b&&!c;return t(b)&&!d||!a.getBoundingClientRect?new Ub(b,c):(a=eh(a),new Ub(a.right-a.left,a.bottom-a.top))}function mh(a,b){var c=a.style;"opacity"in c?c.opacity=b:"MozOpacity"in c?c.MozOpacity=b:"filter"in c&&(c.filter=""===b?"":"alpha(opacity\x3d"+100*b+")")}function nh(a,b){a.style.display=b?"":"none"}function oh(a){return"rtl"==bh(a,"direction")} function ph(a){var b=gc(a),c=H&&a.currentStyle,d;if(d=c)ec(b),d="auto"!=c.width&&"auto"!=c.height&&!c.boxSizing;if(d)return b=qh(a,c.width,"width","pixelWidth"),a=qh(a,c.height,"height","pixelHeight"),new Ub(b,a);c=new Ub(a.offsetWidth,a.offsetHeight);b=rh(a,"padding");a=sh(a);return new Ub(c.width-a.left-b.left-b.right-a.right,c.height-a.top-b.top-b.bottom-a.bottom)} function qh(a,b,c,d){if(/^\d+px?$/.test(b))return parseInt(b,10);var e=a.style[c],f=a.runtimeStyle[c];a.runtimeStyle[c]=a.currentStyle[c];a.style[c]=b;b=a.style[d];a.style[c]=e;a.runtimeStyle[c]=f;return b}function th(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?qh(a,c,"left","pixelLeft"):0} function rh(a,b){if(H){var c=th(a,b+"Left"),d=th(a,b+"Right"),e=th(a,b+"Top"),f=th(a,b+"Bottom");return new Zg(e,d,f,c)}c=ah(a,b+"Left");d=ah(a,b+"Right");e=ah(a,b+"Top");f=ah(a,b+"Bottom");return new Zg(parseFloat(e),parseFloat(d),parseFloat(f),parseFloat(c))}var uh={thin:2,medium:4,thick:6};function vh(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:null))return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:null;return c in uh?uh[c]:qh(a,c,"left","pixelLeft")} function sh(a){if(H){var b=vh(a,"borderLeft"),c=vh(a,"borderRight"),d=vh(a,"borderTop");a=vh(a,"borderBottom");return new Zg(d,c,a,b)}b=ah(a,"borderLeftWidth");c=ah(a,"borderRightWidth");d=ah(a,"borderTopWidth");a=ah(a,"borderBottomWidth");return new Zg(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}var jh=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function wh(a,b){wd.call(this);this.a=a;var c=pa(this.a)&&1==this.a.nodeType?this.a:this.a?this.a.body:null;this.e=!!c&&oh(c);this.c=J(this.a,ub?"DOMMouseScroll":"mousewheel",this,b)}G(wh,wd); wh.prototype.handleEvent=function(a){var b=0,c=0,d=0;a=a.Q;if("mousewheel"==a.type){c=1;if(H||vb&&(mb||Hb("532.0")))c=40;d=xh(-a.wheelDelta,c);t(a.wheelDeltaX)?(b=xh(-a.wheelDeltaX,c),c=xh(-a.wheelDeltaY,c)):c=d}else d=a.detail,100d&&(d=-3),t(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;na(this.b)&&(b=Qb(b,-this.b,this.b));na(this.d)&&(c=Qb(c,-this.d,this.d));this.e&&(b=-b);b=new yh(d,a,b,c);N(this,b)};function xh(a,b){return vb&&(lb||nb)&&0!=a%b?a:a/b} wh.prototype.A=function(){wh.F.A.call(this);K(this.c);this.c=null};function yh(a,b,c,d){b&&Pc(this,b,void 0);this.type="mousewheel";this.d=a;this.b=c;this.a=d}G(yh,Oc);function zh(a,b,c){Gc.call(this,a);this.map=b;this.b=t(c)?c:null}G(zh,Gc);function Ah(a,b,c,d){zh.call(this,a,b,d);this.a=c;this.originalEvent=c.Q;this.coordinate=b.Ud(this.originalEvent);this.pixel=b.pc(this.originalEvent)}G(Ah,zh);Ah.prototype.M=function(){Ah.F.M.call(this);this.a.M()};Ah.prototype.Ea=function(){Ah.F.Ea.call(this);this.a.Ea()}; function Bh(a){wd.call(this);this.a=a;this.g=0;this.b=!1;this.va=this.f=this.e=this.d=this.c=null;a=this.a.b;this.h=[J(a,"mousemove",this.xe,!1,this),J(a,"click",this.xe,!1,this)];this.d=J(a,"mousedown",this.Xf,!1,this);this.e=J(a,"MSPointerDown",this.Zf,!1,this);this.f=J(a,"touchstart",this.lg,!1,this)}G(Bh,wd);function Ch(a,b){if(0!==a.g){s.clearTimeout(a.g);a.g=0;var c=new Ah(Dh,a.a,b);N(a,c)}else a.g=s.setTimeout(B(function(){this.g=0;var a=new Ah(Eh,this.a,b);N(this,a)},a),250)}l=Bh.prototype; l.Yf=function(a){this.va&&(Ka(this.c,K),this.c=null,this.b?(a=new Ah(Fh,this.a,a),N(this,a)):Rc(a)&&Ch(this,a))};l.Xf=function(a){null!==this.e&&(K(this.e),this.e=null,K(this.f),this.f=null);var b=new Ah(Gh,this.a,a);N(this,b);this.va=a;this.b=!1;this.c=[J(s.document,"mousemove",this.Dg,!1,this),J(s.document,"mouseup",this.Yf,!1,this)];a.M()};l.Dg=function(a){var b;this.b||(this.b=!0,b=new Ah(Hh,this.a,this.va),N(this,b));b=new Ah(Ih,this.a,a);N(this,b)}; l.Zf=function(a){null!==this.d&&(K(this.d),this.d=null,K(this.f),this.f=null);var b=new Ah(Jh,this.a,a);N(this,b);this.va=a;this.b=!1;this.c=[J(s.document,"MSPointerMove",this.$f,!1,this),J(s.document,"MSPointerUp",this.ag,!1,this)];a.M()};l.$f=function(a){if(a.clientX!=this.va.clientX||a.clientY!=this.va.clientY)this.b=!0,a=new Ah(Kh,this.a,a),N(this,a)};l.ag=function(a){var b=new Ah(Lh,this.a,a);N(this,b);Ka(this.c,K);!this.b&&Rc(a)&&Ch(this,this.va)}; l.lg=function(a){null!==this.d&&(K(this.d),this.d=null,K(this.e),this.e=null);var b=new Ah(Jh,this.a,a);N(this,b);this.va=a;this.b=!1;null===this.c&&(this.c=[J(s.document,"touchmove",this.kg,!1,this),J(s.document,"touchend",this.jg,!1,this)]);a.M()};l.kg=function(a){this.b=!0;var b=new Ah(Kh,this.a,a);N(this,b);a.M()};l.jg=function(a){var b=new Ah(Lh,this.a,a);N(this,b);0===a.Q.targetTouches.length&&(Ka(this.c,K),this.c=null);this.b||Ch(this,this.va)}; l.A=function(){null!==this.h&&(Ka(this.h,K),this.h=null);null!==this.d&&(K(this.d),this.d=null);null!==this.e&&(K(this.e),this.e=null);null!==this.f&&(K(this.f),this.f=null);null!==this.c&&(Ka(this.c,K),this.c=null);Bh.F.A.call(this)};l.xe=function(a){N(this,new Ah(a.type,this.a,a))};var Dh="dblclick",Gh="down",Hh="dragstart",Ih="drag",Fh="dragend",Eh="singleclick",Jh="touchstart",Kh="touchmove",Lh="touchend",Mh={ii:"click",ji:Dh,qi:"mousemove",ki:Gh,ni:Hh,li:Ih,mi:Fh,ri:Eh,vi:Jh,ui:Kh,ti:Lh};function Nh(a){return function(b){if(t(b))return[Qb(b[0],a[0],a[2]),Qb(b[1],a[1],a[3])]}}function Oh(a){return a};function Ph(a,b,c){var d=a.length;if(a[0]<=b)return 0;if(!(b<=a[d-1]))if(0c)for(c=1;cf?1:0.5,d=Math.floor(Math.log(b/d)/Math.log(a)+f),e=Math.max(d+e,0),t(c)&&(e=Math.min(e,c)),b/Math.pow(a,e)}};function Sh(a){if(t(a))return 0}function Th(a,b){if(t(a))return a+b}function Uh(a){var b=2*Math.PI/a;return function(a,d){if(t(a))return a=Math.floor((a+d)/b+0.5)*b}}function Vh(){var a=Sb(5);return function(b,c){if(t(b))return Math.abs(b+c)<=a?0:b+c}};function Wh(a,b,c){this.center=a;this.resolution=b;this.rotation=c};function U(a){Of.call(this);a=a||{};var b={};b.center=t(a.center)?a.center:null;b.projection=wf(a.projection);var c,d,e;if(t(a.resolutions))c=a.resolutions,d=c[0],e=c[c.length-1],c=Qh(c);else{d=a.maxResolution;t(d)||(d=a.projection,e=wf(d).p(),d=(null===e?360*bf.degrees/bf[d.ta]:Math.max(e[2]-e[0],e[3]-e[1]))/256);c=a.maxZoom;t(c)||(c=28);var f=a.zoomFactor;t(f)||(f=2);e=d/Math.pow(f,c);c=Rh(f,d,c)}this.i=d;this.o=e;(t(a.enableRotation)?a.enableRotation:1)?(d=a.constrainRotation,d=t(d)&&!0!==d?!1=== d?Th:na(d)?Uh(d):Th:Vh()):d=Sh;this.g=new Wh(t(a.extent)?Nh(a.extent):Oh,c,d);t(a.resolution)?b.resolution=a.resolution:t(a.zoom)&&(b.resolution=this.a(this.i,a.zoom));b.rotation=t(a.rotation)?a.rotation:0;this.Y(b)}G(U,Of);U.prototype.a=function(a,b,c){return this.g.resolution(a,b||0,c||0)};U.prototype.constrainRotation=function(a,b){return this.g.rotation(a,b||0)};U.prototype.b=function(){return this.s("center")};U.prototype.getCenter=U.prototype.b; U.prototype.r=function(a){var b=this.b(),c=this.d();return[b[0]-c*a[0]/2,b[1]-c*a[1]/2,b[0]+c*a[0]/2,b[1]+c*a[1]/2]};U.prototype.l=function(){return this.s("projection")};U.prototype.getProjection=U.prototype.l;U.prototype.d=function(){return this.s("resolution")};U.prototype.getResolution=U.prototype.d;function Xh(a,b){return Math.max((a[2]-a[0])/b[0],(a[3]-a[1])/b[1])}function Yh(a){var b=a.i,c=Math.log(b/a.o)/Math.log(2);return function(a){return b/Math.pow(2,a*c)}}U.prototype.n=function(){return this.s("rotation")}; U.prototype.getRotation=U.prototype.n;function Zh(a){var b=a.i,c=Math.log(b/a.o)/Math.log(2);return function(a){return Math.log(b/a)/Math.log(2)/c}}l=U.prototype;l.N=function(){return this};function $h(a){var b=a.b(),c=a.l(),d=a.d();a=a.n();return{center:b.slice(),projection:t(c)?c:null,resolution:d,rotation:t(a)?a:0}}l.Gf=function(){var a,b=this.d();if(t(b)){var c,d=0;do{c=this.a(this.i,d);if(c==b){a=d;break}++d}while(c>this.o)}return a}; l.Sd=function(a,b){if(!Ve(a)){this.pa(Pe(a));var c=Xh(a,b),d=this.a(c,0,0);d=w.a&&g.a[v][u].b<=w.c&&g.a[v][u].c>=w.b){u= !0;break a}u=!1}u?(h in q&&delete q[h],r[h]=g):q[h]=g}b=[r,q];a=b[0];b=b[1];for(var y in this.d)y in a?(this.b[y]||(nh(this.d[y],!0),this.b[y]=!0),delete a[y]):y in b?(this.b[y]&&(nh(this.d[y],!1),delete this.b[y]),delete b[y]):(tc(this.d[y]),delete this.d[y],delete this.b[y]);for(y in a)c=oc("LI"),c.innerHTML=a[y].c,this.k.appendChild(c),this.d[y]=c,this.b[y]=!0;for(y in b)c=oc("LI"),c.innerHTML=b[y].c,nh(c,!1),this.k.appendChild(c),this.d[y]=c;y=!Zb(this.b);this.i!=y&&(nh(this.element,y),this.i= y)}};function ci(a){a=t(a)?a:{};this.d=oc("UL");var b=lc("DIV",{"class":(t(a.className)?a.className:"ol-logo")+" ol-unselectable"},this.d);ai.call(this,{element:b,target:a.target});this.b=!0;this.i={}}G(ci,ai); ci.prototype.f=function(a){a=a.b;if(null===a)this.b&&(nh(this.element,!1),this.b=!1);else{var b;a=a.dd;var c=this.i;for(b in c)b in a||(tc(c[b]),delete c[b]);for(var d in a)if(!(d in c)){b=new Image;b.src=d;var e=a[d];""===e?e=b:(e=lc("A",{href:e,target:"_blank"}),e.appendChild(b));b=lc("LI",void 0,e);this.d.appendChild(b);c[d]=b}d=!Zb(a);this.b!=d&&(nh(this.element,d),this.b=d)}};function di(a){a=t(a)?a:{};var b=t(a.className)?a.className:"ol-zoom",c=t(a.delta)?a.delta:1,d=t(a.zoomInLabel)?a.zoomInLabel:"+",e=t(a.zoomOutLabel)?a.zoomOutLabel:"\u2212",f=t(a.zoomOutTipLabel)?a.zoomOutTipLabel:"Zoom out",g=lc("SPAN",{role:"tooltip"},t(a.zoomInTipLabel)?a.zoomInTipLabel:"Zoom in"),d=lc("BUTTON",{"class":b+"-in ol-has-tooltip",name:"ZoomIn",type:"button"},g,d);J(d,["touchend","click"],va(di.prototype.d,c),!1,this);J(d,["mouseout",Mc],function(){this.blur()},!1);f=lc("SPAN",{role:"tooltip", type:"button"},f);e=lc("BUTTON",{"class":b+"-out ol-has-tooltip",name:"ZoomOut"},f,e);J(e,["touchend","click"],va(di.prototype.d,-c),!1,this);J(e,["mouseout",Mc],function(){this.blur()},!1);b=lc("DIV",b+" ol-unselectable",d,e);ai.call(this,{element:b,target:a.target});this.b=t(a.duration)?a.duration:250}G(di,ai);di.prototype.d=function(a,b){b.M();var c=this.a,d=c.a().N(),e=d.d();t(e)&&(0>1,p=g(c,f[n]),0q?(c=(c-f[-q-2])/(f[-q-1]-f[-q-2]),b+=(-q-2)*d,f=(1-c)*a[b]+c*a[b+d],g=(1-c)*a[b+1]+c*a[b+d+1]):(f=a[b+q*d],g=a[b+q*d+1])}return null!= e?(e.push(f,g),e):[f,g]}function Ai(a,b,c,d,e,f){if(c==b)return null;if(e>1,ef!=p>f&&e<(n-h)*(f-m)/(p-m)+h&&(g=!g);h=n;m=p}return g}function Ei(a,b,c,d){for(var e=0,f=a[c-d],g=a[c-d+1];br&&(n=(n+p)/2,Gi(a,b,c,d,n,q)&&(x=n,r=w));n=p}isNaN(x)&&(x=e[f]);return t(g)?(g.push(x,q),g):[x,q]}function Ii(a,b,c){var d=0,e,f;e=0;for(f=b.length;ea||0!==this.g&&a<=this.g)return this;var b=a.toString();if(this.f.hasOwnProperty(b))return this.f[b];var c=this.mb(a);if(c.j.lengthe&&(e=f);f=h;g=m}return e}function Si(a,b,c,d,e){var f,g;f=0;for(g=c.length;fh){for(;bu&&(n=p,u=z)}u>e&&(m[(n-b)/d]=1,q+dF&&aaF)&&(0>O&&saO)||(w[g++]=z,w[g++]=D,v=z,y=D);z=E;D=L}}w[g++]=z;w[g++]=D}}h.push(g);b=p}return g};function Xi(a,b){Mi.call(this);this.d=this.h=-1;this.K(a,b)}G(Xi,Mi);l=Xi.prototype;l.J=function(){var a=new Xi(null),b=this.j.slice();Oi(a,this.b,b);a.u();return a};l.la=function(a,b,c,d){if(dthis.n&&(this.a=!0));this.e=c;a=a.map;c=ih(a.b);d=nj(this.targetTouches);d[0]-=c.x;d[1]-=c.y;this.b=a.ea(d);this.a&&(c=a.a().N(),d=$h(c),a.I(),gi(a,c,d.rotation+b,this.b))}; pj.prototype.f=function(a){if(2>this.targetTouches.length){a=a.map;var b=a.a().N(),c=$h(b);if(this.a){var c=c.rotation,d=this.b,c=b.constrainRotation(c,0);gi(a,b,c,d,250)}return!1}return!0};pj.prototype.h=function(a){return 2<=this.targetTouches.length?(a=a.map,this.b=null,this.e=void 0,this.a=!1,this.i=0,a.I(),!0):!1};function qj(a){a=t(a)?a:{};mj.call(this);this.b=null;this.i=t(a.duration)?a.duration:400;this.a=void 0;this.e=1}G(qj,mj);qj.prototype.g=function(a){var b=1,c=this.targetTouches[0],d=this.targetTouches[1],e=c.clientX-d.clientX,c=c.clientY-d.clientY,e=Math.sqrt(e*e+c*c);t(this.a)&&(b=this.a/e);this.a=e;1!=b&&(this.e=b);a=a.map;var e=a.a().N(),c=$h(e),d=ih(a.b),f=nj(this.targetTouches);f[0]-=d.x;f[1]-=d.y;this.b=a.ea(f);a.I();ii(a,e,c.resolution*b,this.b)}; qj.prototype.f=function(a){if(2>this.targetTouches.length){a=a.map;var b=a.a().N(),c=$h(b).resolution,d=this.b,e=this.i,c=b.a(c,0,this.e-1);ii(a,b,c,d,e);return!1}return!0};qj.prototype.h=function(a){return 2<=this.targetTouches.length?(a=a.map,this.b=null,this.a=void 0,this.e=1,a.I(),!0):!1};function rj(a){a=t(a)?a:{};var b=new Q,c=new Xf(-0.005,0.05,100);(t(a.altShiftDragRotate)?a.altShiftDragRotate:1)&&b.push(new si);(t(a.doubleClickZoom)?a.doubleClickZoom:1)&&b.push(new ji({delta:a.zoomDelta,duration:a.zoomDuration}));(t(a.touchPan)?a.touchPan:1)&&b.push(new oj({kinetic:c}));(t(a.touchRotate)?a.touchRotate:1)&&b.push(new pj);(t(a.touchZoom)?a.touchZoom:1)&&b.push(new qj({duration:a.zoomDuration}));(t(a.dragPan)?a.dragPan:1)&&b.push(new ri({kinetic:c}));if(t(a.keyboard)?a.keyboard: 1)b.push(new jj),b.push(new kj({delta:a.zoomDelta,duration:a.zoomDuration}));(t(a.mouseWheelZoom)?a.mouseWheelZoom:1)&&b.push(new lj({duration:a.zoomDuration}));(t(a.shiftDragZoom)?a.shiftDragZoom:1)&&b.push(new ij);return b};function sj(a){var b=t(a)?a:{};a=bc(b);delete a.layers;b=b.layers;T.call(this,a);this.a=null;J(this,Fd("layers"),this.Uf,!1,this);t(b)?ia(b)&&(b=new Q(Ra(b))):b=new Q;this.d(b)}G(sj,T);l=sj.prototype;l.de=function(){this.b()&&this.u()}; l.Uf=function(){null!==this.a&&(Ka(Xb(this.a),K),this.a=null);var a=this.eb();if(null!=a){this.a={add:J(a,"add",this.Tf,!1,this),remove:J(a,"remove",this.Vf,!1,this)};var a=a.a,b,c,d;b=0;for(c=a.length;b=this.minZoom;){if(b.call(c,a,Fj(this,e,a,d)))return!0;--a}return!1};l.vf=k("minZoom"); l.Wb=function(a){return null===this.d?this.f[a]:this.d};l.Ya=k("a");l.rc=function(a,b,c){return a.aa.d&&(a.d=d.d),d.ba.c&&(a.c=d.c)):a[b][c]=d:(a[b]={},a[b][c]=d)}function Rj(a,b,c,d){return function(e,f,g){e=b.nb(e,f,g,c,d);return a(e)?e:null}}function Sj(a,b,c){return[b*(Math.round(a[0]/b)+c[0]%2/2),b*(Math.round(a[1]/b)+c[1]%2/2)]} function Tj(a,b,c,d,e,f,g,h,m,n){var p=A(b).toString();p in a.Ab||(a.Ab[p]={});var r=a.Ab[p];a=a.Uh;var q=c.minZoom,u,x,w,v,y,z;t(h)||(h=0);for(z=g;z>=q;--z)for(x=Fj(c,f,z),w=c.a[z],v=x.a;v<=x.d;++v)for(y=x.b;y<=x.c;++y)g-z<=h?(u=b.nb(z,v,y,d,e),0==u.state&&(r[u.a.toString()]=!0,u.d()in a.b||Gf(a,[u,p,Ij(c,u.a),w])),t(m)&&m.call(n,u)):b.Ie(z,v,y)};function Uj(a){a=t(a)?a:{};this.b=t(a.anchor)?a.anchor:[0.5,0.5];this.c=t(a.anchorOrigin)?a.anchorOrigin:"top-left";this.d=t(a.anchorXUnits)?a.anchorXUnits:"fraction";this.g=t(a.anchorYUnits)?a.anchorYUnits:"fraction";var b=a.src,c=t(a.crossOrigin)?a.crossOrigin:null,d=Vj.Ka(),e;e=c+":"+b;e=e in d.a?d.a[e]:null;null===e&&(e=new Wj(b,c),d.a[c+":"+b]=e,++d.c);this.a=e;this.h=t(a.size)?a.size:null;ke.call(this,{opacity:t(a.opacity)?a.opacity:1,rotation:t(a.rotation)?a.rotation:0,scale:t(a.scale)?a.scale: 1,Fe:void 0,rotateWithView:t(a.rotateWithView)?a.rotateWithView:!1})}G(Uj,ke);l=Uj.prototype;l.Pb=function(){var a=this.b,b=this.vb();if("fraction"==this.d||"fraction"==this.g){if(null===b)return null;a=this.b.slice();"fraction"==this.d&&(a[0]*=b[0]);"fraction"==this.g&&(a[1]*=b[1])}if("top-left"!=this.c){if(null===b)return null;a===this.b&&(a=this.b.slice());if("top-right"==this.c||"bottom-right"==this.c)a[0]=-a[0]+b[0];if("bottom-left"==this.c||"bottom-right"==this.c)a[1]+=b[1]}return a};l.Vb=function(){return this.a.a}; l.re=function(){return this.a.c};l.qe=function(){var a=this.a;if(null===a.d)if(a.h){var b=oc("CANVAS"),c=a.e[0],d=a.e[1];b.width=c;b.height=d;b.getContext("2d").fillRect(0,0,c,d);a.d=b}else a.d=a.a;return a.d};l.gh=function(){return this.a.f};l.vb=function(){return null===this.h?this.a.e:this.h};l.ge=function(a,b){return J(this.a,"change",a,!1,b)};l.se=function(){var a=this.a;if(0==a.c){a.c=1;a.b=[ed(a.a,"error",a.g,!1,a),ed(a.a,"load",a.i,!1,a)];try{a.a.src=a.f}catch(b){a.g()}}}; l.He=function(a,b){fd(this.a,"change",a,!1,b)};function Wj(a,b){wd.call(this);this.d=null;this.a=new Image;null!==b&&(this.a.crossOrigin=b);this.b=null;this.c=0;this.e=null;this.f=a;this.h=!1}G(Wj,wd);Wj.prototype.g=function(){this.c=3;Ka(this.b,K);this.b=null;N(this,"change")}; Wj.prototype.i=function(){this.c=2;this.e=[this.a.width,this.a.height];Ka(this.b,K);this.b=null;var a=oc("CANVAS");a.width=1;a.height=1;a=a.getContext("2d");a.drawImage(this.a,0,0);try{a.getImageData(0,0,1,1)}catch(b){this.h=!0}N(this,"change")};function Vj(){this.a={};this.c=0;this.b=32}ga(Vj);Vj.prototype.clear=function(){this.a={};this.c=0};function Xj(a,b,c,d,e,f,g,h){Vd(a);0===b&&0===c||Xd(a,b,c);1==d&&1==e||Yd(a,d,e);0!==f&&Zd(a,f);0===g&&0===h||Xd(a,g,h);return a}function Yj(a,b){return a[0]==b[0]&&a[1]==b[1]&&a[4]==b[4]&&a[5]==b[5]&&a[12]==b[12]&&a[13]==b[13]}function Zj(a,b,c){var d=a[1],e=a[5],f=a[13],g=b[0];b=b[1];c[0]=a[0]*g+a[4]*b+a[12];c[1]=d*g+e*b+f;return c};function ak(a,b){Bc.call(this);this.f=b;this.b={}}G(ak,Bc); function bk(a){var b=a.w,c=a.Md;Xj(c,a.size[0]/2,a.size[1]/2,1/b.resolution,-1/b.resolution,-b.rotation,-b.center[0],-b.center[1]);a=a.ue;var b=c[0],d=c[1],e=c[2],f=c[3],g=c[4],h=c[5],m=c[6],n=c[7],p=c[8],r=c[9],q=c[10],u=c[11],x=c[12],w=c[13],v=c[14],c=c[15],y=b*h-d*g,z=b*m-e*g,D=b*n-f*g,E=d*m-e*h,L=d*n-f*h,F=e*n-f*m,O=p*w-r*x,aa=p*v-q*x,sa=p*c-u*x,ma=r*v-q*w,M=r*c-u*w,ka=q*c-u*v,ea=y*ka-z*M+D*ma+E*sa-L*aa+F*O;0!=ea&&(ea=1/ea,a[0]=(h*ka-m*M+n*ma)*ea,a[1]=(-d*ka+e*M-f*ma)*ea,a[2]=(w*F-v*L+c*E)*ea, a[3]=(-r*F+q*L-u*E)*ea,a[4]=(-g*ka+m*sa-n*aa)*ea,a[5]=(b*ka-e*sa+f*aa)*ea,a[6]=(-x*F+v*D-c*z)*ea,a[7]=(p*F-q*D+u*z)*ea,a[8]=(g*M-h*sa+n*O)*ea,a[9]=(-b*M+d*sa-f*O)*ea,a[10]=(x*L-w*D+c*y)*ea,a[11]=(-p*L+r*D-u*y)*ea,a[12]=(-g*ma+h*aa-m*O)*ea,a[13]=(b*ma-d*aa+e*O)*ea,a[14]=(-x*E+w*z-v*y)*ea,a[15]=(p*E-r*z+q*y)*ea)}ak.prototype.gc=function(a){return new Lj(this,a)};ak.prototype.A=function(){Vb(this.b,function(a){Fc(a)});ak.F.A.call(this)}; function ck(a,b){var c=A(b).toString();if(c in a.b)return a.b[c];var d=a.gc(b);return a.b[c]=d}ak.prototype.Ec=fa;ak.prototype.r=function(a,b){for(var c in this.b)if(!(null!==b&&c in b.$)){var d=this.b[c];delete this.b[c];Fc(d)}};function dk(a){a.Pa.push(function(){var a=Vj.Ka();if(a.c>a.b){var c=0,d,e;for(d in a.a)e=a.a[d],0!==(c++&3)||id(e)||(delete a.a[d],--a.c)}})}function ek(a,b){for(var c in a.b)if(!(c in b.$)){b.Pa.push(B(a.r,a));break}};function fk(a){Nf.call(this,a)}G(fk,Nf);function gk(a){Nf.call(this,a)}G(gk,Nf);gk.prototype.d=function(){return this.s("preload")};gk.prototype.getPreload=gk.prototype.d;gk.prototype.g=function(a){this.t("preload",a)};gk.prototype.setPreload=gk.prototype.g;gk.prototype.f=function(){return this.s("useInterimTilesOnError")};gk.prototype.getUseInterimTilesOnError=gk.prototype.f;gk.prototype.l=function(a){this.t("useInterimTilesOnError",a)};gk.prototype.setUseInterimTilesOnError=gk.prototype.l;function hk(a){a=t(a)?a:{};var b=bc(a);delete b.style;Nf.call(this,b);this.O=null;this.f=void 0;t(a.style)&&this.g(a.style)}G(hk,Nf);hk.prototype.r=function(){return this.s("renderGeometryFunctions")};hk.prototype.getRenderGeometryFunctions=hk.prototype.r;hk.prototype.Sa=k("O");hk.prototype.Ta=k("f");hk.prototype.Nc=function(a){this.t("renderGeometryFunctions",a)};hk.prototype.setRenderGeometryFunctions=hk.prototype.Nc;hk.prototype.g=function(a){this.O=a;this.f=qe(a);this.u()};function ik(a,b,c,d,e){this.S={};this.b=a;this.B=b;this.g=c;this.f=d;this.jb=e;this.h=this.a=this.c=this.ja=this.U=this.O=null;this.o=this.V=this.r=this.ca=0;this.ua=!1;this.i=this.Ia=0;this.Sa=!1;this.Ta=0;this.d="";this.l=this.q=0;this.G=this.n=this.k=null;this.e=[];this.Ua=Rd()} function jk(a,b){if(null!==a.h){var c=Li(b,2,a.f,a.e),d=a.b,e=a.Ua,f=d.globalAlpha;1!=a.o&&(d.globalAlpha=f*a.o);var g=a.Ia;a.ua&&(g+=a.jb);var h,m;h=0;for(m=c.length;hx&&(z=z|4);yw&&(z|=2);0===z&&(z=1);u=z;u!==q?(p&&(a.coordinates[g++]=m[0],a.coordinates[g++]=m[1]),a.coordinates[g++]=n[0],a.coordinates[g++]=n[1],p=!1):1===u?(a.coordinates[g++]=n[0],a.coordinates[g++]=n[1],p=!1):p=!0;m[0]=n[0];m[1]=n[1];q=u}f&&(a.coordinates[g++]=b[c],a.coordinates[g++]=b[c+ 1]);return g}function Ek(a,b){a.o=[0,b,0];a.c.push(a.o);a.q=[0,b,0];a.a.push(a.q)} function Fk(a,b,c,d,e,f,g,h){var m;Yj(d,a.B)?m=a.r:(m=Li(a.coordinates,2,d,a.r),Ud(a.B,d));d=0;var n=g.length,p=0,r;for(a=a.O;da||0!==this.g&&a=a;--b)Me(f,d[b].extent),g+=Te(f)+Re(f);return g}l=ul.prototype; l.clear=function(){var a=this.a;a.extent=Ke(this.a.extent);a.height=1;a.a.length=0;a.value=null;$b(this.c)};l.forEach=function(a,b){return wl(this.a,a,b)};function wl(a,b,c){for(var d=[a],e,f,g;0a.b){g=a;h=e;f=c;d=h[f];p=g;m=d;n=vl(p,m,ql); p=vl(p,m,rl);n=h.maxResolution||ec;++c)d[c]=b[c].toFixed(6);c=d.join(",")}else c=b.join(",");Pl(a,"matrix3d("+c+")")}else if(Nl()){d=[b[0],b[1],b[4],b[5],b[12],b[13]];if(t(6)){var e=Array(6);for(c=0;6>c;++c)e[c]=d[c].toFixed(6);c=e.join(",")}else c=d.join(",");Pl(a,"matrix("+c+")")}else a.style.left=Math.round(b[12])+"px",a.style.top=Math.round(b[13])+"px"};function Rl(a,b,c){Lj.call(this,a,b);this.target=c}G(Rl,Lj);function Sl(a,b){var c=oc("DIV");c.style.position="absolute";Rl.call(this,a,b,c);this.c=null;this.e=Td()}G(Sl,Rl);Sl.prototype.f=function(a,b,c,d){var e=this.a;return e.a.k(b.extent,b.w.resolution,b.w.rotation,a,function(a){return c.call(d,a,e)})}; Sl.prototype.b=function(a){var b=a.w,c=b.center,d=b.resolution,e=b.rotation,f=this.c,g=this.a.a,h=a.P;h[0]||h[1]||(b=g.ub(a.extent,d,a.pixelRatio,b.projection),null!==b&&(h=b.state,0==h?(ed(b,"change",this.l,!1,this),Bj(b)):2==h&&(f=b)));if(null!==f){var h=f.p(),m=f.d,b=Rd();Xj(b,a.size[0]/2,a.size[1]/2,m/d,m/d,e,(h[0]-c[0])/m,(c[1]-h[3])/m);f!=this.c&&(c=f.e(this),c.style.maxWidth="none",c.style.position="absolute",qc(this.target),this.target.appendChild(c),this.c=f);Yj(b,this.e)||(Ql(this.target, b),Ud(this.e,b));Oj(a.attributions,f.g);Pj(a,g)}};function Tl(a,b){var c=oc("DIV");c.style.position="absolute";Rl.call(this,a,b,c);this.e=!0;this.h=1;this.g=0;this.c={}}G(Tl,Rl); Tl.prototype.b=function(a,b){if(b.visible){var c=a.pixelRatio,d=a.w,e=d.projection,f=this.a,g=f.a,h=Kj(g,e),m=g.qc(),n=Ph(h.a,d.resolution,0),p=h.a[n],r=d.center,q;p==d.resolution?(r=Sj(r,p,a.size),q=Qe(r,p,d.rotation,a.size)):q=a.extent;var p=Gj(h,q,p),u={};u[n]={};var x=B(g.Uc,g,u,Rj(function(a){return null!==a&&2==a.state},g,c,e)),w=f.f();t(w)||(w=!0);var v=De(),y=new db(0,0,0,0),z,D,E,L;for(E=p.a;E<=p.d;++E)for(L=p.b;L<=p.c;++L)z=g.nb(n,E,L,c,e),D=z.state,2==D?u[n][z.a.toString()]=z:4==D||3== D&&!w||(D=h.oc(z.a,x,null,y,v),D||(z=h.rc(z.a,y,v),null===z||x(n+1,z)));var F;if(this.g!=g.c){for(F in this.c)w=this.c[+F],tc(w.target);this.c={};this.g=g.c}v=La(Yb(u),Number);Va(v);var x={},O;E=0;for(L=v.length;EF&&sc(this.target,w.target,0)}else a.P[0]||a.P[1]||Yl(w,q,y);else tc(w.target),delete this.c[F];b.opacity!=this.h&&(mh(this.target,b.opacity),this.h=b.opacity);b.visible&&!this.e&&(nh(this.target,!0),this.e=!0);Qj(a.bc,g,n,p);Tj(a,g,h,c,e,q,n,f.d());Nj(a,g);Pj(a,g)}else this.e&&(nh(this.target,!1),this.e=!1)}; function Ul(a,b){this.target=oc("DIV");this.target.style.position="absolute";this.target.style.width="100%";this.target.style.height="100%";this.e=a;this.b=b;this.f=Se(Ej(a,b));this.g=a.a[b.a];this.c={};this.a=null;this.d=Td()} function Vl(a,b,c){var d=b.a,e=d.toString();if(!(e in a.c)){var f=a.e.na(d.a),g=b.b(a),h=g.style;h.maxWidth="none";var m,n;0c)break;if(bb&&(-1==e||h=n.minResolution)&&d.push(m);g=0;for(h=d.length;g=b[0]||0>=b[1])return!1;a=a.a();return t(a)&&a.gd()?!0:!1}l.Oh=function(){var a=this.q;Hg(a);a.Od()};l.I=function(){null!=this.q.X||this.q.start()};l.Ih=function(a){if(t(this.k.remove(a)))return a}; l.Kh=function(a){var b;t(this.i.remove(a))&&(b=a);return b};l.Lh=function(a){return this.Xa().eb().remove(a)};l.Mh=function(a){if(t(this.l.remove(a)))return a}; l.Nh=function(a){var b,c,d,e=this.g();b=this.a();var f=t(b)?this.a().N():void 0,g=null;if(t(e)&&0c?(e="\u2032",b*=60):e="\u00b0":"imperial"==f?0.9144> c?(e="in",b/=0.0254):1609.344>c?(e="ft",b/=0.3048):(e="mi",b/=1609.344):"nautical"==f?(b/=1852,e="nm"):"metric"==f?1>c?(e="mm",b*=1E3):1E3>c?e="m":(e="km",b/=1E3):"us"==f&&(0.9144>c?(e="in",b*=39.37):1609.344>c?(e="ft",b/=0.30480061):(e="mi",b/=1609.3472));for(var f=3*Math.floor(Math.log(a.k*b)/Math.log(10)),g,h;;){g=Zm[f%3]*Math.pow(10,Math.floor(f/3));h=Math.round(g/b);if(h>=a.k)break;++f}g=g+e;a.q!=g&&(a.i.innerHTML=g,a.q=g);a.B!=h&&(a.i.style.width=h+"px",a.B=h);a.d||(nh(a.l,!0),a.d=!0)}};function an(a){Bc.call(this);this.c=a;this.a={}}G(an,Bc);var bn=[];an.prototype.ga=function(a,b,c,d,e){ia(b)||(bn[0]=b,b=bn);for(var f=0;fthis.ee)if(N(this,new hn("start",this,a.clientX,a.clientY,a)))this.bb=!0;else{this.ca||this.lc(a);return}}c=ln(this,b,c);b=c.x;c=c.y;this.bb&&N(this,new hn("beforedrag",this,a.clientX,a.clientY,a,b,c))&&(mn(this,a,b,c),a.M())}}; function ln(a,b,c){var d=wc(ec(a.b));b+=d.x-a.e.x;c+=d.y-a.e.y;a.e=d;a.ob+=b;a.pb+=c;b=jn(a,a.ob);a=kn(a,a.pb);return new Tb(b,a)}l.Bh=function(a){var b=ln(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;mn(this,a,b.x,b.y)};function mn(a,b,c,d){a.vd&&fn(a)?a.target.style.right=c+"px":a.target.style.left=c+"px";a.target.style.top=d+"px";N(a,new hn("drag",a,b.clientX,b.clientY,b,c,d))} function jn(a,b){var c=a.c,d=isNaN(c.left)?null:c.left,c=isNaN(c.width)?0:c.width;return Math.min(null!=d?d+c:Infinity,Math.max(null!=d?d:-Infinity,b))}function kn(a,b){var c=a.c,d=isNaN(c.top)?null:c.top,c=isNaN(c.height)?0:c.height;return Math.min(null!=d?d+c:Infinity,Math.max(null!=d?d:-Infinity,b))}function hn(a,b,c,d,e,f,g,h){Gc.call(this,a);this.clientX=c;this.clientY=d;this.d=e;this.left=t(f)?f:b.ob;this.top=t(g)?g:b.pb;this.b=b;this.a=!!h}G(hn,Gc);function nn(a){a=t(a)?a:{};this.b=void 0;this.i=on;this.k=!1;var b=t(a.className)?a.className:"ol-zoomslider";a=lc("DIV",[b+"-thumb","ol-unselectable"]);b=lc("DIV",[b,"ol-unselectable"],a);this.d=new dn(a);Ec(this,this.d);J(this.d,["drag","end"],this.n,void 0,this);J(b,"click",this.l,!1,this);J(a,"click",Hc);ai.call(this,{element:b})}G(nn,ai);var on=0;nn.prototype.setMap=function(a){nn.F.setMap.call(this,a);null===a||a.I()}; nn.prototype.f=function(a){if(null!==a.b){if(!this.k){var b=this.element,c=uc(b),b=ph(b),d;d=gh(c);var e=kh(c);d=new $g(d.x,d.y,e.width,e.height);var e=rh(c,"margin"),f=sh(c),c=b.width-e.left-e.right-f.left-f.right-d.width;d=b.height-e.top-e.bottom-f.top-f.bottom-d.height;b.width>b.height?(this.i=1,b=new $g(0,0,c,0)):(this.i=on,b=new $g(0,0,0,d));this.d.c=b||new $g(NaN,NaN,NaN,NaN);this.k=!0}a=a.b.w.resolution;a!==this.b&&(this.b=a,a=-1*(Zh(this.a.a().N())(a)-1),b=this.d,c=uc(this.element),1==this.i? ch(c,b.c.left+b.c.width*a):ch(c,b.c.left,b.c.top+b.c.height*a))}};nn.prototype.l=function(a){var b=this.a,c=b.a().N();a=pn(this,qn(this,a.Wd,a.Xd));b.ka(Wf({resolution:a,duration:200,easing:Qf}));a=c.a(a);c.f(a)};function qn(a,b,c){var d=a.d.c,e=0;return e=1===a.i?(b-d.left)/d.width:(c-d.top)/d.height}function pn(a,b){b=-1*(Qb(b,0,1)-1);return Yh(a.a.a().N())(b)} nn.prototype.n=function(a){var b=this.a,c=b.a().N();"drag"===a.type?(a=pn(this,qn(this,a.left,a.top)),a!==this.b&&(this.b=a,c.f(a))):(b.ka(Wf({resolution:this.b,duration:200,easing:Qf})),a=c.a(this.b),c.f(a))};function rn(a){a=t(a)?a:{};this.b=t(a.extent)?a.extent:null;var b=t(a.className)?a.className:"ol-zoom-extent",c=lc("SPAN",{role:"tooltip"},t(a.tipLabel)?a.tipLabel:"Fit to extent"),b=lc("DIV",{"class":b+" ol-unselectable"}),d=lc("BUTTON",{"class":"ol-has-tooltip"});d.appendChild(c);b.appendChild(d);J(d,["touchend","click"],this.d,!1,this);J(d,["mouseout",Mc],function(){this.blur()},!1);ai.call(this,{element:b,target:a.target})}G(rn,ai); rn.prototype.d=function(a){a.M();a=this.a;var b=a.a().N(),c=null===this.b?b.l().p():this.b;b.Sd(c,a.g())};function sn(a){P.call(this);this.a=a;J(this.a,["change","input"],this.k,!1,this);J(this,Fd("value"),this.l,!1,this);J(this,Fd("checked"),this.i,!1,this)}G(sn,P);sn.prototype.b=function(){return this.s("checked")};sn.prototype.getChecked=sn.prototype.b;sn.prototype.d=function(){return this.s("value")};sn.prototype.getValue=sn.prototype.d;sn.prototype.g=function(a){this.t("value",a)};sn.prototype.setValue=sn.prototype.g;sn.prototype.f=function(a){this.t("checked",a)};sn.prototype.setChecked=sn.prototype.f; sn.prototype.k=function(){var a=this.a;"checkbox"===a.type||"radio"===a.type?this.f(a.checked):this.g(a.value)};sn.prototype.i=function(){this.a.checked=this.b()};sn.prototype.l=function(){this.a.value=this.d()};function tn(){};function un(a){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(a,"application/xml");if("undefined"!=typeof ActiveXObject){var b=vn();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");}function vn(){var a=new ActiveXObject("MSXML2.DOMDocument");if(a){a.resolveExternals=!1;a.validateOnParse=!1;try{a.setProperty("ProhibitDTD",!0),a.setProperty("MaxXMLSize",2048),a.setProperty("MaxElementDepth",256)}catch(b){}}return a};var wn;a:if(document.implementation&&document.implementation.createDocument)wn=document.implementation.createDocument("","",null);else{if("undefined"!=typeof ActiveXObject){var xn=vn();if(xn){wn=xn;break a}}throw Error("Your browser does not support creating new documents");}var yn=wn;function zn(a,b){return yn.createElementNS(a,b)}function An(a,b){null===a&&(a="");return yn.createNode(1,b,a)}var Bn=document.implementation&&document.implementation.createDocument?zn:An; function Cn(a){return Dn(a,!1,[]).join("")}function Dn(a,b,c){if(4==a.nodeType||3==a.nodeType)b?c.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):c.push(a.nodeValue);else for(a=a.firstChild;null!==a;a=a.nextSibling)Dn(a,b,c);return c}function En(a){return a.localName}function Fn(a){var b=a.localName;return t(b)?b:a.baseName}var Gn=H?Fn:En;function Hn(a){return a instanceof Document}function In(a){return pa(a)&&9==a.nodeType}var Jn=H?In:Hn;function Kn(a){return a instanceof Node} function Ln(a){return pa(a)&&t(a.nodeType)}var Mn=H?Ln:Kn;function Nn(a,b,c,d){a.setAttributeNS(b,c,d)}function On(a,b,c,d){null===b?a.setAttribute(c,d):(b=a.ownerDocument.createNode(2,c,b),b.nodeValue=d,a.setAttributeNode(b))}var Pn=document.implementation&&document.implementation.createDocument?Nn:On;function Qn(a){return(new DOMParser).parseFromString(a,"application/xml")}function Rn(a,b){return function(c,d){var e=a.call(b,c,d);t(e)&&Sa(d[d.length-1],e)}} function Sn(a,b){return function(c,d){var e=a.call(b,c,d);t(e)&&d[d.length-1].push(e)}}function Tn(a){return function(b,c){var d=a.call(void 0,b,c);t(d)&&(c[c.length-1]=d)}}function W(a,b){return function(c,d){var e=a.call(void 0,c,d);t(e)&&(d[d.length-1][t(b)?b:c.localName]=e)}}function X(a){return function(b,c,d){a.call(void 0,b,c,d);d[d.length-1].node.appendChild(b)}} function Un(a){var b,c;return function(d,e,f){if(!t(b)){b={};var g={};g[d.localName]=a;b[d.namespaceURI]=g;c=Vn(d.localName)}Wn(b,c,e,f)}}function Vn(a){return function(b,c,d){b=c[c.length-1].node;c=a;t(c)||(c=d);d=void 0;t(void 0)||(d=b.namespaceURI);return Bn(d,c)}}var Xn=Vn();function Yn(a,b){for(var c=b.length,d=Array(c),e=0;ea.o,f=[a.b[0][0],a.b[0][a.b[0].length-2]]);if(e)for(var d=b.map,e=0,g=f.length;e=Math.sqrt(Math.min(b,c))&&(h=b>c?g[1]:g[0]);Kq(a,h);c={};c[A(g)]=!0;b=1;for(m=f.length;bg&&++q.index}p= {T:[c[0],b],feature:d,geometry:e,depth:f,index:g};Bl(h,Ce(p.T),p);this.b.push([p,1]);c={T:[b,c[1]],feature:d,geometry:e,depth:f,index:g+1};Bl(h,Ce(c.T),c);this.b.push([c,0])};function Lq(a){fi.call(this);this.e=t(a.condition)?a.condition:li;this.d=t(a.addCondition)?a.addCondition:ni;var b;if(t(a.layerFilter))b=a.layerFilter;else if(t(a.layer)){var c=a.layer;b=function(a){return a===c}}else if(t(a.layers)){var d=a.layers;b=function(a){return-1!=Ja(d,a)}}else b=pd;this.b=b;this.a=new se({style:a.style})}G(Lq,fi);Lq.prototype.f=function(){return this.a.a}; Lq.prototype.qa=function(a){if(!this.e(a))return!0;var b=this.d(a),c=a.map,d=this.a.a;b?c.hd(a.pixel,function(a){-1==Ja(d.a,a)&&d.push(a)},void 0,this.b):(a=c.hd(a.pixel,function(a){return a},void 0,this.b),t(a)?1==d.Na()?d.Td(0)!==a&&d.Ae(0,a):(1!=d.Na()&&d.clear(),d.push(a)):0!==d.Na()&&d.clear());return!1};Lq.prototype.setMap=function(a){Lq.F.setMap.call(this,a);this.a.setMap(a)};function Mq(a){var b=t(a)?a:{};hk.call(this,b);this.d=null;J(this,Fd("gradient"),this.ua,!1,this);this.V(t(b.gradient)?b.gradient:Nq);a=t(b.radius)?b.radius:8;var c=t(b.blur)?b.blur:15,d=t(b.Sh)?b.Sh:250,b=oc("CANVAS"),e=b.getContext("2d"),f=a+c+1;b.width=b.height=2*f;e.shadowOffsetX=e.shadowOffsetY=d;e.shadowBlur=c;e.shadowColor="#000";e.beginPath();c=f-d;e.arc(c,c,a,0,2*Math.PI,!0);e.fill();a=new Uj({src:b.toDataURL()});this.g(new ne({image:a}));J(this,"render",this.Ia,!1,this)}G(Mq,hk); var Nq=["#00f","#0ff","#0f0","#ff0","#f00"];Mq.prototype.l=function(){return this.s("gradient")};Mq.prototype.getGradient=Mq.prototype.l;Mq.prototype.ua=function(){var a=this.l(),b=oc("CANVAS"),c=b.getContext("2d");b.width=1;b.height=256;for(var b=c.createLinearGradient(0,0,1,256),d=1/a.length,e=0,f=a.length;ea.d&&!(c=a.a.ib,d=c.a.a.toString(),d in b&&b[d].contains(c.a));)a.pop()};function vr(a){Jj.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,opaque:a.opaque,projection:a.projection,tileGrid:a.tileGrid});this.tileUrlFunction=t(a.tileUrlFunction)?a.tileUrlFunction:qr;this.crossOrigin=t(a.crossOrigin)?a.crossOrigin:null;this.b=new tr;this.tileLoadFunction=t(a.tileLoadFunction)?a.tileLoadFunction:wr;this.Hc=t(a.Hc)?a.Hc:Cf}G(vr,Jj);function wr(a,b){a.b().src=b}l=vr.prototype;l.kd=function(){return this.b.wa()>this.b.d};l.oe=function(a){ur(this.b,a)}; l.nb=function(a,b,c,d,e){var f=this.La(a,b,c);if(Dm(this.b,f))return Gm(this.b,f);a=new $a(a,b,c);d=this.tileUrlFunction(a,d,e);d=new this.Hc(a,t(d)?0:4,t(d)?d:"",this.crossOrigin,this.tileLoadFunction);Hm(this.b,f,d);return d};l.$b=function(a){this.b.clear();this.tileUrlFunction=a;this.u()};l.Ie=function(a,b,c){a=this.La(a,b,c);Dm(this.b,a)&&Gm(this.b,a)};function xr(a){var b=Array(a.maxZoom+1),c,d=2*vj/256;for(c=0;c<=a.maxZoom;++c)b[c]=d/Math.pow(2,c);Cj.call(this,{minZoom:a.minZoom,origin:[-vj,vj],resolutions:b,tileSize:256})}G(xr,Cj); xr.prototype.c=function(a){a=t(a)?a:{};var b=this.minZoom,c=this.maxZoom,d=t(a.$h)?a.$h:!0,e=new $a(0,0,0),f=null;if(t(a.extent)){var f=Array(c+1),g;for(g=0;g<=c;++g)f[g]=gr||p<=r)return null;a=a.y;return a<-p||-1=this.minZoom;--a)if(d.a=d.d>>=1,d.b=d.c>>=1,b.call(c,a,d))return!0;return!1};function yr(a){vr.call(this,{crossOrigin:"anonymous",opaque:!0,projection:xf("EPSG:3857"),state:0,tileLoadFunction:a.tileLoadFunction});this.a=t(a.culture)?a.culture:"en-us";var b=new mg("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.imagerySet),b=new ir(b),c={include:"ImageryProviders",key:a.key};a=B(this.e,this);var d=c||null,c="_"+(jr++).toString(36)+wa().toString(36);s._callbacks_||(s._callbacks_={});var e=b.c.J();if(d)for(var f in d)d.hasOwnProperty&&!d.hasOwnProperty(f)||zg(e,f,d[f]); a&&(s._callbacks_[c]=mr(c,a),zg(e,b.a,"_callbacks_."+c));f=br(e.toString(),{timeout:b.gb,Kd:!0});mq(f,null,kr(c),void 0)}G(yr,vr);var zr=new fb({html:'\x3ca class\x3d"ol-attribution-bing-tos" target\x3d"_blank" href\x3d"http://www.microsoft.com/maps/product/terms.html"\x3eTerms of Use\x3c/a\x3e'}); yr.prototype.e=function(a){if(200!=a.statusCode||"OK"!=a.statusDescription||"ValidCredentials"!=a.authenticationResultCode||1!=a.resourceSets.length||1!=a.resourceSets[0].resources.length)Lf(this,2);else{var b=a.brandLogoUri,c=a.resourceSets[0].resources[0],d=new xr({minZoom:c.zoomMin,maxZoom:c.zoomMax,tileSize:c.imageWidth});this.tileGrid=d;var e=this.a;this.tileUrlFunction=rr(d.c(),pr(La(c.imageUrlSubdomains,function(a){var b=c.imageUrl.replace("{subdomain}",a).replace("{culture}",e);return function(a){return null=== a?void 0:b.replace("{quadkey}",cb(a))}})));if(c.imageryProviders){var f=ff(xf("EPSG:4326"),this.l);a=La(c.imageryProviders,function(a){var b=a.attribution,c={};Ka(a.coverageAreas,function(a){var b=a.zoomMin,e=a.zoomMax;a=a.bbox;a=Ze([a[1],a[0],a[3],a[2]],f);var g,h;for(g=b;g<=e;++g)h=g.toString(),b=Fj(d,a,g),h in c?c[h].push(b):c[h]=[b]});return new fb({html:b,tileRanges:c})});a.push(zr);this.d=a}this.q=b;Lf(this,1)}};function Ar(a,b,c){if(oa(a))c&&(a=B(a,c));else if(a&&"function"==typeof a.handleEvent)a=B(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647h*g?f*e/(h*n):g*e/(m*n);c=Pe(c);d={OPERATION:this.B?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol.source.MapGuide source",CLIP:"1",SETDISPLAYDPI:this.a,SETDISPLAYWIDTH:Math.round(d[0]),SETDISPLAYHEIGHT:Math.round(d[1]),SETVIEWSCALE:e,SETVIEWCENTERX:c[0],SETVIEWCENTERY:c[1]};dc(d,b);return jg(lg([a],d))};function ls(a){var b=a.projection||xf("EPSG:3857"),c=new xr({maxZoom:t(a.maxZoom)?a.maxZoom:18});vr.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,logo:a.logo,projection:b,tileGrid:c,tileLoadFunction:a.tileLoadFunction,tileUrlFunction:qr});this.e=c.c({extent:a.extent});t(a.tileUrlFunction)?this.$b(a.tileUrlFunction):t(a.urls)?this.$b(or(a.urls)):t(a.url)&&this.a(a.url)}G(ls,vr);ls.prototype.$b=function(a){ls.F.$b.call(this,rr(this.e,a))};ls.prototype.a=function(a){this.$b(or(sr(a)))};function ms(a){a=t(a)?a:{};ls.call(this,{attributions:t(a.attributions)?a.attributions:ns,crossOrigin:t(a.crossOrigin)?a.crossOrigin:"anonymous",opaque:!0,maxZoom:a.maxZoom,tileLoadFunction:a.tileLoadFunction,url:t(a.url)?a.url:"//{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}G(ms,ls); var os=new fb({html:'Data \x26copy; \x3ca href\x3d"http://www.openstreetmap.org/"\x3eOpenStreetMap\x3c/a\x3e contributors, \x3ca href\x3d"http://www.openstreetmap.org/copyright"\x3eODbL\x3c/a\x3e'}),ps=new fb({html:'Tiles \x26copy; \x3ca href\x3d"http://www.openstreetmap.org/"\x3eOpenStreetMap\x3c/a\x3e contributors, \x3ca href\x3d"http://creativecommons.org/licenses/by-sa/2.0/"\x3eCC BY-SA\x3c/a\x3e'}),ns=[ps,os];function qs(a){a=t(a)?a:{};var b=rs[a.layer];ls.call(this,{attributions:b.attributions,crossOrigin:"anonymous",logo:"//developer.mapquest.com/content/osm/mq_logo.png",maxZoom:b.maxZoom,opaque:!0,tileLoadFunction:a.tileLoadFunction,url:"//otile{1-4}.mqcdn.com/tiles/1.0.0/"+a.layer+"/{z}/{x}/{y}.jpg"})}G(qs,ls); var ss=new fb({html:'Tiles Courtesy of \x3ca href\x3d"http://www.mapquest.com/" target\x3d"_blank"\x3eMapQuest\x3c/a\x3e'}),rs={osm:{maxZoom:28,attributions:[ss,os]},sat:{maxZoom:18,attributions:[ss,new fb({html:"Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency"})]},hyb:{maxZoom:18,attributions:[ss,os]}};function ts(){}G(ts,bo);function us(a,b){var c=a.getAttribute("k"),d=a.getAttribute("v");b[b.length-1].ac[c]=d} var vs=[null],ws=Y(vs,{nd:function(a,b){b[b.length-1].tb.push(a.getAttribute("ref"))},tag:us},void 0),ys=Y(vs,{node:function(a,b){var c=b[b.length-1],d=a.getAttribute("id"),e=[parseFloat(a.getAttribute("lon")),parseFloat(a.getAttribute("lat"))];c.je[d]=e;var f=$n({ac:{}},xs,a,b);Zb(f.ac)||(e=new Yi(e),e=new R(e),e.b(d),e.Y(f.ac),c.features.push(e))},way:function(a,b){for(var c=a.getAttribute("id"),d=$n({tb:[],ac:{}},ws,a,b),e=b[b.length-1],f=[],g=0,h=d.tb.length;gthis.a.d};Fs.prototype.oe=function(a){ur(this.a,a)};Fs.prototype.nb=function(a,b,c){var d=this.La(a,b,c);if(Dm(this.a,d))return Gm(this.a,d);a=new Es(new $a(a,b,c),this.tileGrid);Hm(this.a,d,a);return a};var Gs=[];C("grid",function(a){Gs.push(a)});function Hs(a){vr.call(this,{crossOrigin:a.crossOrigin,projection:xf("EPSG:3857"),state:0,tileLoadFunction:a.tileLoadFunction});this.a=br(a.url,{Kd:!0});mq(this.a,this.e,null,this)}G(Hs,vr); Hs.prototype.e=function(){var a=Gs.pop(),b=xf("EPSG:4326"),c;if(t(a.bounds)){var d=ff(b,this.l);this.O=c=Ze(a.bounds,d)}var e=a.minzoom||0,d=a.maxzoom||22,f=new xr({maxZoom:d,minZoom:e});this.tileGrid=f;this.tileUrlFunction=rr(f.c({extent:c}),or(a.tiles));if(t(a.attribution)){b=t(c)?c:b.p();c={};for(var g;e<=d;++e)g=e.toString(),c[g]=[Fj(f,b,e)];this.d=[new fb({html:a.attribution,tileRanges:c})]}Lf(this,1)};function Is(a){a=t(a)?a:{};var b=t(a.params)?a.params:{};vr.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,logo:a.logo,opaque:!I(b,"TRANSPARENT",!0),projection:a.projection,tileGrid:a.tileGrid,tileLoadFunction:a.tileLoadFunction,tileUrlFunction:B(this.Vh,this)});var c=a.urls;!t(c)&&t(a.url)&&(c=sr(a.url));this.B=c;this.g=t(a.gutter)?a.gutter:0;this.a=b;this.h=NaN;this.e=!0;this.i=a.serverType;this.o=t(a.hidpi)?a.hidpi:!0;this.n="";Js(this);this.r=De();Ks(this)} G(Is,vr);l=Is.prototype; l.Xg=function(a,b,c,d){var e=this.h;if(!isNaN(this.h)){var f=this.tileGrid;null===f&&(f=Kj(this,c));b=Hj(f,a[0],a[1],b,!1,void 0);if(!(f.Ya().length<=b.a)){var g=f.a[b.a],h=Ej(f,b,this.r),f=f.na(b.a),m=this.g;0!==m&&(f+=2*m,h=Ge(h,g*m,h));1!=e&&(f=f*e+0.5|0);m={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:I(this.a,"LAYERS")};dc(m,this.a,d);d=Math.floor((h[3]-a[1])/(g/e));m[this.e?"I":"X"]=Math.floor((a[0]-h[0])/(g/e));m[this.e?"J":"Y"]=d;return Ls(this, b,f,h,e,c,m)}}};l.qc=k("g");l.La=function(a,b,c){return this.n+Is.F.La.call(this,a,b,c)};l.Yg=k("a"); function Ls(a,b,c,d,e,f,g){var h=a.B;if(t(h)&&0!=h.length){g.WIDTH=c;g.HEIGHT=c;g[a.e?"CRS":"SRS"]=f.a;"STYLES"in a.a||(g.STYLES=new String(""));if(1!=e)switch(a.i){case "geoserver":g.FORMAT_OPTIONS="dpi:"+(90*e+0.5|0);break;case "mapserver":g.MAP_RESOLUTION=90*e;break;case "carmentaserver":case "qgis":g.DPI=90*e}c=f.e;a.e&&"ne"==c.substr(0,2)&&(c=d[0],d[0]=d[1],d[1]=c,c=d[2],d[2]=d[3],d[3]=c);g.BBOX=d.join(",");return jg(lg([1==h.length?h[0]:h[Rb((b.x<p||n<=p)return null;a=a.y;return a<-n||-1f||d>f;)e.push([Math.ceil(c/f),Math.ceil(d/f)]),f+=f;break;case "truncated":for(;c>f||d>f;)e.push([Math.ceil(c/f),Math.ceil(d/f)]),c>>=1,d>>=1}e.push([1,1]);e.reverse();for(var f=[1],g=[0],d=1,c=e.length;df&&(f=0);var f=c.styles[f].identifier,g={};Ka(c.dimensions,function(a){var b=a.identifier,c=a["default"];t(c)||(c=a.values[0]);g[b]=c});var h=a.contents.tileMatrixSets[d],m=Os(h),h=xf(h.supportedCRS),n=a.operationsMetadata.GetTile.dcp.http.get,p,r;switch(Yb(n[0].constraints.GetEncoding.allowedValues)[0]){case "REST":case "RESTful":r= "REST";p=c.resourceUrls.tile[e];break;case "KVP":r=Ps,p=[],Ka(n,function(a){a.constraints.GetEncoding.allowedValues.hasOwnProperty(Ps)&&p.push(a.url)})}return{urls:p,layer:b,matrixSet:d,format:e,projection:h,requestEncoding:r,tileGrid:m,style:f,dimensions:g}});Qs.prototype.getDimensions=Qs.prototype.g;Qs.prototype.updateDimensions=Qs.prototype.h;C("ol.source.XYZ",ls);ls.prototype.setUrl=ls.prototype.a;C("ol.source.Zoomify",Ts);C("ol.style.Circle",me);me.prototype.getAnchor=me.prototype.Pb; me.prototype.getFill=me.prototype.dh;me.prototype.getImage=me.prototype.Vb;me.prototype.getRadius=me.prototype.eh;me.prototype.getSize=me.prototype.vb;me.prototype.getStroke=me.prototype.fh;C("ol.style.Fill",je);je.prototype.getColor=je.prototype.c;C("ol.style.Icon",Uj);Uj.prototype.getAnchor=Uj.prototype.Pb;Uj.prototype.getImage=Uj.prototype.Vb;Uj.prototype.getSize=Uj.prototype.vb;Uj.prototype.getSrc=Uj.prototype.gh;C("ol.style.Image",ke);ke.prototype.getRotation=ke.prototype.S; ke.prototype.getScale=ke.prototype.o;C("ol.style.Stroke",le);le.prototype.getColor=le.prototype.hh;le.prototype.getLineCap=le.prototype.sf;le.prototype.getLineDash=le.prototype.ih;le.prototype.getLineJoin=le.prototype.tf;le.prototype.getMiterLimit=le.prototype.wf;le.prototype.getWidth=le.prototype.jh;C("ol.style.Style",ne);ne.prototype.getFill=ne.prototype.kh;ne.prototype.getImage=ne.prototype.lh;ne.prototype.getStroke=ne.prototype.mh;ne.prototype.getText=ne.prototype.nh;ne.prototype.getZIndex=ne.prototype.Ff; C("ol.style.Text",Vs);Vs.prototype.getFill=Vs.prototype.oh;Vs.prototype.getFont=Vs.prototype.jf;Vs.prototype.getRotation=Vs.prototype.ph;Vs.prototype.getScale=Vs.prototype.qh;Vs.prototype.getStroke=Vs.prototype.rh;Vs.prototype.getText=Vs.prototype.sh;Vs.prototype.getTextAlign=Vs.prototype.Af;Vs.prototype.getTextBaseline=Vs.prototype.Bf;C("ol.tilegrid.TileGrid",Cj);Cj.prototype.getMinZoom=Cj.prototype.vf;Cj.prototype.getOrigin=Cj.prototype.Wb;Cj.prototype.getResolutions=Cj.prototype.Ya; Cj.prototype.getTileSize=Cj.prototype.na;C("ol.tilegrid.WMTS",Ns);Ns.prototype.getMatrixIds=Ns.prototype.g;C("ol.tilegrid.XYZ",xr);C("ol.tilegrid.Zoomify",Ss);C("ol.webgl.Context",Im);Im.prototype.getGL=Im.prototype.th;Im.prototype.useProgram=Im.prototype.ld;})();