// OpenLayers 3. see http://ol3js.org/ (function(){function aa(){return function(a){return a}}function ba(){return function(){}}function k(a){return function(){return this[a]}}function ca(a){return function(){return a}}var l,da=da||{},ea=this;function fa(){}function ga(a){a.kb=function(){return a.te?a.te:a.te=new a}} function ja(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 s(a){return void 0!==a}function ka(a){return null===a}function la(a){return"array"==ja(a)}function ma(a){var b=ja(a);return"array"==b||"object"==b&&"number"==typeof a.length}function na(a){return"string"==typeof a}function oa(a){return"number"==typeof a}function qa(a){return"function"==ja(a)}function ra(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function sa(a){return a[ta]||(a[ta]=++ua)} var ta="closure_uid_"+(1E9*Math.random()>>>0),ua=0;function va(a,b,c){return a.call.apply(a.bind,arguments)}function wa(a,b,c){if(!a)throw Error();if(2/g,Ia=/\"/g,Ea=/[&<>\"]/;function Ja(a){a=s(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 Ka(a,b){for(var c=0,d=Ca(String(a)).split("."),e=Ca(String(b)).split("."),f=Math.max(d.length,e.length),g=0;0==c&&g(0==r[1].length?0:parseInt(r[1],10))?1:0)||((0==q[2].length)<(0==r[2].length)? -1:(0==q[2].length)>(0==r[2].length)?1:0)||(q[2]r[2]?1:0)}while(0==c)}return c};var La,Ma,Na,Pa,Qa,Ta,Ua;function Va(){return ea.navigator?ea.navigator.userAgent:null}function Xa(){return ea.navigator}Pa=Na=Ma=La=!1;var Ya;if(Ya=Va()){var Za=Xa();La=0==Ya.lastIndexOf("Opera",0);Ma=!La&&(-1!=Ya.indexOf("MSIE")||-1!=Ya.indexOf("Trident"));Na=!La&&-1!=Ya.indexOf("WebKit");Pa=!La&&!Na&&!Ma&&"Gecko"==Za.product}var $a=La,ab=Ma,bb=Pa,cb=Na,db,eb=Xa();db=eb&&eb.platform||"";Qa=-1!=db.indexOf("Mac");Ta=-1!=db.indexOf("Win");Ua=-1!=db.indexOf("Linux"); var fb=!!Xa()&&-1!=(Xa().appVersion||"").indexOf("X11");function gb(){var a=ea.document;return a?a.documentMode:void 0}var hb;a:{var ib="",jb;if($a&&ea.opera)var kb=ea.opera.version,ib="function"==typeof kb?kb():kb;else if(bb?jb=/rv\:([^\);]+)(\)|;)/:ab?jb=/\b(?:MSIE|rv)\s+([^\);]+)(\)|;)/:cb&&(jb=/WebKit\/(\S+)/),jb)var lb=jb.exec(Va()),ib=lb?lb[1]:"";if(ab){var mb=gb();if(mb>parseFloat(ib)){hb=String(mb);break a}}hb=ib}var nb={};function ob(a){return nb[a]||(nb[a]=0<=Ka(hb,a))} var pb=ea.document,qb=pb&&ab?gb()||("CSS1Compat"==pb.compatMode?parseInt(hb,10):5):void 0;var rb="https:"===ea.location.protocol,sb=ab&&!ob("9.0")&&""!==hb;function tb(a){Error.captureStackTrace?Error.captureStackTrace(this,tb):this.stack=Error().stack||"";a&&(this.message=String(a))}v(tb,Error);tb.prototype.name="CustomError";var ub=Array.prototype,vb=ub.indexOf?function(a,b,c){return ub.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(na(a))return na(b)&&1==b.length?a.indexOf(b,c):-1;for(;cc?null:na(a)?a.charAt(c):a[c]}function Ab(a,b,c){for(var d=a.length,e=na(a)?a.split(""):a,f=0;f=arguments.length?ub.slice.call(a,b):ub.slice.call(a,b,c)}function Hb(a,b){ub.sort.call(a,b||Ib)}function Jb(a,b){if(!ma(a)||!ma(b)||a.length!=b.length)return!1;for(var c=a.length,d=Kb,e=0;eb?1:a>=1;return b.join("")}Lb.prototype.toString=function(){return Nb(this.a,this.x,this.y)};function Pb(a,b,c,d){this.a=a;this.d=b;this.b=c;this.c=d}function Qb(a,b,c,d,e){return s(e)?(e.a=a,e.d=b,e.b=c,e.c=d,e):new Pb(a,b,c,d)}Pb.prototype.contains=function(a){return this.a<=a.x&&a.x<=this.d&&this.b<=a.y&&a.y<=this.c};function Rb(a){this.c=a.html;this.a=s(a.tileRanges)?a.tileRanges:null};var Sb,Tb=!ab||ab&&9<=qb;!bb&&!ab||ab&&ab&&9<=qb||bb&&ob("1.9.1");ab&&ob("9");function Ub(a){a=a.className;return na(a)&&a.match(/\S+/g)||[]}function Vb(a,b){for(var c=Ub(a),d=Gb(arguments,1),e=c.length+d.length,f=c,g=0;gc*b?c+b:c}function Zb(a){return a*Math.PI/180};function $b(a,b){this.x=s(a)?a:0;this.y=s(b)?b:0}l=$b.prototype;l.S=function(){return new $b(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=oa(b)?b:a;this.x*=a;this.y*=c;return this};function bc(a,b){this.width=a;this.height=b}l=bc.prototype;l.S=function(){return new bc(this.width,this.height)};l.ma=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=oa(b)?b:a;this.width*=a;this.height*=c;return this};function cc(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function dc(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1}function ec(a){var b=0,c;for(c in a)b++;return b}function fc(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function gc(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function hc(a){for(var b in a)return!1;return!0}function ic(a){for(var b in a)delete a[b]}function jc(a,b){b in a&&delete a[b]}function w(a,b,c){return b in a?a[b]:c} function kc(a,b){var c=[];return b in a?a[b]:a[b]=c}function lc(a){var b={},c;for(c in a)b[c]=a[c];return b}var mc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function nc(a,b){for(var c,d,e=1;e=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=oa(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};function Jc(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}l=Jc.prototype;l.S=function(){return new Jc(this.left,this.top,this.width,this.height)};l.contains=function(a){return a instanceof Jc?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=oa(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};function Kc(a,b){var c=qc(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function Lc(a,b){return Kc(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}function Mc(a,b,c){var d,e=bb&&(Qa||fb)&&ob("1.9");b instanceof $b?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Nc(d,e);a.style.top=Nc(b,e)} function Oc(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}ab&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b} function Pc(a){if(ab&&!(ab&&8<=qb))return a.offsetParent;var b=qc(a),c=Lc(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Lc(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 Qc(a){var b,c=qc(a),d=Lc(a,"position"),e=bb&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),f=new $b(0,0),g;b=c?qc(c):document;(g=!ab)||(g=ab&&9<=qb)||(oc(b),g=!0);g=g?b.documentElement:b.body;if(a==g)return f;if(a.getBoundingClientRect)b=Oc(a),a=Hc(oc(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(cb&&"fixed"==Lc(e,"position")){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}e=e.offsetParent}while(e&&e!=a);if($a||cb&&"absolute"==d)f.y-=c.body.offsetTop;for(e=a;(e=Pc(e))&&e!=c.body&&e!=g;)f.x-=e.scrollLeft,$a&&"TR"==e.tagName||(f.y-=e.scrollTop)}return f}function Rc(a,b){var c=Sc(a),d=Sc(b);return new $b(c.x-d.x,c.y-d.y)} function Sc(a){if(1==a.nodeType){var b;if(a.getBoundingClientRect)b=Oc(a),b=new $b(b.left,b.top);else{b=Hc(oc(a));var c=Qc(a);b=new $b(c.x-b.x,c.y-b.y)}if(bb&&!ob(12)){var d;ab?d="-ms-transform":cb?d="-webkit-transform":$a?d="-o-transform":bb&&(d="-moz-transform");var e;d&&(e=Lc(a,d));e||(e=Lc(a,"transform"));a=e?(a=e.match(Tc))?new $b(parseFloat(a[1]),parseFloat(a[2])):new $b(0,0):new $b(0,0);a=new $b(b.x+a.x,b.y+a.y)}else a=b;return a}d=qa(a.wf);e=a;a.targetTouches?e=a.targetTouches[0]:d&&a.P.targetTouches&& (e=a.P.targetTouches[0]);return new $b(e.clientX,e.clientY)}function Nc(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Vc(a){var b=Wc;if("none"!=Lc(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 Wc(a){var b=a.offsetWidth,c=a.offsetHeight,d=cb&&!b&&!c;return s(b)&&!d||!a.getBoundingClientRect?new bc(b,c):(a=Oc(a),new bc(a.right-a.left,a.bottom-a.top))}function Xc(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 Yc(a,b){a.style.display=b?"":"none"}function Zc(a){return"rtl"==Lc(a,"direction")} function $c(a){var b=qc(a),c=ab&&a.currentStyle,d;if(d=c)oc(b),d="auto"!=c.width&&"auto"!=c.height&&!c.boxSizing;if(d)return b=ad(a,c.width,"width","pixelWidth"),a=ad(a,c.height,"height","pixelHeight"),new bc(b,a);c=new bc(a.offsetWidth,a.offsetHeight);b=bd(a,"padding");a=cd(a);return new bc(c.width-a.left-b.left-b.right-a.right,c.height-a.top-b.top-b.bottom-a.bottom)} function ad(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 dd(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?ad(a,c,"left","pixelLeft"):0} function bd(a,b){if(ab){var c=dd(a,b+"Left"),d=dd(a,b+"Right"),e=dd(a,b+"Top"),f=dd(a,b+"Bottom");return new Ic(e,d,f,c)}c=Kc(a,b+"Left");d=Kc(a,b+"Right");e=Kc(a,b+"Top");f=Kc(a,b+"Bottom");return new Ic(parseFloat(e),parseFloat(d),parseFloat(f),parseFloat(c))}var ed={thin:2,medium:4,thick:6};function fd(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 ed?ed[c]:ad(a,c,"left","pixelLeft")} function cd(a){if(ab){var b=fd(a,"borderLeft"),c=fd(a,"borderRight"),d=fd(a,"borderTop");a=fd(a,"borderBottom");return new Ic(d,c,a,b)}b=Kc(a,"borderLeftWidth");c=Kc(a,"borderRightWidth");d=Kc(a,"borderTopWidth");a=Kc(a,"borderBottomWidth");return new Ic(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}var Tc=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function gd(a){this.length=a.length||a;for(var b=0;bc;++c)d[c]=b[c].toFixed(6);c=d.join(",")}else c=b.join(",");wd(a,"matrix3d("+c+")")}else if(ud()){d=[b[0],b[1],b[4],b[5],b[12],b[13]];if(s(6)){var e=Array(6);for(c=0;6>c;++c)e[c]=d[c].toFixed(6);c=e.join(",")}else c=d.join(",");wd(a,"matrix("+c+")")}else a.style.left=Math.round(b[12])+"px",a.style.top=Math.round(b[13])+"px"};var yd=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function zd(a,b){var c,d,e=yd.length;for(d=0;d=a.keyCode)a.keyCode=-1}catch(b){}};l.wf=k("P");var be="closure_listenable_"+(1E6*Math.random()|0);function ce(a){return!(!a||!a[be])}var de=0;function ee(a,b,c,d,e,f){this.Qa=a;this.a=b;this.src=c;this.type=d;this.capture=!!e;this.Bb=f;this.key=++de;this.eb=this.Mb=!1}function fe(a){a.eb=!0;a.Qa=null;a.a=null;a.src=null;a.Bb=null};var ge={},he={},ie={},je={};function x(a,b,c,d,e){if(la(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 Yd;Zd(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 q=n.length- 1;!h.sb&&0<=q;q--)h.c=n[q],e&=ve(f,n[q],h);if(g)for(f=d[!1],q=0;!h.sb&&q>>0);function ke(a){return qa(a)?a:a[xe]||(a[xe]=function(b){return a.handleEvent(b)})};function ye(a){return function(){return a}}var ze=ye(!1),Ae=ye(!0);function Be(a){return a}function Ce(a){return function(){throw a;}}function De(a){var b;b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}}function Ee(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 Ye(a,b){var c=Yb(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 Ze(a,b,c){return s(a)?b.replace("{x}",a[0].toFixed(c)).replace("{y}",a[1].toFixed(c)):""}function $e(a,b){for(var c=!0,d=a.length-1;0<=d;--d)if(a[d]!=b[d]){c=!1;break}return c}function af(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 bf(a,b){var c=a[0]-b[0],d=a[1]-b[1];return c*c+d*d}function cf(a,b){return Ze(a,"{x}, {y}",b)};function E(a){Me.call(this);a=s(a)?a:{};this.a=null;x(this,Qe("tracking"),this.k,!1,this);this.b(s(a.tracking)?a.tracking:!1)}v(E,Me);E.prototype.H=function(){this.b(!1);E.K.H.call(this)}; E.prototype.n=function(a){a=a.P;if(null!=a.alpha){var b=Zb(a.alpha);this.s("alpha",b);"boolean"==typeof a.absolute&&a.absolute?this.s("heading",b):null!=a.webkitCompassHeading&&(null!=a.webkitCompassAccuracy&&-1!=a.webkitCompassAccuracy)&&this.s("heading",Zb(a.webkitCompassHeading))}null!=a.beta&&this.s("beta",Zb(a.beta));null!=a.gamma&&this.s("gamma",Zb(a.gamma));this.l()};E.prototype.e=function(){return this.get("alpha")};E.prototype.getAlpha=E.prototype.e;E.prototype.f=function(){return this.get("beta")}; E.prototype.getBeta=E.prototype.f;E.prototype.i=function(){return this.get("gamma")};E.prototype.getGamma=E.prototype.i;E.prototype.g=function(){return this.get("heading")};E.prototype.getHeading=E.prototype.g;E.prototype.d=function(){return this.get("tracking")};E.prototype.getTracking=E.prototype.d;E.prototype.k=function(){if(Ed){var a=this.d();a&&null===this.a?this.a=x(ea,"deviceorientation",this.n,!1,this):a||null===this.a||(re(this.a),this.a=null)}}; E.prototype.b=function(a){this.s("tracking",a)};E.prototype.setTracking=E.prototype.b;function df(a,b,c){Qd.call(this,a);this.map=b;this.frameState=s(c)?c:null}v(df,Qd);function ef(a,b,c){Qd.call(this,a);this.a=b;a=s(c)?c:{};this.buttons=ff(a);this.Md=gf(a,this.buttons);this.bubbles=w(a,"bubbles",!1);this.cancelable=w(a,"cancelable",!1);this.view=w(a,"view",null);this.detail=w(a,"detail",null);this.screenX=w(a,"screenX",0);this.screenY=w(a,"screenY",0);this.clientX=w(a,"clientX",0);this.clientY=w(a,"clientY",0);this.d=w(a,"ctrlKey",!1);this.b=w(a,"altKey",!1);this.i=w(a,"shiftKey",!1);this.f=w(a,"metaKey",!1);this.button=w(a,"button",0);this.relatedTarget=w(a,"relatedTarget", null);this.pointerId=w(a,"pointerId",0);this.width=w(a,"width",0);this.height=w(a,"height",0);this.g=w(a,"tiltX",0);this.k=w(a,"tiltY",0);this.pointerType=w(a,"pointerType","");this.e=w(a,"hwTimestamp",0);this.Uc=w(a,"isPrimary",!1);b.preventDefault&&(this.preventDefault=function(){b.preventDefault()})}v(ef,Qd);function ff(a){if(a.buttons||hf)a=a.buttons;else switch(a.which){case 1:a=1;break;case 2:a=4;break;case 3:a=2;break;default:a=0}return a} function gf(a,b){var c=0;return c=a.Md?a.Md:b?0.5:0}var hf=!1;try{hf=1===(new MouseEvent("click",{buttons:1})).buttons}catch(jf){};function kf(a,b){this.a=a;this.e=b};function lf(a){kf.call(this,a,{mousedown:this.Ag,mousemove:this.Bg,mouseup:this.Eg,mouseover:this.Dg,mouseout:this.Cg});this.c=a.c;this.b=[]}v(lf,kf);function mf(a,b){for(var c=a.b,d=b.clientX,e=b.clientY,f=0,g=c.length,h;f=Math.abs(d-h[0])&&25>=m)return!0}return!1}function nf(a){var b=of(a,a.P),c=b.preventDefault;b.preventDefault=function(){a.preventDefault();c()};b.pointerId=1;b.Uc=!0;b.pointerType="mouse";return b}l=lf.prototype; l.Ag=function(a){if(!mf(this,a)){(1).toString()in this.c&&this.cancel(a);var b=nf(a);this.c[(1).toString()]=a;pf(this.a,qf,b,a)}};l.Bg=function(a){if(!mf(this,a)){var b=nf(a);pf(this.a,rf,b,a)}};l.Eg=function(a){if(!mf(this,a)){var b=w(this.c,(1).toString());b&&b.button===a.button&&(b=nf(a),pf(this.a,sf,b,a),jc(this.c,(1).toString()))}};l.Dg=function(a){if(!mf(this,a)){var b=nf(a);tf(this.a,b,a)}};l.Cg=function(a){if(!mf(this,a)){var b=nf(a);uf(this.a,b,a)}}; l.cancel=function(a){var b=nf(a);this.a.cancel(b,a);jc(this.c,(1).toString())};function vf(a){kf.call(this,a,{MSPointerDown:this.Jg,MSPointerMove:this.Kg,MSPointerUp:this.Ng,MSPointerOut:this.Lg,MSPointerOver:this.Mg,MSPointerCancel:this.Ig,MSGotPointerCapture:this.Gg,MSLostPointerCapture:this.Hg});this.c=a.c;this.b=["","unavailable","touch","pen","mouse"]}v(vf,kf);function wf(a,b){var c=b;oa(b.P.pointerType)&&(c=of(b,b.P),c.pointerType=a.b[b.P.pointerType]);return c}l=vf.prototype;l.Jg=function(a){this.c[a.P.pointerId]=a;var b=wf(this,a);pf(this.a,qf,b,a)}; l.Kg=function(a){var b=wf(this,a);pf(this.a,rf,b,a)};l.Ng=function(a){var b=wf(this,a);pf(this.a,sf,b,a);jc(this.c,a.P.pointerId)};l.Lg=function(a){var b=wf(this,a);uf(this.a,b,a)};l.Mg=function(a){var b=wf(this,a);tf(this.a,b,a)};l.Ig=function(a){var b=wf(this,a);this.a.cancel(b,a);jc(this.c,a.P.pointerId)};l.Hg=function(a){A(this.a,new ef("lostpointercapture",a,a.P))};l.Gg=function(a){A(this.a,new ef("gotpointercapture",a,a.P))};function xf(a){kf.call(this,a,{pointerdown:this.Zh,pointermove:this.$h,pointerup:this.ci,pointerout:this.ai,pointerover:this.bi,pointercancel:this.Yh,gotpointercapture:this.Vf,lostpointercapture:this.yg})}v(xf,kf);l=xf.prototype;l.Zh=function(a){yf(this.a,a)};l.$h=function(a){yf(this.a,a)};l.ci=function(a){yf(this.a,a)};l.ai=function(a){yf(this.a,a)};l.bi=function(a){yf(this.a,a)};l.Yh=function(a){yf(this.a,a)};l.yg=function(a){yf(this.a,a)};l.Vf=function(a){yf(this.a,a)};function zf(a,b){kf.call(this,a,{touchstart:this.yi,touchmove:this.xi,touchend:this.wi,touchcancel:this.vi});this.c=a.c;this.i=b;this.b=void 0;this.f=0;this.d=void 0}v(zf,kf);l=zf.prototype;l.Oe=function(){this.f=0;this.d=void 0}; function Af(a,b,c){b=of(b,c);b.pointerId=c.identifier+2;b.bubbles=!0;b.cancelable=!0;b.detail=a.f;b.button=0;b.buttons=1;b.width=c.webkitRadiusX||c.radiusX||0;b.height=c.webkitRadiusY||c.radiusY||0;b.Md=c.webkitForce||c.force||0.5;b.Uc=a.b===c.identifier;b.pointerType="touch";b.clientX=c.clientX;b.clientY=c.clientY;b.screenX=c.screenX;b.screenY=c.screenY;return b} function Bf(a,b,c){function d(){b.preventDefault()}var e=Array.prototype.slice.call(b.P.changedTouches),f=e.length,g,h;for(g=0;g=b.length){var e=[],f,g,h;for(f=0;fc)for(c=1;cf?1:0.5,d=Math.floor(Math.log(b/d)/Math.log(a)+f),e=Math.max(d+e,0),s(c)&&(e=Math.min(e,c)),b/Math.pow(a,e)}};function mg(a){if(s(a))return 0}function ng(a,b){if(s(a))return a+b}function og(a){var b=2*Math.PI/a;return function(a,d){if(s(a))return a=Math.floor((a+d)/b+0.5)*b}}function pg(){var a=Zb(5);return function(b,c){if(s(b))return Math.abs(b+c)<=a?0:b+c}};function qg(a,b,c){this.center=a;this.resolution=b;this.rotation=c};function rg(){Me.call(this);this.n=[0,0]}v(rg,Me);rg.prototype.$=ca(null);rg.prototype.Cd=ca(!1);function sg(a,b){a.n[1]+=b};function tg(a){for(var b=ug(),c=0,d=a.length;ce[2]&&(e[2]=f[0]);f[1]e[3]&&(e[3]=f[1])}return b}function vg(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 wg(d,e,a,b,c)}function xg(a,b,c){return s(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 yg(a,b){return s(b)?(b[0]=a[0],b[1]=a[1],b[2]=a[2],b[3]=a[3],b):a.slice()}function zg(a,b,c){b=ba[2]&&(a[2]=b[2]);b[1]a[3]&&(a[3]=b[3]);return a}function Eg(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 vg(e,d,void 0)}function Ig(a){return a[3]-a[1]}function Jg(a){return[a[0],a[3]]}function Kg(a){return a[2]-a[0]}function Mg(a,b){return a[0]<=b[2]&&a[2]>=b[0]&&a[1]<=b[3]&&a[3]>=b[1]}function Ng(a){return a[2]this.t)}return s(a)?this.r+a:a};l.ge=function(a,b){if(!Ng(a)){this.Ea(Gg(a));var c=this.k(a,b),d=this.constrainResolution(c,0,0);da?xh(2*a):1-xh(2*(a-0.5))};function Ah(a){var b=a.source,c=s(a.start)?a.start:Aa(),d=b[0],e=b[1],f=s(a.duration)?a.duration:1E3,g=s(a.easing)?a.easing:xh;return function(a,b){if(b.timea||0!==this.g&&a<=this.g)return this;var b=a.toString();if(this.i.hasOwnProperty(b))return this.i[b];var c=this.Ob(a);if(c.j.lengthe&&(e=f);f=h;g=m}return e}function Vh(a,b,c,d,e){var f,g;f=0;for(g=c.length;fh){for(;bu&&(n=p,u=D)}u>e&&(m[(n-b)/d]=1,r+dT&&yaT)&&(0>pa&&Oapa)||(B[g++]=D,B[g++]=L,z=D,F=L);D=R;L=ha}}B[g++]=D;B[g++]=L}}h.push(g);b=p}return g};function fi(a,b){Lh.call(this);this.d=this.k=-1;this.R(a,b)}v(fi,Lh);l=fi.prototype;l.S=function(){var a=new fi(null);gi(a,this.b,this.j.slice());return a};l.za=function(a,b,c,d){if(df!=p>f&&e<(n-h)*(f-m)/(p-m)+h&&(g=!g);h=n;m=p}return g}function ki(a,b,c,d,e,f){if(0===c.length||!ji(a,b,c[0],d,e,f))return!1;var g;b=1;for(g=c.length;bq&&(n=(n+p)/2,ki(a,b,c,d,n,r)&&(y=n,q=B));n=p}isNaN(y)&&(y=e[f]);return s(g)?(g.push(y,r),g):[y,r]};function mi(a,b,c,d){for(var e=0,f=a[c-d],g=a[c-d+1];ba||this.d.length<=a)return null;var b=new fi(null);gi(b,this.b,this.j.slice(0===a?0:this.d[a-1],this.d[a]));return b};l.ne=function(){var a=this.b,b=this.j,c=this.d,d=[],e=0,f,g;f=0;for(g=c.length;f2*this.O&&Xi(this),!0):!1};function Xi(a){if(a.O!=a.a.length){for(var b=0,c=0;bc?a[1]="?":c==b.length-1&&(a[1]=void 0)}return a.join("")} function cj(a,b,c){if(la(b))for(var d=0;db)throw Error("Bad port number "+b);a.Wb=b}else a.Wb=null}function ij(a,b,c){gj(a);b instanceof jj?(a.a=b,pj(a.a,a.zb)):(c||(b=kj(b,qj)),a.a=new jj(b,0,a.zb))}function rj(a,b,c){gj(a);la(c)||(c=[String(c)]);sj(a.a,b,c)}function gj(a){if(a.xg)throw Error("Tried to modify a read-only Uri");} function tj(a){return a instanceof ej?a.S():new ej(a,void 0)} function uj(a,b){a instanceof ej||(a=tj(a));b instanceof ej||(b=tj(b));var c=a,d=b,e=c.S(),f=!!d.tb;f?fj(e,d.tb):f=!!d.Ib;if(f){var g=d.Ib;gj(e);e.Ib=g}else f=!!d.Wa;f?(g=d.Wa,gj(e),e.Wa=g):f=null!=d.Wb;g=d.Ra;if(f)hj(e,d.Wb);else if(f=!!d.Ra)if("/"!=g.charAt(0)&&(c.Wa&&!c.Ra?g="/"+g:(c=e.Ra.lastIndexOf("/"),-1!=c&&(g=e.Ra.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 lj=/[#\/\?@]/g,nj=/[\#\?:]/g,mj=/[\#\?]/g,qj=/[\#\?@]/g,oj=/#/g; function jj(a,b,c){this.a=a||null;this.c=!!c}function wj(a){if(!a.fa&&(a.fa=new Vi,a.O=0,a.a))for(var b=a.a.split("\x26"),c=0;c=a||96<=a&&106>=a||65<=a&&90>=a||cb&&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 Hj(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function Ij(a,b){He.call(this);a&&Jj(this,a,b)}v(Ij,He);l=Ij.prototype;l.rc=null;l.Vc=null;l.wd=null;l.Wc=null;l.na=-1;l.ob=-1;l.ld=!1; var Kj={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},Lj={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},Mj=ab||cb&&ob("525"),Nj=Qa&&bb; Ij.prototype.a=function(a){cb&&(17==this.na&&!a.qc||18==this.na&&!a.pa||Qa&&91==this.na&&!a.vd)&&(this.ob=this.na=-1);-1==this.na&&(a.qc&&17!=a.$a?this.na=17:a.pa&&18!=a.$a?this.na=18:a.vd&&91!=a.$a&&(this.na=91));Mj&&!Fj(a.$a,this.na,a.ab,a.qc,a.pa)?this.handleEvent(a):(this.ob=bb?Hj(a.$a):a.$a,Nj&&(this.ld=a.pa))};Ij.prototype.c=function(a){this.ob=this.na=-1;this.ld=a.pa}; Ij.prototype.handleEvent=function(a){var b=a.P,c,d,e=b.altKey;ab&&"keypress"==a.type?(c=this.ob,d=13!=c&&27!=c?b.keyCode:0):cb&&"keypress"==a.type?(c=this.ob,d=0<=b.charCode&&63232>b.charCode&&Gj(c)?b.charCode:0):$a?(c=this.ob,d=Gj(c)?b.keyCode:0):(c=b.keyCode||this.ob,d=b.charCode||0,Nj&&(e=this.ld),Qa&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in Kj?f=Kj[c]:25==c&&a.ab&&(f=9):g&&g in Lj&&(f=Lj[g]);a=f==this.na;this.na=f;b=new Oj(f,d,a,b);b.pa=e;A(this,b)}; function Jj(a,b,c){a.Wc&&Pj(a);a.rc=b;a.Vc=x(a.rc,"keypress",a,c);a.wd=x(a.rc,"keydown",a.a,c,a);a.Wc=x(a.rc,"keyup",a.c,c,a)}function Pj(a){a.Vc&&(re(a.Vc),re(a.wd),re(a.Wc),a.Vc=null,a.wd=null,a.Wc=null);a.rc=null;a.na=-1;a.ob=-1}Ij.prototype.H=function(){Ij.K.H.call(this);Pj(this)};function Oj(a,b,c,d){d&&Zd(this,d,void 0);this.type="key";this.$a=a;this.ud=b;this.a=c}v(Oj,Yd);function Qj(a,b){He.call(this);this.a=a;var c=ra(this.a)&&1==this.a.nodeType?this.a:this.a?this.a.body:null;this.e=!!c&&Zc(c);this.c=x(this.a,bb?"DOMMouseScroll":"mousewheel",this,b)}v(Qj,He); Qj.prototype.handleEvent=function(a){var b=0,c=0,d=0;a=a.P;if("mousewheel"==a.type){c=1;if(ab||cb&&(Ta||ob("532.0")))c=40;d=Rj(-a.wheelDelta,c);s(a.wheelDeltaX)?(b=Rj(-a.wheelDeltaX,c),c=Rj(-a.wheelDeltaY,c)):c=d}else d=a.detail,100d&&(d=-3),s(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;oa(this.b)&&(b=Xb(b,-this.b,this.b));oa(this.d)&&(c=Xb(c,-this.d,this.d));this.e&&(b=-b);b=new Sj(d,a,b,c);A(this,b)};function Rj(a,b){return cb&&(Qa||Ua)&&0!=a%b?a:a/b} Qj.prototype.H=function(){Qj.K.H.call(this);re(this.c);this.c=null};function Sj(a,b,c,d){b&&Zd(this,b,void 0);this.type="mousewheel";this.detail=a;this.b=c;this.a=d}v(Sj,Yd);function Tj(a){Je.call(this);this.o=qh(a.projection);this.N=s(a.extent)?a.extent:s(a.projection)?this.o.C():null;this.i=s(a.attributions)?a.attributions:null;this.t=a.logo;this.k=s(a.state)?a.state:1}v(Tj,Je);Tj.prototype.bd=fa;Tj.prototype.C=k("N");Tj.prototype.a=k("k");function Uj(a,b){a.k=b;a.l()};function J(a){Me.call(this);a=lc(a);a.brightness=s(a.brightness)?a.brightness:0;a.contrast=s(a.contrast)?a.contrast:1;a.hue=s(a.hue)?a.hue:0;a.opacity=s(a.opacity)?a.opacity:1;a.saturation=s(a.saturation)?a.saturation:1;a.visible=s(a.visible)?a.visible:!0;a.maxResolution=s(a.maxResolution)?a.maxResolution:Infinity;a.minResolution=s(a.minResolution)?a.minResolution:0;this.J(a)}v(J,Me);J.prototype.d=function(){return this.get("brightness")};J.prototype.getBrightness=J.prototype.d;J.prototype.e=function(){return this.get("contrast")}; J.prototype.getContrast=J.prototype.e;J.prototype.f=function(){return this.get("hue")};J.prototype.getHue=J.prototype.f;function Vj(a){var b=a.d(),c=a.e(),d=a.f(),e=a.n(),f=a.k(),g=a.Ua(),h=a.b(),m=a.i(),n=a.g();return{layer:a,brightness:s(b)?Xb(b,-1,1):0,contrast:s(c)?Math.max(c,0):1,hue:s(d)?d:0,opacity:s(e)?Xb(e,0,1):1,saturation:s(f)?Math.max(f,0):1,Va:g,visible:s(h)?!!h:!0,maxResolution:s(m)?m:Infinity,minResolution:s(n)?Math.max(n,0):0}}J.prototype.i=function(){return this.get("maxResolution")}; J.prototype.getMaxResolution=J.prototype.i;J.prototype.g=function(){return this.get("minResolution")};J.prototype.getMinResolution=J.prototype.g;J.prototype.n=function(){return this.get("opacity")};J.prototype.getOpacity=J.prototype.n;J.prototype.k=function(){return this.get("saturation")};J.prototype.getSaturation=J.prototype.k;J.prototype.b=function(){return this.get("visible")};J.prototype.getVisible=J.prototype.b;J.prototype.o=function(a){this.s("brightness",a)};J.prototype.setBrightness=J.prototype.o; J.prototype.p=function(a){this.s("contrast",a)};J.prototype.setContrast=J.prototype.p;J.prototype.t=function(a){this.s("hue",a)};J.prototype.setHue=J.prototype.t;J.prototype.r=function(a){this.s("maxResolution",a)};J.prototype.setMaxResolution=J.prototype.r;J.prototype.D=function(a){this.s("minResolution",a)};J.prototype.setMinResolution=J.prototype.D;J.prototype.F=function(a){this.s("opacity",a)};J.prototype.setOpacity=J.prototype.F;J.prototype.N=function(a){this.s("saturation",a)}; J.prototype.setSaturation=J.prototype.N;J.prototype.W=function(a){this.s("visible",a)};J.prototype.setVisible=J.prototype.W;function K(a){var b=lc(a);delete b.source;J.call(this,b);this.a=a.source;x(this.a,"change",this.kd,!1,this)}v(K,J);K.prototype.Oc=function(a){a=s(a)?a:[];a.push(Vj(this));return a};K.prototype.ca=k("a");K.prototype.Ua=function(){return this.a.k};K.prototype.kd=function(){this.l()};function Wj(a,b,c,d,e){He.call(this);this.i=e;this.k=a;this.b=c;this.d=b;this.state=d}v(Wj,He);Wj.prototype.C=k("k");function Xj(a,b,c,d,e,f){Wj.call(this,a,b,c,0,d);this.g=e;this.a=new Image;null!==f&&(this.a.crossOrigin=f);this.f={};this.c=null;this.state=0}v(Xj,Wj);Xj.prototype.e=function(a){if(s(a)){var b=sa(a);if(b in this.f)return this.f[b];a=hc(this.f)?this.a:this.a.cloneNode(!1);return this.f[b]=a}return this.a};Xj.prototype.n=function(){this.state=3;wb(this.c,re);this.c=null;A(this,"change")};Xj.prototype.q=function(){this.state=2;wb(this.c,re);this.c=null;A(this,"change")}; function Yj(a){0==a.state&&(a.state=1,a.c=[oe(a.a,"error",a.n,!1,a),oe(a.a,"load",a.q,!1,a)],a.a.src=a.g)};function Zj(a,b){He.call(this);this.a=a;this.state=b}v(Zj,He);Zj.prototype.d=function(){return sa(this).toString()};Zj.prototype.k=k("a");function ak(a){this.minZoom=s(a.minZoom)?a.minZoom:0;this.a=a.resolutions;this.maxZoom=this.a.length-1;this.e=s(a.origin)?a.origin:null;this.i=null;s(a.origins)&&(this.i=a.origins);this.b=null;s(a.tileSizes)&&(this.b=a.tileSizes);this.f=s(a.tileSize)?a.tileSize:null===this.b?256:void 0}var bk=new Lb(0,0,0);l=ak.prototype;l.Mc=function(a,b,c,d,e){e=ck(this,a,e);for(a=a.a-1;a>=this.minZoom;){if(b.call(c,a,dk(this,e,a,d)))return!0;--a}return!1};l.Pc=k("minZoom"); l.pb=function(a){return null===this.e?this.i[a]:this.e};l.ha=function(a){return this.a[a]};l.Qc=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 pk(a,b,c,d){return function(e,f,g){e=b.Pb(e,f,g,c,d);return a(e)?e:null}}function qk(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 rk(a,b,c,d,e,f,g,h,m,n){var p=sa(b).toString();p in a.Zb||(a.Zb[p]={});var q=a.Zb[p];a=a.ui;var r=c.minZoom,u,y,B,z,F,D;s(h)||(h=0);for(D=g;D>=r;--D)for(y=dk(c,f,D),B=c.ha(D),z=y.a;z<=y.d;++z)for(F=y.b;F<=y.c;++F)g-D<=h?(u=b.Pb(D,z,F,d,e),0==u.state&&(q[u.a.toString()]=!0,u.d()in a.b||sk(a,[u,p,gk(c,u.a),B])),s(m)&&m.call(n,u)):b.Xe(D,z,F)};function tk(a){a=s(a)?a:{};this.e=s(a.anchor)?a.anchor:[0.5,0.5];this.d=null;this.c=s(a.anchorOrigin)?a.anchorOrigin:"top-left";this.q=s(a.anchorXUnits)?a.anchorXUnits:"fraction";this.o=s(a.anchorYUnits)?a.anchorYUnits:"fraction";var b=s(a.crossOrigin)?a.crossOrigin:null,c=s(a.img)?a.img:null,d=a.src;s(d)&&0!==d.length||null===c||(d=c.src);var e=s(a.src)?0:2,f=vk.kb(),g=f.get(d,b);null===g&&(g=new wk(c,d,b,e),f.a[b+":"+d]=g,++f.c);this.a=g;this.F=s(a.offset)?a.offset:[0,0];this.b=s(a.offsetOrigin)? a.offsetOrigin:"top-left";this.f=null;this.p=s(a.size)?a.size:null;Ji.call(this,{opacity:s(a.opacity)?a.opacity:1,rotation:s(a.rotation)?a.rotation:0,scale:s(a.scale)?a.scale:1,snapToPixel:s(a.snapToPixel)?a.snapToPixel:!0,rotateWithView:s(a.rotateWithView)?a.rotateWithView:!1})}v(tk,Ji);l=tk.prototype; l.oc=function(){if(null!==this.d)return this.d;var a=this.e,b=this.Db();if("fraction"==this.q||"fraction"==this.o){if(null===b)return null;a=this.e.slice();"fraction"==this.q&&(a[0]*=b[0]);"fraction"==this.o&&(a[1]*=b[1])}if("top-left"!=this.c){if(null===b)return null;a===this.e&&(a=this.e.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]=-a[1]+b[1]}return this.d=a};l.uc=function(){return this.a.a};l.Id=function(){return this.a.c}; l.He=function(){var a=this.a;if(null===a.e)if(a.g){var b=a.d[0],c=a.d[1],d=td(b,c);d.fillRect(0,0,b,c);a.e=d.canvas}else a.e=a.a;return a.e};l.vc=function(){if(null!==this.f)return this.f;var a=this.F;if("top-left"!=this.b){var b=this.Db(),c=this.a.d;if(null===b||null===c)return null;a=a.slice();if("top-right"==this.b||"bottom-right"==this.b)a[0]=c[0]-b[0]-a[0];if("bottom-left"==this.b||"bottom-right"==this.b)a[1]=c[1]-b[1]-a[1]}return this.f=a};l.Ch=function(){return this.a.f}; l.Db=function(){return null===this.p?this.a.d:this.p};l.zd=function(a,b){return x(this.a,"change",a,!1,b)};l.Jd=function(){var a=this.a;if(0==a.c){a.c=1;a.b=[oe(a.a,"error",a.i,!1,a),oe(a.a,"load",a.k,!1,a)];try{a.a.src=a.f}catch(b){a.i()}}};l.Td=function(a,b){pe(this.a,"change",a,!1,b)};function wk(a,b,c,d){He.call(this);this.e=null;this.a=null===a?new Image:a;null!==c&&(this.a.crossOrigin=c);this.b=null;this.c=d;this.d=null;this.f=b;this.g=!1}v(wk,He); wk.prototype.i=function(){this.c=3;wb(this.b,re);this.b=null;A(this,"change")};wk.prototype.k=function(){this.c=2;this.d=[this.a.width,this.a.height];wb(this.b,re);this.b=null;var a=td(1,1);a.drawImage(this.a,0,0);try{a.getImageData(0,0,1,1)}catch(b){this.g=!0}A(this,"change")};function vk(){this.a={};this.c=0;this.b=32}ga(vk);vk.prototype.clear=function(){this.a={};this.c=0};vk.prototype.get=function(a,b){var c=b+":"+a;return c in this.a?this.a[c]:null};function xk(a,b,c,d,e,f,g,h){od(a);0===b&&0===c||qd(a,b,c);1==d&&1==e||rd(a,d,e);0!==f&&sd(a,f);0===g&&0===h||qd(a,g,h);return a}function yk(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 zk(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){Ld.call(this);this.f=b;this.b={}}v(Ak,Ld); function Bk(a){var b=a.view2DState,c=a.be;xk(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.Ke;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],q=c[9],r=c[10],u=c[11],y=c[12],B=c[13],z=c[14],c=c[15],F=b*h-d*g,D=b*m-e*g,L=b*n-f*g,R=d*m-e*h,ha=d*n-f*h,T=e*n-f*m,pa=p*B-q*y,ya=p*z-r*y,Oa=p*c-u*y,Sa=q*z-r*B,ia=q*c-u*B,Wa=r*c-u*z,Ra=F*Wa-D*ia+L*Sa+R*Oa-ha*ya+T*pa;0!=Ra&&(Ra=1/Ra,a[0]=(h*Wa-m*ia+n*Sa)*Ra,a[1]=(-d*Wa+e*ia-f*Sa)*Ra,a[2]= (B*T-z*ha+c*R)*Ra,a[3]=(-q*T+r*ha-u*R)*Ra,a[4]=(-g*Wa+m*Oa-n*ya)*Ra,a[5]=(b*Wa-e*Oa+f*ya)*Ra,a[6]=(-y*T+z*L-c*D)*Ra,a[7]=(p*T-r*L+u*D)*Ra,a[8]=(g*ia-h*Oa+n*pa)*Ra,a[9]=(-b*ia+d*Oa-f*pa)*Ra,a[10]=(y*ha-B*L+c*F)*Ra,a[11]=(-p*ha+q*L-u*F)*Ra,a[12]=(-g*Sa+h*ya-m*pa)*Ra,a[13]=(b*Sa-d*ya+e*pa)*Ra,a[14]=(-y*R+B*D-z*F)*Ra,a[15]=(p*R-q*D+r*F)*Ra)}Ak.prototype.Fc=function(a){return new jk(this,a)};Ak.prototype.H=function(){cc(this.b,function(a){Pd(a)});Ak.K.H.call(this)}; function Ck(a,b){var c=sa(b).toString();if(c in a.b)return a.b[c];var d=a.Fc(b);return a.b[c]=d}Ak.prototype.dd=fa;Ak.prototype.t=function(a,b){for(var c in this.b)if(!(null!==b&&c in b.yd)){var d=this.b[c];delete this.b[c];Pd(d)}};function Dk(a){a.rb.push(function(){var a=vk.kb();if(a.c>a.b){var c=0,d,e;for(d in a.a)e=a.a[d],0!==(c++&3)||te(e)||(delete a.a[d],--a.c)}})}function Ek(a,b){for(var c in a.b)if(!(c in b.yd)){b.rb.push(xa(a.t,a));break}};function Fk(a,b){this.f=a;this.e=b;this.a=[];this.c=[];this.b={}}Fk.prototype.clear=function(){this.a.length=0;this.c.length=0;ic(this.b)};function Gk(a){var b=a.a,c=a.c,d=b[0];1==b.length?(b.length=0,c.length=0):(b[0]=b.pop(),c[0]=c.pop(),Hk(a,0));b=a.e(d);delete a.b[b];return d}function sk(a,b){var c=a.f(b);Infinity!=c&&(a.a.push(b),a.c.push(c),a.b[a.e(b)]=!0,Ik(a,0,a.a.length-1))}Fk.prototype.La=function(){return this.a.length};Fk.prototype.ma=function(){return 0===this.a.length}; function Hk(a,b){for(var c=a.a,d=a.c,e=c.length,f=c[b],g=d[b],h=b;b>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 Jk(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--)Hk(a,b)};function Kk(a,b){Fk.call(this,function(b){return a.apply(null,b)},function(a){return a[0].d()});this.g=b;this.d=0}v(Kk,Fk);Kk.prototype.i=function(){--this.d;this.g()};function M(a){Me.call(this);this.element=s(a.element)?a.element:null;this.r=s(a.target)?rc(a.target):null;this.a=null;this.i=[]}v(M,Me);M.prototype.H=function(){Ec(this.element);M.K.H.call(this)};M.prototype.b=k("a");M.prototype.d=fa;M.prototype.setMap=function(a){null===this.a||Ec(this.element);0!=this.i.length&&(wb(this.i,re),this.i.length=0);this.a=a;null!==this.a&&((null===this.r?a.t:this.r).appendChild(this.element),this.d!==fa&&this.i.push(x(a,"postrender",this.d,!1,this)),a.U())};function Lk(a){a=s(a)?a:{};this.k=zc("UL");var b=vc("DIV",{"class":(s(a.className)?a.className:"ol-attribution")+" ol-unselectable"},this.k);M.call(this,{element:b,target:a.target});this.g=!0;this.f={};this.e={}}v(Lk,M); Lk.prototype.d=function(a){a=a.frameState;if(null===a)this.g&&(Yc(this.element,!1),this.g=!1);else{var b,c,d,e,f,g,h,m,n,p=a.Yc,q=lc(a.attributions),r={};b=0;for(c=p.length;b=B.a&&g.a[z][u].b<=B.c&& g.a[z][u].c>=B.b){u=!0;break a}u=!1}u?(h in r&&delete r[h],q[h]=g):r[h]=g}b=[q,r];a=b[0];b=b[1];for(var F in this.f)F in a?(this.e[F]||(Yc(this.f[F],!0),this.e[F]=!0),delete a[F]):F in b?(this.e[F]&&(Yc(this.f[F],!1),delete this.e[F]),delete b[F]):(Ec(this.f[F]),delete this.f[F],delete this.e[F]);for(F in a)c=zc("LI"),c.innerHTML=a[F].c,this.k.appendChild(c),this.f[F]=c,this.e[F]=!0;for(F in b)c=zc("LI"),c.innerHTML=b[F].c,Yc(c,!1),this.k.appendChild(c),this.f[F]=c;F=!hc(this.e);this.g!=F&&(Yc(this.element, F),this.g=F)}};function Mk(a){a=s(a)?a:{};this.f=zc("UL");var b=vc("DIV",{"class":(s(a.className)?a.className:"ol-logo")+" ol-unselectable"},this.f);M.call(this,{element:b,target:a.target});this.e=!0;this.g={}}v(Mk,M); Mk.prototype.d=function(a){a=a.frameState;if(null===a)this.e&&(Yc(this.element,!1),this.e=!1);else{var b;a=a.Bd;var c=this.g;for(b in c)b in a||(Ec(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=vc("A",{href:e,target:"_blank"}),e.appendChild(b));b=vc("LI",void 0,e);this.f.appendChild(b);c[d]=b}d=!hc(a);this.e!=d&&(Yc(this.element,d),this.e=d)}};function Nk(a){a=s(a)?a:{};var b=s(a.className)?a.className:"ol-rotate",c=vc("SPAN",{"class":"ol-compass"},s(a.label)?a.label:"\u21e7");this.e=c;var d=vc("SPAN",{role:"tooltip"},s(a.tipLabel)?a.tipLabel:"Reset rotation"),c=vc("BUTTON",{"class":b+"-reset ol-has-tooltip",name:"ResetRotation",type:"button"},d,c),d=new Gf(c);Od(this,d);x(d,sf,Nk.prototype.n,!1,this);x(c,"click",Nk.prototype.k,!1,this);x(c,["mouseout",Wd],function(){this.blur()},!1);b=vc("DIV",b+" ol-unselectable ol-control",c);M.call(this, {element:b,target:a.target});this.g=s(a.duration)?a.duration:250;this.f=s(a.autoHide)?a.autoHide:!0;b.style.opacity=this.f?0:1}v(Nk,M);Nk.prototype.k=function(a){0!==a.screenX&&0!==a.screenY||Ok(this)};Nk.prototype.n=function(a){a.a.preventDefault();Ok(this)};function Ok(a){for(var b=a.a,c=b.a().$(),d=c.e();d<-Math.PI;)d+=2*Math.PI;for(;d>Math.PI;)d-=2*Math.PI;s(d)&&(0d;)f-=3;if(0<=f){var d=c.a[e+2]-c.a[f+2],g=c.a[e]-c.a[f],e=c.a[e+1]-c.a[f+1];c.d=Math.atan2(e,g);c.c=Math.sqrt(g*g+e*e)/d;c=c.c>c.b}else c=!1}}c&&(c=(this.a.b-this.a.c)/this.a.e,e=this.a.d,f=b.a(),this.e=Tk(this.a,f),a.ya(this.e),f=a.f(f),c=a.Ba([f[0]-c*Math.cos(e),f[1]-c*Math.sin(e)]),c=b.g(c),b.Ea(c)); sg(b,-1);a.U();return!1}this.d=null;return!0};Vk.prototype.bb=function(a){if(0this.k&&(this.a=!0));this.e=c;a=a.map;c=Sc(a.b);d=Ih(this.b);d[0]-=c.x;d[1]-=c.y;this.d=a.Ba(d);this.a&&(c=a.a().$(),d=vh(c),a.U(),Eh(a,c,d.rotation+b,this.d))}; al.prototype.cb=function(a){if(2>this.b.length){a=a.map;var b=a.a();sg(b,-1);if(this.a){var b=b.$(),c=vh(b).rotation,d=this.d,c=b.constrainRotation(c,0);Eh(a,b,c,d,250)}return!1}return!0};al.prototype.bb=function(a){return 2<=this.b.length?(a=a.map,this.d=null,this.e=void 0,this.a=!1,this.f=0,this.g||sg(a.a(),1),a.U(),!0):!1};function bl(a){a=s(a)?a:{};Hh.call(this);this.d=null;this.f=s(a.duration)?a.duration:400;this.a=void 0;this.e=1}v(bl,Hh);bl.prototype.nb=function(a){var b=1,c=this.b[0],d=this.b[1],e=c.clientX-d.clientX,c=c.clientY-d.clientY,e=Math.sqrt(e*e+c*c);s(this.a)&&(b=this.a/e);this.a=e;1!=b&&(this.e=b);a=a.map;var e=a.a().$(),c=vh(e),d=Sc(a.b),f=Ih(this.b);f[0]-=d.x;f[1]-=d.y;this.d=a.Ba(f);a.U();Gh(a,e,c.resolution*b,this.d)}; bl.prototype.cb=function(a){if(2>this.b.length){a=a.map;var b=a.a();sg(b,-1);var b=b.$(),c=vh(b).resolution,d=this.d,e=this.f,c=b.constrainResolution(c,0,this.e-1);Gh(a,b,c,d,e);return!1}return!0};bl.prototype.bb=function(a){return 2<=this.b.length?(a=a.map,this.d=null,this.a=void 0,this.e=1,this.g||sg(a.a(),1),a.U(),!0):!1};function cl(a){a=s(a)?a:{};var b=new C,c=new Sk(-0.005,0.05,100);(s(a.altShiftDragRotate)?a.altShiftDragRotate:1)&&b.push(new Wk);(s(a.doubleClickZoom)?a.doubleClickZoom:1)&&b.push(new Uk({delta:a.zoomDelta,duration:a.zoomDuration}));(s(a.dragPan)?a.dragPan:1)&&b.push(new Vk({kinetic:c}));(s(a.pinchRotate)?a.pinchRotate:1)&&b.push(new al);(s(a.pinchZoom)?a.pinchZoom:1)&&b.push(new bl({duration:a.zoomDuration}));if(s(a.keyboard)?a.keyboard:1)b.push(new Yk),b.push(new Zk({delta:a.zoomDelta,duration:a.zoomDuration})); (s(a.mouseWheelZoom)?a.mouseWheelZoom:1)&&b.push(new $k({duration:a.zoomDuration}));(s(a.shiftDragZoom)?a.shiftDragZoom:1)&&b.push(new Xk);return b};function N(a){var b=s(a)?a:{};a=lc(b);delete a.layers;b=b.layers;J.call(this,a);this.a=null;x(this,Qe("layers"),this.gg,!1,this);s(b)?la(b)&&(b=new C(Db(b))):b=new C;this.ca(b)}v(N,J);l=N.prototype;l.re=function(){this.b()&&this.l()}; l.gg=function(){null!==this.a&&(wb(fc(this.a),re),this.a=null);var a=this.Tb();if(null!=a){this.a={add:x(a,"add",this.fg,!1,this),remove:x(a,"remove",this.hg,!1,this)};var a=a.a,b,c,d;b=0;for(c=a.length;bB||this.c[1]>z)?(F.width=B,F.height= z,this.c=[B,z],this.k=!zl(this.c),this.b=null):(B=this.c[0],z=this.c[1],m==this.D&&this.b.a<=y.a&&y.d<=this.b.d&&this.b.b<=y.b&&y.c<=this.b.c||(this.b=null)));var L,R;null===this.b?(B/=n,z/=n,L=y.a-Math.floor((B-(y.d-y.a+1))/2),R=y.b-Math.floor((z-(y.c-y.b+1))/2),this.D=m,this.b=new Pb(L,L+B-1,R,R+z-1),this.g=Array(B*z),z=this.b):(z=this.b,B=z.d-z.a+1);F={};F[m]={};var ha=[],T=xa(f.qd,f,F,pk(function(a){return null!==a&&2==a.state},f,b,d)),pa=e.ia();s(pa)||(pa=!0);var ya=ug(),Oa=new Pb(0,0,0,0),Sa, ia,Wa;for(R=y.a;R<=y.d;++R)for(Wa=y.b;Wa<=y.c;++Wa)ia=f.Pb(m,R,Wa,b,d),L=ia.state,2==L||4==L||3==L&&!pa?F[m][ia.a.toString()]=ia:(Sa=g.Mc(ia.a,T,null,Oa,ya),Sa||(ha.push(ia),Sa=g.Qc(ia.a,Oa,ya),null===Sa||T(m+1,Sa)));T=0;for(Sa=ha.length;Ty&&(D=D|4);FB&&(D|=2);0===D&&(D=1);u=D;u!==r?(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];r=u}q===c+e&&(a.coordinates[g++]=m[0],a.coordinates[g++]= m[1]);f&&(a.coordinates[g++]=b[c],a.coordinates[g++]=b[c+1]);return g}function Hl(a,b,c){a.F=[0,b,c,0];a.c.push(a.F);a.N=[0,b,c,0];a.a.push(a.N)} function Il(a,b,c,d,e,f,g,h){var m;yk(d,a.ua)?m=a.ca:(m=Kh(a.coordinates,2,d,a.ca),nd(a.ua,d));d=0;var n=g.length,p=0,q;for(a=a.Ta;da||0!==this.g&&a>1,p=g(c,f[n]),0r?(c=(c-f[-r-2])/(f[-r-1]-f[-r-2]),b+=(-r-2)*d,f=a[b]+c*(a[b+d]-a[b]),g=a[b+1]+c*(a[b+d+1]-a[b+1])):(f=a[b+r*d],g=a[b+r*d+1])}return null!= e?(e[0]=f,e[1]=g,e):[f,g]}function hm(a,b,c,d,e,f){if(c==b)return null;if(e>1,ea||this.d.length<=a)return null;var b=new jm(null);km(b,this.b,this.j.slice(0===a?0:this.d[a-1],this.d[a]));return b};l.td=function(){var a=this.j,b=this.d,c=this.b,d=[],e=0,f,g;f=0;for(g=b.length;fa||b<=a)return null;b=new hi(null);ii(b,this.b,this.j.slice(a*this.a,(a+1)*this.a));return b};l.oe=function(){var a=this.j,b=this.b,c=this.a,d=[],e,f;e=0;for(f=a.length;ea||this.d.length<=a)return null;var b;0===a?b=0:(b=this.d[a-1],b=b[b.length-1]);a=this.d[a].slice();var c=a[a.length-1];if(0!==b){var d,e;d=0;for(e=a.length;d=a;--b)Dg(f,d[b].extent),g+=Kg(f)+Ig(f);return g}l=Bm.prototype; l.clear=function(){var a=this.a;a.extent=Bg(this.a.extent);a.height=1;a.a.length=0;a.value=null;ic(this.c)};l.forEach=function(a,b){return Dm(this.a,a,b)};function Dm(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=Cm(p,m,xm); p=Cm(p,m,ym);n=h.minResolution&&dT&&Dc(this.target,B.target,0)}else a.aa[0]||a.aa[1]||$m(B,r,F);else Ec(B.target),delete this.c[T];b.opacity!=this.g&&(Xc(this.target,b.opacity),this.g=b.opacity);b.visible&&!this.b&&(Yc(this.target,!0),this.b=!0);ok(a.Ac,g,n,p);rk(a,g,h,c,e,r,n,f.ga());lk(a,g);nk(a,g)}else this.b&&(Yc(this.target,!1),this.b=!1)}; function Wm(a,b){this.target=zc("DIV");this.target.style.position="absolute";this.target.style.width="100%";this.target.style.height="100%";this.d=a;this.b=b;this.f=Jg(ck(a,b));this.i=a.ha(b.a);this.c={};this.a=null;this.e=md()} function Xm(a,b,c){var d=b.a,e=d.toString();if(!(e in a.c)){var f=a.d.ka(d.a),g=b.b(a),h=g.style;h.maxWidth="none";var m,n;0c)break;if(bb&&(-1==e||h=m.minResolution&&f=p.minResolution&&m=c[0]||0>=c[1]?b=!1:(b=b.a(),b=s(b)&&b.Cd()?!0:!1)}else b=!1;if(!b)return!0;b=!0;a.type===Yf?b=Yn(this,a):a.type===Sf&&(b=!1);return Sn.K.Fa.call(this,a)&&b}; Sn.prototype.bb=function(a){return this.W(a)?(this.t=a.pixel,!0):!1}; Sn.prototype.cb=function(a){var b=this.t,c=a.pixel,d=b[0]-c[0],b=b[1]-c[1],c=!0;if(d*d+b*b<=this.ca){Yn(this,a);if(null===this.f)Zn(this,a);else if(this.a===Tn||$n(this,a)){a=Xn(this);var e,d=a.Q();this.a===Tn?e=d.G():this.a===Un?(e=d.G(),e.pop(),d.R(e)):this.a===Vn&&(this.d[0].pop(),this.d[0].push(this.d[0][0]),d.R(this.d),e=d.G());"MultiPoint"===this.o?a.fb(new om([e])):"MultiLineString"===this.o?a.fb(new lm([e])):"MultiPolygon"===this.o&&a.fb(new pm([e]));null===this.r||this.r.push(a);null===this.F|| this.F.Gd(a);A(this,new Rn("drawend",a))}else e=a.coordinate,a=this.e.Q(),this.a===Un?(this.f=e.slice(),d=a.G(),d.push(e.slice()),a.R(d)):this.a===Vn&&(this.d[0].push(e.slice()),a.R(this.d)),ao(this);c=!1}return c}; function Yn(a,b){if(a.a===Tn&&null===a.f)Zn(a,b);else if(null!==a.f){var c=b.coordinate,d=a.e.Q(),e,f;a.a===Tn?(f=d.G(),f[0]=c[0],f[1]=c[1],d.R(f)):(a.a===Un?e=d.G():a.a===Vn&&(e=a.d[0]),$n(a,b)&&(c=a.f.slice()),a.n.Q().R(c),f=e[e.length-1],f[0]=c[0],f[1]=c[1],a.a===Un?d.R(e):a.a===Vn&&(a.k.Q().R(e),d.R(a.d)));ao(a)}return!0} function $n(a,b){var c=!1;if(null!==a.e){var d=a.e.Q(),e=!1,f=[a.f];a.a===Un?e=2a.N,f=[a.d[0][0],a.d[0][a.d[0].length-2]]);if(e)for(var d=b.map,e=0,g=f.length;ec?(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=no[f%3]*Math.pow(10,Math.floor(f/3));h=Math.round(g/b);if(h>=a.k)break;++f}g=g+e;a.D!=g&&(a.g.innerHTML=g,a.D=g);a.F!=h&&(a.g.style.width=h+"px",a.F=h);a.f||(Yc(a.n,!0),a.f=!0)}};function po(a){Ld.call(this);this.c=a;this.a={}}v(po,Ld);var qo=[];po.prototype.qa=function(a,b,c,d,e){la(b)||(qo[0]=b,b=qo);for(var f=0;fthis.se)if(A(this,new wo("start",this,a.clientX,a.clientY,a)))this.xb=!0;else{this.Ta||this.Jc(a);return}}c=zo(this,b,c);b=c.x;c=c.y;this.xb&&A(this,new wo("beforedrag",this,a.clientX,a.clientY,a,b,c))&&(Ao(this,a,b,c), a.preventDefault())}};function zo(a,b,c){var d=Hc(oc(a.b));b+=d.x-a.d.x;c+=d.y-a.d.y;a.d=d;a.Qb+=b;a.Rb+=c;b=xo(a,a.Qb);a=yo(a,a.Rb);return new $b(b,a)}l.Wh=function(a){var b=zo(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;Ao(this,a,b.x,b.y)};function Ao(a,b,c,d){a.Ud&&uo(a)?a.target.style.right=c+"px":a.target.style.left=c+"px";a.target.style.top=d+"px";A(a,new wo("drag",a,b.clientX,b.clientY,b,c,d))} function xo(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 yo(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 wo(a,b,c,d,e,f,g,h){Qd.call(this,a);this.clientX=c;this.clientY=d;this.d=e;this.left=s(f)?f:b.Qb;this.top=s(g)?g:b.Rb;this.b=b;this.a=!!h}v(wo,Qd);function Bo(a){a=s(a)?a:{};this.e=void 0;this.g=Co;this.k=!1;var b=s(a.className)?a.className:"ol-zoomslider";a=vc("DIV",[b+"-thumb","ol-unselectable"]);b=vc("DIV",[b,"ol-unselectable"],a);this.f=new so(a);Od(this,this.f);x(this.f,["drag","end"],this.o,void 0,this);x(b,"click",this.n,!1,this);x(a,"click",Rd);M.call(this,{element:b})}v(Bo,M);var Co=0;Bo.prototype.setMap=function(a){Bo.K.setMap.call(this,a);null===a||a.U()}; Bo.prototype.d=function(a){if(null!==a.frameState){if(!this.k){var b=this.element,c=Fc(b),b=$c(b),d;d=Qc(c);var e=Vc(c);d=new Jc(d.x,d.y,e.width,e.height);var e=bd(c,"margin"),f=cd(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.g=1,b=new Jc(0,0,c,0)):(this.g=Co,b=new Jc(0,0,0,d));this.f.c=b||new Jc(NaN,NaN,NaN,NaN);this.k=!0}a=a.frameState.view2DState.resolution;a!==this.e&&(this.e=a,a=-1*(uh(this.a.a().$())(a)-1),b=this.f, c=Fc(this.element),1==this.g?Mc(c,b.c.left+b.c.width*a):Mc(c,b.c.left,b.c.top+b.c.height*a))}};Bo.prototype.n=function(a){var b=this.a,c=b.a().$();a=Do(this,Eo(this,a.offsetX,a.offsetY));b.ya(Ch({resolution:a,duration:200,easing:wh}));a=c.constrainResolution(a);c.d(a)};function Eo(a,b,c){var d=a.f.c,e=0;return e=1===a.g?(b-d.left)/d.width:(c-d.top)/d.height}function Do(a,b){b=-1*(Xb(b,0,1)-1);return th(a.a.a().$())(b)} Bo.prototype.o=function(a){var b=this.a,c=b.a().$();"drag"===a.type?(a=Do(this,Eo(this,a.left,a.top)),a!==this.e&&(this.e=a,c.d(a))):(b.ya(Ch({resolution:this.e,duration:200,easing:wh})),a=c.constrainResolution(this.e),c.d(a))};function Fo(a){a=s(a)?a:{};this.e=s(a.extent)?a.extent:null;var b=s(a.className)?a.className:"ol-zoom-extent",c=vc("SPAN",{role:"tooltip"},s(a.tipLabel)?a.tipLabel:"Fit to extent"),d=vc("BUTTON",{"class":"ol-has-tooltip"});d.appendChild(c);c=new Gf(d);Od(this,c);x(c,sf,this.g,!1,this);x(d,"click",this.f,!1,this);x(d,["mouseout",Wd],function(){this.blur()},!1);b=vc("DIV",b+" ol-unselectable ol-control",d);M.call(this,{element:b,target:a.target})}v(Fo,M); Fo.prototype.f=function(a){0!==a.screenX&&0!==a.screenY||Go(this)};Fo.prototype.g=function(a){a.a.preventDefault();Go(this)};function Go(a){var b=a.a,c=b.a().$();a=null===a.e?c.i().C():a.e;c.ge(a,b.e())};function Ho(a){Me.call(this);this.a=a;x(this.a,["change","input"],this.g,!1,this);x(this,Qe("value"),this.k,!1,this);x(this,Qe("checked"),this.i,!1,this)}v(Ho,Me);Ho.prototype.b=function(){return this.get("checked")};Ho.prototype.getChecked=Ho.prototype.b;Ho.prototype.d=function(){return this.get("value")};Ho.prototype.getValue=Ho.prototype.d;Ho.prototype.f=function(a){this.s("value",a)};Ho.prototype.setValue=Ho.prototype.f;Ho.prototype.e=function(a){this.s("checked",a)};Ho.prototype.setChecked=Ho.prototype.e; Ho.prototype.g=function(){var a=this.a;"checkbox"===a.type||"radio"===a.type?this.e(a.checked):this.f(a.value)};Ho.prototype.i=function(){this.a.checked=this.b()};Ho.prototype.k=function(){this.a.value=this.d()};function Io(){};var Jo;a:if(document.implementation&&document.implementation.createDocument)Jo=document.implementation.createDocument("","",null);else{if("undefined"!=typeof ActiveXObject){var Ko=new ActiveXObject("MSXML2.DOMDocument");if(Ko){Ko.resolveExternals=!1;Ko.validateOnParse=!1;try{Ko.setProperty("ProhibitDTD",!0),Ko.setProperty("MaxXMLSize",2048),Ko.setProperty("MaxElementDepth",256)}catch(Lo){}}if(Ko){Jo=Ko;break a}}throw Error("Your browser does not support creating new documents");}var Mo=Jo; function No(a,b){return Mo.createElementNS(a,b)}function Oo(a,b){null===a&&(a="");return Mo.createNode(1,b,a)}var Po=document.implementation&&document.implementation.createDocument?No:Oo;function Qo(a){return Ro(a,!1,[]).join("")}function Ro(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)Ro(a,b,c);return c}function So(a){return a.localName} function To(a){var b=a.localName;return s(b)?b:a.baseName}var Uo=ab?To:So;function Vo(a){return a instanceof Document}function Wo(a){return ra(a)&&9==a.nodeType}var Xo=ab?Wo:Vo;function Yo(a){return a instanceof Node}function Zo(a){return ra(a)&&s(a.nodeType)}var $o=ab?Zo:Yo;function ap(a,b,c){return a.getAttributeNS(b,c)||""}function bp(a,b,c){var d="";a=cp(a,b,c);s(a)&&(d=a.nodeValue);return d}var dp=document.implementation&&document.implementation.createDocument?ap:bp; function ep(a,b,c){return a.getAttributeNodeNS(b,c)}function fp(a,b,c){var d=null;a=a.attributes;for(var e,f,g=0,h=a.length;g=b.od&&b.cancel())}this.f?this.f.call(this.e,this):this.Rd=!0;this.jb||(a=new yt(this),zt(this),At(this,!1,a))}};l.ae=function(a,b){this.md=!1;At(this,a,b)};function At(a,b,c){a.jb=!0;a.b=c;a.sc=!b;Bt(a)} function zt(a){if(a.jb){if(!a.Rd)throw new Ct(a);a.Rd=!1}}function Dt(a){return yb(a.a,function(a){return qa(a[1])})} function Bt(a){a.d&&(a.jb&&Dt(a))&&(ea.clearTimeout(a.d),delete a.d);a.c&&(a.c.od--,delete a.c);for(var b=a.b,c=!1,d=!1;a.a.length&&!a.md;){var e=a.a.shift(),f=e[0],g=e[1],e=e[2];if(f=a.sc?g:f)try{var h=f.call(e||a.e,b);s(h)&&(a.sc=a.sc&&(h==b||h instanceof Error),a.b=b=h);b instanceof xt&&(d=!0,a.md=!0)}catch(m){b=m,a.sc=!0,Dt(a)||(c=!0)}}a.b=b;d&&(d=b,h=xa(a.ae,a,!0),f=xa(a.ae,a,!1),d.a.push([h,f,void 0]),d.jb&&Bt(d),b.of=!0);c&&(a.d=ea.setTimeout(Ce(b),0))} function Ct(a){tb.call(this);this.a=a}v(Ct,tb);Ct.prototype.message="Deferred has already fired";Ct.prototype.name="AlreadyCalledError";function yt(a){tb.call(this);this.a=a}v(yt,tb);yt.prototype.message="Deferred was canceled";yt.prototype.name="CanceledError";function Et(a,b){tb.call(this,Ba("Error %s: %s",b,Ft(a)));this.code=a}v(Et,tb); function Ft(a){switch(a){case 1:return"File or directory not found";case 2:return"Insecure or disallowed operation";case 3:return"Operation aborted";case 4:return"File or directory not readable";case 5:return"Invalid encoding";case 6:return"Cannot modify file or directory";case 7:return"Invalid state";case 8:return"Invalid line-ending specifier";case 9:return"Invalid modification";case 10:return"Quota exceeded";case 11:return"Invalid filetype";case 12:return"File or directory already exists at specified path"; default:return"Unrecognized error"}};function Gt(a,b){Qd.call(this,a.type,b);this.a=a}v(Gt,Qd);function Ht(){He.call(this);this.Ha=new FileReader;this.Ha.onloadstart=xa(this.a,this);this.Ha.onprogress=xa(this.a,this);this.Ha.onload=xa(this.a,this);this.Ha.onabort=xa(this.a,this);this.Ha.onerror=xa(this.a,this);this.Ha.onloadend=xa(this.a,this)}v(Ht,He);Ht.prototype.getError=function(){return this.Ha.error&&new Et(this.Ha.error.code,"reading file")};Ht.prototype.a=function(a){A(this,new Gt(a,this))};Ht.prototype.H=function(){Ht.K.H.call(this);delete this.Ha}; function It(a){var b=new xt;a.addEventListener("loadend",za(function(a,b){var e=b.Ha.result,f=b.getError();null==e||f?(zt(a),At(a,!1,f)):(zt(a),At(a,!0,e));b.gc()},b,a));return b};function Jt(a){a=s(a)?a:{};Dh.call(this);this.d=s(a.formatConstructors)?a.formatConstructors:[];this.e=s(a.reprojectTo)?qh(a.reprojectTo):null;this.b=null;this.a=void 0}v(Jt,Dh);l=Jt.prototype;l.H=function(){s(this.a)&&re(this.a);Jt.K.H.call(this)};l.Wf=function(a){a=a.P.dataTransfer.files;var b,c,d;b=0;for(c=a.length;bc?g[1]:g[0]);Rt(a,h);c={};c[sa(g)]=!0;b=1;for(m=f.length;bc)&&(a.index+=e)})}function Pt(){var a=Qi();return function(){return a.Point}};function Tt(a){Dh.call(this);a=s(a)?a:{};this.e=s(a.condition)?a.condition:bg;this.d=s(a.addCondition)?a.addCondition:ze;this.f=s(a.removeCondition)?a.removeCondition:ze;this.g=s(a.toggleCondition)?a.toggleCondition:dg;var b;if(s(a.layers))if(qa(a.layers))b=a.layers;else{var c=a.layers;b=function(a){return 0<=vb(c,a)}}else b=Ae;this.b=b;this.a=new Ri({style:s(a.style)?a.style:Ut()});a=this.a.a;x(a,"add",this.ih,!1,this);x(a,"remove",this.ji,!1,this)}v(Tt,Dh);l=Tt.prototype;l.jh=function(){return this.a.a}; l.Fa=function(a){if(!this.e(a))return!0;var b=this.d(a),c=this.f(a),d=this.g(a),e=a.map,f=this.a.a;b||c||d?e.Dd(a.pixel,function(a){var e=vb(f.a,a);-1==e?(b||d)&&f.push(a):(c||d)&&f.cd(e)},void 0,this.b):(a=e.Dd(a.pixel,aa(),void 0,this.b),s(a)&&1==f.Cb()&&f.item(0)==a||(0!==f.Cb()&&f.clear(),s(a)&&f.push(a)));return!1};l.setMap=function(a){var b=this.i,c=this.a.a;null===b||c.forEach(b.$b,b);Tt.K.setMap.call(this,a);this.a.setMap(a);null===a||c.forEach(a.hb,a)}; function Ut(){var a=Qi();Eb(a.Polygon,a.LineString);Eb(a.GeometryCollection,a.LineString);return function(b){return a[b.Q().I()]}}l.ih=function(a){a=a.element;var b=this.i;null===b||b.hb(a)};l.ji=function(a){a=a.element;var b=this.i;null===b||b.$b(a)};function $(a){a=s(a)?a:{};Q.call(this,a);this.ga=null;x(this,Qe("gradient"),this.hd,!1,this);this.Dc(s(a.gradient)?a.gradient:Vt);var b=Wt(s(a.radius)?a.radius:8,s(a.blur)?a.blur:15,s(a.shadow)?a.shadow:250),c=Array(256),d=s(a.weight)?a.weight:"weight",e;e=na(d)?function(a){return a.get(d)}:d;this.ia(function(a){a=e(a);a=s(a)?Xb(a,0,1):1;var d=255*a|0,h=c[d];s(h)||(h=[new Mi({image:new tk({opacity:a,src:b})})],c[d]=h);return h});this.s("renderOrder",null);x(this,"render",this.jd,!1,this)}v($,Q); var Vt=["#00f","#0ff","#0f0","#ff0","#f00"];function Wt(a,b,c){var d=a+b+1,e=2*d,e=td(e,e);e.shadowOffsetX=e.shadowOffsetY=c;e.shadowBlur=b;e.shadowColor="#000";e.beginPath();b=d-c;e.arc(b,b,a,0,2*Math.PI,!0);e.fill();return e.canvas.toDataURL()}$.prototype.Ka=function(){return this.get("gradient")};$.prototype.getGradient=$.prototype.Ka; $.prototype.hd=function(){for(var a=this.Ka(),b=td(1,256),c=b.createLinearGradient(0,0,1,256),d=1/(a.length-1),e=0,f=a.length;ea.d&&!(c=a.a.Jb,d=c.a.a.toString(),d in b&&b[d].contains(c.a));)a.pop()};function Au(a){hk.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,opaque:a.opaque,pixelRatio:a.pixelRatio,projection:a.projection,tileGrid:a.tileGrid});this.tileUrlFunction=s(a.tileUrlFunction)?a.tileUrlFunction:vu;this.crossOrigin=s(a.crossOrigin)?a.crossOrigin:null;this.b=new yu;this.tileLoadFunction=s(a.tileLoadFunction)?a.tileLoadFunction:Bu;this.tileClass=s(a.tileClass)?a.tileClass:co}v(Au,hk);function Bu(a,b){a.b().src=b}l=Au.prototype;l.Fd=function(){return this.b.La()>this.b.d}; l.Ee=function(a){zu(this.b,a)};l.Pb=function(a,b,c,d,e){var f=this.lb(a,b,c);if(Gn(this.b,f))return this.b.get(f);a=new Lb(a,b,c);d=this.tileUrlFunction(a,d,e);d=new this.tileClass(a,s(d)?0:4,s(d)?d:"",this.crossOrigin,this.tileLoadFunction);Jn(this.b,f,d);return d};l.Ma=k("tileLoadFunction");l.Na=k("tileUrlFunction");l.Sa=function(a){this.b.clear();this.tileLoadFunction=a;this.l()};l.Ga=function(a){this.b.clear();this.tileUrlFunction=a;this.l()}; l.Xe=function(a,b,c){a=this.lb(a,b,c);Gn(this.b,a)&&this.b.get(a)};function Cu(a){var b=Array(a.maxZoom+1),c,d=2*fl/256;for(c=0;c<=a.maxZoom;++c)b[c]=d/Math.pow(2,c);ak.call(this,{minZoom:a.minZoom,origin:[-fl,fl],resolutions:b,tileSize:256})}v(Cu,ak); Cu.prototype.c=function(a){a=s(a)?a:{};var b=this.minZoom,c=this.maxZoom,d=s(a.wrapX)?a.wrapX:!0,e=new Lb(0,0,0),f=null;if(s(a.extent)){var f=Array(c+1),g;for(g=0;g<=c;++g)f[g]=gq||p<=q)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 Du(a){Au.call(this,{crossOrigin:"anonymous",opaque:!0,projection:qh("EPSG:3857"),state:0,tileLoadFunction:a.tileLoadFunction});this.d=s(a.culture)?a.culture:"en-us";var b=new ej((rb?"https:":"http:")+"//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.imagerySet);ou(new mu(b,"jsonp"),{include:"ImageryProviders",key:a.key},xa(this.e,this))}v(Du,Au);var Eu=new Rb({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'}); Du.prototype.e=function(a){if(200!=a.statusCode||"OK"!=a.statusDescription||"ValidCredentials"!=a.authenticationResultCode||1!=a.resourceSets.length||1!=a.resourceSets[0].resources.length)Uj(this,2);else{var b=a.brandLogoUri,c=a.resourceSets[0].resources[0],d=new Cu({minZoom:c.zoomMin,maxZoom:c.zoomMax,tileSize:c.imageWidth});this.tileGrid=d;var e=this.d;this.tileUrlFunction=wu(d.c(),uu(xb(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}",Ob(a))}})));if(c.imageryProviders){var f=$g(qh("EPSG:4326"),this.o);a=xb(c.imageryProviders,function(a){var b=a.attribution,c={};wb(a.coverageAreas,function(a){var b=a.zoomMin,e=a.zoomMax;a=a.bbox;a=Rg([a[1],a[0],a[3],a[2]],f);var g,h;for(g=b;g<=e;++g)h=g.toString(),b=dk(d,a,g),h in c?c[h].push(b):c[h]=[b]});return new Rb({html:b,tileRanges:c})});a.push(Eu);this.i=a}this.t=b;Uj(this,1)}};function Fu(a,b,c){if(qa(a))c&&(a=xa(a,c));else if(a&&"function"==typeof a.handleEvent)a=xa(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647h*g?f*e/(h*n):g*e/(m*n);c=Gg(c);d={OPERATION:this.D?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol.source.MapGuide source",CLIP:"1",SETDISPLAYDPI:this.b,SETDISPLAYWIDTH:Math.round(d[0]),SETDISPLAYHEIGHT:Math.round(d[1]),SETVIEWSCALE:e,SETVIEWCENTERX:c[0],SETVIEWCENTERY:c[1]};nc(d,b);return bj(dj([a],d))};function rv(a){var b=s(a.projection)?a.projection:"EPSG:3857",c=new Cu({maxZoom:s(a.maxZoom)?a.maxZoom:18});Au.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,logo:a.logo,projection:b,tileGrid:c,tileLoadFunction:a.tileLoadFunction,tileUrlFunction:vu});this.e=c.c({extent:a.extent,wrapX:a.wrapX});s(a.tileUrlFunction)?this.Ga(a.tileUrlFunction):s(a.urls)?this.Ga(tu(a.urls)):s(a.url)&&this.d(a.url)}v(rv,Au);rv.prototype.Ga=function(a){rv.K.Ga.call(this,wu(this.e,a))}; rv.prototype.d=function(a){this.Ga(tu(xu(a)))};function sv(a){a=s(a)?a:{};var b=rb?"https:":"http:";rv.call(this,{attributions:s(a.attributions)?a.attributions:tv,crossOrigin:s(a.crossOrigin)?a.crossOrigin:"anonymous",opaque:!0,maxZoom:a.maxZoom,tileLoadFunction:a.tileLoadFunction,url:s(a.url)?a.url:b+"//{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}v(sv,rv); var uv=new Rb({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'}),vv=new Rb({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'}),tv=[vv,uv];function wv(a){a=s(a)?a:{};var b=xv[a.layer];rv.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:(rb?"https:":"http:")+"//otile{1-4}-s.mqcdn.com/tiles/1.0.0/"+a.layer+"/{z}/{x}/{y}.jpg"})}v(wv,rv); var yv=new Rb({html:'Tiles Courtesy of \x3ca href\x3d"http://www.mapquest.com/" target\x3d"_blank"\x3eMapQuest\x3c/a\x3e'}),xv={osm:{maxZoom:28,attributions:[yv,uv]},sat:{maxZoom:18,attributions:[yv,new Rb({html:"Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency"})]},hyb:{maxZoom:18,attributions:[yv,uv]}};function zv(a){a=s(a)?a:{};cv.call(this,{attributions:a.attributions,doc:a.doc,extent:a.extent,format:new xs,logo:a.logo,node:a.node,projection:a.projection,reprojectTo:a.reprojectTo,text:a.text,url:a.url})}v(zv,cv);function Av(a){av.call(this,{attributions:a.attributions,extent:a.extent,format:a.format,logo:a.logo,projection:a.projection});this.q=new Bm;this.r=a.loader;this.D=s(a.strategy)?a.strategy:Xt;this.n={}}v(Av,av);Av.prototype.wa=function(a){var b=[],c,d;c=0;for(d=a.length;cthis.b.d};Gv.prototype.Ee=function(a){zu(this.b,a)};Gv.prototype.Pb=function(a,b,c){var d=this.lb(a,b,c);if(Gn(this.b,d))return this.b.get(d);a=new Fv(new Lb(a,b,c),this.tileGrid);Jn(this.b,d,a);return a};function Hv(a){Au.call(this,{crossOrigin:a.crossOrigin,projection:qh("EPSG:3857"),state:0,tileLoadFunction:a.tileLoadFunction});ou(new mu(a.url),void 0,xa(this.d,this))}v(Hv,Au); Hv.prototype.d=function(a){var b=qh("EPSG:4326"),c;if(s(a.bounds)){var d=$g(b,this.o);this.N=c=Rg(a.bounds,d)}var e=a.minzoom||0,d=a.maxzoom||22,f=new Cu({maxZoom:d,minZoom:e});this.tileGrid=f;this.tileUrlFunction=wu(f.c({extent:c}),tu(a.tiles));if(s(a.attribution)){b=s(c)?c:b.C();c={};for(var g;e<=d;++e)g=e.toString(),c[g]=[dk(f,b,e)];this.i=[new Rb({html:a.attribution,tileRanges:c})]}Uj(this,1)};function Iv(a){av.call(this,{attributions:a.attributions,extent:a.extent,format:a.format,logo:a.logo,projection:a.projection});var b=a.tileGrid;this.r=a.tileGrid;this.n=vu;this.D=b.c({extent:a.extent});this.q={};s(a.tileUrlFunction)?(this.n=a.tileUrlFunction,this.l()):s(a.urls)?(this.n=tu(a.urls),this.l()):s(a.url)&&(this.n=tu(xu(a.url)),this.l())}v(Iv,av);Iv.prototype.clear=function(){ic(this.q)}; Iv.prototype.Lc=function(a,b,c,d){var e=this.r,f=this.q;b=jg(e.a,b,0);a=dk(e,a,b);for(var g,e=a.a;e<=a.d;++e)for(g=a.b;g<=a.c;++g){var h=f[b+"/"+e+"/"+g];if(s(h)){var m,n;m=0;for(n=h.length;mp||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={};wb(c.dimensions,function(a){var b=a.identifier,c=a["default"];s(c)||(c=a.values[0]);g[b]=c});var h=a.contents.tileMatrixSets[d],m=Pv(h),h=qh(h.supportedCRS),n=a.operationsMetadata.GetTile.dcp.http.get,p,q;switch(gc(n[0].constraints.GetEncoding.allowedValues)[0]){case "REST":case "RESTful":q= "REST";p=c.resourceUrls.tile[e];break;case "KVP":q=Qv,p=[],wb(n,function(a){a.constraints.GetEncoding.allowedValues.hasOwnProperty(Qv)&&p.push(a.url)})}return{urls:p,layer:b,matrixSet:d,format:e,projection:h,requestEncoding:q,tileGrid:m,style:f,dimensions:g}});t("ol.source.XYZ",rv);rv.prototype.dispatchChangeEvent=rv.prototype.l;rv.prototype.getState=rv.prototype.a;rv.prototype.getTileGrid=rv.prototype.Ca;rv.prototype.getTileLoadFunction=rv.prototype.Ma;rv.prototype.getTileUrlFunction=rv.prototype.Na; rv.prototype.on=rv.prototype.u;rv.prototype.once=rv.prototype.v;rv.prototype.setTileLoadFunction=rv.prototype.Sa;rv.prototype.setUrl=rv.prototype.d;rv.prototype.setUrl=rv.prototype.d;rv.prototype.un=rv.prototype.A;rv.prototype.unByKey=rv.prototype.B;t("ol.source.Zoomify",Uv);Uv.prototype.dispatchChangeEvent=Uv.prototype.l;Uv.prototype.getState=Uv.prototype.a;Uv.prototype.getTileGrid=Uv.prototype.Ca;Uv.prototype.getTileLoadFunction=Uv.prototype.Ma;Uv.prototype.getTileUrlFunction=Uv.prototype.Na; Uv.prototype.on=Uv.prototype.u;Uv.prototype.once=Uv.prototype.v;Uv.prototype.setTileLoadFunction=Uv.prototype.Sa;Uv.prototype.setTileUrlFunction=Uv.prototype.Ga;Uv.prototype.un=Uv.prototype.A;Uv.prototype.unByKey=Uv.prototype.B;t("ol.sphere.WGS84",bo);t("ol.style.Circle",Li);Li.prototype.getAnchor=Li.prototype.oc;Li.prototype.getFill=Li.prototype.zh;Li.prototype.getImage=Li.prototype.uc;Li.prototype.getOrigin=Li.prototype.vc;Li.prototype.getRadius=Li.prototype.Ah;Li.prototype.getRotation=Li.prototype.k; Li.prototype.getScale=Li.prototype.n;Li.prototype.getSize=Li.prototype.Db;Li.prototype.getStroke=Li.prototype.Bh;t("ol.style.Fill",Ii);Ii.prototype.getColor=Ii.prototype.c;t("ol.style.Icon",tk);tk.prototype.getAnchor=tk.prototype.oc;tk.prototype.getImage=tk.prototype.uc;tk.prototype.getOrigin=tk.prototype.vc;tk.prototype.getRotation=tk.prototype.k;tk.prototype.getScale=tk.prototype.n;tk.prototype.getSize=tk.prototype.Db;tk.prototype.getSrc=tk.prototype.Ch;Ji.prototype.getRotation=Ji.prototype.k; Ji.prototype.getScale=Ji.prototype.n;t("ol.style.Stroke",Ki);Ki.prototype.getColor=Ki.prototype.Dh;Ki.prototype.getLineCap=Ki.prototype.Ff;Ki.prototype.getLineDash=Ki.prototype.Eh;Ki.prototype.getLineJoin=Ki.prototype.Gf;Ki.prototype.getMiterLimit=Ki.prototype.Jf;Ki.prototype.getWidth=Ki.prototype.Fh;t("ol.style.Style",Mi);Mi.prototype.getFill=Mi.prototype.Gh;Mi.prototype.getImage=Mi.prototype.Hh;Mi.prototype.getStroke=Mi.prototype.Ih;Mi.prototype.getText=Mi.prototype.Jh;Mi.prototype.getZIndex=Mi.prototype.Sf; t("ol.style.Text",Wv);Wv.prototype.getFill=Wv.prototype.Kh;Wv.prototype.getFont=Wv.prototype.yf;Wv.prototype.getRotation=Wv.prototype.Lh;Wv.prototype.getScale=Wv.prototype.Mh;Wv.prototype.getStroke=Wv.prototype.Nh;Wv.prototype.getText=Wv.prototype.Oh;Wv.prototype.getTextAlign=Wv.prototype.Nf;Wv.prototype.getTextBaseline=Wv.prototype.Of;t("ol.tilegrid.TileGrid",ak);ak.prototype.getMinZoom=ak.prototype.Pc;ak.prototype.getOrigin=ak.prototype.pb;ak.prototype.getResolution=ak.prototype.ha; ak.prototype.getTileSize=ak.prototype.ka;t("ol.tilegrid.WMTS",Ov);Ov.prototype.getMatrixIds=Ov.prototype.g;Ov.prototype.getMinZoom=Ov.prototype.Pc;Ov.prototype.getOrigin=Ov.prototype.pb;Ov.prototype.getResolution=Ov.prototype.ha;Ov.prototype.getTileSize=Ov.prototype.ka;t("ol.tilegrid.XYZ",Cu);Cu.prototype.getMinZoom=Cu.prototype.Pc;Cu.prototype.getOrigin=Cu.prototype.pb;Cu.prototype.getResolution=Cu.prototype.ha;Cu.prototype.getTileSize=Cu.prototype.ka;t("ol.tilegrid.Zoomify",Tv); Tv.prototype.getMinZoom=Tv.prototype.Pc;Tv.prototype.getOrigin=Tv.prototype.pb;Tv.prototype.getResolution=Tv.prototype.ha;Tv.prototype.getTileSize=Tv.prototype.ka;t("ol.webgl.Context",Kn);Kn.prototype.getGL=Kn.prototype.Ph;Kn.prototype.useProgram=Kn.prototype.Kd;})();