From 9f1c3a98d26fe40939aaf68d4755461d6fddab8e Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Mon, 8 Feb 2016 14:33:50 +0000 Subject: [PATCH] OpenStreetMap --- .../controllers/IdentiteController.php | 12 +- .../default/scripts/identite/carte.phtml | 110 +- public/libs/openstreetmap/ol.css | 2 +- public/libs/openstreetmap/ol.js | 1899 +++++++++-------- 4 files changed, 1081 insertions(+), 942 deletions(-) diff --git a/application/modules/default/controllers/IdentiteController.php b/application/modules/default/controllers/IdentiteController.php index d3d9dfea2..7c6f9e974 100644 --- a/application/modules/default/controllers/IdentiteController.php +++ b/application/modules/default/controllers/IdentiteController.php @@ -429,7 +429,7 @@ class IdentiteController extends Zend_Controller_Action $this->view->AuthorizeGeocode = $userAccessEdition; // --- Gestion source - $mapSource = 'google'; + $mapSource = 'openstreetmap'; if ($mapSource == 'google') { $this->view->headScript()->appendFile('http://maps.google.com/maps/api/js?sensor=false', 'text/javascript'); } @@ -497,20 +497,20 @@ class IdentiteController extends Zend_Controller_Action $iconeMarqueur = $this->iconeDuMarqueur($etab->NafEtab, $etab->Siege, $etab->Actif); - $icone = ''; + $icone = 'etab1.png'; if ( !empty($iconeMarqueur) ) { - $icone = 'http://'.$_SERVER['SERVER_NAME'].'/themes/default/images/maps/'.$iconeMarqueur; + $icone = $iconeMarqueur; } $gps = array(); if ( floatval($etab->GeoLatitude) != 0 && floatval($etab->GeoLongitude) != 0 ) { $gps = array( - 'lat' => $etab->GeoLatitude, - 'lon' => $etab->GeoLongitude, + 'lat' => $etab->GeoLatitude*1, + 'lon' => $etab->GeoLongitude*1, ); } $marks[] = array( - 'siret' => $siren.$etab->Nic, + 'siret' => $siren.' '.$etab->Nic, 'address' => $adresse, 'title' => $titre, 'text' => $texte, diff --git a/application/modules/default/views/default/scripts/identite/carte.phtml b/application/modules/default/views/default/scripts/identite/carte.phtml index a1e573b07..77a4220ef 100644 --- a/application/modules/default/views/default/scripts/identite/carte.phtml +++ b/application/modules/default/views/default/scripts/identite/carte.phtml @@ -1,4 +1,4 @@ -
Préparation de la carte ...
+
source == 'google') {?> \ No newline at end of file diff --git a/public/libs/openstreetmap/ol.css b/public/libs/openstreetmap/ol.css index 1f80aeb96..ea50e7ebe 100644 --- a/public/libs/openstreetmap/ol.css +++ b/public/libs/openstreetmap/ol.css @@ -1 +1 @@ -.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:#95b9e6;background:rgba(0,60,136,.3);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid #eee;border-top:none;color:#eee;font-size:10px;text-align:center;margin:1px;will-change:contents,width}.ol-overlay-container{will-change:left,right,top,bottom}.ol-unsupported{display:none}.ol-viewport .ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-control{position:absolute;background-color:#eee;background-color:rgba(255,255,255,.4);border-radius:4px;padding:2px}.ol-control:hover{background-color:rgba(255,255,255,.6)}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}@media print{.ol-control{display:none}}.ol-control button{display:block;margin:1px;padding:0;color:#fff;font-size:1.14em;font-weight:700;text-decoration:none;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:#7b98bc;background-color:rgba(0,60,136,.5);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;font-size:1.2em;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:focus,.ol-control button:hover{text-decoration:none;background-color:#4c6079;background-color:rgba(0,60,136,.7)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em)}.ol-attribution ul{margin:0;padding:0 .5em;font-size:.7rem;line-height:1.375em;color:#000;text-shadow:0 0 2px #fff}.ol-attribution li{display:inline;list-style:none;line-height:inherit}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit}.ol-attribution button,.ol-attribution ul{display:inline-block}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution.ol-logo-only ul{display:block}.ol-attribution:not(.ol-collapsed){background:rgba(255,255,255,.8)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0;height:1.1em;line-height:1em}.ol-attribution.ol-logo-only{background:0 0;bottom:.4em;height:1.1em;line-height:1em}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-logo-only button,.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;width:24px;height:200px}.ol-zoomslider-thumb{position:absolute;background:#7b98bc;background:rgba(0,60,136,.5);border-radius:2px;cursor:pointer;height:10px;width:22px;margin:3px}.ol-touch .ol-zoomslider{top:5.5em;width:2.052em}.ol-touch .ol-zoomslider-thumb{width:1.8em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:inline-block}.ol-overviewmap .ol-overviewmap-map{border:1px solid #7b98bc;height:150px;margin:2px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:1px;left:2px;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:rgba(255,255,255,.8)}.ol-overviewmap-box{border:2px dotted rgba(0,60,136,.7)} \ No newline at end of file +.ol-control,.ol-scale-line{position:absolute;padding:2px}.ol-box{box-sizing:border-box;border-radius:2px;border:2px solid #00f}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:rgba(0,60,136,.3);border-radius:4px;bottom:8px;left:8px}.ol-scale-line-inner{border:1px solid #eee;border-top:none;color:#eee;font-size:10px;text-align:center;margin:1px;will-change:contents,width}.ol-overlay-container{will-change:left,right,top,bottom}.ol-unsupported{display:none}.ol-viewport .ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-control{background-color:rgba(255,255,255,.4);border-radius:4px}.ol-control:hover{background-color:rgba(255,255,255,.6)}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}@media print{.ol-control{display:none}}.ol-control button{display:block;margin:1px;padding:0;color:#fff;font-size:1.14em;font-weight:700;text-decoration:none;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:rgba(0,60,136,.5);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;font-size:1.2em;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:focus,.ol-control button:hover{text-decoration:none;background-color:rgba(0,60,136,.7)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em)}.ol-attribution ul{margin:0;padding:0 .5em;font-size:.7rem;line-height:1.375em;color:#000;text-shadow:0 0 2px #fff}.ol-attribution li{display:inline;list-style:none;line-height:inherit}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button,.ol-attribution ul{display:inline-block}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution.ol-logo-only ul{display:block}.ol-attribution:not(.ol-collapsed){background:rgba(255,255,255,.8)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0;height:1.1em;line-height:1em}.ol-attribution.ol-logo-only{background:0 0;bottom:.4em;height:1.1em;line-height:1em}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-logo-only button,.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:inline-block}.ol-overviewmap .ol-overviewmap-map{border:1px solid #7b98bc;height:150px;margin:2px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:1px;left:2px;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:rgba(255,255,255,.8)}.ol-overviewmap-box{border:2px dotted rgba(0,60,136,.7)} \ No newline at end of file diff --git a/public/libs/openstreetmap/ol.js b/public/libs/openstreetmap/ol.js index d55fe09e5..1c148f363 100644 --- a/public/libs/openstreetmap/ol.js +++ b/public/libs/openstreetmap/ol.js @@ -1,6 +1,6 @@ // OpenLayers 3. See http://openlayers.org/ // License: https://raw.githubusercontent.com/openlayers/ol3/master/LICENSE.md -// Version: v3.7.0 +// Version: v3.13.1 (function (root, factory) { if (typeof exports === "object") { @@ -12,194 +12,205 @@ } }(this, function () { var OPENLAYERS = {}; - var k,aa=aa||{},ba=this;function m(b){return void 0!==b}function u(b,c,d){b=b.split(".");d=d||ba;b[0]in d||!d.execScript||d.execScript("var "+b[0]);for(var e;b.length&&(e=b.shift());)!b.length&&m(c)?d[e]=c:d[e]?d=d[e]:d=d[e]={}}function ca(){}function da(b){b.Ia=function(){return b.mg?b.mg:b.mg=new b}} -function ea(b){var c=typeof b;if("object"==c)if(b){if(b instanceof Array)return"array";if(b instanceof Object)return c;var d=Object.prototype.toString.call(b);if("[object Window]"==d)return"object";if("[object Array]"==d||"number"==typeof b.length&&"undefined"!=typeof b.splice&&"undefined"!=typeof b.propertyIsEnumerable&&!b.propertyIsEnumerable("splice"))return"array";if("[object Function]"==d||"undefined"!=typeof b.call&&"undefined"!=typeof b.propertyIsEnumerable&&!b.propertyIsEnumerable("call"))return"function"}else return"null"; -else if("function"==c&&"undefined"==typeof b.call)return"object";return c}function fa(b){return null===b}function ga(b){return"array"==ea(b)}function ha(b){var c=ea(b);return"array"==c||"object"==c&&"number"==typeof b.length}function ia(b){return"string"==typeof b}function ja(b){return"number"==typeof b}function ka(b){return"function"==ea(b)}function la(b){var c=typeof b;return"object"==c&&null!=b||"function"==c}function ma(b){return b[na]||(b[na]=++oa)} -var na="closure_uid_"+(1E9*Math.random()>>>0),oa=0;function pa(b,c,d){return b.call.apply(b.bind,arguments)}function qa(b,c,d){if(!b)throw Error();if(2")&&(b=b.replace(Ia,">"));-1!=b.indexOf('"')&&(b=b.replace(Ja,"""));-1!=b.indexOf("'")&&(b=b.replace(Ka,"'"));-1!=b.indexOf("\x00")&&(b=b.replace(La,"�"));return b}var Fa=/&/g,Ga=//g,Ja=/"/g,Ka=/'/g,La=/\x00/g,Ea=/[\x00&<>"']/; -function Ma(b){b=m(void 0)?b.toFixed(void 0):String(b);var c=b.indexOf(".");-1==c&&(c=b.length);c=Math.max(0,2-c);return Array(c+1).join("0")+b} -function Oa(b,c){for(var d=0,e=Ca(String(b)).split("."),f=Ca(String(c)).split("."),g=Math.max(e.length,f.length),h=0;0==d&&hc?1:0};var Qa=Array.prototype;function Ra(b,c){return Qa.indexOf.call(b,c,void 0)}function Sa(b,c,d){Qa.forEach.call(b,c,d)}function Ta(b,c){return Qa.filter.call(b,c,void 0)}function Ua(b,c,d){return Qa.map.call(b,c,d)}function Va(b,c){return Qa.some.call(b,c,void 0)}function Wa(b,c){var d=Xa(b,c,void 0);return 0>d?null:ia(b)?b.charAt(d):b[d]}function Xa(b,c,d){for(var e=b.length,f=ia(b)?b.split(""):b,g=0;g=arguments.length?Qa.slice.call(b,c):Qa.slice.call(b,c,d)}function gb(b,c){b.sort(c||hb)}function ib(b,c){if(!ha(b)||!ha(c)||b.length!=c.length)return!1;for(var d=b.length,e=jb,f=0;fc?1:bparseFloat(b))?String(c):b}(),Qb={};function Rb(b){return Qb[b]||(Qb[b]=0<=Oa(Pb,b))}var Sb=ba.document,Tb=Sb&&Ib?Ob()||("CSS1Compat"==Sb.compatMode?parseInt(Pb,10):5):void 0;var Ub=Ib&&!Rb("9.0")&&""!==Pb;function Vb(b,c,d){return Math.min(Math.max(b,c),d)}function Wb(b,c){var d=b%c;return 0>d*c?d+c:d}function Xb(b,c,d){return b+d*(c-b)}function Yb(b){return b*Math.PI/180};function Zb(b){return function(c){if(m(c))return[Vb(c[0],b[0],b[2]),Vb(c[1],b[1],b[3])]}}function $b(b){return b};function ac(b,c,d){var e=b.length;if(b[0]<=c)return 0;if(!(c<=b[e-1]))if(0d)for(d=1;dg?1:.5,e=Math.floor(Math.log(c/e)/Math.log(b)+g),f=Math.max(e+f,0),m(d)&&(f=Math.min(f,d)),c/Math.pow(b,f)}};function dc(b){if(m(b))return 0}function ec(b,c){if(m(b))return b+c}function fc(b){var c=2*Math.PI/b;return function(b,e){if(m(b))return b=Math.floor((b+e)/c+.5)*c}}function gc(){var b=Yb(5);return function(c,d){if(m(c))return Math.abs(c+d)<=b?0:c+d}};function hc(b,c,d){this.center=b;this.resolution=c;this.rotation=d};var ic=!Ib||Ib&&9<=Tb,kc=!Ib||Ib&&9<=Tb,lc=Ib&&!Rb("9");!Kb||Rb("528");Jb&&Rb("1.9b")||Ib&&Rb("8")||Hb&&Rb("9.5")||Kb&&Rb("528");Jb&&!Rb("8")||Ib&&Rb("9");function mc(){0!=nc&&(oc[ma(this)]=this);this.Y=this.Y;this.W=this.W}var nc=0,oc={};mc.prototype.Y=!1;mc.prototype.Yc=function(){if(!this.Y&&(this.Y=!0,this.N(),0!=nc)){var b=ma(this);delete oc[b]}};function pc(b,c){var d=ta(qc,c);b.Y?d.call(void 0):(b.W||(b.W=[]),b.W.push(m(void 0)?ra(d,void 0):d))}mc.prototype.N=function(){if(this.W)for(;this.W.length;)this.W.shift()()};function qc(b){b&&"function"==typeof b.Yc&&b.Yc()};function rc(b,c){this.type=b;this.c=this.target=c;this.f=!1;this.mh=!0}rc.prototype.gb=function(){this.f=!0};rc.prototype.preventDefault=function(){this.mh=!1};function sc(b){b.gb()}function tc(b){b.preventDefault()};var uc=Ib?"focusout":"DOMFocusOut";function vc(b){vc[" "](b);return b}vc[" "]=ca;function wc(b,c){rc.call(this,b?b.type:"");this.relatedTarget=this.c=this.target=null;this.p=this.e=this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.n=this.d=this.b=this.i=!1;this.state=null;this.g=!1;this.a=null;b&&xc(this,b,c)}w(wc,rc);var yc=[1,4,2]; -function xc(b,c,d){b.a=c;var e=b.type=c.type;b.target=c.target||c.srcElement;b.c=d;if(d=c.relatedTarget){if(Jb){var f;a:{try{vc(d.nodeName);f=!0;break a}catch(g){}f=!1}f||(d=null)}}else"mouseover"==e?d=c.fromElement:"mouseout"==e&&(d=c.toElement);b.relatedTarget=d;Object.defineProperties?Object.defineProperties(b,{offsetX:{configurable:!0,enumerable:!0,get:b.ag,set:b.Rn},offsetY:{configurable:!0,enumerable:!0,get:b.bg,set:b.Sn}}):(b.offsetX=b.ag(),b.offsetY=b.bg());b.clientX=void 0!==c.clientX?c.clientX: -c.pageX;b.clientY=void 0!==c.clientY?c.clientY:c.pageY;b.screenX=c.screenX||0;b.screenY=c.screenY||0;b.button=c.button;b.e=c.keyCode||0;b.p=c.charCode||("keypress"==e?c.keyCode:0);b.i=c.ctrlKey;b.b=c.altKey;b.d=c.shiftKey;b.n=c.metaKey;b.g=Lb?c.metaKey:c.ctrlKey;b.state=c.state;c.defaultPrevented&&b.preventDefault()}function zc(b){return(ic?0==b.a.button:"click"==b.type?!0:!!(b.a.button&yc[0]))&&!(Kb&&Lb&&b.i)}k=wc.prototype; -k.gb=function(){wc.S.gb.call(this);this.a.stopPropagation?this.a.stopPropagation():this.a.cancelBubble=!0};k.preventDefault=function(){wc.S.preventDefault.call(this);var b=this.a;if(b.preventDefault)b.preventDefault();else if(b.returnValue=!1,lc)try{if(b.ctrlKey||112<=b.keyCode&&123>=b.keyCode)b.keyCode=-1}catch(c){}};k.Mi=function(){return this.a};k.ag=function(){return Kb||void 0!==this.a.offsetX?this.a.offsetX:this.a.layerX}; -k.Rn=function(b){Object.defineProperties(this,{offsetX:{writable:!0,enumerable:!0,configurable:!0,value:b}})};k.bg=function(){return Kb||void 0!==this.a.offsetY?this.a.offsetY:this.a.layerY};k.Sn=function(b){Object.defineProperties(this,{offsetY:{writable:!0,enumerable:!0,configurable:!0,value:b}})};var Ac="closure_listenable_"+(1E6*Math.random()|0);function Bc(b){return!(!b||!b[Ac])}var Cc=0;function Ec(b,c,d,e,f){this.Yb=b;this.a=null;this.src=c;this.type=d;this.Qc=!!e;this.Qd=f;this.key=++Cc;this.Ic=this.wd=!1}function Fc(b){b.Ic=!0;b.Yb=null;b.a=null;b.src=null;b.Qd=null};function Gc(b){this.src=b;this.a={};this.b=0}Gc.prototype.add=function(b,c,d,e,f){var g=b.toString();b=this.a[g];b||(b=this.a[g]=[],this.b++);var h=Hc(b,c,e,f);-1f.keyCode||void 0!=f.returnValue)){a:{var g=!1;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(h){g=!0}if(g||void 0==f.returnValue)f.returnValue=!0}f=[];for(g=d.c;g;g=g.parentNode)f.push(g);for(var g=b.type,l=f.length-1;!d.f&&0<=l;l--){d.c=f[l];var n=Xc(f[l],g,!0,d),e=e&&n}for(l=0;!d.f&&l>>0);function Oc(b){if(ka(b))return b;b[Zc]||(b[Zc]=function(c){return b.handleEvent(c)});return b[Zc]};function $c(){mc.call(this);this.bb=new Gc(this);this.td=this;this.Fa=null}w($c,mc);$c.prototype[Ac]=!0;k=$c.prototype;k.addEventListener=function(b,c,d,e){x(this,b,c,d,e)};k.removeEventListener=function(b,c,d,e){Vc(this,b,c,d,e)}; -k.dispatchEvent=function(b){var c,d=this.Fa;if(d)for(c=[];d;d=d.Fa)c.push(d);var d=this.td,e=b.type||b;if(ia(b))b=new rc(b,d);else if(b instanceof rc)b.target=b.target||d;else{var f=b;b=new rc(e,d);Fb(b,f)}var f=!0,g;if(c)for(var h=c.length-1;!b.f&&0<=h;h--)g=b.c=c[h],f=ad(g,e,!0,b)&&f;b.f||(g=b.c=d,f=ad(g,e,!0,b)&&f,b.f||(f=ad(g,e,!1,b)&&f));if(c)for(h=0;!b.f&&h=d||(1<=d?(h=l,f=g):(h+=d*n,f+=d*p));return[h,f]}function od(b,c){var d=Wb(b+180,360)-180,e=Math.abs(Math.round(3600*d));return Math.floor(e/3600)+"\u00b0 "+Ma(Math.floor(e/60%60))+"\u2032 "+Ma(Math.floor(e%60))+"\u2033 "+c.charAt(0>d?1:0)} -function pd(b,c,d){return m(b)?c.replace("{x}",b[0].toFixed(d)).replace("{y}",b[1].toFixed(d)):""}function qd(b,c){for(var d=!0,e=b.length-1;0<=e;--e)if(b[e]!=c[e]){d=!1;break}return d}function rd(b,c){var d=Math.cos(c),e=Math.sin(c),f=b[1]*d+b[0]*e;b[0]=b[0]*d-b[1]*e;b[1]=f;return b}function sd(b,c){var d=b[0]-c[0],e=b[1]-c[1];return d*d+e*e}function td(b,c){return sd(b,nd(b,c))}function ud(b,c){return pd(b,"{x}, {y}",c)};function vd(b){this.length=b.length||b;for(var c=0;ce&&(l=l|4);hf&&(l|=2);0===l&&(l=1);return l}function Kd(){return[Infinity,Infinity,-Infinity,-Infinity]} -function Nd(b,c,d,e,f){return m(f)?(f[0]=b,f[1]=c,f[2]=d,f[3]=e,f):[b,c,d,e]}function Vd(b,c){var d=b[0],e=b[1];return Nd(d,e,d,e,c)}function Wd(b,c){return b[0]==c[0]&&b[2]==c[2]&&b[1]==c[1]&&b[3]==c[3]}function Xd(b,c){c[0]b[2]&&(b[2]=c[2]);c[1]b[3]&&(b[3]=c[3]);return b}function Ld(b,c){c[0]b[2]&&(b[2]=c[0]);c[1]b[3]&&(b[3]=c[1])} -function Yd(b,c,d,e,f){for(;dg;++g)h=f[g],l=e[g],f[g]=b[0]+h*c-l*d,e[g]=b[1]+h*d+l*c;return Md(f,e,void 0)}function fe(b){return b[3]-b[1]}function ge(b,c,d){d=m(d)?d:Kd();he(b,c)&&(d[0]=b[0]>c[0]?b[0]:c[0],d[1]=b[1]>c[1]?b[1]:c[1],d[2]=b[2]=c[0]&&b[1]<=c[3]&&b[3]>=c[1]}function je(b){return b[2]>>0),qa=0; +function ra(b,c,d){return b.call.apply(b.bind,arguments)}function sa(b,c,d){if(!b)throw Error();if(2")&&(b=b.replace(Ia,">"));-1!=b.indexOf('"')&&(b=b.replace(Ka,"""));-1!=b.indexOf("'")&&(b=b.replace(La,"'"));-1!=b.indexOf("\x00")&&(b=b.replace(Ma,"�"));return b}var Ga=/&/g,Ha=//g,Ka=/"/g,La=/'/g,Ma=/\x00/g,Fa=/[\x00&<>"']/,Na=String.prototype.repeat?function(b,c){return b.repeat(c)}:function(b,c){return Array(c+1).join(b)}; +function Oa(b){b=ca(void 0)?b.toFixed(void 0):String(b);var c=b.indexOf(".");-1==c&&(c=b.length);return Na("0",Math.max(0,2-c))+b} +function Pa(b,c){for(var d=0,e=Da(String(b)).split("."),f=Da(String(c)).split("."),g=Math.max(e.length,f.length),h=0;0==d&&hc?1:0};function Ra(b,c,d){return Math.min(Math.max(b,c),d)}var Ta=function(){var b;"cosh"in Math?b=Math.cosh:b=function(b){b=Math.exp(b);return(b+1/b)/2};return b}();function Ua(b,c,d,e,f,g){var h=f-d,k=g-e;if(0!==h||0!==k){var m=((b-d)*h+(c-e)*k)/(h*h+k*k);1d?null:la(b)?b.charAt(d):b[d]}function fb(b,c,d){for(var e=b.length,f=la(b)?b.split(""):b,g=0;g=arguments.length?Za.slice.call(b,c):Za.slice.call(b,c,d)}function mb(b,c){b.sort(c||nb)}function ob(b){for(var c=pb,d=0;dc?1:bc?1:bd)for(d=1;dg?1:.5))+f,0),void 0!==d&&(e=Math.min(e,d)),c/Math.pow(b,e)}};function yb(b){if(void 0!==b)return 0}function zb(b,c){if(void 0!==b)return b+c}function Ab(b){var c=2*Math.PI/b;return function(b,e){if(void 0!==b)return b=Math.floor((b+e)/c+.5)*c}}function Bb(){var b=Wa(5);return function(c,d){if(void 0!==c)return Math.abs(c+d)<=b?0:c+d}};function Cb(b,c,d){this.center=b;this.resolution=c;this.rotation=d};var Db;a:{var Eb=ba.navigator;if(Eb){var Fb=Eb.userAgent;if(Fb){Db=Fb;break a}}Db=""}function Gb(b){return-1!=Db.indexOf(b)};function Hb(b,c,d){for(var e in b)c.call(d,b[e],e,b)}function Ib(b,c){for(var d in b)if(c.call(void 0,b[d],d,b))return!0;return!1}function Jb(b){var c=0,d;for(d in b)c++;return c}function Kb(b){var c=[],d=0,e;for(e in b)c[d++]=b[e];return c}function Lb(b,c){for(var d in b)if(b[d]==c)return!0;return!1}function Mb(b,c){for(var d in b)if(c.call(void 0,b[d],d,b))return d}function Nb(b){for(var c in b)return!1;return!0}function Ob(b){for(var c in b)delete b[c]}function Pb(b,c,d){return c in b?b[c]:d} +function Qb(b,c){var d=[];return c in b?b[c]:b[c]=d}function Rb(b){var c={},d;for(d in b)c[d]=b[d];return c}function Sb(b){var c=ha(b);if("object"==c||"array"==c){if(na(b.clone))return b.clone();var c="array"==c?[]:{},d;for(d in b)c[d]=Sb(b[d]);return c}return b}var Tb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "); +function Ub(b,c){for(var d,e,f=1;fparseFloat(b))?String(c):b}(),fc={};function gc(b){return fc[b]||(fc[b]=0<=Pa(ec,b))}var hc=ba.document,ic=hc&&Wb?dc()||("CSS1Compat"==hc.compatMode?parseInt(ec,10):5):void 0;var jc=!Wb||9<=ic,kc=!Wb||9<=ic,lc=Wb&&!gc("9");!Zb||gc("528");Yb&&gc("1.9b")||Wb&&gc("8")||Vb&&gc("9.5")||Zb&&gc("528");Yb&&!gc("8")||Wb&&gc("9");function mc(){0!=nc&&(oc[w(this)]=this);this.pa=this.pa;this.wa=this.wa}var nc=0,oc={};mc.prototype.pa=!1;mc.prototype.rc=function(){if(!this.pa&&(this.pa=!0,this.X(),0!=nc)){var b=w(this);delete oc[b]}};function pc(b,c){var d=ua(qc,c);b.pa?d.call(void 0):(b.wa||(b.wa=[]),b.wa.push(ca(void 0)?ta(d,void 0):d))}mc.prototype.X=function(){if(this.wa)for(;this.wa.length;)this.wa.shift()()};function qc(b){b&&"function"==typeof b.rc&&b.rc()};function rc(b,c){this.type=b;this.g=this.target=c;this.l=!1;this.Zh=!0}rc.prototype.b=function(){this.l=!0};rc.prototype.preventDefault=function(){this.Zh=!1};function tc(b){b.b()}function uc(b){b.preventDefault()};function vc(b){vc[" "](b);return b}vc[" "]=da;function wc(b,c){rc.call(this,b?b.type:"");this.relatedTarget=this.g=this.target=null;this.G=this.i=this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.B=this.c=this.f=this.o=!1;this.state=null;this.j=!1;this.a=null;if(b){var d=this.type=b.type,e=b.changedTouches?b.changedTouches[0]:null;this.target=b.target||b.srcElement;this.g=c;var f=b.relatedTarget;if(f){if(Yb){var g;a:{try{vc(f.nodeName);g=!0;break a}catch(h){}g=!1}g||(f=null)}}else"mouseover"==d? +f=b.fromElement:"mouseout"==d&&(f=b.toElement);this.relatedTarget=f;null===e?(this.offsetX=Zb||void 0!==b.offsetX?b.offsetX:b.layerX,this.offsetY=Zb||void 0!==b.offsetY?b.offsetY:b.layerY,this.clientX=void 0!==b.clientX?b.clientX:b.pageX,this.clientY=void 0!==b.clientY?b.clientY:b.pageY,this.screenX=b.screenX||0,this.screenY=b.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0);this.button= +b.button;this.i=b.keyCode||0;this.G=b.charCode||("keypress"==d?b.keyCode:0);this.o=b.ctrlKey;this.f=b.altKey;this.c=b.shiftKey;this.B=b.metaKey;this.j=$b?b.metaKey:b.ctrlKey;this.state=b.state;this.a=b;b.defaultPrevented&&this.preventDefault()}}z(wc,rc);var xc=[1,4,2];function yc(b){return(jc?0==b.a.button:"click"==b.type?!0:!!(b.a.button&xc[0]))&&!(Zb&&$b&&b.o)}wc.prototype.b=function(){wc.da.b.call(this);this.a.stopPropagation?this.a.stopPropagation():this.a.cancelBubble=!0}; +wc.prototype.preventDefault=function(){wc.da.preventDefault.call(this);var b=this.a;if(b.preventDefault)b.preventDefault();else if(b.returnValue=!1,lc)try{if(b.ctrlKey||112<=b.keyCode&&123>=b.keyCode)b.keyCode=-1}catch(c){}};var Ac="closure_listenable_"+(1E6*Math.random()|0);function Bc(b){return!(!b||!b[Ac])}var Cc=0;function Dc(b,c,d,e,f){this.listener=b;this.a=null;this.src=c;this.type=d;this.dd=!!e;this.me=f;this.key=++Cc;this.Vc=this.Xd=!1}function Ec(b){b.Vc=!0;b.listener=null;b.a=null;b.src=null;b.me=null};function Fc(b){this.src=b;this.a={};this.f=0}function Gc(b,c,d,e,f,g){var h=c.toString();c=b.a[h];c||(c=b.a[h]=[],b.f++);var k=Hc(c,d,f,g);-1f.keyCode||void 0!=f.returnValue)){a:{var g=!1;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(m){g=!0}if(g||void 0==f.returnValue)f.returnValue=!0}f=[];for(g=d.g;g;g=g.parentNode)f.push(g);for(var g=b.type,h=f.length-1;!d.l&&0<=h;h--){d.g=f[h];var k=Xc(f[h],g,!0,d),e=e&&k}for(h=0;!d.l&&h>>0);function Oc(b){if(na(b))return b;b[Zc]||(b[Zc]=function(c){return b.handleEvent(c)});return b[Zc]};function $c(){mc.call(this);this.Ab=new Fc(this);this.Qd=this;this.ib=null}z($c,mc);$c.prototype[Ac]=!0;l=$c.prototype;l.addEventListener=function(b,c,d,e){D(this,b,c,d,e)};l.removeEventListener=function(b,c,d,e){Vc(this,b,c,d,e)}; +l.s=function(b){var c,d=this.ib;if(d)for(c=[];d;d=d.ib)c.push(d);var d=this.Qd,e=b.type||b;if(la(b))b=new rc(b,d);else if(b instanceof rc)b.target=b.target||d;else{var f=b;b=new rc(e,d);Ub(b,f)}var f=!0,g;if(c)for(var h=c.length-1;!b.l&&0<=h;h--)g=b.g=c[h],f=ad(g,e,!0,b)&&f;b.l||(g=b.g=d,f=ad(g,e,!0,b)&&f,b.l||(f=ad(g,e,!1,b)&&f));if(c)for(h=0;!b.l&&hd*c?d+c:d}function nd(b,c,d){return b+d*(c-b)};function od(b,c){b[0]+=c[0];b[1]+=c[1];return b}function pd(b,c){var d=b[0],e=b[1],f=c[0],g=c[1],h=f[0],f=f[1],k=g[0],g=g[1],m=k-h,n=g-f,d=0===m&&0===n?0:(m*(d-h)+n*(e-f))/(m*m+n*n||0);0>=d||(1<=d?(h=k,f=g):(h+=d*m,f+=d*n));return[h,f]}function qd(b,c){var d=md(b+180,360)-180,e=Math.abs(Math.round(3600*d));return Math.floor(e/3600)+"\u00b0 "+Oa(Math.floor(e/60%60))+"\u2032 "+Oa(Math.floor(e%60))+"\u2033 "+c.charAt(0>d?1:0)} +function rd(b,c,d){return b?c.replace("{x}",b[0].toFixed(d)).replace("{y}",b[1].toFixed(d)):""}function sd(b,c){for(var d=!0,e=b.length-1;0<=e;--e)if(b[e]!=c[e]){d=!1;break}return d}function td(b,c){var d=Math.cos(c),e=Math.sin(c),f=b[1]*d+b[0]*e;b[0]=b[0]*d-b[1]*e;b[1]=f;return b}function ud(b,c){var d=b[0]-c[0],e=b[1]-c[1];return d*d+e*e}function vd(b,c){return ud(b,pd(b,c))}function wd(b,c){return rd(b,"{x}, {y}",c)};function xd(b){this.length=b.length||b;for(var c=0;ce&&(k=k|4);hf&&(k|=2);0===k&&(k=1);return k}function Ld(){return[Infinity,Infinity,-Infinity,-Infinity]} +function Od(b,c,d,e,f){return f?(f[0]=b,f[1]=c,f[2]=d,f[3]=e,f):[b,c,d,e]}function Wd(b,c){var d=b[0],e=b[1];return Od(d,e,d,e,c)}function Xd(b,c,d,e,f){f=Od(Infinity,Infinity,-Infinity,-Infinity,f);return Yd(f,b,c,d,e)}function $d(b,c){return b[0]==c[0]&&b[2]==c[2]&&b[1]==c[1]&&b[3]==c[3]}function ae(b,c){c[0]b[2]&&(b[2]=c[2]);c[1]b[3]&&(b[3]=c[3]);return b} +function Md(b,c){c[0]b[2]&&(b[2]=c[0]);c[1]b[3]&&(b[3]=c[1])}function Yd(b,c,d,e,f){for(;dg;++g)h=f[g],k=e[g],f[g]=b[0]+h*c-k*d,e[g]=b[1]+h*d+k*c;return Nd(f,e,void 0)}function je(b){return b[3]-b[1]}function me(b,c,d){d=d?d:Ld();ne(b,c)&&(d[0]=b[0]>c[0]?b[0]:c[0],d[1]=b[1]>c[1]?b[1]:c[1],d[2]=b[2]=c[0]&&b[1]<=c[3]&&b[3]>=c[1]}function he(b){return b[2]b||0!==this.f&&b<=this.f)return this;var c=b.toString();if(this.e.hasOwnProperty(c))return this.e[c];var d=this.wc(b);if(d.j.lengthf&&(f=g);g=l;h=n}return f}function hf(b,c,d,e,f){var g,h;g=0;for(h=d.length;gl){for(;cv&&(p=q,v=y)}v>f&&(n[(p-c)/e]=1,t+eS&&NaS)&&(0>sa&&Rsa)||(z[h++]=y,z[h++]=L,E=y,B=L);y=K;L=H}}z[h++]=y;z[h++]=L}}l.push(h);c=q}return h};function sf(b,c){Ye.call(this);this.c=this.g=-1;this.ca(b,c)}w(sf,Ye);k=sf.prototype;k.clone=function(){var b=new sf(null);tf(b,this.b,this.j.slice());return b};k.Ra=function(b,c,d,e){if(eg!=q>g&&f<(p-l)*(g-n)/(q-n)+l&&(h=!h);l=p;n=q}return h}function xf(b,c,d,e,f,g){if(0===d.length||!wf(b,c,d[0],e,f,g))return!1;var h;c=1;for(h=d.length;cr&&(p=(p+q)/2,xf(b,c,d,e,p,t)&&(A=p,r=z));p=q}isNaN(A)&&(A=f[g]);return m(h)?(h.push(A,t),h):[A,t]};function zf(b,c,d,e,f,g){for(var h=[b[c],b[c+1]],l=[],n;c+e=f[0]&&g[2]<=f[2]||g[1]>=f[1]&&g[3]<=f[3]?!0:zf(b,c,d,e,function(b,c){var d=!1,e=Ud(f,b),g=Ud(f,c);if(1===e||1===g)d=!0;else{var r=f[0],t=f[1],v=f[2],A=f[3],z=c[0],E=c[1],B=(E-b[1])/(z-b[0]);g&2&&!(e&2)&&(d=z-(E-A)/B,d=d>=r&&d<=v);d||!(g&4)||e&4||(d=E-(z-v)*B,d=d>=t&&d<=A);d||!(g&8)||e&8||(d=z-(E-t)/B,d=d>=r&&d<=v);d||!(g&16)||e&16||(d=E-(z-r)*B,d=d>=t&&d<=A)}return d}):!1} -function Bf(b,c,d,e,f){var g=d[0];if(!(Af(b,c,g,e,f)||wf(b,c,g,e,f[0],f[1])||wf(b,c,g,e,f[0],f[3])||wf(b,c,g,e,f[2],f[1])||wf(b,c,g,e,f[2],f[3])))return!1;if(1===d.length)return!0;c=1;for(g=d.length;cb||this.c.length<=b)return null;var c=new sf(null);tf(c,this.b,this.j.slice(0===b?0:this.c[b-1],this.c[b]));return c};k.Ed=function(){var b=this.b,c=this.j,d=this.c,e=[],f=0,g,h;g=0;for(h=d.length;gthis.g)}return m(b)?this.d+b:b}; -k.Je=function(b,c,d){b instanceof Ye||(b=Kf(b));var e=m(d)?d:{};d=m(e.padding)?e.padding:[0,0,0,0];var f=m(e.constrainResolution)?e.constrainResolution:!0,g=m(e.nearest)?e.nearest:!1,h;m(e.minResolution)?h=e.minResolution:m(e.maxZoom)?h=this.constrainResolution(this.b,e.maxZoom-this.d,0):h=0;var l=b.j,n=this.xa(),e=Math.cos(-n),n=Math.sin(-n),p=Infinity,q=Infinity,r=-Infinity,t=-Infinity;b=b.t;for(var v=0,A=l.length;vb?Vf(2*b):1-Vf(2*(b-.5))};function Yf(b){var c=b.source,d=m(b.start)?b.start:ua(),e=c[0],f=c[1],g=m(b.duration)?b.duration:1E3,h=m(b.easing)?b.easing:Vf;return function(b,c){if(c.time>=1;return d.join("")}function dg(b){return bg(b[0],b[1],b[2])}function eg(b,c,d){var e=b[0],f=fg(c,b);d=gg(d);if(Rd(d,f))return b;b=ie(d);d=Math.ceil((d[0]-f[0])/b);f[0]+=b*d;return c.Jd(f,e)} -function hg(b,c){var d=b[0],e=b[1],f=b[2];if(c.minZoom>d||d>c.maxZoom)return!1;var g=c.I(),d=null===g?null===c.b?null:c.b[d]:ig(c,g,d);return null===d?!0:jg(d,e,f)};function kg(b,c,d,e){this.a=b;this.d=c;this.b=d;this.c=e}kg.prototype.contains=function(b){return jg(this,b[1],b[2])};function jg(b,c,d){return b.a<=c&&c<=b.d&&b.b<=d&&d<=b.c}function lg(b,c){return b.a==c.a&&b.b==c.b&&b.d==c.d&&b.c==c.c}function mg(b){return b.d-b.a+1}function ng(b,c){return b.a<=c.d&&b.d>=c.a&&b.b<=c.c&&b.c>=c.b};function og(b){this.b=b.html;this.a=m(b.tileRanges)?b.tileRanges:null}og.prototype.c=function(){return this.b};function pg(b,c,d){rc.call(this,b,d);this.element=c}w(pg,rc);function qg(b){fd.call(this);this.b=m(b)?b:[];rg(this)}w(qg,fd);k=qg.prototype;k.clear=function(){for(;0");g=g.join("")}g=f.createElement(g);h&&(ia(h)?g.className=h:ga(h)?g.className=h.join(" "):Ig(g,h));2=this.left&&b.right<=this.right&&b.top>=this.top&&b.bottom<=this.bottom:b.x>=this.left&&b.x<=this.right&&b.y>=this.top&&b.y<=this.bottom:!1}; -k.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};k.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};k.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}; -k.scale=function(b,c){var d=ja(c)?c:b;this.left*=b;this.right*=b;this.top*=d;this.bottom*=d;return this};function dh(b,c,d,e){this.left=b;this.top=c;this.width=d;this.height=e}k=dh.prototype;k.clone=function(){return new dh(this.left,this.top,this.width,this.height)};k.contains=function(b){return b instanceof dh?this.left<=b.left&&this.left+this.width>=b.left+b.width&&this.top<=b.top&&this.top+this.height>=b.top+b.height:b.x>=this.left&&b.x<=this.left+this.width&&b.y>=this.top&&b.y<=this.top+this.height}; -function eh(b,c){var d=c.xb.e};function Bh(b,c){$c.call(this);this.a=b;this.state=c}w(Bh,$c);function Ch(b){b.dispatchEvent("change")}Bh.prototype.hb=function(){return ma(this).toString()};Bh.prototype.f=function(){return this.a};function Dh(b){fd.call(this);this.g=ze(b.projection);this.e=m(b.attributions)?b.attributions:null;this.U=b.logo;this.o=m(b.state)?b.state:"ready";this.r=m(b.wrapX)?b.wrapX:!1}w(Dh,fd);k=Dh.prototype;k.de=ca;k.ea=function(){return this.e};k.da=function(){return this.U};k.fa=function(){return this.g};k.ga=function(){return this.o};function Eh(b){return b.r}function Fh(b,c){b.o=c;b.k()};function Gh(b){this.minZoom=m(b.minZoom)?b.minZoom:0;this.a=b.resolutions;this.maxZoom=this.a.length-1;this.c=m(b.origin)?b.origin:null;this.e=null;m(b.origins)&&(this.e=b.origins);var c=b.extent;m(c)&&null===this.c&&null===this.e&&(this.c=ce(c));this.f=null;m(b.tileSizes)&&(this.f=b.tileSizes);this.i=m(b.tileSize)?b.tileSize:null===this.f?256:null;this.n=m(c)?c:null;this.b=null;m(b.sizes)?this.b=Ua(b.sizes,function(b){return new kg(Math.min(0,b[0]),Math.max(b[0]-1,-1),Math.min(0,b[1]),Math.max(b[1]- -1,-1))},this):null!=c&&Hh(this,c);this.d=[0,0]}var Ih=[0,0,0];function Jh(b,c,d,e,f){f=Kh(b,c,f);for(c=c[0]-1;c>=b.minZoom;){if(d.call(null,c,ig(b,f,c,e)))return!0;--c}return!1}k=Gh.prototype;k.I=function(){return this.n};k.Yf=function(){return this.maxZoom};k.Zf=function(){return this.minZoom};k.Ec=function(b){return null===this.c?this.e[b]:this.c};k.na=function(b){return this.a[b]};k.Rg=function(){return this.a};function Lh(b,c,d,e){return c[0]sa.d)if(ng(S,new kg(Wb(K.a,Na),Wb(K.d,Na),K.b,K.c))||mg(K)>Na&&ng(S,sa)){r=!0;break a}}r=!1}}}else r=!1;r?(n in A&&delete A[n],v[n]=l):A[n]=l}c=[v,A];d=c[0];c=c[1];for(var R in this.i)R in d?(this.f[R]||(nh(this.i[R],!0),this.f[R]=!0),delete d[R]):R in c?(this.f[R]&&(nh(this.i[R],!1),delete this.f[R]),delete c[R]):(Sg(this.i[R]),delete this.i[R],delete this.f[R]);for(R in d)e= -Og("LI"),e.innerHTML=d[R].b,this.r.appendChild(e),this.i[R]=e,this.f[R]=!0;for(R in c)e=Og("LI"),e.innerHTML=c[R].b,nh(e,!1),this.r.appendChild(e),this.i[R]=e;R=!xb(this.f)||!xb(b.logos);this.o!=R&&(nh(this.element,R),this.o=R);R&&xb(this.f)?$g(this.element,"ol-logo-only"):ah(this.element,"ol-logo-only");var za;b=b.logos;R=this.U;for(za in R)za in b||(Sg(R[za]),delete R[za]);for(var cb in b)cb in R||(za=new Image,za.src=cb,d=b[cb],""===d?d=za:(d=Lg("A",{href:d}),d.appendChild(za)),this.l.appendChild(d), -R[cb]=d);nh(this.l,!xb(b))}}k=Xh.prototype;k.Vk=function(b){b.preventDefault();Zh(this)};function Zh(b){bh(b.element,"ol-collapsed");b.d?Tg(b.q,b.D):Tg(b.D,b.q);b.d=!b.d}k.Uk=function(){return this.g};k.Xk=function(b){this.g!==b&&(this.g=b,bh(this.element,"ol-uncollapsible"),!b&&this.d&&Zh(this))};k.Wk=function(b){this.g&&this.d!==b&&Zh(this)};k.Tk=function(){return this.d};function $h(b){b=m(b)?b:{};var c=m(b.className)?b.className:"ol-rotate",d=m(b.label)?b.label:"\u21e7";this.d=null;ia(d)?this.d=Lg("SPAN","ol-compass",d):(this.d=d,$g(this.d,"ol-compass"));d=Lg("BUTTON",{"class":c+"-reset",type:"button",title:m(b.tipLabel)?b.tipLabel:"Reset rotation"},this.d);x(d,"click",$h.prototype.l,!1,this);wh(d);c=Lg("DIV",c+" ol-unselectable ol-control",d);vh.call(this,{element:c,render:m(b.render)?b.render:ai,target:b.target});this.g=m(b.duration)?b.duration:250;this.f=m(b.autoHide)? -b.autoHide:!0;this.i=void 0;this.f&&$g(this.element,"ol-hidden")}w($h,vh);$h.prototype.l=function(b){b.preventDefault();b=this.b;var c=b.P();if(null!==c){for(var d=c.xa();d<-Math.PI;)d+=2*Math.PI;for(;d>Math.PI;)d-=2*Math.PI;m(d)&&(02*this.c&&xi(this),!0):!1};function xi(b){if(b.c!=b.a.length){for(var c=0,d=0;c=b||96<=b&&106>=b||65<=b&&90>=b||Kb&&0==b)return!0;switch(b){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 Di(b){if(Jb)b=Ei(b);else if(Lb&&Kb)a:switch(b){case 93:b=91;break a}return b} -function Ei(b){switch(b){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return b}};function Fi(b,c){$c.call(this);b&&Gi(this,b,c)}w(Fi,$c);k=Fi.prototype;k.$=null;k.Sd=null;k.We=null;k.Td=null;k.Ja=-1;k.Hb=-1;k.Ce=!1; -var Hi={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},Ii={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},Ji=Ib||Kb&&Rb("525"),Ki=Lb&&Jb; -Fi.prototype.a=function(b){Kb&&(17==this.Ja&&!b.i||18==this.Ja&&!b.b||Lb&&91==this.Ja&&!b.n)&&(this.Hb=this.Ja=-1);-1==this.Ja&&(b.i&&17!=b.e?this.Ja=17:b.b&&18!=b.e?this.Ja=18:b.n&&91!=b.e&&(this.Ja=91));Ji&&!Bi(b.e,this.Ja,b.d,b.i,b.b)?this.handleEvent(b):(this.Hb=Di(b.e),Ki&&(this.Ce=b.b))};Fi.prototype.b=function(b){this.Hb=this.Ja=-1;this.Ce=b.b}; -Fi.prototype.handleEvent=function(b){var c=b.a,d,e,f=c.altKey;Ib&&"keypress"==b.type?(d=this.Hb,e=13!=d&&27!=d?c.keyCode:0):Kb&&"keypress"==b.type?(d=this.Hb,e=0<=c.charCode&&63232>c.charCode&&Ci(d)?c.charCode:0):Hb?(d=this.Hb,e=Ci(d)?c.keyCode:0):(d=c.keyCode||this.Hb,e=c.charCode||0,Ki&&(f=this.Ce),Lb&&63==e&&224==d&&(d=191));var g=d=Di(d),h=c.keyIdentifier;d?63232<=d&&d in Hi?g=Hi[d]:25==d&&b.d&&(g=9):h&&h in Ii&&(g=Ii[h]);this.Ja=g;b=new Li(g,e,0,c);b.b=f;this.dispatchEvent(b)}; -function Gi(b,c,d){b.Td&&Mi(b);b.$=c;b.Sd=x(b.$,"keypress",b,d);b.We=x(b.$,"keydown",b.a,d,b);b.Td=x(b.$,"keyup",b.b,d,b)}function Mi(b){b.Sd&&(Wc(b.Sd),Wc(b.We),Wc(b.Td),b.Sd=null,b.We=null,b.Td=null);b.$=null;b.Ja=-1;b.Hb=-1}Fi.prototype.N=function(){Fi.S.N.call(this);Mi(this)};function Li(b,c,d,e){wc.call(this,e);this.type="key";this.e=b;this.p=c}w(Li,wc);function Ni(b,c){$c.call(this);var d=this.$=b;(d=la(d)&&1==d.nodeType?this.$:this.$?this.$.body:null)&&gh(d,"direction");this.a=x(this.$,Jb?"DOMMouseScroll":"mousewheel",this,c)}w(Ni,$c); -Ni.prototype.handleEvent=function(b){var c=0,d=0,e=0;b=b.a;if("mousewheel"==b.type){d=1;if(Ib||Kb&&(Mb||Rb("532.0")))d=40;e=Oi(-b.wheelDelta,d);m(b.wheelDeltaX)?(c=Oi(-b.wheelDeltaX,d),d=Oi(-b.wheelDeltaY,d)):d=e}else e=b.detail,100e&&(e=-3),m(b.axis)&&b.axis===b.HORIZONTAL_AXIS?c=e:d=e;ja(this.b)&&Vb(c,-this.b,this.b);ja(this.c)&&(d=Vb(d,-this.c,this.c));c=new Pi(e,b,0,d);this.dispatchEvent(c)};function Oi(b,c){return Kb&&(Lb||Nb)&&0!=b%c?b:b/c} -Ni.prototype.N=function(){Ni.S.N.call(this);Wc(this.a);this.a=null};function Pi(b,c,d,e){wc.call(this,c);this.type="mousewheel";this.detail=b;this.l=e}w(Pi,wc);function Qi(b,c,d){rc.call(this,b);this.a=c;b=m(d)?d:{};this.buttons=Ri(b);this.pressure=Si(b,this.buttons);this.bubbles=Ab(b,"bubbles",!1);this.cancelable=Ab(b,"cancelable",!1);this.view=Ab(b,"view",null);this.detail=Ab(b,"detail",null);this.screenX=Ab(b,"screenX",0);this.screenY=Ab(b,"screenY",0);this.clientX=Ab(b,"clientX",0);this.clientY=Ab(b,"clientY",0);this.button=Ab(b,"button",0);this.relatedTarget=Ab(b,"relatedTarget",null);this.pointerId=Ab(b,"pointerId",0);this.width=Ab(b,"width",0);this.height= -Ab(b,"height",0);this.pointerType=Ab(b,"pointerType","");this.isPrimary=Ab(b,"isPrimary",!1);c.preventDefault&&(this.preventDefault=function(){c.preventDefault()})}w(Qi,rc);function Ri(b){if(b.buttons||Ti)b=b.buttons;else switch(b.which){case 1:b=1;break;case 2:b=4;break;case 3:b=2;break;default:b=0}return b}function Si(b,c){var d=0;b.pressure?d=b.pressure:d=c?.5:0;return d}var Ti=!1;try{Ti=1===(new MouseEvent("click",{buttons:1})).buttons}catch(Ui){};function Vi(b,c){var d=Og("CANVAS");m(b)&&(d.width=b);m(c)&&(d.height=c);return d.getContext("2d")} -var Wi=function(){var b;return function(){if(!m(b))if(ba.getComputedStyle){var c=Og("P"),d,e={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};document.body.appendChild(c);for(var f in e)f in c.style&&(c.style[f]="translate(1px,1px)",d=ba.getComputedStyle(c).getPropertyValue(e[f]));Sg(c);b=d&&"none"!==d}else b=!1;return b}}(),Xi=function(){var b;return function(){if(!m(b))if(ba.getComputedStyle){var c=Og("P"), -d,e={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};document.body.appendChild(c);for(var f in e)f in c.style&&(c.style[f]="translate3d(1px,1px,1px)",d=ba.getComputedStyle(c).getPropertyValue(e[f]));Sg(c);b=d&&"none"!==d}else b=!1;return b}}();function Yi(b,c){var d=b.style;d.WebkitTransform=c;d.MozTransform=c;d.a=c;d.msTransform=c;d.transform=c;Ib&&!Ub&&(b.style.transformOrigin="0 0")} -function Zi(b,c){var d;if(Xi()){if(m(6)){var e=Array(16);for(d=0;16>d;++d)e[d]=c[d].toFixed(6);d=e.join(",")}else d=c.join(",");Yi(b,"matrix3d("+d+")")}else if(Wi()){e=[c[0],c[1],c[4],c[5],c[12],c[13]];if(m(6)){var f=Array(6);for(d=0;6>d;++d)f[d]=e[d].toFixed(6);d=f.join(",")}else d=e.join(",");Yi(b,"matrix("+d+")")}else b.style.left=Math.round(c[12])+"px",b.style.top=Math.round(c[13])+"px"};var $i=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function aj(b,c){var d,e,f=$i.length;for(e=0;e=Math.abs(e-l[0])&&25>=n)return!0}return!1}function tj(b){var c=uj(b,b.a),d=c.preventDefault;c.preventDefault=function(){b.preventDefault();d()};c.pointerId=1;c.isPrimary=!0;c.pointerType="mouse";return c}k=rj.prototype; -k.nk=function(b){if(!sj(this,b)){(1).toString()in this.b&&this.cancel(b);var c=tj(b);this.b[(1).toString()]=b;vj(this.a,wj,c,b)}};k.ok=function(b){if(!sj(this,b)){var c=tj(b);vj(this.a,xj,c,b)}};k.rk=function(b){if(!sj(this,b)){var c=this.b[(1).toString()];c&&c.button===b.button&&(c=tj(b),vj(this.a,yj,c,b),zb(this.b,(1).toString()))}};k.qk=function(b){if(!sj(this,b)){var c=tj(b);zj(this.a,c,b)}};k.pk=function(b){if(!sj(this,b)){var c=tj(b);Aj(this.a,c,b)}}; -k.cancel=function(b){var c=tj(b);this.a.cancel(c,b);zb(this.b,(1).toString())};function Bj(b){qj.call(this,b,{MSPointerDown:this.wk,MSPointerMove:this.xk,MSPointerUp:this.Ak,MSPointerOut:this.yk,MSPointerOver:this.zk,MSPointerCancel:this.vk,MSGotPointerCapture:this.tk,MSLostPointerCapture:this.uk});this.b=b.b;this.c=["","unavailable","touch","pen","mouse"]}w(Bj,qj);function Cj(b,c){var d=c;ja(c.a.pointerType)&&(d=uj(c,c.a),d.pointerType=b.c[c.a.pointerType]);return d}k=Bj.prototype;k.wk=function(b){this.b[b.a.pointerId]=b;var c=Cj(this,b);vj(this.a,wj,c,b)}; -k.xk=function(b){var c=Cj(this,b);vj(this.a,xj,c,b)};k.Ak=function(b){var c=Cj(this,b);vj(this.a,yj,c,b);zb(this.b,b.a.pointerId)};k.yk=function(b){var c=Cj(this,b);Aj(this.a,c,b)};k.zk=function(b){var c=Cj(this,b);zj(this.a,c,b)};k.vk=function(b){var c=Cj(this,b);this.a.cancel(c,b);zb(this.b,b.a.pointerId)};k.uk=function(b){this.a.dispatchEvent(new Qi("lostpointercapture",b,b.a))};k.tk=function(b){this.a.dispatchEvent(new Qi("gotpointercapture",b,b.a))};function Dj(b){qj.call(this,b,{pointerdown:this.bn,pointermove:this.cn,pointerup:this.fn,pointerout:this.dn,pointerover:this.en,pointercancel:this.an,gotpointercapture:this.Aj,lostpointercapture:this.mk})}w(Dj,qj);k=Dj.prototype;k.bn=function(b){Ej(this.a,b)};k.cn=function(b){Ej(this.a,b)};k.fn=function(b){Ej(this.a,b)};k.dn=function(b){Ej(this.a,b)};k.en=function(b){Ej(this.a,b)};k.an=function(b){Ej(this.a,b)};k.mk=function(b){Ej(this.a,b)};k.Aj=function(b){Ej(this.a,b)};function Fj(b,c){qj.call(this,b,{touchstart:this.ho,touchmove:this.fo,touchend:this.eo,touchcancel:this.co});this.b=b.b;this.g=c;this.c=void 0;this.f=0;this.d=void 0}w(Fj,qj);k=Fj.prototype;k.lh=function(){this.f=0;this.d=void 0}; -function Gj(b,c,d){c=uj(c,d);c.pointerId=d.identifier+2;c.bubbles=!0;c.cancelable=!0;c.detail=b.f;c.button=0;c.buttons=1;c.width=d.webkitRadiusX||d.radiusX||0;c.height=d.webkitRadiusY||d.radiusY||0;c.pressure=d.webkitForce||d.force||.5;c.isPrimary=b.c===d.identifier;c.pointerType="touch";c.clientX=d.clientX;c.clientY=d.clientY;c.screenX=d.screenX;c.screenY=d.screenY;return c} -function Hj(b,c,d){function e(){c.preventDefault()}var f=Array.prototype.slice.call(c.a.changedTouches),g=f.length,h,l;for(h=0;h=c.length){var f=[],g,h,l;for(g=0;g=b.minResolution&&cb.d&&(b.d=e.d),e.bb.c&&(b.c=e.c)):b[c][d]=e:(b[c]={},b[c][d]=e)}function xk(b,c,d){return[c*(Math.round(b[0]/c)+d[0]%2/2),c*(Math.round(b[1]/c)+d[1]%2/2)]} -function yk(b,c,d,e,f,g,h,l,n,p){var q=ma(c).toString();q in b.wantedTiles||(b.wantedTiles[q]={});var r=b.wantedTiles[q];b=b.tileQueue;var t=d.minZoom,v,A,z,E,B,y;for(y=h;y>=t;--y)for(A=ig(d,g,y,A),z=d.na(y),E=A.a;E<=A.d;++E)for(B=A.b;B<=A.c;++B)h-y<=l?(v=c.Ub(y,E,B,e,f),0==v.state&&(r[dg(v.a)]=!0,v.hb()in b.c||zk(b,[v,q,fg(d,v.a),z])),m(n)&&n.call(p,v)):c.xf(y,E,B)};function Ak(b){this.o=b.opacity;this.r=b.rotateWithView;this.p=b.rotation;this.n=b.scale;this.Y=b.snapToPixel}k=Ak.prototype;k.fe=function(){return this.o};k.Hd=function(){return this.r};k.ge=function(){return this.p};k.he=function(){return this.n};k.Id=function(){return this.Y};k.ie=function(b){this.p=b};k.je=function(b){this.n=b};function Bk(b){b=m(b)?b:{};this.e=m(b.anchor)?b.anchor:[.5,.5];this.d=null;this.b=m(b.anchorOrigin)?b.anchorOrigin:"top-left";this.g=m(b.anchorXUnits)?b.anchorXUnits:"fraction";this.i=m(b.anchorYUnits)?b.anchorYUnits:"fraction";var c=m(b.crossOrigin)?b.crossOrigin:null,d=m(b.img)?b.img:null,e=m(b.imgSize)?b.imgSize:null,f=b.src;m(f)&&0!==f.length||null===d||(f=d.src);var g=m(b.src)?0:2,h=Ck.Ia(),l=h.get(f,c);null===l&&(l=new Dk(d,f,e,c,g),h.set(f,c,l));this.a=l;this.W=m(b.offset)?b.offset:[0,0];this.c= -m(b.offsetOrigin)?b.offsetOrigin:"top-left";this.f=null;this.l=m(b.size)?b.size:null;Ak.call(this,{opacity:m(b.opacity)?b.opacity:1,rotation:m(b.rotation)?b.rotation:0,scale:m(b.scale)?b.scale:1,snapToPixel:m(b.snapToPixel)?b.snapToPixel:!0,rotateWithView:m(b.rotateWithView)?b.rotateWithView:!1})}w(Bk,Ak);k=Bk.prototype; -k.rb=function(){if(null!==this.d)return this.d;var b=this.e,c=this.Ya();if("fraction"==this.g||"fraction"==this.i){if(null===c)return null;b=this.e.slice();"fraction"==this.g&&(b[0]*=c[0]);"fraction"==this.i&&(b[1]*=c[1])}if("top-left"!=this.b){if(null===c)return null;b===this.e&&(b=this.e.slice());if("top-right"==this.b||"bottom-right"==this.b)b[0]=-b[0]+c[0];if("bottom-left"==this.b||"bottom-right"==this.b)b[1]=-b[1]+c[1]}return this.d=b};k.Kb=function(){return this.a.a};k.Dd=function(){return this.a.b}; -k.hd=function(){return this.a.c};k.ee=function(){var b=this.a;if(null===b.e)if(b.i){var c=b.b[0],d=b.b[1],e=Vi(c,d);e.fillRect(0,0,c,d);b.e=e.canvas}else b.e=b.a;return b.e};k.wb=function(){if(null!==this.f)return this.f;var b=this.W;if("top-left"!=this.c){var c=this.Ya(),d=this.a.b;if(null===c||null===d)return null;b=b.slice();if("top-right"==this.c||"bottom-right"==this.c)b[0]=d[0]-c[0]-b[0];if("bottom-left"==this.c||"bottom-right"==this.c)b[1]=d[1]-c[1]-b[1]}return this.f=b};k.qm=function(){return this.a.f}; -k.Ya=function(){return null===this.l?this.a.b:this.l};k.Ye=function(b,c){return x(this.a,"change",b,!1,c)};k.load=function(){this.a.load()};k.wf=function(b,c){Vc(this.a,"change",b,!1,c)};function Dk(b,c,d,e,f){$c.call(this);this.e=null;this.a=null===b?new Image:b;null!==e&&(this.a.crossOrigin=e);this.d=null;this.c=f;this.b=d;this.f=c;this.i=!1}w(Dk,$c);Dk.prototype.g=function(){this.c=3;Sa(this.d,Wc);this.d=null;this.dispatchEvent("change")}; -Dk.prototype.p=function(){this.c=2;this.b=[this.a.width,this.a.height];Sa(this.d,Wc);this.d=null;var b=Vi(1,1);b.drawImage(this.a,0,0);try{b.getImageData(0,0,1,1)}catch(c){this.i=!0}this.dispatchEvent("change")};Dk.prototype.load=function(){if(0==this.c){this.c=1;this.d=[Uc(this.a,"error",this.g,!1,this),Uc(this.a,"load",this.p,!1,this)];try{this.a.src=this.f}catch(b){this.g()}}};function Ck(){this.a={};this.b=0}da(Ck);Ck.prototype.clear=function(){this.a={};this.b=0}; -Ck.prototype.get=function(b,c){var d=c+":"+b;return d in this.a?this.a[d]:null};Ck.prototype.set=function(b,c,d){this.a[c+":"+b]=d;++this.b};function Ek(b,c){mc.call(this);this.f=c;this.d={};this.n={}}w(Ek,mc);function Fk(b){var c=b.viewState,d=b.coordinateToPixelMatrix;nk(d,b.size[0]/2,b.size[1]/2,1/c.resolution,-1/c.resolution,-c.rotation,-c.center[0],-c.center[1]);Fd(d,b.pixelToCoordinateMatrix)}k=Ek.prototype;k.N=function(){pb(this.d,qc);Ek.S.N.call(this)}; -function Gk(){var b=Ck.Ia();if(32h[2])l=Math.ceil((h[0]-q)/p),l=[q+p*l,b[1]]}p=c.layerStatesArray;for(q=p.length-1;0<=q;--q){h=p[q];var r=h.layer;if(lk(h,n)&&f.call(g,r)&&(h=Hk(this,r).Oa(Eh(r.V())?l:b,c,d,e)))return h}}; -k.Gg=function(b,c,d,e,f,g){var h,l=c.viewState.resolution,n=c.layerStatesArray,p;for(p=n.length-1;0<=p;--p){h=n[p];var q=h.layer;if(lk(h,l)&&f.call(g,q)&&(h=Hk(this,q).dc(b,c,d,e)))return h}};k.Hg=function(b,c,d,e){b=this.df(b,c,oe,this,d,e);return m(b)};function Hk(b,c){var d=ma(c).toString();if(d in b.d)return b.d[d];var e=b.He(c);b.d[d]=e;b.n[d]=x(e,"change",b.Mj,!1,b);return e}k.Mj=function(){this.f.render()};k.qe=ca; -k.En=function(b,c){for(var d in this.d)if(!(null!==c&&d in c.layerStates)){var e=d,f=this.d[e];delete this.d[e];Wc(this.n[e]);delete this.n[e];qc(f)}};function Ik(b,c){for(var d in b.d)if(!(d in c.layerStates)){c.postRenderFunctions.push(ra(b.En,b));break}};function Jk(b,c){this.g=b;this.e=c;this.a=[];this.b=[];this.c={}}Jk.prototype.clear=function(){this.a.length=0;this.b.length=0;yb(this.c)};function Kk(b){var c=b.a,d=b.b,e=c[0];1==c.length?(c.length=0,d.length=0):(c[0]=c.pop(),d[0]=d.pop(),Lk(b,0));c=b.e(e);delete b.c[c];return e}function zk(b,c){var d=b.g(c);Infinity!=d&&(b.a.push(c),b.b.push(d),b.c[b.e(c)]=!0,Mk(b,0,b.a.length-1))}Jk.prototype.Sb=function(){return this.a.length};Jk.prototype.pa=function(){return 0===this.a.length}; -function Lk(b,c){for(var d=b.a,e=b.b,f=d.length,g=d[c],h=e[c],l=c;c>1;){var n=2*c+1,p=2*c+2,n=pc;){var h=d-1>>1;if(b[h]>g)e[d]=e[h],b[d]=b[h],d=h;else break}e[d]=f;b[d]=g}function Nk(b){var c=b.g,d=b.a,e=b.b,f=0,g=d.length,h,l,n;for(l=0;l>1)-1;0<=c;c--)Lk(b,c)};function Ok(b,c){Jk.call(this,function(c){return b.apply(null,c)},function(b){return b[0].hb()});this.i=c;this.d=0}w(Ok,Jk);Ok.prototype.f=function(b){b=b.target;var c=b.state;if(2===c||3===c||4===c)Vc(b,"change",this.f,!1,this),--this.d,this.i()};function Pk(b,c,d){this.d=b;this.c=c;this.f=d;this.a=[];this.b=this.e=0}Pk.prototype.update=function(b,c){this.a.push(b,c,ua())};function Qk(b,c){var d=b.d,e=b.b,f=b.c-e,g=Rk(b);return Yf({source:c,duration:g,easing:function(b){return e*(Math.exp(d*b*g)-1)/f}})}function Rk(b){return Math.log(b.c/b.b)/b.d};function Sk(b){fd.call(this);this.n=null;this.d(!0);this.handleEvent=b.handleEvent}w(Sk,fd);Sk.prototype.b=function(){return this.get("active")};Sk.prototype.d=function(b){this.set("active",b)};Sk.prototype.setMap=function(b){this.n=b};function Tk(b,c,d,e,f){if(null!=d){var g=c.xa(),h=c.Da();m(g)&&m(h)&&m(f)&&0d.a.length)d=!1;else{var e=ua()-d.f,f=d.a.length-3;if(d.a[f+2]e;)g-=3;var e=d.a[f+2]-d.a[g+2],h=d.a[f]-d.a[g],f=d.a[f+1]-d.a[g+1];d.e=Math.atan2(f,h);d.b=Math.sqrt(h*h+f*f)/e;d=d.b>d.c}}d&&(d=this.c,d=(d.c-d.b)/d.d,f=this.c.e,g=c.Da(),this.g=Qk(this.c,g),b.Ha(this.g),g=b.ra(g),d=b.ma([g[0]-d*Math.cos(f),g[1]-d*Math.sin(f)]),d=c.yd(d),c.Xa(d));Tf(c,-1);b.render(); -return!1}this.e=null;return!0}function il(b){if(0f;++f)e[f]=c.charCodeAt(d++)|c.charCodeAt(d++)<<8|c.charCodeAt(d++)<<16|c.charCodeAt(d++)<<24;else for(f=0;16>f;++f)e[f]=c[d++]|c[d++]<<8|c[d++]<<16|c[d++]<<24;c=b.a[0];d=b.a[1];var f=b.a[2],g=b.a[3],h=0,h=c+(g^d&(f^g))+e[0]+3614090360&4294967295;c=d+(h<<7&4294967295|h>>>25);h=g+(f^c&(d^f))+e[1]+3905402710&4294967295;g=c+(h<<12&4294967295|h>>>20);h=f+(d^g&(c^d))+e[2]+606105819&4294967295;f=g+(h<<17&4294967295|h>>>15);h=d+(c^f&(g^ +function ye(b){this.radius=b}ye.prototype.f=function(b){for(var c=0,d=b.length,e=b[d-1][0],f=b[d-1][1],g=0;gb||0!==this.l&&b<=this.l)return this;var c=b.toString();if(this.i.hasOwnProperty(c))return this.i[c];var d=this.Nc(b);if(d.ja().lengthf&&(f=g);g=k;h=m}return f}function kf(b,c,d,e,f){var g,h;g=0;for(h=d.length;gk){for(;ct&&(n=p,t=y)}t>f&&(m[(n-c)/e]=1,r+eE&&faE)&&(0>P&&IP)|| +(x[h++]=y,x[h++]=B,C=y,A=B);y=M;B=K}}x[h++]=y;x[h++]=B}}k.push(h);c=p}return h};function vf(b,c){bf.call(this);this.g=this.j=-1;this.ma(b,c)}z(vf,bf);l=vf.prototype;l.clone=function(){var b=new vf(null);wf(b,this.b,this.A.slice());return b};l.pb=function(b,c,d,e){if(eg!=p>g&&f<(n-k)*(g-m)/(p-m)+k&&(h=!h);k=n;m=p}return h}function zf(b,c,d,e,f,g){if(0===d.length||!yf(b,c,d[0],e,f,g))return!1;var h;c=1;for(h=d.length;cq&&(n=(n+p)/2,zf(b,c,d,e,n,r)&&(v=n,q=x));n=p}isNaN(v)&&(v=f[g]);return h?(h.push(v,r),h):[v,r]};function Bf(b,c,d,e,f,g){for(var h=[b[c],b[c+1]],k=[],m;c+e=f[0]&&g[2]<=f[2]||g[1]>=f[1]&&g[3]<=f[3]?!0:Bf(b,c,d,e,function(b,c){var d=!1,e=Vd(f,b),g=Vd(f,c);if(1===e||1===g)d=!0;else{var q=f[0],r=f[1],t=f[2],v=f[3],x=c[0],C=c[1],A=(C-b[1])/(x-b[0]);g&2&&!(e&2)&&(d=x-(C-v)/A,d=d>=q&&d<=t);d||!(g&4)||e&4||(d=C-(x-t)*A,d=d>=r&&d<=v);d||!(g&8)||e&8||(d=x-(C-r)/A,d=d>=q&&d<=t);d||!(g&16)||e&16||(d=C-(x-q)*A,d=d>=r&&d<=v)}return d}):!1} +function Df(b,c,d,e,f){var g=d[0];if(!(Cf(b,c,g,e,f)||yf(b,c,g,e,f[0],f[1])||yf(b,c,g,e,f[0],f[3])||yf(b,c,g,e,f[2],f[1])||yf(b,c,g,e,f[2],f[3])))return!1;if(1===d.length)return!0;c=1;for(g=d.length;cb||this.g.length<=b)return null;var c=new vf(null);wf(c,this.b,this.A.slice(0===b?0:this.g[b-1],this.g[b]));return c};l.de=function(){var b=this.b,c=this.A,d=this.g,e=[],f=0,g,h;g=0;for(h=d.length;gthis.l)}return void 0!==b?this.c+b:b}; +l.mf=function(b,c,d){b instanceof bf||(b=Kf(b));var e=d||{};d=void 0!==e.padding?e.padding:[0,0,0,0];var f=void 0!==e.constrainResolution?e.constrainResolution:!0,g=void 0!==e.nearest?e.nearest:!1,h;void 0!==e.minResolution?h=e.minResolution:void 0!==e.maxZoom?h=this.constrainResolution(this.a,e.maxZoom-this.c,0):h=0;var k=b.ja(),m=this.Ha(),e=Math.cos(-m),m=Math.sin(-m),n=Infinity,p=Infinity,q=-Infinity,r=-Infinity;b=b.sa();for(var t=0,v=k.length;tb?Vf(2*b):1-Vf(2*(b-.5))};function Yf(b){var c=b.source,d=b.start?b.start:Date.now(),e=c[0],f=c[1],g=void 0!==b.duration?b.duration:1E3,h=b.easing?b.easing:Vf;return function(b,c){if(c.time>=1;return d.join("")};function cg(b,c,d,e){this.a=b;this.c=c;this.f=d;this.b=e}cg.prototype.contains=function(b){return eg(this,b[1],b[2])};function fg(b,c){return b.a<=c.a&&c.c<=b.c&&b.f<=c.f&&c.b<=b.b}function eg(b,c,d){return b.a<=c&&c<=b.c&&b.f<=d&&d<=b.b}function gg(b,c){return b.a==c.a&&b.f==c.f&&b.c==c.c&&b.b==c.b}function hg(b){return b.b-b.f+1}function ig(b){return b.c-b.a+1}function jg(b,c){return b.a<=c.c&&b.c>=c.a&&b.f<=c.b&&b.b>=c.f};function kg(b){this.f=b.html;this.a=b.tileRanges?b.tileRanges:null}kg.prototype.b=function(){return this.f};function lg(b,c,d){rc.call(this,b,d);this.element=c}z(lg,rc);function mg(b){fd.call(this);this.a=b?b:[];ng(this)}z(mg,fd);l=mg.prototype;l.clear=function(){for(;0");g=g.join("")}g=f.createElement(g);h&&(la(h)?g.className=h:ia(h)?g.className=h.join(" "):Cg(g,h));2=this.left&&b.right<=this.right&&b.top>=this.top&&b.bottom<=this.bottom:b.x>=this.left&&b.x<=this.right&&b.y>=this.top&&b.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(b,c){var d=ma(c)?c:b;this.left*=b;this.right*=b;this.top*=d;this.bottom*=d;return this};function Wg(b,c,d,e){this.left=b;this.top=c;this.width=d;this.height=e}l=Wg.prototype;l.clone=function(){return new Wg(this.left,this.top,this.width,this.height)};l.contains=function(b){return b instanceof Wg?this.left<=b.left&&this.left+this.width>=b.left+b.width&&this.top<=b.top&&this.top+this.height>=b.top+b.height:b.x>=this.left&&b.x<=this.left+this.width&&b.y>=this.top&&b.y<=this.top+this.height}; +l.distance=function(b){var c=b.xb.g}function rh(b,c){for(var d,e;qh(b)&&!(d=b.a.nc,e=d.ga[0].toString(),e in c&&c[e].contains(d.ga));)b.pop().rc()};function sh(b,c){$c.call(this);this.ga=b;this.state=c;this.a=null;this.key=""}z(sh,$c);function th(b){b.s("change")}sh.prototype.bb=function(){return w(this).toString()};sh.prototype.c=function(){return this.ga};function uh(b){fd.call(this);this.b=Ee(b.projection);this.l=void 0!==b.attributions?b.attributions:null;this.U=b.logo;this.B=void 0!==b.state?b.state:"ready";this.O=void 0!==b.wrapX?b.wrapX:!1}z(uh,fd);l=uh.prototype;l.Ae=ya;l.ta=function(){return this.l};l.ra=function(){return this.U};l.ua=function(){return this.b};l.va=function(){return this.B};function vh(b){return b.O}l.oa=function(b){this.l=b;this.u()};function wh(b,c){b.B=c;b.u()};function xh(b){this.minZoom=void 0!==b.minZoom?b.minZoom:0;this.a=b.resolutions;this.maxZoom=this.a.length-1;this.b=void 0!==b.origin?b.origin:null;this.g=null;void 0!==b.origins&&(this.g=b.origins);var c=b.extent;void 0===c||this.b||this.g||(this.b=fe(c));this.i=null;void 0!==b.tileSizes&&(this.i=b.tileSizes);this.j=void 0!==b.tileSize?b.tileSize:this.i?null:256;this.G=void 0!==c?c:null;this.f=null;void 0!==b.sizes?this.f=b.sizes.map(function(b){return new cg(Math.min(0,b[0]),Math.max(b[0]-1,-1), +Math.min(0,b[1]),Math.max(b[1]-1,-1))},this):c&&yh(this,c);this.c=[0,0]}var zh=[0,0,0];function Ah(b,c,d,e,f){f=b.Ba(c,f);for(c=c[0]-1;c>=b.minZoom;){if(d.call(null,c,Bh(b,f,c,e)))return!0;--c}return!1}l=xh.prototype;l.J=function(){return this.G};l.Ig=function(){return this.maxZoom};l.Jg=function(){return this.minZoom};l.Ea=function(b){return this.b?this.b:this.g[b]};l.$=function(b){return this.a[b]};l.Fh=function(){return this.a}; +function Ch(b,c,d,e){return c[0]f||f>d.maxZoom)d=!1;else{var g=d.J();d=(d=g?Bh(d,g,f):d.f?d.f[f]:null)?eg(d,e,b):!0}return d?c:null}l.bg=ya;function Ph(b,c){rc.call(this,b);this.tile=c}z(Ph,rc);function Qh(b){b=b?b:{};this.C=document.createElement("UL");this.B=document.createElement("LI");this.C.appendChild(this.B);eh(this.B,!1);this.b=void 0!==b.collapsed?b.collapsed:!0;this.l=void 0!==b.collapsible?b.collapsible:!0;this.l||(this.b=!1);var c=b.className?b.className:"ol-attribution",d=b.tipLabel?b.tipLabel:"Attributions",e=b.collapseLabel?b.collapseLabel:"\u00bb";this.D=la(e)?Fg("SPAN",{},e):e;e=b.label?b.label:"i";this.O=la(e)?Fg("SPAN",{},e):e;d=Fg("BUTTON",{type:"button",title:d},this.l&& +!this.b?this.D:this.O);D(d,"click",this.Xl,!1,this);c=Fg("DIV",c+" ol-unselectable ol-control"+(this.b&&this.l?" ol-collapsed":"")+(this.l?"":" ol-uncollapsible"),this.C,d);mh.call(this,{element:c,render:b.render?b.render:Rh,target:b.target});this.v=!0;this.j={};this.i={};this.T={}}z(Qh,mh); +function Rh(b){if(b=b.frameState){var c,d,e,f,g,h,k,m,n,p,q,r=b.layerStatesArray,t=Rb(b.attributions),v={},x=b.viewState.projection;d=0;for(c=r.length;dP.c)if(jg(E,new cg(md(M.a,fa),md(M.c,fa),M.f,M.b))||ig(M)>fa&&jg(E,P)){q=!0;break a}}q=!1}else q=!0}}else q=!1;q?(m in v&&delete v[m],t[m]=k):v[m]=k}c=[t,v];d=c[0];c=c[1];for(var I in this.j)I in d?(this.i[I]||(eh(this.j[I],!0),this.i[I]=!0),delete d[I]):I in c?(this.i[I]&&(eh(this.j[I],!1),delete this.i[I]),delete c[I]):(Kg(this.j[I]),delete this.j[I],delete this.i[I]);for(I in d)e=document.createElement("LI"),e.innerHTML=d[I].f,this.C.appendChild(e),this.j[I]=e,this.i[I]= +!0;for(I in c)e=document.createElement("LI"),e.innerHTML=c[I].f,eh(e,!1),this.C.appendChild(e),this.j[I]=e;I=!Nb(this.i)||!Nb(b.logos);this.v!=I&&(eh(this.element,I),this.v=I);I&&Nb(this.i)?Sg(this.element,"ol-logo-only"):Tg(this.element,"ol-logo-only");var ga;b=b.logos;I=this.T;for(ga in I)ga in b||(Kg(I[ga]),delete I[ga]);for(var Ja in b)Ja in I||(ga=new Image,ga.src=Ja,d=b[Ja],""===d?d=ga:(d=Fg("A",{href:d}),d.appendChild(ga)),this.B.appendChild(d),I[Ja]=d);eh(this.B,!Nb(b))}else this.v&&(eh(this.element, +!1),this.v=!1)}l=Qh.prototype;l.Xl=function(b){b.preventDefault();Sh(this)};function Sh(b){Ug(b.element,"ol-collapsed");b.b?Lg(b.D,b.O):Lg(b.O,b.D);b.b=!b.b}l.Wl=function(){return this.l};l.Zl=function(b){this.l!==b&&(this.l=b,Ug(this.element,"ol-uncollapsible"),!b&&this.b&&Sh(this))};l.Yl=function(b){this.l&&this.b!==b&&Sh(this)};l.Vl=function(){return this.b};function Th(b){b=b?b:{};var c=b.className?b.className:"ol-rotate",d=b.label?b.label:"\u21e7";this.b=null;la(d)?this.b=Fg("SPAN","ol-compass",d):(this.b=d,Sg(this.b,"ol-compass"));d=Fg("BUTTON",{"class":c+"-reset",type:"button",title:b.tipLabel?b.tipLabel:"Reset rotation"},this.b);D(d,"click",Th.prototype.v,!1,this);c=Fg("DIV",c+" ol-unselectable ol-control",d);d=b.render?b.render:Uh;this.l=b.resetNorth?b.resetNorth:void 0;mh.call(this,{element:c,render:d,target:b.target});this.j=void 0!==b.duration? +b.duration:250;this.i=void 0!==b.autoHide?b.autoHide:!0;this.B=void 0;this.i&&Sg(this.element,"ol-hidden")}z(Th,mh);Th.prototype.v=function(b){b.preventDefault();if(void 0!==this.l)this.l();else{b=this.a;var c=b.aa();if(c){var d=c.Ha();void 0!==d&&(0Math.PI&&(d-=2*Math.PI),b.Qa(Zf({rotation:d,duration:this.j,easing:Uf}))),c.we(0))}}}; +function Uh(b){if(b=b.frameState){b=b.viewState.rotation;if(b!=this.B){var c="rotate("+b+"rad)";if(this.i){var d=this.element;0===b?Sg(d,"ol-hidden"):Tg(d,"ol-hidden")}this.b.style.msTransform=c;this.b.style.webkitTransform=c;this.b.style.transform=c}this.B=b}};function Vh(b){b=b?b:{};var c=b.className?b.className:"ol-zoom",d=b.delta?b.delta:1,e=b.zoomOutLabel?b.zoomOutLabel:"\u2212",f=b.zoomOutTipLabel?b.zoomOutTipLabel:"Zoom out",g=Fg("BUTTON",{"class":c+"-in",type:"button",title:b.zoomInTipLabel?b.zoomInTipLabel:"Zoom in"},b.zoomInLabel?b.zoomInLabel:"+");D(g,"click",ua(Vh.prototype.i,d),!1,this);e=Fg("BUTTON",{"class":c+"-out",type:"button",title:f},e);D(e,"click",ua(Vh.prototype.i,-d),!1,this);c=Fg("DIV",c+" ol-unselectable ol-control",g,e);mh.call(this, +{element:c,target:b.target});this.b=void 0!==b.duration?b.duration:250}z(Vh,mh);Vh.prototype.i=function(b,c){c.preventDefault();var d=this.a,e=d.aa();if(e){var f=e.$();f&&(02*this.b&&pi(this),!0):!1};function pi(b){if(b.b!=b.a.length){for(var c=0,d=0;c=b||96<=b&&106>=b||65<=b&&90>=b||(Zb||Xb)&&0==b)return!0;switch(b){case 32:case 43:case 63:case 64: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 vi(b){if(Yb)b=wi(b);else if($b&&Zb)a:switch(b){case 93:b=91;break a}return b} +function wi(b){switch(b){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return b}};function xi(b,c){$c.call(this);b&&yi(this,b,c)}z(xi,$c);l=xi.prototype;l.yd=null;l.oe=null;l.wf=null;l.pe=null;l.lb=-1;l.ac=-1;l.ef=!1; +var zi={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},Ai={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},Bi=Wb||Xb||Zb&&gc("525"),Ci=$b&&Yb; +xi.prototype.a=function(b){if(Zb||Xb)if(17==this.lb&&!b.o||18==this.lb&&!b.f||$b&&91==this.lb&&!b.B)this.ac=this.lb=-1;-1==this.lb&&(b.o&&17!=b.i?this.lb=17:b.f&&18!=b.i?this.lb=18:b.B&&91!=b.i&&(this.lb=91));Bi&&!ti(b.i,this.lb,b.c,b.o,b.f)?this.handleEvent(b):(this.ac=vi(b.i),Ci&&(this.ef=b.f))};xi.prototype.f=function(b){this.ac=this.lb=-1;this.ef=b.f}; +xi.prototype.handleEvent=function(b){var c=b.a,d,e,f=c.altKey;Wb&&"keypress"==b.type?(d=this.ac,e=13!=d&&27!=d?c.keyCode:0):(Zb||Xb)&&"keypress"==b.type?(d=this.ac,e=0<=c.charCode&&63232>c.charCode&&ui(d)?c.charCode:0):Vb&&!Zb?(d=this.ac,e=ui(d)?c.keyCode:0):(d=c.keyCode||this.ac,e=c.charCode||0,Ci&&(f=this.ef),$b&&63==e&&224==d&&(d=191));var g=d=vi(d),h=c.keyIdentifier;d?63232<=d&&d in zi?g=zi[d]:25==d&&b.c&&(g=9):h&&h in Ai&&(g=Ai[h]);this.lb=g;b=new Di(g,e,0,c);b.f=f;this.s(b)}; +function yi(b,c,d){b.pe&&Ei(b);b.yd=c;b.oe=D(b.yd,"keypress",b,d);b.wf=D(b.yd,"keydown",b.a,d,b);b.pe=D(b.yd,"keyup",b.f,d,b)}function Ei(b){b.oe&&(Wc(b.oe),Wc(b.wf),Wc(b.pe),b.oe=null,b.wf=null,b.pe=null);b.yd=null;b.lb=-1;b.ac=-1}xi.prototype.X=function(){xi.da.X.call(this);Ei(this)};function Di(b,c,d,e){wc.call(this,e);this.type="key";this.i=b;this.G=c}z(Di,wc);function Fi(b,c){$c.call(this);var d=this.a=b;(d=oa(d)&&1==d.nodeType?this.a:this.a?this.a.body:null)&&Yg(d,"direction");this.f=D(this.a,Yb?"DOMMouseScroll":"mousewheel",this,c)}z(Fi,$c); +Fi.prototype.handleEvent=function(b){var c=0,d=0;b=b.a;if("mousewheel"==b.type){c=1;if(Wb||Zb&&(ac||gc("532.0")))c=40;d=Gi(-b.wheelDelta,c);c=ca(b.wheelDeltaX)?Gi(-b.wheelDeltaY,c):d}else d=b.detail,100d&&(d=-3),ca(b.axis)&&b.axis===b.HORIZONTAL_AXIS||(c=d);ma(this.b)&&(c=Math.min(Math.max(c,-this.b),this.b));d=new Hi(d,b,0,c);this.s(d)};function Gi(b,c){return Zb&&($b||bc)&&0!=b%c?b:b/c}Fi.prototype.X=function(){Fi.da.X.call(this);Wc(this.f);this.f=null}; +function Hi(b,c,d,e){wc.call(this,c);this.type="mousewheel";this.detail=b;this.v=e}z(Hi,wc);function Ii(b,c,d){rc.call(this,b);this.a=c;b=d?d:{};this.buttons=Ji(b);this.pressure=Ki(b,this.buttons);this.bubbles="bubbles"in b?b.bubbles:!1;this.cancelable="cancelable"in b?b.cancelable:!1;this.view="view"in b?b.view:null;this.detail="detail"in b?b.detail:null;this.screenX="screenX"in b?b.screenX:0;this.screenY="screenY"in b?b.screenY:0;this.clientX="clientX"in b?b.clientX:0;this.clientY="clientY"in b?b.clientY:0;this.button="button"in b?b.button:0;this.relatedTarget="relatedTarget"in b?b.relatedTarget: +null;this.pointerId="pointerId"in b?b.pointerId:0;this.width="width"in b?b.width:0;this.height="height"in b?b.height:0;this.pointerType="pointerType"in b?b.pointerType:"";this.isPrimary="isPrimary"in b?b.isPrimary:!1;c.preventDefault&&(this.preventDefault=function(){c.preventDefault()})}z(Ii,rc);function Ji(b){if(b.buttons||Li)b=b.buttons;else switch(b.which){case 1:b=1;break;case 2:b=4;break;case 3:b=2;break;default:b=0}return b} +function Ki(b,c){var d=0;b.pressure?d=b.pressure:d=c?.5:0;return d}var Li=!1;try{Li=1===(new MouseEvent("click",{buttons:1})).buttons}catch(b){};function Mi(b,c){var d=document.createElement("CANVAS");b&&(d.width=b);c&&(d.height=c);return d.getContext("2d")} +var Ni=function(){var b;return function(){if(void 0===b)if(ba.getComputedStyle){var c=document.createElement("P"),d,e={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};document.body.appendChild(c);for(var f in e)f in c.style&&(c.style[f]="translate(1px,1px)",d=ba.getComputedStyle(c).getPropertyValue(e[f]));Kg(c);b=d&&"none"!==d}else b=!1;return b}}(),Oi=function(){var b;return function(){if(void 0===b)if(ba.getComputedStyle){var c= +document.createElement("P"),d,e={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};document.body.appendChild(c);for(var f in e)f in c.style&&(c.style[f]="translate3d(1px,1px,1px)",d=ba.getComputedStyle(c).getPropertyValue(e[f]));Kg(c);b=d&&"none"!==d}else b=!1;return b}}(); +function Pi(b,c){var d=b.style;d.WebkitTransform=c;d.MozTransform=c;d.a=c;d.msTransform=c;d.transform=c;Wb&&gc("9.0")&&(b.style.transformOrigin="0 0")}function Qi(b,c){var d;if(Oi()){var e=Array(16);for(d=0;16>d;++d)e[d]=c[d].toFixed(6);Pi(b,"matrix3d("+e.join(",")+")")}else if(Ni()){var e=[c[0],c[1],c[4],c[5],c[12],c[13]],f=Array(6);for(d=0;6>d;++d)f[d]=e[d].toFixed(6);Pi(b,"matrix("+f.join(",")+")")}else b.style.left=Math.round(c[12])+"px",b.style.top=Math.round(c[13])+"px"};var Ri=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function Si(b,c){var d,e,f=Ri.length;for(e=0;e=Math.abs(e-k[0])&&25>=m)return!0}return!1}function ij(b){var c=jj(b,b.a),d=c.preventDefault;c.preventDefault=function(){b.preventDefault();d()};c.pointerId=1;c.isPrimary=!0;c.pointerType="mouse";return c}l=gj.prototype; +l.ql=function(b){if(!hj(this,b)){(1).toString()in this.f&&this.cancel(b);var c=ij(b);this.f[(1).toString()]=b;kj(this.a,lj,c,b)}};l.rl=function(b){if(!hj(this,b)){var c=ij(b);kj(this.a,mj,c,b)}};l.ul=function(b){if(!hj(this,b)){var c=this.f[(1).toString()];c&&c.button===b.button&&(c=ij(b),kj(this.a,nj,c,b),delete this.f[(1).toString()])}};l.tl=function(b){if(!hj(this,b)){var c=ij(b);oj(this.a,c,b)}};l.sl=function(b){if(!hj(this,b)){var c=ij(b);pj(this.a,c,b)}}; +l.cancel=function(b){var c=ij(b);this.a.cancel(c,b);delete this.f[(1).toString()]};function qj(b){fj.call(this,b,{MSPointerDown:this.zl,MSPointerMove:this.Al,MSPointerUp:this.Dl,MSPointerOut:this.Bl,MSPointerOver:this.Cl,MSPointerCancel:this.yl,MSGotPointerCapture:this.wl,MSLostPointerCapture:this.xl});this.f=b.f;this.b=["","unavailable","touch","pen","mouse"]}z(qj,fj);function rj(b,c){var d=c;ma(c.a.pointerType)&&(d=jj(c,c.a),d.pointerType=b.b[c.a.pointerType]);return d}l=qj.prototype;l.zl=function(b){this.f[b.a.pointerId.toString()]=b;var c=rj(this,b);kj(this.a,lj,c,b)}; +l.Al=function(b){var c=rj(this,b);kj(this.a,mj,c,b)};l.Dl=function(b){var c=rj(this,b);kj(this.a,nj,c,b);delete this.f[b.a.pointerId.toString()]};l.Bl=function(b){var c=rj(this,b);pj(this.a,c,b)};l.Cl=function(b){var c=rj(this,b);oj(this.a,c,b)};l.yl=function(b){var c=rj(this,b);this.a.cancel(c,b);delete this.f[b.a.pointerId.toString()]};l.xl=function(b){this.a.s(new Ii("lostpointercapture",b,b.a))};l.wl=function(b){this.a.s(new Ii("gotpointercapture",b,b.a))};function sj(b){fj.call(this,b,{pointerdown:this.co,pointermove:this.eo,pointerup:this.io,pointerout:this.fo,pointerover:this.ho,pointercancel:this.bo,gotpointercapture:this.Ck,lostpointercapture:this.pl})}z(sj,fj);l=sj.prototype;l.co=function(b){tj(this.a,b)};l.eo=function(b){tj(this.a,b)};l.io=function(b){tj(this.a,b)};l.fo=function(b){tj(this.a,b)};l.ho=function(b){tj(this.a,b)};l.bo=function(b){tj(this.a,b)};l.pl=function(b){tj(this.a,b)};l.Ck=function(b){tj(this.a,b)};function uj(b,c){fj.call(this,b,{touchstart:this.jp,touchmove:this.ip,touchend:this.hp,touchcancel:this.gp});this.f=b.f;this.l=c;this.b=void 0;this.i=0;this.c=void 0}z(uj,fj);l=uj.prototype;l.Yh=function(){this.i=0;this.c=void 0}; +function vj(b,c,d){c=jj(c,d);c.pointerId=d.identifier+2;c.bubbles=!0;c.cancelable=!0;c.detail=b.i;c.button=0;c.buttons=1;c.width=d.webkitRadiusX||d.radiusX||0;c.height=d.webkitRadiusY||d.radiusY||0;c.pressure=d.webkitForce||d.force||.5;c.isPrimary=b.b===d.identifier;c.pointerType="touch";c.clientX=d.clientX;c.clientY=d.clientY;c.screenX=d.screenX;c.screenY=d.screenY;return c} +function wj(b,c,d){function e(){c.preventDefault()}var f=Array.prototype.slice.call(c.a.changedTouches),g=f.length,h,k;for(h=0;h=c.length){var f=[],g,h,k;for(g=0;g=b.minResolution&&cb.c&&(b.c=e.c),e.fb.b&&(b.b=e.b)):b[c][d]=e:(b[c]={},b[c][d]=e)}function pk(b,c,d){return[c*(Math.round(b[0]/c)+d[0]%2/2),c*(Math.round(b[1]/c)+d[1]%2/2)]} +function qk(b,c,d,e,f,g,h,k,m,n){var p=w(c).toString();p in b.wantedTiles||(b.wantedTiles[p]={});var q=b.wantedTiles[p];b=b.tileQueue;var r=d.minZoom,t,v,x,C,A,y;for(y=h;y>=r;--y)for(v=Bh(d,g,y,v),x=d.$(y),C=v.a;C<=v.c;++C)for(A=v.f;A<=v.b;++A)h-y<=k?(t=c.Qb(y,C,A,e,f),0==t.state&&(q[t.ga.toString()]=!0,t.bb()in b.b||b.c([t,p,Fh(d,t.ga),x])),void 0!==m&&m.call(n,t)):c.bg(y,C,A,f)};function rk(b){this.B=b.opacity;this.C=b.rotateWithView;this.G=b.rotation;this.l=b.scale;this.D=b.snapToPixel}l=rk.prototype;l.De=function(){return this.B};l.fe=function(){return this.C};l.Ee=function(){return this.G};l.Fe=function(){return this.l};l.ge=function(){return this.D};l.Ge=function(b){this.B=b};l.He=function(b){this.G=b};l.Ie=function(b){this.l=b};function sk(b){b=b||{};this.g=void 0!==b.anchor?b.anchor:[.5,.5];this.c=null;this.f=void 0!==b.anchorOrigin?b.anchorOrigin:"top-left";this.j=void 0!==b.anchorXUnits?b.anchorXUnits:"fraction";this.o=void 0!==b.anchorYUnits?b.anchorYUnits:"fraction";var c=void 0!==b.crossOrigin?b.crossOrigin:null,d=void 0!==b.img?b.img:null,e=void 0!==b.imgSize?b.imgSize:null,f=b.src;void 0!==f&&0!==f.length||!d||(f=d.src||w(d).toString());var g=void 0!==b.src?0:2,h=void 0!==b.color?rg(b.color):null,k=tk.Zb(),m=k.get(f, +c,h);m||(m=new uk(d,f,e,c,g,h),k.set(f,c,h,m));this.a=m;this.O=void 0!==b.offset?b.offset:[0,0];this.b=void 0!==b.offsetOrigin?b.offsetOrigin:"top-left";this.i=null;this.v=void 0!==b.size?b.size:null;rk.call(this,{opacity:void 0!==b.opacity?b.opacity:1,rotation:void 0!==b.rotation?b.rotation:0,scale:void 0!==b.scale?b.scale:1,snapToPixel:void 0!==b.snapToPixel?b.snapToPixel:!0,rotateWithView:void 0!==b.rotateWithView?b.rotateWithView:!1})}z(sk,rk);l=sk.prototype; +l.Yb=function(){if(this.c)return this.c;var b=this.g,c=this.Eb();if("fraction"==this.j||"fraction"==this.o){if(!c)return null;b=this.g.slice();"fraction"==this.j&&(b[0]*=c[0]);"fraction"==this.o&&(b[1]*=c[1])}if("top-left"!=this.f){if(!c)return null;b===this.g&&(b=this.g.slice());if("top-right"==this.f||"bottom-right"==this.f)b[0]=-b[0]+c[0];if("bottom-left"==this.f||"bottom-right"==this.f)b[1]=-b[1]+c[1]}return this.c=b};l.hc=function(){var b=this.a;return b.c?b.c:b.a};l.ud=function(){return this.a.b}; +l.Fd=function(){return this.a.f};l.Ce=function(){var b=this.a;if(!b.l)if(b.o){var c=b.b[0],d=b.b[1],e=Mi(c,d);e.fillRect(0,0,c,d);b.l=e.canvas}else b.l=b.a;return b.l};l.Ea=function(){if(this.i)return this.i;var b=this.O;if("top-left"!=this.b){var c=this.Eb(),d=this.a.b;if(!c||!d)return null;b=b.slice();if("top-right"==this.b||"bottom-right"==this.b)b[0]=d[0]-c[0]-b[0];if("bottom-left"==this.b||"bottom-right"==this.b)b[1]=d[1]-c[1]-b[1]}return this.i=b};l.rn=function(){return this.a.j}; +l.Eb=function(){return this.v?this.v:this.a.b};l.yf=function(b,c){return D(this.a,"change",b,!1,c)};l.load=function(){this.a.load()};l.ag=function(b,c){Vc(this.a,"change",b,!1,c)};function uk(b,c,d,e,f,g){$c.call(this);this.l=null;this.a=b?b:new Image;null!==e&&(this.a.crossOrigin=e);this.c=g?document.createElement("CANVAS"):null;this.i=g;this.g=null;this.f=f;this.b=d;this.j=c;this.o=!1;2==this.f&&vk(this)}z(uk,$c); +function vk(b){var c=Mi(1,1);try{c.drawImage(b.a,0,0),c.getImageData(0,0,1,1)}catch(d){b.o=!0}}uk.prototype.G=function(){this.f=3;this.g.forEach(Wc);this.g=null;this.s("change")}; +uk.prototype.B=function(){this.f=2;this.b=[this.a.width,this.a.height];this.g.forEach(Wc);this.g=null;vk(this);if(!this.o&&null!==this.i){this.c.width=this.a.width;this.c.height=this.a.height;var b=this.c.getContext("2d");b.drawImage(this.a,0,0);for(var c=b.getImageData(0,0,this.a.width,this.a.height),d=c.data,e=this.i[0]/255,f=this.i[1]/255,g=this.i[2]/255,h=0,k=d.length;hq[2])m=[t+r*Math.ceil((q[0]-t)/r),b[1]]}q=c.layerStatesArray;for(r=q.length-1;0<=r;--r){var t=q[r],v=t.layer;if(ck(t,n)&&f.call(g,v)){var x=zk(this,v);v.ea()&&(k=x.cb(vh(v.ea())?m:b,c,t.Db?d:h,e));if(k)return k}}}; +l.rh=function(b,c,d,e,f,g){var h,k=c.viewState.resolution,m=c.layerStatesArray,n;for(n=m.length-1;0<=n;--n){h=m[n];var p=h.layer;if(ck(h,k)&&f.call(g,p)&&(h=zk(this,p).zc(b,c,d,e)))return h}};l.sh=function(b,c,d,e){return void 0!==this.Ff(b,c,se,this,d,e)};function zk(b,c){var d=w(c).toString();if(d in b.c)return b.c[d];var e=b.kf(c);b.c[d]=e;b.G[d]=D(e,"change",b.Nk,!1,b);return e}l.Nk=function(){this.i.render()};l.Pe=ya; +l.Lo=function(b,c){for(var d in this.c)if(!(c&&d in c.layerStates)){var e=d,f=this.c[e];delete this.c[e];Wc(this.G[e]);delete this.G[e];qc(f)}};function Ak(b,c){for(var d in b.c)if(!(d in c.layerStates)){c.postRenderFunctions.push(b.Lo.bind(b));break}}function pb(b,c){return b.zIndex-c.zIndex};function Bk(b,c){this.o=b;this.i=c;this.a=[];this.f=[];this.b={}}Bk.prototype.clear=function(){this.a.length=0;this.f.length=0;Ob(this.b)};function Ck(b){var c=b.a,d=b.f,e=c[0];1==c.length?(c.length=0,d.length=0):(c[0]=c.pop(),d[0]=d.pop(),Dk(b,0));c=b.i(e);delete b.b[c];return e}Bk.prototype.c=function(b){var c=this.o(b);return Infinity!=c?(this.a.push(b),this.f.push(c),this.b[this.i(b)]=!0,Ek(this,0,this.a.length-1),!0):!1};Bk.prototype.sc=function(){return this.a.length}; +Bk.prototype.Oa=function(){return 0===this.a.length};function Dk(b,c){for(var d=b.a,e=b.f,f=d.length,g=d[c],h=e[c],k=c;c>1;){var m=2*c+1,n=2*c+2,m=nc;){var h=d-1>>1;if(b[h]>g)e[d]=e[h],b[d]=b[h],d=h;else break}e[d]=f;b[d]=g} +function Fk(b){var c=b.o,d=b.a,e=b.f,f=0,g=d.length,h,k,m;for(k=0;k>1)-1;0<=c;c--)Dk(b,c)};function Gk(b,c){Bk.call(this,function(c){return b.apply(null,c)},function(b){return b[0].bb()});this.G=c;this.g=0;this.l={}}z(Gk,Bk);Gk.prototype.c=function(b){var c=Gk.da.c.call(this,b);c&&D(b[0],"change",this.j,!1,this);return c};Gk.prototype.j=function(b){b=b.target;var c=b.state;if(2===c||3===c||4===c)Vc(b,"change",this.j,!1,this),b=b.bb(),b in this.l&&(delete this.l[b],--this.g),this.G()}; +function Hk(b,c,d){for(var e=0,f;b.gd.a.length)d=!1;else{var e=Date.now()-d.i,f=d.a.length-3;if(d.a[f+2]e;)g-=3;var e=d.a[f+2]-d.a[g+2],h=d.a[f]-d.a[g],f=d.a[f+1]-d.a[g+1];d.g=Math.atan2(f,h);d.f=Math.sqrt(h*h+f*f)/e;d=d.f>d.b}}d&&(d=this.a,d=(d.b-d.f)/d.c,f=this.a.g,g=c.Va(),this.j=Jk(this.a,g),b.Qa(this.j),g=b.Ra(g),d=b.Ia([g[0]-d*Math.cos(f),g[1]-d*Math.sin(f)]),d=c.Zd(d),c.mb(d));Sf(c,-1);b.render(); +return!1}this.c=null;return!0}function al(b){if(0this.D&&(this.a=!0));this.j=d;b=b.map;d=bh(b.a);e=Zk(this.l);e[0]-=d.x;e[1]-=d.y;this.c=b.Ia(e);this.a&&(d=b.aa(),e=d.Ha(),b.render(),Lk(b,d,e+c,this.c))}function Bl(b){if(2>this.l.length){b=b.map;var c=b.aa();Sf(c,-1);if(this.a){var d=c.Ha(),e=this.c,f=this.v,d=c.constrainRotation(d,0);Lk(b,c,d,e,f)}return!1}return!0} +function zl(b){return 2<=this.l.length?(b=b.map,this.c=null,this.j=void 0,this.a=!1,this.o=0,this.C||Sf(b.aa(),1),b.render(),!0):!1}yl.prototype.Ec=re;function Cl(b){Xk.call(this,{handleDownEvent:Dl,handleDragEvent:El,handleUpEvent:Fl});b=b?b:{};this.c=null;this.o=void 0!==b.duration?b.duration:400;this.a=void 0;this.j=1}z(Cl,Xk);function El(b){var c=1,d=this.l[0],e=this.l[1],f=d.clientX-e.clientX,d=d.clientY-e.clientY,f=Math.sqrt(f*f+d*d);void 0!==this.a&&(c=this.a/f);this.a=f;1!=c&&(this.j=c);b=b.map;var f=b.aa(),d=f.$(),e=bh(b.a),g=Zk(this.l);g[0]-=e.x;g[1]-=e.y;this.c=b.Ia(g);b.render();Nk(b,f,d*c,this.c)} +function Fl(b){if(2>this.l.length){b=b.map;var c=b.aa();Sf(c,-1);var d=c.$(),e=this.c,f=this.o,d=c.constrainResolution(d,0,this.j-1);Nk(b,c,d,e,f);return!1}return!0}function Dl(b){return 2<=this.l.length?(b=b.map,this.c=null,this.a=void 0,this.j=1,this.C||Sf(b.aa(),1),b.render(),!0):!1}Cl.prototype.Ec=re;function Gl(b){b=b?b:{};var c=new mg,d=new Ik(-.005,.05,100);(void 0!==b.altShiftDragRotate?b.altShiftDragRotate:1)&&c.push(new dl);(void 0!==b.doubleClickZoom?b.doubleClickZoom:1)&&c.push(new Ok({delta:b.zoomDelta,duration:b.zoomDuration}));(void 0!==b.dragPan?b.dragPan:1)&&c.push(new $k({kinetic:d}));(void 0!==b.pinchRotate?b.pinchRotate:1)&&c.push(new yl);(void 0!==b.pinchZoom?b.pinchZoom:1)&&c.push(new Cl({duration:b.zoomDuration}));if(void 0!==b.keyboard?b.keyboard:1)c.push(new sl),c.push(new ul({delta:b.zoomDelta, +duration:b.zoomDuration}));(void 0!==b.mouseWheelZoom?b.mouseWheelZoom:1)&&c.push(new wl({duration:b.zoomDuration}));(void 0!==b.shiftDragZoom?b.shiftDragZoom:1)&&c.push(new rl({duration:b.zoomDuration}));return c};function Hl(b){var c=b||{};b=Rb(c);delete b.layers;c=c.layers;Xj.call(this,b);this.b=[];this.a={};D(this,hd("layers"),this.Pk,!1,this);c?ia(c)&&(c=new mg(c.slice())):c=new mg;this.oh(c)}z(Hl,Xj);l=Hl.prototype;l.ke=function(){this.tb()&&this.u()}; +l.Pk=function(){this.b.forEach(Wc);this.b.length=0;var b=this.Rc();this.b.push(D(b,"add",this.Ok,!1,this),D(b,"remove",this.Qk,!1,this));Hb(this.a,function(b){b.forEach(Wc)});Ob(this.a);var b=b.a,c,d,e;c=0;for(d=b.length;cf;++f)e[f]=c.charCodeAt(d++)|c.charCodeAt(d++)<<8|c.charCodeAt(d++)<<16|c.charCodeAt(d++)<<24;else for(f=0;16>f;++f)e[f]=c[d++]|c[d++]<<8|c[d++]<<16|c[d++]<<24;c=b.a[0];d=b.a[1];var f=b.a[2],g=b.a[3],h=0,h=c+(g^d&(f^g))+e[0]+3614090360&4294967295;c=d+(h<<7&4294967295|h>>>25);h=g+(f^c&(d^f))+e[1]+3905402710&4294967295;g=c+(h<<12&4294967295|h>>>20);h=f+(d^g&(c^d))+e[2]+606105819&4294967295;f=g+(h<<17&4294967295|h>>>15);h=d+(c^f&(g^ c))+e[3]+3250441966&4294967295;d=f+(h<<22&4294967295|h>>>10);h=c+(g^d&(f^g))+e[4]+4118548399&4294967295;c=d+(h<<7&4294967295|h>>>25);h=g+(f^c&(d^f))+e[5]+1200080426&4294967295;g=c+(h<<12&4294967295|h>>>20);h=f+(d^g&(c^d))+e[6]+2821735955&4294967295;f=g+(h<<17&4294967295|h>>>15);h=d+(c^f&(g^c))+e[7]+4249261313&4294967295;d=f+(h<<22&4294967295|h>>>10);h=c+(g^d&(f^g))+e[8]+1770035416&4294967295;c=d+(h<<7&4294967295|h>>>25);h=g+(f^c&(d^f))+e[9]+2336552879&4294967295;g=c+(h<<12&4294967295|h>>>20);h=f+ (d^g&(c^d))+e[10]+4294925233&4294967295;f=g+(h<<17&4294967295|h>>>15);h=d+(c^f&(g^c))+e[11]+2304563134&4294967295;d=f+(h<<22&4294967295|h>>>10);h=c+(g^d&(f^g))+e[12]+1804603682&4294967295;c=d+(h<<7&4294967295|h>>>25);h=g+(f^c&(d^f))+e[13]+4254626195&4294967295;g=c+(h<<12&4294967295|h>>>20);h=f+(d^g&(c^d))+e[14]+2792965006&4294967295;f=g+(h<<17&4294967295|h>>>15);h=d+(c^f&(g^c))+e[15]+1236535329&4294967295;d=f+(h<<22&4294967295|h>>>10);h=c+(f^g&(d^f))+e[1]+4129170786&4294967295;c=d+(h<<5&4294967295| h>>>27);h=g+(d^f&(c^d))+e[6]+3225465664&4294967295;g=c+(h<<9&4294967295|h>>>23);h=f+(c^d&(g^c))+e[11]+643717713&4294967295;f=g+(h<<14&4294967295|h>>>18);h=d+(g^c&(f^g))+e[0]+3921069994&4294967295;d=f+(h<<20&4294967295|h>>>12);h=c+(f^g&(d^f))+e[5]+3593408605&4294967295;c=d+(h<<5&4294967295|h>>>27);h=g+(d^f&(c^d))+e[10]+38016083&4294967295;g=c+(h<<9&4294967295|h>>>23);h=f+(c^d&(g^c))+e[15]+3634488961&4294967295;f=g+(h<<14&4294967295|h>>>18);h=d+(g^c&(f^g))+e[4]+3889429448&4294967295;d=f+(h<<20&4294967295| @@ -209,727 +220,813 @@ c^d)+e[7]+4139469664&4294967295;f=g+(h<<16&4294967295|h>>>16);h=d+(f^g^c)+e[10]+ g=c+(h<<11&4294967295|h>>>21);h=f+(g^c^d)+e[15]+530742520&4294967295;f=g+(h<<16&4294967295|h>>>16);h=d+(f^g^c)+e[2]+3299628645&4294967295;d=f+(h<<23&4294967295|h>>>9);h=c+(f^(d|~g))+e[0]+4096336452&4294967295;c=d+(h<<6&4294967295|h>>>26);h=g+(d^(c|~f))+e[7]+1126891415&4294967295;g=c+(h<<10&4294967295|h>>>22);h=f+(c^(g|~d))+e[14]+2878612391&4294967295;f=g+(h<<15&4294967295|h>>>17);h=d+(g^(f|~c))+e[5]+4237533241&4294967295;d=f+(h<<21&4294967295|h>>>11);h=c+(f^(d|~g))+e[12]+1700485571&4294967295;c=d+ (h<<6&4294967295|h>>>26);h=g+(d^(c|~f))+e[3]+2399980690&4294967295;g=c+(h<<10&4294967295|h>>>22);h=f+(c^(g|~d))+e[10]+4293915773&4294967295;f=g+(h<<15&4294967295|h>>>17);h=d+(g^(f|~c))+e[1]+2240044497&4294967295;d=f+(h<<21&4294967295|h>>>11);h=c+(f^(d|~g))+e[8]+1873313359&4294967295;c=d+(h<<6&4294967295|h>>>26);h=g+(d^(c|~f))+e[15]+4264355552&4294967295;g=c+(h<<10&4294967295|h>>>22);h=f+(c^(g|~d))+e[6]+2734768916&4294967295;f=g+(h<<15&4294967295|h>>>17);h=d+(g^(f|~c))+e[13]+1309151649&4294967295; d=f+(h<<21&4294967295|h>>>11);h=c+(f^(d|~g))+e[4]+4149444226&4294967295;c=d+(h<<6&4294967295|h>>>26);h=g+(d^(c|~f))+e[11]+3174756917&4294967295;g=c+(h<<10&4294967295|h>>>22);h=f+(c^(g|~d))+e[2]+718787259&4294967295;f=g+(h<<15&4294967295|h>>>17);h=d+(g^(f|~c))+e[9]+3951481745&4294967295;b.a[0]=b.a[0]+c&4294967295;b.a[1]=b.a[1]+(f+(h<<21&4294967295|h>>>11))&4294967295;b.a[2]=b.a[2]+f&4294967295;b.a[3]=b.a[3]+g&4294967295} -zl.prototype.update=function(b,c){m(c)||(c=b.length);for(var d=c-this.b,e=this.e,f=this.c,g=0;gc.c?c.b:2*c.b)-c.c);d[0]=128;for(b=1;bb;++b)for(var f=0;32>f;f+=8)d[e++]=c.a[b]>>>f&255; -if(8192>d.length)c=String.fromCharCode.apply(null,d);else for(c="",b=0;bthis.r&&(this.c=!0));this.g=d;b=b.map;d=kh(b.b);e=gl(this.f);e[0]-=d.x;e[1]-=d.y;this.e=b.ma(e);this.c&&(d=b.P(),e=d.xa(),b.render(),Tk(b,d,e+c,this.e))}function Wl(b){if(2>this.f.length){b=b.map;var c=b.P();Tf(c,-1);if(this.c){var d=c.xa(),e=this.e,f=this.o,d=c.constrainRotation(d,0);Tk(b,c,d,e,f)}return!1}return!0} -function Ul(b){return 2<=this.f.length?(b=b.map,this.e=null,this.g=void 0,this.c=!1,this.i=0,this.l||Tf(b.P(),1),b.render(),!0):!1}Tl.prototype.nc=ne;function Xl(b){el.call(this,{handleDownEvent:Yl,handleDragEvent:Zl,handleUpEvent:$l});b=m(b)?b:{};this.e=null;this.i=m(b.duration)?b.duration:400;this.c=void 0;this.g=1}w(Xl,el);function Zl(b){var c=1,d=this.f[0],e=this.f[1],f=d.clientX-e.clientX,d=d.clientY-e.clientY,f=Math.sqrt(f*f+d*d);m(this.c)&&(c=this.c/f);this.c=f;1!=c&&(this.g=c);b=b.map;var f=b.P(),d=f.wa(),e=kh(b.b),g=gl(this.f);g[0]-=e.x;g[1]-=e.y;this.e=b.ma(g);b.render();Vk(b,f,d*c,this.e)} -function $l(b){if(2>this.f.length){b=b.map;var c=b.P();Tf(c,-1);var d=c.wa(),e=this.e,f=this.i,d=c.constrainResolution(d,0,this.g-1);Vk(b,c,d,e,f);return!1}return!0}function Yl(b){return 2<=this.f.length?(b=b.map,this.e=null,this.c=void 0,this.g=1,this.l||Tf(b.P(),1),b.render(),!0):!1}Xl.prototype.nc=ne;function am(b){b=m(b)?b:{};var c=new qg,d=new Pk(-.005,.05,100);(m(b.altShiftDragRotate)?b.altShiftDragRotate:1)&&c.push(new ll);(m(b.doubleClickZoom)?b.doubleClickZoom:1)&&c.push(new Wk({delta:b.zoomDelta,duration:b.zoomDuration}));(m(b.dragPan)?b.dragPan:1)&&c.push(new hl({kinetic:d}));(m(b.pinchRotate)?b.pinchRotate:1)&&c.push(new Tl);(m(b.pinchZoom)?b.pinchZoom:1)&&c.push(new Xl({duration:b.zoomDuration}));if(m(b.keyboard)?b.keyboard:1)c.push(new Nl),c.push(new Pl({delta:b.zoomDelta,duration:b.zoomDuration})); -(m(b.mouseWheelZoom)?b.mouseWheelZoom:1)&&c.push(new Rl({duration:b.zoomDuration}));(m(b.shiftDragZoom)?b.shiftDragZoom:1)&&c.push(new Ml);return c};function G(b){var c=m(b)?b:{};b=Db(c);delete b.layers;c=c.layers;hk.call(this,b);this.c=[];this.b={};x(this,hd("layers"),this.Oj,!1,this);null!=c?ga(c)&&(c=new qg(c.slice())):c=new qg;this.uh(c)}w(G,hk);k=G.prototype;k.Od=function(){this.fb()&&this.k()}; -k.Oj=function(){Sa(this.c,Wc);this.c.length=0;var b=this.Ac();this.c.push(x(b,"add",this.Nj,!1,this),x(b,"remove",this.Pj,!1,this));pb(this.b,function(b){Sa(b,Wc)});yb(this.b);var b=b.b,c,d,e;c=0;for(d=b.length;cthis.e&&(this.e=this.c.lineWidth,this.d=null)}; -function Mm(b,c,d){Cm.call(this,b,c,d);this.c={Lf:void 0,Xc:void 0,Sc:void 0,Tc:null,Uc:void 0,Vc:void 0,Wc:void 0,fillStyle:void 0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}w(Mm,Cm); -function Nm(b,c,d,e,f){var g=b.c,h=[1];b.b.push(h);b.a.push(h);var l,h=0;for(l=e.length;hthis.e&&(this.e=d.lineWidth,this.d=null))}; -function Om(b){var c=b.c,d=c.fillStyle,e=c.strokeStyle,f=c.lineCap,g=c.lineDash,h=c.lineJoin,l=c.lineWidth,n=c.miterLimit;m(d)&&c.Lf!=d&&(b.b.push([9,d]),c.Lf=c.fillStyle);!m(e)||c.Xc==e&&c.Sc==f&&c.Tc==g&&c.Uc==h&&c.Vc==l&&c.Wc==n||(b.b.push([10,e,l,f,h,n,g]),c.Xc=e,c.Sc=f,c.Tc=g,c.Uc=h,c.Vc=l,c.Wc=n)}function Pm(b,c,d){Cm.call(this,b,c,d);this.W=this.Y=this.r=null;this.i="";this.o=this.l=this.n=this.p=0;this.g=this.f=this.c=null}w(Pm,Cm); -Pm.prototype.qb=function(b,c,d,e,f,g){if(""!==this.i&&null!==this.g&&(null!==this.c||null!==this.f)){if(null!==this.c){f=this.c;var h=this.r;if(null===h||h.fillStyle!=f.fillStyle){var l=[9,f.fillStyle];this.b.push(l);this.a.push(l);null===h?this.r={fillStyle:f.fillStyle}:h.fillStyle=f.fillStyle}}null!==this.f&&(f=this.f,h=this.Y,null===h||h.lineCap!=f.lineCap||h.lineDash!=f.lineDash||h.lineJoin!=f.lineJoin||h.lineWidth!=f.lineWidth||h.miterLimit!=f.miterLimit||h.strokeStyle!=f.strokeStyle)&&(l=[10, -f.strokeStyle,f.lineWidth,f.lineCap,f.lineJoin,f.miterLimit,f.lineDash,!1],this.b.push(l),this.a.push(l),null===h?this.Y={lineCap:f.lineCap,lineDash:f.lineDash,lineJoin:f.lineJoin,lineWidth:f.lineWidth,miterLimit:f.miterLimit,strokeStyle:f.strokeStyle}:(h.lineCap=f.lineCap,h.lineDash=f.lineDash,h.lineJoin=f.lineJoin,h.lineWidth=f.lineWidth,h.miterLimit=f.miterLimit,h.strokeStyle=f.strokeStyle));f=this.g;h=this.W;if(null===h||h.font!=f.font||h.textAlign!=f.textAlign||h.textBaseline!=f.textBaseline)l= -[11,f.font,f.textAlign,f.textBaseline],this.b.push(l),this.a.push(l),null===h?this.W={font:f.font,textAlign:f.textAlign,textBaseline:f.textBaseline}:(h.font=f.font,h.textAlign=f.textAlign,h.textBaseline=f.textBaseline);Em(this,g);f=this.coordinates.length;b=Dm(this,b,c,d,e,!1);b=[5,f,b,this.i,this.p,this.n,this.l,this.o,null!==this.c,null!==this.f];this.b.push(b);this.a.push(b);Hm(this,g)}}; -Pm.prototype.Ba=function(b){if(null===b)this.i="";else{var c=b.a;null===c?this.c=null:(c=c.a,c=xg(null===c?Cl:c),null===this.c?this.c={fillStyle:c}:this.c.fillStyle=c);var d=b.f;if(null===d)this.f=null;else{var c=d.a,e=d.d,f=d.c,g=d.e,h=d.b,d=d.f,e=m(e)?e:"round",f=null!=f?f.slice():Dl,g=m(g)?g:"round",h=m(h)?h:1,d=m(d)?d:10,c=xg(null===c?El:c);if(null===this.f)this.f={lineCap:e,lineDash:f,lineJoin:g,lineWidth:h,miterLimit:d,strokeStyle:c};else{var l=this.f;l.lineCap=e;l.lineDash=f;l.lineJoin=g;l.lineWidth= -h;l.miterLimit=d;l.strokeStyle=c}}var n=b.d,c=b.p,e=b.n,f=b.e,h=b.b,d=b.c,g=b.g,l=b.i;b=m(n)?n:"10px sans-serif";g=m(g)?g:"center";l=m(l)?l:"middle";null===this.g?this.g={font:b,textAlign:g,textBaseline:l}:(n=this.g,n.font=b,n.textAlign=g,n.textBaseline=l);this.i=m(d)?d:"";this.p=m(c)?c:0;this.n=m(e)?e:0;this.l=m(f)?f:0;this.o=m(h)?h:1}};function Qm(b,c,d,e){this.i=b;this.c=c;this.g=d;this.d=e;this.b={};this.e=Vi(1,1);this.f=zd()} -function Rm(b){for(var c in b.b){var d=b.b[c],e;for(e in d)d[e].ae()}}function Sm(b,c,d,e,f,g){var h=b.f;nk(h,.5,.5,1/d,-1/d,-e,-c[0],-c[1]);var l=b.e;l.clearRect(0,0,1,1);var n;m(b.d)&&(n=Kd(),Ld(n,c),Od(n,d*b.d,n));return Tm(b,l,h,e,f,function(b){if(0=c[0]||b[1]<=c[1]&&b[3]>=c[1]?!0:Zd(b,this.Ge,this)):!1}; -k.dl=function(b){var c=this.t,d=b.slice();d[c]=d[0]+(this.j[c]-this.j[0]);var e;for(e=1;eb||0!==this.f&&b>1,q=h(d,g[p]),0t?(d=(d-g[-t-2])/(g[-t-1]-g[-t-2]),c+=(-t-2)*e,g=Xb(b[c],b[c+e],d),h=Xb(b[c+1],b[c+e+1],d)):(g=b[c+t*e],h=b[c+t*e+1])}return null!=f? -(f[0]=g,f[1]=h,f):[g,h]}function cn(b,c,d,e,f,g){if(d==c)return null;if(f>1,fb||this.c.length<=b)return null;var c=new N(null);en(c,this.b,this.j.slice(0===b?0:this.c[b-1],this.c[b]));return c};k.ad=function(){var b=this.j,c=this.c,d=this.b,e=[],f=0,g,h;g=0;for(h=c.length;gb||c<=b)return null;c=new C(null);uf(c,this.b,this.j.slice(b*this.t,(b+1)*this.t));return c};k.$d=function(){var b=this.j,c=this.b,d=this.t,e=[],f,g;f=0;for(g=b.length;fb||this.c.length<=b)return null;var c;0===b?c=0:(c=this.c[b-1],c=c[c.length-1]);b=this.c[b].slice();var d=b[b.length-1];if(0!==c){var e,f;e=0;for(f=b.length;ed?b[1]="?":d==c.length-1&&(b[1]=void 0)}return b.join("")} -function ko(b,c,d){if(ga(c))for(var e=0;e=b[0]&&c[3]>=b[1]}function r(b,c,d,e,f){for(var g=[c,d],h;g.length;)d=g.pop(),c=g.pop(),d-c<=e||(h=c+Math.ceil((d-c)/e/2)*e,t(b,c,d,h,f),g.push(c,h,h,d))}function t(b,c,d,e,f){for(var g,h,l,n,p;d>c;){600h-g/2?-1:1),l=Math.max(c,Math.floor(e-h*n/g+p)),h=Math.min(d,Math.floor(e+(g-h)*n/g+p)),t(b,l,h,e,f));g=b[e];h=c;n=d;v(b,c,e);for(0f(b[h],g);)h++;for(;0this.Be)this.pi(e,c),c--;else break;this.ji(d,e,c)},pi:function(b,c){var e=b[c],f=e.children.length,g=this.Gf;this.ki(e,g,f);f={children:e.children.splice(this.li(e,g,f)),height:e.height};e.ua&&(f.ua=!0);d(e,this.Ea);d(f,this.Ea);c?b[c-1].children.push(f):this.Hf(e, -f)},Hf:function(b,c){this.data={children:[b,c],height:b.height+1};d(this.data,this.Ea)},li:function(b,c,d){var f,g,h,n,p,q,r;p=q=Infinity;for(f=c;f<=d-c;f++){g=e(b,0,f,this.Ea);h=e(b,f,d,this.Ea);var t=g,v=h;n=Math.max(t[0],v[0]);var za=Math.max(t[1],v[1]),cb=Math.min(t[2],v[2]),t=Math.min(t[3],v[3]);n=Math.max(0,cb-n)*Math.max(0,t-za);g=l(g)+l(h);n=c;q--)r=b.children[q],f(l,b.ua?g(r):r.bbox),p+=n(l);return p},ji:function(b,c,d){for(;0<=d;d--)f(c[d].bbox,b)},ni:function(b){for(var c=b.length-1,e;0<=c;c--)0===b[c].children.length?0E||this.c[1]>B)?(y.width=E,y.height=B,this.c=[E,B],this.p=!Am(this.c),this.d=null):(E=this.c[0],B=this.c[1],(y=p!=this.o)||(y=this.d,y=!(y.a<=z.a&&z.d<=y.d&&y.b<=z.b&&z.c<=y.c)),y&&(this.d=null)));var K,H;null===this.d?(E/=q[0],B/=q[1],K=z.a-Math.floor((E-mg(z))/2),H=z.b-Math.floor((B-(z.c-z.b+1))/2),this.o=p,this.q=q[0],this.r=q[1],this.d=new kg(K,K+E-1,H,H+B-1),this.i=Array(E*B),B=this.d):(B=this.d,E=mg(B));y={};y[p]={};var S=[],sa= -this.zd(h,y),Na=g.c(),R=Kd(),za=new kg(0,0,0,0),cb,Ha,Bb;for(H=z.a;H<=z.d;++H)for(Bb=z.b;Bb<=z.c;++Bb)Ha=h.Ub(p,H,Bb,d,f),K=Ha.state,2==K||4==K||3==K&&!Na?y[p][dg(Ha.a)]=Ha:(cb=Jh(l,Ha.a,sa,za,R),cb||(S.push(Ha),cb=Lh(l,Ha.a,za,R),null===cb||sa(p+1,cb)));sa=0;for(cb=S.length;san[2];)++p,q=l*p,q=ym(this,b,q),Vm(r,t,f,q,h,g),c-=l;q=ym(this,b,0)}t!=d&&(xm(this,"render",t,b,q),d.drawImage(t.canvas,0,0));t.globalAlpha=v}xm(this,"postcompose",d,b,q)};Jp.prototype.Oa=function(b,c,d,e){if(null!==this.c){var f=c.viewState.resolution,g=c.viewState.rotation,h=this.b,l=c.layerStates[ma(h)],n={};return Sm(this.c,b,f,g,l.$b?c.skippedFeatureUids:{},function(b){var c=ma(b).toString();if(!(c in n))return n[c]=!0,d.call(e,b,h)})}};Jp.prototype.n=function(){rk(this)}; -Jp.prototype.ef=function(b){function c(b){var c;m(b.c)?c=b.c.call(b,p):m(d.b)&&(c=(0,d.b)(b,p));if(null!=c){if(null!=c){var e,f,g=!1;e=0;for(f=c.length;eS&&Rg(this.target,z.target,0)}else{if(!b.viewHints[0]&&!b.viewHints[1]){L=ig(z.d,t,z.c[0],B);S=[];y=H=void 0;for(y in z.b)H=z.b[y],L.contains(H.a)|| -S.push(H);Na=L=void 0;L=0;for(Na=S.length;L=l;){n=b.c[p];v=b.n[p];E=ma(v).toString();if(!m(r[E])&&(!m(A)||he(A,v.Q().I()))&&(z.clear(z.COLOR_BUFFER_BIT|z.DEPTH_BUFFER_BIT),z.drawElements(4,q-n,f,n*c),q=t(v))){b=q;break a}q=n;p--}b=void 0}else z.clear(z.COLOR_BUFFER_BIT|z.DEPTH_BUFFER_BIT),rq(b,z,c,r,b.g,b.f),b=(b=t(null))?b:void 0;L=b}else rq(b,z,c,r,b.Qa,b.o);z.disableVertexAttribArray(B.d);z.disableVertexAttribArray(B.a);z.disableVertexAttribArray(B.e); -z.disableVertexAttribArray(B.b);z.disableVertexAttribArray(B.c);return L} -function rq(b,c,d,e,f,g){var h=d.c?5125:5123;d=d.c?4:2;if(xb(e)){var l;b=0;e=f.length;for(l=0;bc[0]|| -c[0]>f[0]||0>c[1]||c[1]>f[1])&&(null===this.g&&(this.g=Vi(1,1)),this.g.clearRect(0,0,1,1),this.g.drawImage(this.d.a(),c[0],c[1],1,1,0,0,1,1),0e?c[0]=e-d:0>f&&(c[0]=Math.abs(f)+ -d),0>g?c[1]=g-d:0>h&&(c[1]=Math.abs(h)+d),0===c[0]&&0===c[1])||(d=b.P().Da(),e=b.ra(d),c=[e[0]+c[0],e[1]+c[1]],null!==this.d&&(this.d.source=d,b.Ha(Yf(this.d))),b.P().Xa(b.ma(c)))}}};k.Zj=function(){$q(this)};k.qh=function(b){this.set("element",b)};k.setMap=function(b){this.set("map",b)};k.vh=function(b){this.set("offset",b)};k.tf=function(b){this.set("position",b)}; -function ar(b,c){var d=Gg(b);gh(b,"position");var e=new Cg(0,0),f;f=d?Gg(d):document;f=!Ib||Ib&&9<=Tb||Wg(Eg(f))?f.documentElement:f.body;b!=f&&(f=jh(b),d=Xg(Eg(d)),e.x=f.left+d.x,e.y=f.top+d.y);return[e.x,e.y,e.x+c[0],e.y+c[1]]}k.wh=function(b){this.set("positioning",b)}; -function $q(b){var c=b.Yd(),d=b.wg();if(m(c)&&null!==c.c&&m(d)){var d=c.ra(d),e=c.va(),c=b.$.style,f=b.$f(),g=b.cg(),h=f[0],f=f[1];if("bottom-right"==g||"center-right"==g||"top-right"==g)""!==b.b.Vd&&(b.b.Vd=c.left=""),h=Math.round(e[0]-d[0]-h)+"px",b.b.re!=h&&(b.b.re=c.right=h);else{""!==b.b.re&&(b.b.re=c.right="");if("bottom-center"==g||"center-center"==g||"top-center"==g)h-=lh(b.$).width/2;h=Math.round(d[0]+h)+"px";b.b.Vd!=h&&(b.b.Vd=c.left=h)}if("bottom-left"==g||"bottom-center"==g||"bottom-right"== -g)""!==b.b.se&&(b.b.se=c.top=""),d=Math.round(e[1]-d[1]-f)+"px",b.b.vd!=d&&(b.b.vd=c.bottom=d);else{""!==b.b.vd&&(b.b.vd=c.bottom="");if("center-left"==g||"center-center"==g||"center-right"==g)f-=lh(b.$).height/2;d=Math.round(d[1]+f)+"px";b.b.se!=d&&(b.b.se=c.top=d)}b.b.visible||(nh(b.$,!0),b.b.visible=!0)}else b.b.visible&&(nh(b.$,!1),b.b.visible=!1)};function br(b){b=m(b)?b:{};this.f=m(b.collapsed)?b.collapsed:!0;this.g=m(b.collapsible)?b.collapsible:!0;this.g||(this.f=!1);var c=m(b.className)?b.className:"ol-overviewmap",d=m(b.tipLabel)?b.tipLabel:"Overview map",e=m(b.collapseLabel)?b.collapseLabel:"\u00ab";this.l=ia(e)?Lg("SPAN",{},e):e;e=m(b.label)?b.label:"\u00bb";this.o=ia(e)?Lg("SPAN",{},e):e;d=Lg("BUTTON",{type:"button",title:d},this.g&&!this.f?this.l:this.o);x(d,"click",this.al,!1,this);wh(d);var e=Lg("DIV","ol-overviewmap-map"),f=this.d= -new X({controls:new qg,interactions:new qg,target:e});m(b.layers)&&b.layers.forEach(function(b){f.If(b)},this);var g=Lg("DIV","ol-overviewmap-box");this.i=new Zq({position:[0,0],positioning:"bottom-left",element:g});this.d.Jf(this.i);c=Lg("DIV",c+" ol-unselectable ol-control"+(this.f&&this.g?" ol-collapsed":"")+(this.g?"":" ol-uncollapsible"),e,d);vh.call(this,{element:c,render:m(b.render)?b.render:cr,target:b.target})}w(br,vh);k=br.prototype; -k.setMap=function(b){var c=this.b;b!==c&&(c&&(c=c.P())&&Vc(c,hd("rotation"),this.Pd,!1,this),br.S.setMap.call(this,b),b&&(this.n.push(x(b,"propertychange",this.Sj,!1,this)),0===this.d.vg().Ib()&&this.d.th(b.Tb()),b=b.P()))&&(x(b,hd("rotation"),this.Pd,!1,this),Sf(b)&&(this.d.Lc(),dr(this)))};k.Sj=function(b){"view"===b.key&&((b=b.oldValue)&&Vc(b,hd("rotation"),this.Pd,!1,this),b=this.b.P(),x(b,hd("rotation"),this.Pd,!1,this))};k.Pd=function(){this.d.P().Zd(this.b.P().xa())}; -function cr(){var b=this.b,c=this.d;if(null!==b.c&&null!==c.c){var d=b.va(),b=b.P().Pc(d),e=c.va(),d=c.P().Pc(e),f=c.ra(ce(b)),c=c.ra(ae(b)),c=new Dg(Math.abs(f[0]-c[0]),Math.abs(f[1]-c[1])),f=e[0],e=e[1];c.width<.1*f||c.height<.1*e||c.width>.75*f||c.height>.75*e?dr(this):Td(d,b)||(b=this.d,d=this.b.P(),b.P().Xa(d.Da()))}er(this)}function dr(b){var c=b.b;b=b.d;var d=c.va(),c=c.P().Pc(d),d=b.va();b=b.P();var e=Math.log(7.5)/Math.LN2;ke(c,1/(.1*Math.pow(2,e/2)));b.Je(c,d)} -function er(b){var c=b.b,d=b.d;if(null!==c.c&&null!==d.c){var e=c.va(),f=c.P(),g=d.P();d.va();var c=f.xa(),h=b.i,d=b.i.Xd(),f=f.Pc(e),e=g.wa(),g=$d(f),f=be(f),l;b=b.b.P().Da();m(b)&&(l=[g[0]-b[0],g[1]-b[1]],rd(l,c),md(l,b));h.tf(l);null!=d&&(l=new Dg(Math.abs((g[0]-f[0])/e),Math.abs((f[1]-g[1])/e)),c=Wg(Eg(Gg(d))),!Ib||Rb("10")||c&&Rb("8")?(d=d.style,Jb?d.MozBoxSizing="border-box":Kb?d.WebkitBoxSizing="border-box":d.boxSizing="border-box",d.width=Math.max(l.width,0)+"px",d.height=Math.max(l.height, -0)+"px"):(b=d.style,c?(c=qh(d,"padding"),d=th(d),b.pixelWidth=l.width-d.left-c.left-c.right-d.right,b.pixelHeight=l.height-d.top-c.top-c.bottom-d.bottom):(b.pixelWidth=l.width,b.pixelHeight=l.height)))}}k.al=function(b){b.preventDefault();fr(this)};function fr(b){bh(b.element,"ol-collapsed");b.f?Tg(b.l,b.o):Tg(b.o,b.l);b.f=!b.f;var c=b.d;b.f||null!==c.c||(c.Lc(),dr(b),Uc(c,"postrender",function(){er(this)},!1,b))}k.$k=function(){return this.g}; -k.cl=function(b){this.g!==b&&(this.g=b,bh(this.element,"ol-uncollapsible"),!b&&this.f&&fr(this))};k.bl=function(b){this.g&&this.f!==b&&fr(this)};k.Zk=function(){return this.f};function gr(b){b=m(b)?b:{};var c=m(b.className)?b.className:"ol-scale-line";this.g=Lg("DIV",c+"-inner");this.$=Lg("DIV",c+" ol-unselectable",this.g);this.l=null;this.i=m(b.minWidth)?b.minWidth:64;this.d=!1;this.q=void 0;this.o="";this.f=null;vh.call(this,{element:this.$,render:m(b.render)?b.render:hr,target:b.target});x(this,hd("units"),this.U,!1,this);this.D(b.units||"metric")}w(gr,vh);var ir=[1,2,5];gr.prototype.r=function(){return this.get("units")}; -function hr(b){b=b.frameState;null===b?this.l=null:this.l=b.viewState;jr(this)}gr.prototype.U=function(){jr(this)};gr.prototype.D=function(b){this.set("units",b)}; -function jr(b){var c=b.l;if(null===c)b.d&&(nh(b.$,!1),b.d=!1);else{var d=c.center,e=c.projection,c=e.getPointResolution(c.resolution,d),f=e.b,g=b.r();"degrees"!=f||"metric"!=g&&"imperial"!=g&&"us"!=g&&"nautical"!=g?"degrees"!=f&&"degrees"==g?(null===b.f&&(b.f=De(e,ze("EPSG:4326"))),d=Math.cos(Yb(b.f(d)[1])),e=ve.radius,e/=we[f],c*=180/(Math.PI*d*e)):b.f=null:(b.f=null,d=Math.cos(Yb(d[1])),c*=Math.PI*d*ve.radius/180);d=b.i*c;f="";"degrees"==g?d<1/60?(f="\u2033",c*=3600):1>d?(f="\u2032",c*=60):f="\u00b0": -"imperial"==g?.9144>d?(f="in",c/=.0254):1609.344>d?(f="ft",c/=.3048):(f="mi",c/=1609.344):"nautical"==g?(c/=1852,f="nm"):"metric"==g?1>d?(f="mm",c*=1E3):1E3>d?f="m":(f="km",c/=1E3):"us"==g&&(.9144>d?(f="in",c*=39.37):1609.344>d?(f="ft",c/=.30480061):(f="mi",c/=1609.3472));for(d=3*Math.floor(Math.log(b.i*c)/Math.log(10));;){e=ir[d%3]*Math.pow(10,Math.floor(d/3));g=Math.round(e/c);if(isNaN(g)){nh(b.$,!1);b.d=!1;return}if(g>=b.i)break;++d}c=e+" "+f;b.o!=c&&(b.g.innerHTML=c,b.o=c);b.q!=g&&(b.g.style.width= -g+"px",b.q=g);b.d||(nh(b.$,!0),b.d=!0)}};function kr(b){mc.call(this);this.b=b;this.a={}}w(kr,mc);var lr=[];kr.prototype.Ka=function(b,c,d,e){ga(c)||(c&&(lr[0]=c.toString()),c=lr);for(var f=0;fd.height?(this.g=1,d=new dh(0,0,e,0)):(this.g=wr,d=new dh(0,0,0,c));this.d.a=d||new dh(NaN,NaN,NaN,NaN);this.o=!0}b=b.frameState.viewState.resolution;b!==this.f&&(this.f=b,b=1-Qf(this.b.P())(b),d=this.d,c=Ug(this.element),1==this.g?hh(c,d.a.left+d.a.width*b):hh(c, -d.a.left,d.a.top+d.a.height*b))}}k.Bj=function(b){var c=this.b,d=c.P(),e=d.wa();c.Ha($f({resolution:e,duration:this.l,easing:Uf}));b=yr(this,b.offsetX-this.i[0]/2,b.offsetY-this.i[1]/2);b=zr(this,b);d.Pb(d.constrainResolution(b))};k.Ej=function(){Tf(this.b.P(),1)};k.Cj=function(b){b=yr(this,b.left,b.top);this.f=zr(this,b);this.b.P().Pb(this.f)};k.Dj=function(){var b=this.b,c=b.P();Tf(c,-1);b.Ha($f({resolution:this.f,duration:this.l,easing:Uf}));b=c.constrainResolution(this.f);c.Pb(b)}; -function yr(b,c,d){var e=b.d.a;return Vb(1===b.g?(c-e.left)/e.width:(d-e.top)/e.height,0,1)}function zr(b,c){return Of(b.b.P())(1-c)};function Ar(b){b=m(b)?b:{};this.d=m(b.extent)?b.extent:null;var c=m(b.className)?b.className:"ol-zoom-extent",d=Lg("BUTTON",{type:"button",title:m(b.tipLabel)?b.tipLabel:"Fit to extent"},m(b.label)?b.label:"E");x(d,"click",this.f,!1,this);wh(d);c=Lg("DIV",c+" ol-unselectable ol-control",d);vh.call(this,{element:c,target:b.target})}w(Ar,vh);Ar.prototype.f=function(b){b.preventDefault();var c=this.b;b=c.P();var d=null===this.d?b.e.I():this.d,c=c.va();b.Je(d,c)};function Br(b){fd.call(this);b=m(b)?b:{};this.b=null;x(this,hd("tracking"),this.Dk,!1,this);this.$e(m(b.tracking)?b.tracking:!1)}w(Br,fd);k=Br.prototype;k.N=function(){this.$e(!1);Br.S.N.call(this)}; -k.Vm=function(b){b=b.a;if(null!=b.alpha){var c=Yb(b.alpha);this.set("alpha",c);"boolean"==typeof b.absolute&&b.absolute?this.set("heading",c):null!=b.webkitCompassHeading&&null!=b.webkitCompassAccuracy&&-1!=b.webkitCompassAccuracy&&this.set("heading",Yb(b.webkitCompassHeading))}null!=b.beta&&this.set("beta",Yb(b.beta));null!=b.gamma&&this.set("gamma",Yb(b.gamma));this.k()};k.Ii=function(){return this.get("alpha")};k.Li=function(){return this.get("beta")};k.Ui=function(){return this.get("gamma")}; -k.Ck=function(){return this.get("heading")};k.rg=function(){return this.get("tracking")};k.Dk=function(){if(fj){var b=this.rg();b&&null===this.b?this.b=x(ba,"deviceorientation",this.Vm,!1,this):b||null===this.b||(Wc(this.b),this.b=null)}};k.$e=function(b){this.set("tracking",b)};function Cr(){this.defaultDataProjection=null}function Dr(b,c,d){var e;m(d)&&(e={dataProjection:m(d.dataProjection)?d.dataProjection:b.za(c),featureProjection:d.featureProjection});return Er(b,e)}function Er(b,c){var d;m(c)&&(d={featureProjection:c.featureProjection,dataProjection:null!=c.dataProjection?c.dataProjection:b.defaultDataProjection,rightHanded:c.rightHanded});return d} -function Fr(b,c,d){var e=m(d)?ze(d.featureProjection):null;d=m(d)?ze(d.dataProjection):null;return null===e||null===d||Re(e,d)?b:b instanceof We?(c?b.clone():b).transform(c?e:d,c?d:e):Ve(c?b.slice():b,c?e:d,c?d:e)};function Gr(){this.defaultDataProjection=null}w(Gr,Cr);function Hr(b){return la(b)?b:ia(b)?(b=Xn(b),m(b)?b:null):null}k=Gr.prototype;k.L=function(){return"json"};k.xb=function(b,c){return this.Gc(Hr(b),Dr(this,b,c))};k.ja=function(b,c){return this.mf(Hr(b),Dr(this,b,c))};k.Hc=function(b,c){return this.bh(Hr(b),Dr(this,b,c))};k.za=function(b){return this.ih(Hr(b))};k.qd=function(b,c){return Yn(this.Mc(b,c))};k.yb=function(b,c){return Yn(this.ve(b,c))};k.Nc=function(b,c){return Yn(this.xe(b,c))};function Ir(b){b=m(b)?b:{};this.defaultDataProjection=null;this.a=b.geometryName}w(Ir,Gr); -function Jr(b,c){if(null===b)return null;var d;if(ja(b.x)&&ja(b.y))d="Point";else if(null!=b.points)d="MultiPoint";else if(null!=b.paths)d=1===b.paths.length?"LineString":"MultiLineString";else if(null!=b.rings){var e=b.rings,f=Kr(b),g=[];d=[];var h,l;h=0;for(l=e.length;hc)throw Error("Bad port number "+c);b.Fc=c}else b.Fc=null}function jt(b,c,d){c instanceof lt?(b.a=c,rt(b.a,b.Wb)):(d||(c=mt(c,st)),b.a=new lt(c,0,b.Wb))}function tt(b){return b instanceof gt?b.clone():new gt(b,void 0)} -function ut(b,c){b instanceof gt||(b=tt(b));c instanceof gt||(c=tt(c));var d=b,e=c,f=d.clone(),g=!!e.Nb;g?ht(f,e.Nb):g=!!e.pc;g?f.pc=e.pc:g=!!e.nb;g?f.nb=e.nb:g=null!=e.Fc;var h=e.ib;if(g)it(f,e.Fc);else if(g=!!e.ib)if("/"!=h.charAt(0)&&(d.nb&&!d.ib?h="/"+h:(d=f.ib.lastIndexOf("/"),-1!=d&&(h=f.ib.substr(0,d+1)+h))),d=h,".."==d||"."==d)h="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){for(var h=0==d.lastIndexOf("/",0),d=d.split("/"),l=[],n=0;n>4&15).toString(16)+(b&15).toString(16)} -var nt=/[#\/\?@]/g,pt=/[\#\?:]/g,ot=/[\#\?]/g,st=/[\#\?@]/g,qt=/#/g;function lt(b,c,d){this.a=b||null;this.b=!!d}function wt(b){b.ia||(b.ia=new wi,b.ta=0,b.a&&io(b.a,function(c,d){b.add(decodeURIComponent(c.replace(/\+/g," ")),d)}))}k=lt.prototype;k.ia=null;k.ta=null;k.Sb=function(){wt(this);return this.ta};k.add=function(b,c){wt(this);this.a=null;b=xt(this,b);var d=this.ia.get(b);d||this.ia.set(b,d=[]);d.push(c);this.ta++;return this}; -k.remove=function(b){wt(this);b=xt(this,b);return yi(this.ia.b,b)?(this.a=null,this.ta-=this.ia.get(b).length,this.ia.remove(b)):!1};k.clear=function(){this.ia=this.a=null;this.ta=0};k.pa=function(){wt(this);return 0==this.ta};function yt(b,c){wt(b);c=xt(b,c);return yi(b.ia.b,c)}k.G=function(){wt(this);for(var b=this.ia.eb(),c=this.ia.G(),d=[],e=0;ee;++e){var f=parseInt(d[e],10).toString(16);d[e]=1==f.length?"0"+f:f}fs(b,d.join(""))} -function Cu(b,c,d){op({O:b},Du,Eu,[c],d)}function Fu(b,c,d){var e={O:b};null!=c.aa&&b.setAttribute("id",c.aa);b=c.H();var f=c.c;m(f)&&(f=f.call(c,0),null!==f&&0f?~(f<<1):f<<1;d="";e=0;for(f=b.length;e>=5;h=g+63;l+=String.fromCharCode(h);d+=l}return d} -function Pv(b,c){var d=m(c)?c:1E5,e=[],f=0,g=0,h,l;h=0;for(l=b.length;hn?(e.push(f),g=f=0):g+=5}f=0;for(g=e.length;f>1):h>>1;f=0;for(g=e.length;f=b||"."==b&&!d} -function qw(b){var c=b.b.charAt(++b.a),d={position:b.a,value:c};if("("==c)d.type=2;else if(","==c)d.type=5;else if(")"==c)d.type=3;else if(sw(c)||"-"==c){d.type=4;var e,c=b.a,f=!1,g=!1;do{if("."==e)f=!0;else if("e"==e||"E"==e)g=!0;e=b.b.charAt(++b.a)}while(sw(e,f)||!g&&("e"==e||"E"==e)||g&&("-"==e||"+"==e));b=parseFloat(b.b.substring(c,b.a--));d.value=b}else if("a"<=c&&"z">=c||"A"<=c&&"Z">=c){d.type=1;c=b.a;do e=b.b.charAt(++b.a);while("a"<=e&&"z">=e||"A"<=e&&"Z">=e);b=b.b.substring(c,b.a--).toUpperCase(); -d.value=b}else{if(" "==c||"\t"==c||"\r"==c||"\n"==c)return qw(b);if(""===c)d.type=6;else throw Error("Unexpected character: "+c);}return d}function ow(b){this.b=b}k=ow.prototype;k.match=function(b){if(b=this.a.type==b)this.a=qw(this.b);return b}; -function rw(b){var c=b.a;if(b.match(1)){var d=c.value;if("GEOMETRYCOLLECTION"==d){a:{if(b.match(2)){c=[];do c.push(rw(b));while(b.match(5));if(b.match(3)){b=c;break a}}else if(tw(b)){b=[];break a}throw Error(uw(b));}return new Ym(b)}var e=vw[d],c=ww[d];if(!m(e)||!m(c))throw Error("Invalid geometry type: "+d);b=e.call(b);return new c(b)}throw Error(uw(b));}k.jf=function(){if(this.match(2)){var b=xw(this);if(this.match(3))return b}else if(tw(this))return null;throw Error(uw(this));}; -k.hf=function(){if(this.match(2)){var b=yw(this);if(this.match(3))return b}else if(tw(this))return[];throw Error(uw(this));};k.kf=function(){if(this.match(2)){var b=zw(this);if(this.match(3))return b}else if(tw(this))return[];throw Error(uw(this));};k.Zm=function(){if(this.match(2)){var b;if(2==this.a.type)for(b=[this.jf()];this.match(5);)b.push(this.jf());else b=yw(this);if(this.match(3))return b}else if(tw(this))return[];throw Error(uw(this));}; -k.Ym=function(){if(this.match(2)){var b=zw(this);if(this.match(3))return b}else if(tw(this))return[];throw Error(uw(this));};k.$m=function(){if(this.match(2)){for(var b=[this.kf()];this.match(5);)b.push(this.kf());if(this.match(3))return b}else if(tw(this))return[];throw Error(uw(this));};function xw(b){for(var c=[],d=0;2>d;++d){var e=b.a;if(b.match(4))c.push(e.value);else break}if(2==c.length)return c;throw Error(uw(b));}function yw(b){for(var c=[xw(b)];b.match(5);)c.push(xw(b));return c} -function zw(b){for(var c=[b.hf()];b.match(5);)c.push(b.hf());return c}function tw(b){var c=1==b.a.type&&"EMPTY"==b.a.value;c&&(b.a=qw(b.b));return c}function uw(b){return"Unexpected `"+b.a.value+"` at position "+b.a.position+" in `"+b.b.b+"`"}var ww={POINT:C,LINESTRING:N,POLYGON:D,MULTIPOINT:hn,MULTILINESTRING:O,MULTIPOLYGON:P},vw={POINT:ow.prototype.jf,LINESTRING:ow.prototype.hf,POLYGON:ow.prototype.kf,MULTIPOINT:ow.prototype.Zm,MULTILINESTRING:ow.prototype.Ym,MULTIPOLYGON:ow.prototype.$m};function Aw(){this.version=void 0}w(Aw,tv);Aw.prototype.b=function(b){for(b=b.firstChild;null!==b;b=b.nextSibling)if(1==b.nodeType)return this.a(b);return null};Aw.prototype.a=function(b){this.version=Ca(b.getAttribute("version"));b=V({version:this.version},Bw,b,[]);return m(b)?b:null};function Cw(b,c){return V({},Dw,b,c)}function Ew(b,c){return V({},Fw,b,c)}function Gw(b,c){var d=Cw(b,c);if(m(d)){var e=[ds(b.getAttribute("width")),ds(b.getAttribute("height"))];d.size=e;return d}} -function Hw(b,c){return V([],Iw,b,c)} -var Jw=[null,"http://www.opengis.net/wms"],Bw=T(Jw,{Service:Q(function(b,c){return V({},Kw,b,c)}),Capability:Q(function(b,c){return V({},Lw,b,c)})}),Lw=T(Jw,{Request:Q(function(b,c){return V({},Mw,b,c)}),Exception:Q(function(b,c){return V([],Nw,b,c)}),Layer:Q(function(b,c){return V({},Ow,b,c)})}),Kw=T(Jw,{Name:Q(Y),Title:Q(Y),Abstract:Q(Y),KeywordList:Q(Hw),OnlineResource:Q(sv),ContactInformation:Q(function(b,c){return V({},Pw,b,c)}),Fees:Q(Y),AccessConstraints:Q(Y),LayerLimit:Q(cs),MaxWidth:Q(cs), -MaxHeight:Q(cs)}),Pw=T(Jw,{ContactPersonPrimary:Q(function(b,c){return V({},Qw,b,c)}),ContactPosition:Q(Y),ContactAddress:Q(function(b,c){return V({},Rw,b,c)}),ContactVoiceTelephone:Q(Y),ContactFacsimileTelephone:Q(Y),ContactElectronicMailAddress:Q(Y)}),Qw=T(Jw,{ContactPerson:Q(Y),ContactOrganization:Q(Y)}),Rw=T(Jw,{AddressType:Q(Y),Address:Q(Y),City:Q(Y),StateOrProvince:Q(Y),PostCode:Q(Y),Country:Q(Y)}),Nw=T(Jw,{Format:ep(Y)}),Ow=T(Jw,{Name:Q(Y),Title:Q(Y),Abstract:Q(Y),KeywordList:Q(Hw),CRS:gp(Y), -EX_GeographicBoundingBox:Q(function(b,c){var d=V({},Sw,b,c);if(m(d)){var e=d.westBoundLongitude,f=d.southBoundLatitude,g=d.eastBoundLongitude,d=d.northBoundLatitude;return m(e)&&m(f)&&m(g)&&m(d)?[e,f,g,d]:void 0}}),BoundingBox:gp(function(b){var c=[bs(b.getAttribute("minx")),bs(b.getAttribute("miny")),bs(b.getAttribute("maxx")),bs(b.getAttribute("maxy"))],d=[bs(b.getAttribute("resx")),bs(b.getAttribute("resy"))];return{crs:b.getAttribute("CRS"),extent:c,res:d}}),Dimension:gp(function(b){return{name:b.getAttribute("name"), -units:b.getAttribute("units"),unitSymbol:b.getAttribute("unitSymbol"),"default":b.getAttribute("default"),multipleValues:Zr(b.getAttribute("multipleValues")),nearestValue:Zr(b.getAttribute("nearestValue")),current:Zr(b.getAttribute("current")),values:Y(b)}}),Attribution:Q(function(b,c){return V({},Tw,b,c)}),AuthorityURL:gp(function(b,c){var d=Cw(b,c);if(m(d))return d.name=b.getAttribute("name"),d}),Identifier:gp(Y),MetadataURL:gp(function(b,c){var d=Cw(b,c);if(m(d))return d.type=b.getAttribute("type"), -d}),DataURL:gp(Cw),FeatureListURL:gp(Cw),Style:gp(function(b,c){return V({},Uw,b,c)}),MinScaleDenominator:Q(as),MaxScaleDenominator:Q(as),Layer:gp(function(b,c){var d=c[c.length-1],e=V({},Ow,b,c);if(m(e)){var f=Zr(b.getAttribute("queryable"));m(f)||(f=d.queryable);e.queryable=m(f)?f:!1;f=ds(b.getAttribute("cascaded"));m(f)||(f=d.cascaded);e.cascaded=f;f=Zr(b.getAttribute("opaque"));m(f)||(f=d.opaque);e.opaque=m(f)?f:!1;f=Zr(b.getAttribute("noSubsets"));m(f)||(f=d.noSubsets);e.noSubsets=m(f)?f:!1; -f=bs(b.getAttribute("fixedWidth"));m(f)||(f=d.fixedWidth);e.fixedWidth=f;f=bs(b.getAttribute("fixedHeight"));m(f)||(f=d.fixedHeight);e.fixedHeight=f;Sa(["Style","CRS","AuthorityURL"],function(b){var c=d[b];if(m(c)){var f=Cb(e,b),f=f.concat(c);e[b]=f}});Sa("EX_GeographicBoundingBox BoundingBox Dimension Attribution MinScaleDenominator MaxScaleDenominator".split(" "),function(b){m(e[b])||(e[b]=d[b])});return e}})}),Tw=T(Jw,{Title:Q(Y),OnlineResource:Q(sv),LogoURL:Q(Gw)}),Sw=T(Jw,{westBoundLongitude:Q(as), -eastBoundLongitude:Q(as),southBoundLatitude:Q(as),northBoundLatitude:Q(as)}),Mw=T(Jw,{GetCapabilities:Q(Ew),GetMap:Q(Ew),GetFeatureInfo:Q(Ew)}),Fw=T(Jw,{Format:gp(Y),DCPType:gp(function(b,c){return V({},Vw,b,c)})}),Vw=T(Jw,{HTTP:Q(function(b,c){return V({},Ww,b,c)})}),Ww=T(Jw,{Get:Q(Cw),Post:Q(Cw)}),Uw=T(Jw,{Name:Q(Y),Title:Q(Y),Abstract:Q(Y),LegendURL:gp(Gw),StyleSheetURL:Q(Cw),StyleURL:Q(Cw)}),Dw=T(Jw,{Format:Q(Y),OnlineResource:Q(sv)}),Iw=T(Jw,{Keyword:ep(Y)});function Xw(){this.c="http://mapserver.gis.umn.edu/mapserver";this.a=new rs;this.defaultDataProjection=null}w(Xw,Ur); -function Yw(b,c,d){c.namespaceURI=b.c;var e=No(c),f=[];if(0===c.childNodes.length)return f;"msGMLOutput"==e&&Sa(c.childNodes,function(b){if(1===b.nodeType){var c=d[0],e=b.localName,n=RegExp,p;p="_layer".replace(/([-()\[\]{}+?*.$\^|,:#d.b?d.f:2*d.f)-d.b);c[0]=128;for(var e=1;ee;++e)for(var g=0;32>g;g+=8)c[f++]=d.a[e]>>>g&255;if(8192>=c.length)d=String.fromCharCode.apply(null, +c);else for(d="",e=0;eM.width?M.width-ga:R,zc=I+Ja>M.height?M.height-Ja:I;c.drawImage(M,ga,Ja,sc,zc,B,P,sc*d,zc*d);1!=K&&(c.globalAlpha=ja);if(1!=y||0!==A)Gd(v,b),c.transform(b[0], +b[1],b[4],b[5],b[12],b[13])}++p;break;case 5:r=B[1];t=B[2];E=B[3];fa=B[4]*d;I=B[5]*d;A=B[6];y=B[7]*d;M=B[8];for(K=B[9];rthis.g&&(this.g=this.b.lineWidth,this.c=null)}; +function Pm(b,c,d){Fm.call(this,b,c,d);this.b={ug:void 0,ld:void 0,fd:void 0,gd:null,hd:void 0,jd:void 0,kd:void 0,fillStyle:void 0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}z(Pm,Fm); +function Qm(b,c,d,e,f){var g=b.b,h=[1];b.f.push(h);b.a.push(h);var k,h=0;for(k=e.length;hthis.g&&(this.g=d.lineWidth,this.c=null)):(d.strokeStyle=void 0,d.lineCap=void 0,d.lineDash=null,d.lineJoin=void 0,d.lineWidth=void 0,d.miterLimit=void 0)}; +function Rm(b){var c=b.b,d=c.fillStyle,e=c.strokeStyle,f=c.lineCap,g=c.lineDash,h=c.lineJoin,k=c.lineWidth,m=c.miterLimit;void 0!==d&&c.ug!=d&&(b.f.push([9,d]),c.ug=c.fillStyle);void 0===e||c.ld==e&&c.fd==f&&c.gd==g&&c.hd==h&&c.jd==k&&c.kd==m||(b.f.push([10,e,k,f,h,m,g]),c.ld=e,c.fd=f,c.gd=g,c.hd=h,c.jd=k,c.kd=m)}function Sm(b,c,d){Fm.call(this,b,c,d);this.O=this.D=this.C=null;this.j="";this.v=this.B=this.G=this.o=0;this.l=this.i=this.b=null}z(Sm,Fm); +Sm.prototype.Kb=function(b,c,d,e,f,g){if(""!==this.j&&this.l&&(this.b||this.i)){if(this.b){f=this.b;var h=this.C;if(!h||h.fillStyle!=f.fillStyle){var k=[9,f.fillStyle];this.f.push(k);this.a.push(k);h?h.fillStyle=f.fillStyle:this.C={fillStyle:f.fillStyle}}}this.i&&(f=this.i,h=this.D,h&&h.lineCap==f.lineCap&&h.lineDash==f.lineDash&&h.lineJoin==f.lineJoin&&h.lineWidth==f.lineWidth&&h.miterLimit==f.miterLimit&&h.strokeStyle==f.strokeStyle||(k=[10,f.strokeStyle,f.lineWidth,f.lineCap,f.lineJoin,f.miterLimit, +f.lineDash,!1],this.f.push(k),this.a.push(k),h?(h.lineCap=f.lineCap,h.lineDash=f.lineDash,h.lineJoin=f.lineJoin,h.lineWidth=f.lineWidth,h.miterLimit=f.miterLimit,h.strokeStyle=f.strokeStyle):this.D={lineCap:f.lineCap,lineDash:f.lineDash,lineJoin:f.lineJoin,lineWidth:f.lineWidth,miterLimit:f.miterLimit,strokeStyle:f.strokeStyle}));f=this.l;h=this.O;h&&h.font==f.font&&h.textAlign==f.textAlign&&h.textBaseline==f.textBaseline||(k=[11,f.font,f.textAlign,f.textBaseline],this.f.push(k),this.a.push(k),h? +(h.font=f.font,h.textAlign=f.textAlign,h.textBaseline=f.textBaseline):this.O={font:f.font,textAlign:f.textAlign,textBaseline:f.textBaseline});Hm(this,g);f=this.coordinates.length;b=Gm(this,b,c,d,e,!1);b=[5,f,b,this.j,this.o,this.G,this.B,this.v,!!this.b,!!this.i];this.f.push(b);this.a.push(b);Km(this,g)}}; +Sm.prototype.fb=function(b){if(b){var c=b.a;c?(c=c.a,c=tg(c?c:Sl),this.b?this.b.fillStyle=c:this.b={fillStyle:c}):this.b=null;var d=b.l;if(d){var c=d.a,e=d.c,f=d.b,g=d.g,h=d.f,d=d.i,e=void 0!==e?e:"round",f=f?f.slice():Tl,g=void 0!==g?g:"round",h=void 0!==h?h:1,d=void 0!==d?d:10,c=tg(c?c:Ul);if(this.i){var k=this.i;k.lineCap=e;k.lineDash=f;k.lineJoin=g;k.lineWidth=h;k.miterLimit=d;k.strokeStyle=c}else this.i={lineCap:e,lineDash:f,lineJoin:g,lineWidth:h,miterLimit:d,strokeStyle:c}}else this.i=null; +var m=b.b,c=b.c,e=b.g,f=b.i,h=b.f,d=b.Da(),g=b.j,k=b.o;b=void 0!==m?m:"10px sans-serif";g=void 0!==g?g:"center";k=void 0!==k?k:"middle";this.l?(m=this.l,m.font=b,m.textAlign=g,m.textBaseline=k):this.l={font:b,textAlign:g,textBaseline:k};this.j=void 0!==d?d:"";this.o=void 0!==c?c:0;this.G=void 0!==e?e:0;this.B=void 0!==f?f:0;this.v=void 0!==h?h:1}else this.j=""};function Tm(b,c,d,e){this.G=b;this.g=c;this.o=d;this.i=e;this.b={};this.l=Mi(1,1);this.j=Ad()} +function Um(b){for(var c in b.b){var d=b.b[c],e;for(e in d)d[e].ye()}}Tm.prototype.c=function(b,c,d,e,f){var g=this.j;fk(g,.5,.5,1/c,-1/c,-d,-b[0],-b[1]);var h=this.l;h.clearRect(0,0,1,1);var k;void 0!==this.i&&(k=Ld(),Md(k,b),Pd(k,c*this.i,k));return Vm(this,h,g,d,e,function(b){if(0ga&&(ga=Sa,n=Ja)}if(0===ga){h=null;break a}ga=h[n];h[n]=h[m];h[m]=ga;for(n=m+1;nthis.a/2){var c=[[b.source[0][0],b.source[0][1]],[b.source[1][0],b.source[1][1]],[b.source[2][0],b.source[2][1]]];c[0][0]-p>this.a/2&&(c[0][0]-=this.a);c[1][0]-p>this.a/2&&(c[1][0]-=this.a);c[2][0]-p>this.a/2&&(c[2][0]-=this.a);Math.max(c[0][0],c[1][0],c[2][0])-Math.min(c[0][0],c[1][0],c[2][0])q,t=!1;if(0b.G),t)){Math.abs(c[0]-e[0])<=Math.abs(c[1]-e[1])?(r=[(d[0]+e[0])/2,(d[1]+e[1])/2],p=b.f(r),q=[(f[0]+c[0])/2,(f[1]+c[1])/2],t=b.f(q),hn(b,c,d,r,q,g,h,p,t,n-1),hn(b,q,r,e,f,t,p,k,m,n-1)):(r=[(c[0]+d[0])/2,(c[1]+d[1])/2],p=b.f(r),q=[(e[0]+f[0])/2,(e[1]+f[1])/2],t=b.f(q),hn(b,c,r,q,f,g,p,t,m,n-1),hn(b,r,d,e,q,p,h,k,t,n-1));return}if(r){if(!b.o)return;b.j=!0}b.c.push({source:[g,k,m],target:[c,e,f]});b.c.push({source:[g,h,k],target:[c,d,e]})}} +function jn(b){var c=Ld();b.c.forEach(function(b){b=b.source;Md(c,b[0]);Md(c,b[1]);Md(c,b[2])});return c};function kn(b,c,d,e,f,g){this.v=c;this.B=b.J();var h=c.J(),k=h?me(d,h):d,h=dn(b,c,ke(k),e);this.o=new gn(b,c,k,this.B,.5*h);this.l=e;this.g=d;b=jn(this.o);this.G=(this.f=g(b,h,f))?this.f.b:1;this.c=this.j=null;f=2;g=[];this.f&&(f=0,g=this.f.i);dk.call(this,d,e,this.G,f,g)}z(kn,dk);kn.prototype.X=function(){1==this.state&&(Wc(this.c),this.c=null);kn.da.X.call(this)};kn.prototype.a=function(){return this.j}; +function ln(b){var c=b.f.state;2==c&&(b.j=fn(ie(b.g)/b.l,je(b.g)/b.l,b.G,b.f.$(),0,b.l,b.g,b.o,[{extent:b.f.J(),image:b.f.a()}]));b.state=c;ek(b)}kn.prototype.load=function(){if(0==this.state){this.state=1;ek(this);var b=this.f.state;2==b||3==b?ln(this):(this.c=this.f.Sa("change",function(){var b=this.f.state;if(2==b||3==b)Wc(this.c),this.c=null,ln(this)},!1,this),this.f.load())}};function mn(b){uh.call(this,{attributions:b.attributions,extent:b.extent,logo:b.logo,projection:b.projection,state:b.state});this.D=void 0!==b.resolutions?b.resolutions:null;this.a=null;this.qa=0}z(mn,uh);function nn(b,c){if(b.D){var d=vb(b.D,c,0);c=b.D[d]}return c} +mn.prototype.C=function(b,c,d,e){var f=this.b;if(f&&e&&!Ve(f,e)){if(this.a){if(this.qa==this.f&&Ve(this.a.v,e)&&this.a.$()==c&&this.a.b==d&&$d(this.a.J(),b))return this.a;this.a.rc();this.a=null}this.a=new kn(f,e,b,c,d,function(b,c,d){return this.td(b,c,d,f)}.bind(this));this.qa=this.f;return this.a}f&&(e=f);return this.td(b,c,d,e)};mn.prototype.j=function(b){b=b.target;switch(b.state){case 1:this.s(new on(pn,b));break;case 2:this.s(new on(qn,b));break;case 3:this.s(new on(rn,b))}}; +function sn(b,c){b.a().src=c}function on(b,c){rc.call(this,b);this.image=c}z(on,rc);var pn="imageloadstart",qn="imageloadend",rn="imageloaderror";function tn(b){mn.call(this,{attributions:b.attributions,logo:b.logo,projection:b.projection,resolutions:b.resolutions,state:void 0!==b.state?b.state:void 0});this.ia=b.canvasFunction;this.Y=null;this.ha=0;this.na=void 0!==b.ratio?b.ratio:1.5}z(tn,mn);tn.prototype.td=function(b,c,d,e){c=nn(this,c);var f=this.Y;if(f&&this.ha==this.f&&f.$()==c&&f.b==d&&Ud(f.J(),b))return f;b=b.slice();oe(b,this.na);(e=this.ia(b,c,d,[ie(b)/c*d,je(b)/c*d],e))&&(f=new bn(b,c,d,this.l,e));this.Y=f;this.ha=this.f;return f};function un(b){fd.call(this);this.ya=void 0;this.a="geometry";this.c=null;this.g=void 0;this.b=null;D(this,hd(this.a),this.je,!1,this);void 0!==b&&(b instanceof $e||!b?this.Pa(b):this.I(b))}z(un,fd);l=un.prototype;l.clone=function(){var b=new un(this.R());b.Cc(this.a);var c=this.W();c&&b.Pa(c.clone());(c=this.c)&&b.Bf(c);return b};l.W=function(){return this.get(this.a)};l.Ma=function(){return this.ya};l.Wj=function(){return this.a};l.Hl=function(){return this.c};l.cc=function(){return this.g}; +l.Il=function(){this.u()};l.je=function(){this.b&&(Wc(this.b),this.b=null);var b=this.W();b&&(this.b=D(b,"change",this.Il,!1,this));this.u()};l.Pa=function(b){this.set(this.a,b)};l.Bf=function(b){this.g=(this.c=b)?vn(b):void 0;this.u()};l.kc=function(b){this.ya=b;this.u()};l.Cc=function(b){Vc(this,hd(this.a),this.je,!1,this);this.a=b;D(this,hd(this.a),this.je,!1,this);this.je()};function vn(b){if(!na(b)){var c;c=ia(b)?b:[b];b=function(){return c}}return b};function wn(b){b.prototype.then=b.prototype.then;b.prototype.$goog_Thenable=!0}function xn(b){if(!b)return!1;try{return!!b.$goog_Thenable}catch(c){return!1}};function yn(b,c,d){this.c=d;this.b=b;this.g=c;this.f=0;this.a=null}yn.prototype.get=function(){var b;0d?b[1]="?":d==c.length-1&&(b[1]=void 0)}return b.join("")}function no(b,c,d){if(ia(c))for(var e=0;e=b[0]&&c[3]>=b[1]}function q(b,c,d,e,f){for(var g=[c,d],h;g.length;)d=g.pop(),c=g.pop(),d-c<=e||(h=c+Math.ceil((d-c)/e/2)*e,r(b,c,d,h,f),g.push(c,h,h,d))}function r(b,c,d,e,f){for(var g,h,k,m,n;d>c;){600h-g/2?-1:1),k=Math.max(c,Math.floor(e-h*m/g+n)),h=Math.min(d,Math.floor(e+(g-h)*m/g+n)),r(b,k,h,e,f));g=b[e];h=c;m=d;t(b,c,e);for(0f(b[h],g);)h++;for(;0this.df)this.oj(e,c),c--;else break;this.cj(d,e,c)},oj:function(b,c){var e=b[c],f=e.children.length,g=this.lg;this.dj(e,g,f);f=this.ej(e,g,f);f={children:e.children.splice(f,e.children.length-f),height:e.height,bbox:null,Ga:!1};e.Ga&&(f.Ga=!0);d(e,this.hb);d(f,this.hb); +c?b[c-1].children.push(f):this.ng(e,f)},ng:function(b,c){this.data={children:[b,c],height:b.height+1,bbox:null,Ga:!1};d(this.data,this.hb)},ej:function(b,c,d){var f,g,h,m,n,p,q;n=p=Infinity;for(f=c;f<=d-c;f++)g=e(b,0,f,this.hb),h=e(b,f,d,this.hb),m=Math.max(0,Math.min(g[2],h[2])-Math.max(g[0],h[0]))*Math.max(0,Math.min(g[3],h[3])-Math.max(g[1],h[1])),g=k(g)+k(h),m=c;p--)q=b.children[p],f(k,b.Ga?g(q):q.bbox),n+=m(k);return n},cj:function(b,c,d){for(;0<=d;d--)f(c[d].bbox,b)},gj:function(b){for(var c=b.length-1,e;0<=c;c--)0===b[c].children.length?0A||this.b[1]>y)?(B.width=A,B.height=y,this.b=[A,y],this.o=!Dm(this.b),this.c=null):(A=this.b[0],y=this.b[1],p==this.v&&fg(this.c,C)||(this.c=null))):(M=Mi(A,y),this.i=M.canvas,this.b=[A,y],this.l=M,this.o=!Dm(this.b));var K,E;this.c?(y=this.c,A=ig(y)):(A/=q[0],y/=q[1],K=C.a-Math.floor((A-ig(C))/2),E=C.f-Math.floor((y-hg(C))/2),this.v=p,this.D=q[0],this.C=q[1],this.c=new cg(K,K+A-1,E,E+y-1),this.j=Array(A*y),y=this.c);B={};B[p]={};var P=[],fa=this.ed(k,g,B), +I=h.b(),ga=Ld(),Ja=new cg(0,0,0,0),Sa,R,ja;for(E=C.a;E<=C.c;++E)for(ja=C.f;ja<=C.b;++ja)R=k.Qb(p,E,ja,e,g),!d(R)&&R.a&&(R=R.a),d(R)?B[p][R.ga.toString()]=R:(Sa=Ah(m,R.ga,fa,Ja,ga),Sa||(P.push(R),(Sa=Ch(m,R.ga,Ja,ga))&&fa(p+1,Sa)));fa=0;for(Sa=P.length;fam[2];)++n,p=k*n,p=Bm(this,b,p),q.f(r,f,p,h,g),c-=k;p=Bm(this,b,0)}r!=d&&(Am(this,"render",r,b,p),d.drawImage(r.canvas,0,0));r.globalAlpha=t}Am(this,"postcompose",d,b,p)};Vp.prototype.cb=function(b,c,d,e){if(this.b){var f=c.viewState.resolution,g=c.viewState.rotation,h=this.a,k=c.layerStates[w(h)],m={};return this.b.c(b,f,g,k.Db?c.skippedFeatureUids:{},function(b){var c=w(b).toString();if(!(c in m))return m[c]=!0,d.call(e,b,h)})}};Vp.prototype.B=function(){jk(this)}; +Vp.prototype.Dd=function(b){function c(b){var c,e=b.cc();e?c=e.call(b,n):(e=d.b)&&(c=e(b,n));if(c){if(c){e=!1;if(ia(c))for(var f=0,g=c.length;fja||Ja>v)ga?(I=fe(I),R=fk(this.c,P,fa,p*R,p*R,g,(I[0]-h[0])/R,(h[1]-I[1])/R)):R=x,E.Wc.f(q,e,R,g,f);else{y=Nh(r,y,e,k);ga?R=fk(this.c,0,0,p*R,p*R,g,-y[0]/2,-y[1]/2):(R=ke(I),R=fk(this.c,0,0,p,-p,-g,-R[0],-R[1]));Sa=Sa.j;if(E.resolution!==m||E.rotation!==g)E.resolution=m,E.rotation=g,Sa.canvas.width=ja+.5,Sa.canvas.height=B+.5,Sa.translate(ja/ +2,B/2),Sa.rotate(-g),E.Wc.f(Sa,e,R,g,f,!1);E=fk(this.c,0,0,p,-p,0,-h[0],-h[1]);E=af(fe(I),0,1,2,E);q.translate(P,fa);q.rotate(g);q.drawImage(Sa.canvas,Math.round(E[0]),Math.round(E[1]));q.rotate(-g);q.translate(-P,-fa)}q!=d&&(Am(this,"render",q,b,x),d.drawImage(q.canvas,0,0));q.globalAlpha=C;Am(this,"postcompose",d,b,x)}; +function eq(b,c,d,e){function f(b){var c,e=b.cc();e?c=e.call(b,t):(e=d.b)&&(c=e(b,t));if(c){ia(c)||(c=[c]);var e=x,f=v;if(c){var g=!1;if(ia(c))for(var h=0,m=c.length;hE&&Jg(this.target,x.target,0)}else{if(!b.viewHints[0]&&!b.viewHints[1]){B= +Bh(x.g,r,x.b[0],A);E=[];y=K=void 0;for(y in x.f)K=x.f[y],B.contains(K.ga)||E.push(K);fa=B=void 0;B=0;for(fa=E.length;B=n;){v=b.b[g];d=b.G[g]; +e=w(d).toString();if(void 0===k[e]&&d.W()&&(void 0===p||ne(p,d.W().J()))&&(q.clear(q.COLOR_BUFFER_BIT|q.DEPTH_BUFFER_BIT),q.drawElements(4,t-v,f,v*c),t=m(d))){b=t;break a}t=v;g--}b=void 0}else q.clear(q.COLOR_BUFFER_BIT|q.DEPTH_BUFFER_BIT),Lq(b,q,c,k,b.l,b.i),b=(b=m(null))?b:void 0;v=b}q.disableVertexAttribArray(r.c);q.disableVertexAttribArray(r.a);q.disableVertexAttribArray(r.g);q.disableVertexAttribArray(r.f);q.disableVertexAttribArray(r.b);return v} +function Lq(b,c,d,e,f,g){var h=d.b?5125:5123;d=d.b?4:2;if(Nb(e)){var k;b=0;e=f.length;for(k=0;bc[0]||c[0]>f[0]||0> +c[1]||c[1]>f[1])&&(this.l||(this.l=Mi(1,1)),this.l.clearRect(0,0,1,1),this.l.drawImage(this.c.a(),c[0],c[1],1,1,0,0,1,1),0e?c[0]=e-d:0>f&&(c[0]= +Math.abs(f)+d),0>g?c[1]=g-d:0>h&&(c[1]=Math.abs(h)+d),0===c[0]&&0===c[1])||(d=b.aa().Va(),e=b.Ra(d),c=[e[0]+c[0],e[1]+c[1]],this.g&&(this.g.source=d,b.Qa(Yf(this.g))),b.aa().mb(b.Ia(c)))}}};l.Zk=function(){pr(this)};l.ci=function(b){this.set("element",b)};l.setMap=function(b){this.set("map",b)};l.ii=function(b){this.set("offset",b)};l.Cf=function(b){this.set("position",b)}; +function qr(b,c){var d=Ag(b),e=new wg(0,0),f;f=d?Ag(d):document;f=!Wb||9<=ic||Og(yg(f))?f.documentElement:f.body;b!=f&&(f=ah(b),d=Pg(yg(d)),e.x=f.left+d.x,e.y=f.top+d.y);return[e.x,e.y,e.x+c[0],e.y+c[1]]}l.li=function(b){this.set("positioning",b)};function rr(b,c){b.a.visible!==c&&(eh(b.b,c),b.a.visible=c)} +function pr(b){var c=b.ve(),d=b.gh();if(void 0!==c&&c.b&&void 0!==d){var d=c.Ra(d),e=c.Ta(),c=b.b.style,f=b.Kg(),g=b.Lg(),h=f[0],f=f[1];if("bottom-right"==g||"center-right"==g||"top-right"==g)""!==b.a.re&&(b.a.re=c.left=""),h=Math.round(e[0]-d[0]-h)+"px",b.a.Qe!=h&&(b.a.Qe=c.right=h);else{""!==b.a.Qe&&(b.a.Qe=c.right="");if("bottom-center"==g||"center-center"==g||"top-center"==g)h-=ch(b.b).width/2;h=Math.round(d[0]+h)+"px";b.a.re!=h&&(b.a.re=c.left=h)}if("bottom-left"==g||"bottom-center"==g||"bottom-right"== +g)""!==b.a.Re&&(b.a.Re=c.top=""),d=Math.round(e[1]-d[1]-f)+"px",b.a.Wd!=d&&(b.a.Wd=c.bottom=d);else{""!==b.a.Wd&&(b.a.Wd=c.bottom="");if("center-left"==g||"center-center"==g||"center-right"==g)f-=ch(b.b).height/2;d=Math.round(d[1]+f)+"px";b.a.Re!=d&&(b.a.Re=c.top=d)}rr(b,!0)}else rr(b,!1)};function sr(b){b=b?b:{};this.i=void 0!==b.collapsed?b.collapsed:!0;this.l=void 0!==b.collapsible?b.collapsible:!0;this.l||(this.i=!1);var c=b.className?b.className:"ol-overviewmap",d=b.tipLabel?b.tipLabel:"Overview map",e=b.collapseLabel?b.collapseLabel:"\u00ab";this.B=la(e)?Fg("SPAN",{},e):e;e=b.label?b.label:"\u00bb";this.v=la(e)?Fg("SPAN",{},e):e;d=Fg("BUTTON",{type:"button",title:d},this.l&&!this.i?this.B:this.v);D(d,"click",this.cm,!1,this);var e=Fg("DIV","ol-overviewmap-map"),f=this.b=new T({controls:new mg, +interactions:new mg,target:e,view:b.view});b.layers&&b.layers.forEach(function(b){f.og(b)},this);var g=Fg("DIV","ol-overviewmap-box");this.j=new or({position:[0,0],positioning:"bottom-left",element:g});this.b.pg(this.j);c=Fg("DIV",c+" ol-unselectable ol-control"+(this.i&&this.l?" ol-collapsed":"")+(this.l?"":" ol-uncollapsible"),e,d);mh.call(this,{element:c,render:b.render?b.render:tr,target:b.target})}z(sr,mh);l=sr.prototype; +l.setMap=function(b){var c=this.a;b!==c&&(c&&(c=c.aa())&&Vc(c,hd("rotation"),this.le,!1,this),sr.da.setMap.call(this,b),b&&(this.o.push(D(b,"propertychange",this.Sk,!1,this)),0===this.b.eh().bc()&&this.b.gi(b.tc()),b=b.aa()))&&(D(b,hd("rotation"),this.le,!1,this),Rf(b)&&(this.b.Xc(),ur(this)))};l.Sk=function(b){"view"===b.key&&((b=b.oldValue)&&Vc(b,hd("rotation"),this.le,!1,this),b=this.a.aa(),D(b,hd("rotation"),this.le,!1,this))};l.le=function(){this.b.aa().we(this.a.aa().Ha())}; +function tr(){var b=this.a,c=this.b;if(b.b&&c.b){var d=b.Ta(),b=b.aa().bd(d),e=c.Ta(),d=c.aa().bd(e),f=c.Ra(fe(b)),c=c.Ra(de(b)),c=new xg(Math.abs(f[0]-c[0]),Math.abs(f[1]-c[1])),f=e[0],e=e[1];c.width<.1*f||c.height<.1*e||c.width>.75*f||c.height>.75*e?ur(this):Ud(d,b)||(b=this.b,d=this.a.aa(),b.aa().mb(d.Va()))}vr(this)}function ur(b){var c=b.a;b=b.b;var d=c.Ta(),c=c.aa().bd(d),d=b.Ta();b=b.aa();oe(c,1/(.1*Math.pow(2,Math.log(7.5)/Math.LN2/2)));b.mf(c,d)} +function vr(b){var c=b.a,d=b.b;if(c.b&&d.b){var e=c.Ta(),f=c.aa(),g=d.aa();d.Ta();var c=f.Ha(),h=b.j,d=b.j.ue(),f=f.bd(e),e=g.$(),g=ce(f),f=ee(f),k;if(b=b.a.aa().Va())k=[g[0]-b[0],g[1]-b[1]],td(k,c),od(k,b);h.Cf(k);d&&(k=new xg(Math.abs((g[0]-f[0])/e),Math.abs((f[1]-g[1])/e)),c=Og(yg(Ag(d))),!Wb||gc("10")||c&&gc("8")?(d=d.style,Yb?d.MozBoxSizing="border-box":Zb?d.WebkitBoxSizing="border-box":d.boxSizing="border-box",d.width=Math.max(k.width,0)+"px",d.height=Math.max(k.height,0)+"px"):(b=d.style,c? +(c=hh(d,"padding"),d=kh(d),b.pixelWidth=k.width-d.left-c.left-c.right-d.right,b.pixelHeight=k.height-d.top-c.top-c.bottom-d.bottom):(b.pixelWidth=k.width,b.pixelHeight=k.height)))}}l.cm=function(b){b.preventDefault();wr(this)};function wr(b){Ug(b.element,"ol-collapsed");b.i?Lg(b.B,b.v):Lg(b.v,b.B);b.i=!b.i;var c=b.b;b.i||c.b||(c.Xc(),ur(b),Uc(c,"postrender",function(){vr(this)},!1,b))}l.bm=function(){return this.l}; +l.em=function(b){this.l!==b&&(this.l=b,Ug(this.element,"ol-uncollapsible"),!b&&this.i&&wr(this))};l.dm=function(b){this.l&&this.i!==b&&wr(this)};l.am=function(){return this.i};l.kk=function(){return this.b};function xr(b){b=b?b:{};var c=b.className?b.className:"ol-scale-line";this.l=Fg("DIV",c+"-inner");this.i=Fg("DIV",c+" ol-unselectable",this.l);this.B=null;this.j=void 0!==b.minWidth?b.minWidth:64;this.b=!1;this.D=void 0;this.v="";mh.call(this,{element:this.i,render:b.render?b.render:yr,target:b.target});D(this,hd("units"),this.T,!1,this);this.O(b.units||"metric")}z(xr,mh);var zr=[1,2,5];xr.prototype.C=function(){return this.get("units")}; +function yr(b){(b=b.frameState)?this.B=b.viewState:this.B=null;Ar(this)}xr.prototype.T=function(){Ar(this)};xr.prototype.O=function(b){this.set("units",b)}; +function Ar(b){var c=b.B;if(c){var d=c.projection,e=d.$b(),c=d.getPointResolution(c.resolution,c.center)*e,e=b.j*c,d="",f=b.C();"degrees"==f?(d=Ae.degrees,c/=d,ee?(d="in",c/=.0254):1609.344>e?(d="ft",c/=.3048):(d="mi",c/=1609.344):"nautical"==f?(c/=1852,d="nm"):"metric"==f?1>e?(d="mm",c*=1E3):1E3>e?d="m":(d="km",c/=1E3):"us"==f&&(.9144>e?(d="in",c*=39.37):1609.344>e?(d="ft",c/=.30480061):(d="mi",c/=1609.3472));for(var f= +3*Math.floor(Math.log(b.j*c)/Math.log(10)),g;;){g=zr[(f%3+3)%3]*Math.pow(10,Math.floor(f/3));e=Math.round(g/c);if(isNaN(e)){eh(b.i,!1);b.b=!1;return}if(e>=b.j)break;++f}c=g+" "+d;b.v!=c&&(b.l.innerHTML=c,b.v=c);b.D!=e&&(b.l.style.width=e+"px",b.D=e);b.b||(eh(b.i,!0),b.b=!0)}else b.b&&(eh(b.i,!1),b.b=!1)};function Br(b){mc.call(this);this.f=b;this.a={}}z(Br,mc);var Cr=[];Br.prototype.Sa=function(b,c,d,e){ia(c)||(c&&(Cr[0]=c.toString()),c=Cr);for(var f=0;fd.height?(this.l=1,d=new Wg(0,0,e,0)):(this.l=Mr,d=new Wg(0,0,0,c));this.b.a=d||new Wg(NaN,NaN,NaN,NaN);this.v=!0}b=b.frameState.viewState.resolution;b!==this.i&&(this.i=b,b=1-Pf(this.a.aa())(b),d=this.b,c=Mg(this.element),1==this.l?Zg(c,d.a.left+d.a.width*b):Zg(c,d.a.left, +d.a.top+d.a.height*b))}}l.Dk=function(b){var c=this.a,d=c.aa(),e=d.$();c.Qa($f({resolution:e,duration:this.B,easing:Uf}));b=Or(this,Pr(this,b.offsetX-this.j[0]/2,b.offsetY-this.j[1]/2));d.Vb(d.constrainResolution(b))};l.Gk=function(){Sf(this.a.aa(),1)};l.Ek=function(b){this.i=Or(this,Pr(this,b.left,b.top));this.a.aa().Vb(this.i)};l.Fk=function(){var b=this.a,c=b.aa();Sf(c,-1);b.Qa($f({resolution:this.i,duration:this.B,easing:Uf}));b=c.constrainResolution(this.i);c.Vb(b)}; +function Pr(b,c,d){var e=b.b.a;return Ra(1===b.l?(c-e.left)/e.width:(d-e.top)/e.height,0,1)}function Or(b,c){return Of(b.a.aa())(1-c)};function Qr(b){b=b?b:{};this.b=b.extent?b.extent:null;var c=b.className?b.className:"ol-zoom-extent",d=Fg("BUTTON",{type:"button",title:b.tipLabel?b.tipLabel:"Fit to extent"},b.label?b.label:"E");D(d,"click",this.i,!1,this);c=Fg("DIV",c+" ol-unselectable ol-control",d);mh.call(this,{element:c,target:b.target})}z(Qr,mh);Qr.prototype.i=function(b){b.preventDefault();var c=this.a;b=c.aa();var d=this.b?this.b:b.g.J(),c=c.Ta();b.mf(d,c)};function Rr(b){fd.call(this);b=b?b:{};this.a=null;D(this,hd("tracking"),this.Gl,!1,this);this.Af(void 0!==b.tracking?b.tracking:!1)}z(Rr,fd);l=Rr.prototype;l.X=function(){this.Af(!1);Rr.da.X.call(this)}; +l.Wn=function(b){b=b.a;if(null!==b.alpha){var c=Wa(b.alpha);this.set("alpha",c);"boolean"==typeof b.absolute&&b.absolute?this.set("heading",c):ma(b.webkitCompassHeading)&&-1!=b.webkitCompassAccuracy&&this.set("heading",Wa(b.webkitCompassHeading))}null!==b.beta&&this.set("beta",Wa(b.beta));null!==b.gamma&&this.set("gamma",Wa(b.gamma));this.u()};l.Lj=function(){return this.get("alpha")};l.Oj=function(){return this.get("beta")};l.Uj=function(){return this.get("gamma")};l.Fl=function(){return this.get("heading")}; +l.$g=function(){return this.get("tracking")};l.Gl=function(){if(Xi){var b=this.$g();b&&!this.a?this.a=D(ba,"deviceorientation",this.Wn,!1,this):!b&&this.a&&(Wc(this.a),this.a=null)}};l.Af=function(b){this.set("tracking",b)};function Sr(){this.defaultDataProjection=null}function Tr(b,c,d){var e;d&&(e={dataProjection:d.dataProjection?d.dataProjection:b.Ka(c),featureProjection:d.featureProjection});return Ur(b,e)}function Ur(b,c){var d;c&&(d={featureProjection:c.featureProjection,dataProjection:c.dataProjection?c.dataProjection:b.defaultDataProjection,rightHanded:c.rightHanded});return d} +function Vr(b,c,d){var e=d?Ee(d.featureProjection):null;d=d?Ee(d.dataProjection):null;return e&&d&&!Ve(e,d)?b instanceof $e?(c?b.clone():b).nb(c?e:d,c?d:e):Ze(c?b.slice():b,c?e:d,c?d:e):b};function Wr(){this.defaultDataProjection=null}z(Wr,Sr);function Xr(b){return oa(b)?b:la(b)?(b=co(b))?b:null:null}l=Wr.prototype;l.V=function(){return"json"};l.Ub=function(b,c){return this.Tc(Xr(b),Tr(this,b,c))};l.Ca=function(b,c){return this.Of(Xr(b),Tr(this,b,c))};l.Uc=function(b,c){return this.Mh(Xr(b),Tr(this,b,c))};l.Ka=function(b){return this.Th(Xr(b))};l.Md=function(b,c){return eo(this.Yc(b,c))};l.Wb=function(b,c){return eo(this.Ue(b,c))};l.Zc=function(b,c){return eo(this.We(b,c))};function Yr(b,c,d,e,f,g){var h=NaN,k=NaN,m=(d-c)/e;if(0!==m)if(1==m)h=b[c],k=b[c+1];else if(2==m)h=(1-f)*b[c]+f*b[c+e],k=(1-f)*b[c+1]+f*b[c+e+1];else{var k=b[c],m=b[c+1],n=0,h=[0],p;for(p=c+e;p>1,p=f(d,h[n]),0t?(d=(d-h[-t-2])/(h[-t-1]-h[-t-2]),c+=(-t-2)*e,h=nd(b[c],b[c+e],d),k=nd(b[c+1],b[c+e+1],d)):(h=b[c+t*e],k=b[c+t*e+1])}return g?(g[0]= +h,g[1]=k,g):[h,k]}function Zr(b,c,d,e,f,g){if(d==c)return null;if(f>1,fb||this.g.length<=b)return null;var c=new U(null);c.ba(this.b,this.A.slice(0===b?0:this.g[b-1],this.g[b]));return c}; +l.vd=function(){var b=this.A,c=this.g,d=this.b,e=[],f=0,g,h;g=0;for(h=c.length;gb||c<=b)return null;c=new F(null);c.ba(this.b,this.A.slice(b*this.a,(b+1)*this.a));return c};l.xe=function(){var b=this.A,c=this.b,d=this.a,e=[],f,g;f=0;for(g=b.length;fb||this.g.length<=b)return null;var c;0===b?c=0:(c=this.g[b-1],c=c[c.length-1]);b=this.g[b].slice();var d=b[b.length-1];if(0!==c){var e,f;e=0;for(f=b.length;eb||0!==this.l&&bc)throw Error("Bad port number "+c);b.j=c}else b.j=null}function Lt(b,c,d){c instanceof Nt?(b.b=c,Tt(b.b,b.i)):(d||(c=Ot(c,Ut)),b.b=new Nt(c,0,b.i))}function Vt(b){return b instanceof It?b.clone():new It(b,void 0)} +function Wt(b,c){b instanceof It||(b=Vt(b));c instanceof It||(c=Vt(c));var d=b,e=c,f=d.clone(),g=!!e.c;g?Jt(f,e.c):g=!!e.l;g?f.l=e.l:g=!!e.f;g?f.f=e.f:g=null!=e.j;var h=e.a;if(g)Kt(f,e.j);else if(g=!!e.a)if("/"!=h.charAt(0)&&(d.f&&!d.a?h="/"+h:(d=f.a.lastIndexOf("/"),-1!=d&&(h=f.a.substr(0,d+1)+h))),d=h,".."==d||"."==d)h="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){for(var h=0==d.lastIndexOf("/",0),d=d.split("/"),k=[],m=0;m>4&15).toString(16)+(b&15).toString(16)} +var Pt=/[#\/\?@]/g,Rt=/[\#\?:]/g,Qt=/[\#\?]/g,Ut=/[\#\?@]/g,St=/#/g;function Nt(b,c,d){this.f=this.a=null;this.b=b||null;this.c=!!d}function Yt(b){b.a||(b.a=new oi,b.f=0,b.b&&lo(b.b,function(c,d){var e=decodeURIComponent(c.replace(/\+/g," "));Yt(b);b.b=null;var e=Zt(b,e),f=b.a.get(e);f||b.a.set(e,f=[]);f.push(d);b.f++}))}l=Nt.prototype;l.sc=function(){Yt(this);return this.f}; +l.remove=function(b){Yt(this);b=Zt(this,b);return qi(this.a.f,b)?(this.b=null,this.f-=this.a.get(b).length,this.a.remove(b)):!1};l.clear=function(){this.a=this.b=null;this.f=0};l.Oa=function(){Yt(this);return 0==this.f};function $t(b,c){Yt(b);c=Zt(b,c);return qi(b.a.f,c)}l.P=function(){Yt(this);for(var b=this.a.wc(),c=this.a.P(),d=[],e=0;ee;++e){var f=parseInt(d[e],10).toString(16);d[e]=1==f.length?"0"+f:f}Hs(b,d.join(""))} +function gv(b,c,d){up({node:b},hv,iv,[c],d)}function jv(b,c,d){var e={node:b};c.Ma()&&b.setAttribute("id",c.Ma());b=c.R();var f=c.cc();if(f&&(f=f.call(c,0))&&0g)if(h)if(56320> +g){e.push(239,191,189);h=g;continue}else g=h-55296<<10|g-56320|65536,h=null;else{56319g?e.push(g):2048>g?e.push(g>>6|192,g&63|128):65536>g?e.push(g>>12|224,g>>6&63|128,g&63|128):e.push(g>>18|240,g>>12&63|128,g>>6&63|128,g&63|128)}return e}c.ka=g;var k=b("ieee754"),m,n,p;m={Vh:function(b){return(this[b]|this[b+1]<<8|this[b+2]<<16)+16777216*this[b+3]},cg:function(b,c){this[c]=b;this[c+1]=b>>>8;this[c+2]=b>>>16;this[c+ +3]=b>>>24},Nh:function(b){return(this[b]|this[b+1]<<8|this[b+2]<<16)+(this[b+3]<<24)},Sf:function(b){return k.read(this,b,!0,23,4)},Mf:function(b){return k.read(this,b,!0,52,8)},Ai:function(b,c){return k.write(this,b,c,!0,23,4)},xi:function(b,c){return k.write(this,b,c,!0,52,8)},toString:function(b,c,e){var f=b="";e=Math.min(this.length,e||this.length);for(c=c||0;c=g?(b+=decodeURIComponent(f)+String.fromCharCode(g),f=""):f+="%"+g.toString(16)}return b+=decodeURIComponent(f)}, +write:function(b,c){for(var e=b===n?p:h(b),f=0;f>3,c,this);this.ca===g&&this.fp(f)}return c},to:function(){var b=this.Hb.Sf(this.ca);this.ca+=4;return b},po:function(){var b=this.Hb.Mf(this.ca);this.ca+=8;return b},Aa:function(){var b=this.Hb,c,e,f,g,h;c=b[this.ca++];if(128>c)return c;c=c&127;f=b[this.ca++];if(128>f)return c|f<<7;f=(f&127)<<7;g=b[this.ca++];if(128>g)return c|f|g<<14;g=(g&127)<<14;h=b[this.ca++];if(128>h)return c|f|g|h<<21;e=b[this.ca++]; +c=(c|f|g|(h&127)<<21)+268435456*(e&127);if(128>e)return c;e=b[this.ca++];c+=34359738368*(e&127);if(128>e)return c;e=b[this.ca++];c+=4398046511104*(e&127);if(128>e)return c;e=b[this.ca++];c+=562949953421312*(e&127);if(128>e)return c;e=b[this.ca++];c+=72057594037927936*(e&127);if(128>e)return c;e=b[this.ca++];c+=0x7fffffffffffffff*(e&127);if(128>e)return c;throw Error("Expected varint not more than 10 bytes");},Eo:function(){var b=this.ca,c=this.Aa();if(cf?g<<7*f:g*Math.pow(2,7*f));return-c-1},Jd:function(){var b=this.Aa();return 1===b%2?(b+1)/-2:b/2},no:function(){return Boolean(this.Aa())},Vf:function(){var b=this.Aa()+this.ca,c=this.Hb.toString("utf8",this.ca,b);this.ca=b;return c},fp:function(b){b=b&7;if(b===h.c)for(;127>1,v=-7;g=e?g-1:0;var x=e?-1:1,C=b[c+g];g+=x;e=C&(1<<-v)-1;C>>=-v;for(v+=q;0>=-v;for(v+=f;0>1,C=23===g?Math.pow(2,-24)-Math.pow(2,-77):0;q=f?0:q-1;var A=f?1:-1,y=0>c||0===c&&0>1/c?1:0;c=Math.abs(c);isNaN(c)||Infinity===c?(c=isNaN(c)?1:0,f=v):(f=Math.floor(Math.log(c)/Math.LN2),1>c*(r=Math.pow(2,-f))&&(f--,r*=2),c=1<=f+x?c+C/r:c+C*Math.pow(2,1-x),2<=c*r&&(f++,r/=2),f+x>=v?(c=0,f=v):1<=f+x?(c=(c*r-1)*Math.pow(2,g),f+=x):(c=c*Math.pow(2,x-1)*Math.pow(2,g),f=0));for(;8<=g;b[e+q]=c&255,q+=A,c/=256,g-=8);f=f<>3),f--,1===e||2===e)g+=b.Jd(),h+=b.Jd(),1===e&&(x&&v.push(x),x=[]),x.push(new k(g,h));else if(7===e)x&&x.push(x[0].clone());else throw Error("unknown command "+e);x&&v.push(x);return v};g.prototype.bbox=function(){var b=this.pc;b.ca=this.af;for(var c=b.Aa()+b.ca,e=1,f=0,g=0,h=0,k=Infinity,x=-Infinity,C=Infinity,A=-Infinity;b.ca>3),f--,1===e||2===e)g+=b.Jd(),h+=b.Jd(),gx&&(x=g),hA&& +(A=h);else if(7!==e)throw Error("unknown command "+e);return[k,C,x,A]}},{"point-geometry":5}],4:[function(b,c){function g(b,c){this.version=1;this.name=null;this.extent=4096;this.length=0;this.pc=b;this.Sd=[];this.Ud=[];this.Rd=[];b.Qf(h,this,c);this.length=this.Rd.length}function h(b,c,e){15===b?c.version=e.Aa():1===b?c.name=e.Vf():5===b?c.extent=e.Aa():2===b?c.Rd.push(e.ca):3===b?c.Sd.push(e.Vf()):4===b&&c.Ud.push(k(e))}function k(b){for(var c=null,e=b.Aa()+b.ca;b.ca>3,c=1===c?b.Vf(): +2===c?b.to():3===c?b.po():4===c?b.Eo():5===c?b.Aa():6===c?b.Jd():7===c?b.no():null;return c}var m=b("./vectortilefeature.js");c.ka=g;g.prototype.feature=function(b){if(0>b||b>=this.Rd.length)throw Error("feature index out of bounds");this.pc.ca=this.Rd[b];b=this.pc.Aa()+this.pc.ca;return new m(this.pc,b,this.extent,this.Sd,this.Ud)}},{"./vectortilefeature.js":3}],5:[function(b,c){function g(b,c){this.x=b;this.y=c}c.ka=g;g.prototype={clone:function(){return new g(this.x,this.y)},rotate:function(b){return this.clone().mj(b)}, +round:function(){return this.clone().nj()},angle:function(){return Math.atan2(this.y,this.x)},mj:function(b){var c=Math.cos(b);b=Math.sin(b);var e=b*this.x+c*this.y;this.x=c*this.x-b*this.y;this.y=e;return this},nj:function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}};g.a=function(b){return b instanceof g?b:Array.isArray(b)?new g(b[0],b[1]):b}},{}]},{},[1])(1)});Bp=c.ka})();function Rv(b){this.defaultDataProjection=null;b=b?b:{};this.defaultDataProjection=new Be({code:"EPSG:3857",units:"tile-pixels"});this.a=b.featureClass?b.featureClass:Xm;this.c=b.geometryName?b.geometryName:"geometry";this.f=b.layerName?b.layerName:"layer";this.b=b.layers?b.layers:null}z(Rv,Sr);Rv.prototype.V=function(){return"arraybuffer"}; +Rv.prototype.Ca=function(b,c){var d=this.b,e=new Ap(b),e=new Bp.bj(e),f=[],g=this.a,h,k,m;for(m in e.layers)if(!d||-1!=d.indexOf(m)){h=e.layers[m];for(var n=0,p=h.length;nf?~(f<<1):f<<1;d="";e=0;for(f=b.length;e>=5;h=g+63;k+=String.fromCharCode(h);d+=k}return d} +function vw(b,c){var d=c?c:1E5,e=[],f=0,g=0,h,k;h=0;for(k=b.length;hm?(e.push(f),g=f=0):g+=5}f=0;for(g=e.length;f>1):h>>1;f=0;for(g=e.length;f=b||"."==b&&!(void 0!==c&&c)} +function Xw(b){var c=b.f.charAt(++b.a),d={position:b.a,value:c};if("("==c)d.type=2;else if(","==c)d.type=5;else if(")"==c)d.type=3;else if(Zw(c)||"-"==c){d.type=4;var e,c=b.a,f=!1,g=!1;do{if("."==e)f=!0;else if("e"==e||"E"==e)g=!0;e=b.f.charAt(++b.a)}while(Zw(e,f)||!g&&("e"==e||"E"==e)||g&&("-"==e||"+"==e));b=parseFloat(b.f.substring(c,b.a--));d.value=b}else if("a"<=c&&"z">=c||"A"<=c&&"Z">=c){d.type=1;c=b.a;do e=b.f.charAt(++b.a);while("a"<=e&&"z">=e||"A"<=e&&"Z">=e);b=b.f.substring(c,b.a--).toUpperCase(); +d.value=b}else{if(" "==c||"\t"==c||"\r"==c||"\n"==c)return Xw(b);if(""===c)d.type=6;else throw Error("Unexpected character: "+c);}return d}function Vw(b){this.f=b}l=Vw.prototype;l.match=function(b){if(b=this.a.type==b)this.a=Xw(this.f);return b}; +function Yw(b){var c=b.a;if(b.match(1)){var d=c.value;if("GEOMETRYCOLLECTION"==d){a:{if(b.match(2)){c=[];do c.push(Yw(b));while(b.match(5));if(b.match(3)){b=c;break a}}else if($w(b)){b=[];break a}throw Error(ax(b));}return new ms(b)}var e=bx[d],c=cx[d];if(!e||!c)throw Error("Invalid geometry type: "+d);b=e.call(b);return new c(b)}throw Error(ax(b));}l.Jf=function(){if(this.match(2)){var b=dx(this);if(this.match(3))return b}else if($w(this))return null;throw Error(ax(this));}; +l.If=function(){if(this.match(2)){var b=ex(this);if(this.match(3))return b}else if($w(this))return[];throw Error(ax(this));};l.Kf=function(){if(this.match(2)){var b=fx(this);if(this.match(3))return b}else if($w(this))return[];throw Error(ax(this));};l.$n=function(){if(this.match(2)){var b;if(2==this.a.type)for(b=[this.Jf()];this.match(5);)b.push(this.Jf());else b=ex(this);if(this.match(3))return b}else if($w(this))return[];throw Error(ax(this));}; +l.Zn=function(){if(this.match(2)){var b=fx(this);if(this.match(3))return b}else if($w(this))return[];throw Error(ax(this));};l.ao=function(){if(this.match(2)){for(var b=[this.Kf()];this.match(5);)b.push(this.Kf());if(this.match(3))return b}else if($w(this))return[];throw Error(ax(this));};function dx(b){for(var c=[],d=0;2>d;++d){var e=b.a;if(b.match(4))c.push(e.value);else break}if(2==c.length)return c;throw Error(ax(b));}function ex(b){for(var c=[dx(b)];b.match(5);)c.push(dx(b));return c} +function fx(b){for(var c=[b.If()];b.match(5);)c.push(b.If());return c}function $w(b){var c=1==b.a.type&&"EMPTY"==b.a.value;c&&(b.a=Xw(b.f));return c}function ax(b){return"Unexpected `"+b.a.value+"` at position "+b.a.position+" in `"+b.f.f+"`"}var cx={POINT:F,LINESTRING:U,POLYGON:G,MULTIPOINT:bs,MULTILINESTRING:V,MULTIPOLYGON:cs},bx={POINT:Vw.prototype.Jf,LINESTRING:Vw.prototype.If,POLYGON:Vw.prototype.Kf,MULTIPOINT:Vw.prototype.$n,MULTILINESTRING:Vw.prototype.Zn,MULTIPOLYGON:Vw.prototype.ao};function gx(){this.version=void 0}z(gx,$v);gx.prototype.f=function(b){for(b=b.firstChild;b;b=b.nextSibling)if(1==b.nodeType)return this.a(b);return null};gx.prototype.a=function(b){this.version=b.getAttribute("version").trim();return(b=S({version:this.version},hx,b,[]))?b:null};function ix(b,c){return S({},jx,b,c)}function kx(b,c){return S({},lx,b,c)}function mx(b,c){var d=ix(b,c);if(d){var e=[Fs(b.getAttribute("width")),Fs(b.getAttribute("height"))];d.size=e;return d}} +function nx(b,c){return S([],ox,b,c)} +var px=[null,"http://www.opengis.net/wms"],hx=Q(px,{Service:N(function(b,c){return S({},qx,b,c)}),Capability:N(function(b,c){return S({},rx,b,c)})}),rx=Q(px,{Request:N(function(b,c){return S({},sx,b,c)}),Exception:N(function(b,c){return S([],tx,b,c)}),Layer:N(function(b,c){return S({},ux,b,c)})}),qx=Q(px,{Name:N(W),Title:N(W),Abstract:N(W),KeywordList:N(nx),OnlineResource:N(Zv),ContactInformation:N(function(b,c){return S({},vx,b,c)}),Fees:N(W),AccessConstraints:N(W),LayerLimit:N(Es),MaxWidth:N(Es), +MaxHeight:N(Es)}),vx=Q(px,{ContactPersonPrimary:N(function(b,c){return S({},wx,b,c)}),ContactPosition:N(W),ContactAddress:N(function(b,c){return S({},xx,b,c)}),ContactVoiceTelephone:N(W),ContactFacsimileTelephone:N(W),ContactElectronicMailAddress:N(W)}),wx=Q(px,{ContactPerson:N(W),ContactOrganization:N(W)}),xx=Q(px,{AddressType:N(W),Address:N(W),City:N(W),StateOrProvince:N(W),PostCode:N(W),Country:N(W)}),tx=Q(px,{Format:lp(W)}),ux=Q(px,{Name:N(W),Title:N(W),Abstract:N(W),KeywordList:N(nx),CRS:np(W), +EX_GeographicBoundingBox:N(function(b,c){var d=S({},yx,b,c);if(d){var e=d.westBoundLongitude,f=d.southBoundLatitude,g=d.eastBoundLongitude,d=d.northBoundLatitude;return void 0===e||void 0===f||void 0===g||void 0===d?void 0:[e,f,g,d]}}),BoundingBox:np(function(b){var c=[Ds(b.getAttribute("minx")),Ds(b.getAttribute("miny")),Ds(b.getAttribute("maxx")),Ds(b.getAttribute("maxy"))],d=[Ds(b.getAttribute("resx")),Ds(b.getAttribute("resy"))];return{crs:b.getAttribute("CRS"),extent:c,res:d}}),Dimension:np(function(b){return{name:b.getAttribute("name"), +units:b.getAttribute("units"),unitSymbol:b.getAttribute("unitSymbol"),"default":b.getAttribute("default"),multipleValues:As(b.getAttribute("multipleValues")),nearestValue:As(b.getAttribute("nearestValue")),current:As(b.getAttribute("current")),values:W(b)}}),Attribution:N(function(b,c){return S({},zx,b,c)}),AuthorityURL:np(function(b,c){var d=ix(b,c);if(d)return d.name=b.getAttribute("name"),d}),Identifier:np(W),MetadataURL:np(function(b,c){var d=ix(b,c);if(d)return d.type=b.getAttribute("type"), +d}),DataURL:np(ix),FeatureListURL:np(ix),Style:np(function(b,c){return S({},Ax,b,c)}),MinScaleDenominator:N(Cs),MaxScaleDenominator:N(Cs),Layer:np(function(b,c){var d=c[c.length-1],e=S({},ux,b,c);if(e){var f=As(b.getAttribute("queryable"));void 0===f&&(f=d.queryable);e.queryable=void 0!==f?f:!1;f=Fs(b.getAttribute("cascaded"));void 0===f&&(f=d.cascaded);e.cascaded=f;f=As(b.getAttribute("opaque"));void 0===f&&(f=d.opaque);e.opaque=void 0!==f?f:!1;f=As(b.getAttribute("noSubsets"));void 0===f&&(f=d.noSubsets); +e.noSubsets=void 0!==f?f:!1;(f=Ds(b.getAttribute("fixedWidth")))||(f=d.fixedWidth);e.fixedWidth=f;(f=Ds(b.getAttribute("fixedHeight")))||(f=d.fixedHeight);e.fixedHeight=f;["Style","CRS","AuthorityURL"].forEach(function(b){if(b in d){var c=Qb(e,b),c=c.concat(d[b]);e[b]=c}});"EX_GeographicBoundingBox BoundingBox Dimension Attribution MinScaleDenominator MaxScaleDenominator".split(" ").forEach(function(b){b in e||(e[b]=d[b])});return e}})}),zx=Q(px,{Title:N(W),OnlineResource:N(Zv),LogoURL:N(mx)}),yx= +Q(px,{westBoundLongitude:N(Cs),eastBoundLongitude:N(Cs),southBoundLatitude:N(Cs),northBoundLatitude:N(Cs)}),sx=Q(px,{GetCapabilities:N(kx),GetMap:N(kx),GetFeatureInfo:N(kx)}),lx=Q(px,{Format:np(W),DCPType:np(function(b,c){return S({},Bx,b,c)})}),Bx=Q(px,{HTTP:N(function(b,c){return S({},Cx,b,c)})}),Cx=Q(px,{Get:N(ix),Post:N(ix)}),Ax=Q(px,{Name:N(W),Title:N(W),Abstract:N(W),LegendURL:np(mx),StyleSheetURL:N(ix),StyleURL:N(ix)}),jx=Q(px,{Format:N(W),OnlineResource:N(Zv)}),ox=Q(px,{Keyword:lp(W)});function Dx(){this.b="http://mapserver.gis.umn.edu/mapserver";this.a=new Ks;this.defaultDataProjection=null}z(Dx,vs); +Dx.prototype.jc=function(b,c){var d={featureType:this.featureType,featureNS:this.featureNS};c&&Ub(d,Tr(this,b,c));var e=[d];b.namespaceURI=this.b;var f=Uo(b),d=[];if(0!==b.childNodes.length){if("msGMLOutput"==f)for(var g=0,h=b.childNodes.length;g=c[0]||b[1]<=c[1]&&b[3]>=c[1]?!0:be(b,this.sg,this)):!1}; +l.fm=function(b){var c=this.a,d=this.A[c]-this.A[0],e=b.slice();e[c]=e[0]+d;for(d=1;dg[2])&&(k*=Math.ceil((g[0]-d)/k),e=[e[0]+ +k,e[1],e[2]+k,e[3]]);d=this.G[0];g=this.G[1];k=-1;n=Math.pow(this.U*h,2);q=[];r=[];h=0;for(m=Zx.length;h=c.i&&c.cancel())}this.o?this.o.call(this.l,this):this.p=!0;this.a||(b=new Bx,Cx(this),Dx(this,!1,b))}};Ax.prototype.n=function(b,c){this.g=!1;Dx(this,b,c)};function Dx(b,c,d){b.a=!0;b.c=d;b.d=!c;Ex(b)} -function Cx(b){if(b.a){if(!b.p)throw new Fx;b.p=!1}}function Gx(b,c,d,e){b.e.push([c,d,e]);b.a&&Ex(b)}Ax.prototype.then=function(b,c,d){var e,f,g=new In(function(b,c){e=b;f=c});Gx(this,e,function(b){b instanceof Bx?g.cancel():f(b)});return g.then(b,c,d)};zn(Ax);function Hx(b){return Va(b.e,function(b){return ka(b[1])})} -function Ex(b){if(b.f&&b.a&&Hx(b)){var c=b.f,d=Ix[c];d&&(ba.clearTimeout(d.aa),delete Ix[c]);b.f=0}b.b&&(b.b.i--,delete b.b);for(var c=b.c,e=d=!1;b.e.length&&!b.g;){var f=b.e.shift(),g=f[0],h=f[1],f=f[2];if(g=b.d?h:g)try{var l=g.call(f||b.l,c);m(l)&&(b.d=b.d&&(l==c||l instanceof Error),b.c=c=l);An(c)&&(e=!0,b.g=!0)}catch(n){c=n,b.d=!0,Hx(b)||(d=!0)}}b.c=c;e&&(l=ra(b.n,b,!0),e=ra(b.n,b,!1),c instanceof Ax?(Gx(c,l,e),c.r=!0):c.then(l,e));d&&(c=new Jx(c),Ix[c.aa]=c,b.f=c.aa)} -function Fx(){xa.call(this)}w(Fx,xa);Fx.prototype.message="Deferred has already fired";Fx.prototype.name="AlreadyCalledError";function Bx(){xa.call(this)}w(Bx,xa);Bx.prototype.message="Deferred was canceled";Bx.prototype.name="CanceledError";function Jx(b){this.aa=ba.setTimeout(ra(this.b,this),0);this.a=b}Jx.prototype.b=function(){delete Ix[this.aa];throw this.a;};var Ix={};function Kx(b,c){m(b.name)?(this.name=b.name,this.code=Lx[b.name]):(this.code=b.code,this.name=Mx(b.code));xa.call(this,Ba("%s %s",this.name,c))}w(Kx,xa);function Mx(b){var c=wb(Lx,function(c){return b==c});if(!m(c))throw Error("Invalid code: "+b);return c}var Lx={AbortError:3,EncodingError:5,InvalidModificationError:9,InvalidStateError:7,NotFoundError:1,NotReadableError:4,NoModificationAllowedError:6,PathExistsError:12,QuotaExceededError:10,SecurityError:2,SyntaxError:8,TypeMismatchError:11};function Nx(b,c){rc.call(this,b.type,c)}w(Nx,rc);function Ox(){$c.call(this);this.Za=new FileReader;this.Za.onloadstart=ra(this.a,this);this.Za.onprogress=ra(this.a,this);this.Za.onload=ra(this.a,this);this.Za.onabort=ra(this.a,this);this.Za.onerror=ra(this.a,this);this.Za.onloadend=ra(this.a,this)}w(Ox,$c);Ox.prototype.getError=function(){return this.Za.error&&new Kx(this.Za.error,"reading file")};Ox.prototype.a=function(b){this.dispatchEvent(new Nx(b,this))};Ox.prototype.N=function(){Ox.S.N.call(this);delete this.Za}; -function Px(b){var c=new Ax;b.Ka("loadend",ta(function(b,c){var f=c.Za.result,g=c.getError();null==f||g?(Cx(b),Dx(b,!1,g)):(Cx(b),Dx(b,!0,f));c.Yc()},c,b));return c};function Qx(b){b=m(b)?b:{};Sk.call(this,{handleEvent:oe});this.f=m(b.formatConstructors)?b.formatConstructors:[];this.l=m(b.projection)?ze(b.projection):null;this.e=null;this.c=void 0}w(Qx,Sk);Qx.prototype.N=function(){m(this.c)&&Wc(this.c);Qx.S.N.call(this)};Qx.prototype.g=function(b){b=b.a.dataTransfer.files;var c,d,e;c=0;for(d=b.length;cb.Qa:b.c===dy&&(e=b.e[0].length>b.Qa,f=[b.e[0][0],b.e[0][b.e[0].length-2]]);if(e)for(var e=c.map,g=0,h=f.length;gb.Ga,b.q(g,e);else if(b.c===dy){g=b.e[0];g.push(d.slice());if(f=g.length>b.Ga)b.g=g[0];b.q(b.e,e)}my(b);f&&b.X()} -Zx.prototype.X=function(){var b=ny(this),c=this.e,d=b.Q();this.c===fy?(c.pop(),this.q(c,d)):this.c===dy&&(c[0].pop(),c[0].push(c[0][0]),this.q(c,d));"MultiPoint"===this.R?b.La(new hn([c])):"MultiLineString"===this.R?b.La(new O([c])):"MultiPolygon"===this.R&&b.La(new P([c]));this.dispatchEvent(new Yx("drawend",b));null===this.jb||this.jb.push(b);null===this.lb||this.lb.gd(b)};function ny(b){b.g=null;var c=b.i;null!==c&&(b.i=null,b.r=null,b.o=null,b.ka.V().clear(!0));return c}Zx.prototype.nc=ne; -function my(b){var c=[];null===b.i||c.push(b.i);null===b.o||c.push(b.o);null===b.r||c.push(b.r);b=b.ka.V();b.clear(!0);b.rc(c)}Zx.prototype.mb=function(){var b=this.n,c=this.b();null!==b&&c||ny(this);this.ka.setMap(c?b:null)};function cy(b){var c;"Point"===b||"MultiPoint"===b?c=ey:"LineString"===b||"MultiLineString"===b?c=fy:"Polygon"===b||"MultiPolygon"===b?c=dy:"Circle"===b&&(c=ky);return c}var ey="Point",fy="LineString",dy="Polygon",ky="Circle";function oy(b,c,d){rc.call(this,b);this.features=c;this.mapBrowserPointerEvent=d}w(oy,rc); -function py(b){el.call(this,{handleDownEvent:qy,handleDragEvent:ry,handleEvent:sy,handleUpEvent:ty});this.X=m(b.deleteCondition)?b.deleteCondition:te(al,$k);this.T=this.e=null;this.r=[0,0];this.D=[NaN,NaN];this.c=new tp;this.o=m(b.pixelTolerance)?b.pixelTolerance:10;this.R=!1;this.g=null;this.q=new M({source:new W({useSpatialIndex:!1,wrapX:m(b.wrapX)?b.wrapX:!1}),style:m(b.style)?b.style:uy(),updateWhileAnimating:!0,updateWhileInteracting:!0});this.K={Point:this.rl,LineString:this.Ag,LinearRing:this.Ag, -Polygon:this.sl,MultiPoint:this.pl,MultiLineString:this.ol,MultiPolygon:this.ql,GeometryCollection:this.nl};this.i=b.features;this.i.forEach(this.zg,this);x(this.i,"add",this.ll,!1,this);x(this.i,"remove",this.ml,!1,this)}w(py,el);k=py.prototype;k.zg=function(b){var c=b.Q();m(this.K[c.L()])&&this.K[c.L()].call(this,b,c);b=this.n;null===b||vy(this,this.r,b)};k.setMap=function(b){this.q.setMap(b);py.S.setMap.call(this,b)};k.ll=function(b){this.zg(b.element)}; -k.ml=function(b){var c=b.element;b=this.c;var d,e=[];xp(b,c.Q().I(),function(b){c===b.feature&&e.push(b)});for(d=e.length-1;0<=d;--d)b.remove(e[d]);null!==this.e&&0===this.i.Ib()&&(this.q.V().Dc(this.e),this.e=null)};k.rl=function(b,c){var d=c.M(),d={feature:b,geometry:c,ba:[d,d]};this.c.ha(c.I(),d)};k.pl=function(b,c){var d=c.M(),e,f,g;f=0;for(g=d.length;fd?h[1]:h[0]);wy(b,l);d={};d[ma(h)]=!0;c=1;for(n=g.length;cd&&(b.index+=f)})}function uy(){var b=Ll();return function(){return b.Point}};function zy(b,c,d,e){rc.call(this,b);this.selected=c;this.deselected=d;this.mapBrowserEvent=e}w(zy,rc); -function Ay(b){Sk.call(this,{handleEvent:By});b=m(b)?b:{};this.l=m(b.condition)?b.condition:$k;this.g=m(b.addCondition)?b.addCondition:ne;this.q=m(b.removeCondition)?b.removeCondition:ne;this.K=m(b.toggleCondition)?b.toggleCondition:bl;this.i=m(b.multi)?b.multi:!1;this.e=m(b.filter)?b.filter:oe;var c;if(m(b.layers))if(ka(b.layers))c=b.layers;else{var d=b.layers;c=function(b){return Ya(d,b)}}else c=oe;this.f=c;this.c=new M({source:new W({useSpatialIndex:!1,wrapX:b.wrapX}),style:m(b.style)?b.style: -Cy(),updateWhileAnimating:!0,updateWhileInteracting:!0});b=this.c.V().c;x(b,"add",this.o,!1,this);x(b,"remove",this.D,!1,this)}w(Ay,Sk);Ay.prototype.r=function(){return this.c.V().c}; -function By(b){if(!this.l(b))return!0;var c=this.g(b),d=this.q(b),e=this.K(b),f=!c&&!d&&!e,g=b.map,h=this.c.V().c,l=[],n=[],p=!1;if(f)g.Ke(b.pixel,function(b,c){if(this.e(b,c))return n.push(b),!this.i},this,this.f),0f?h[1]:h[0],d=c.ra(n),d=[Math.round(d[0]),Math.round(d[1])]);c=n;g&&(b.coordinate=c.slice(0,2),b.pixel=d);return fl.call(this,b)} -function Fy(){var b=sb(this.o);b.length&&(Sa(b,this.Dh,this),this.o={});return!1}function Gy(b,c){return td(this.D,b.ba)-td(this.D,c.ba)};function Z(b){b=m(b)?b:{};var c=Db(b);delete c.gradient;delete c.radius;delete c.blur;delete c.shadow;delete c.weight;M.call(this,c);this.d=null;this.R=m(b.shadow)?b.shadow:250;this.r=void 0;this.n=null;x(this,hd("gradient"),this.Ij,!1,this);this.sh(m(b.gradient)?b.gradient:Hy);this.oh(m(b.blur)?b.blur:15);this.Fg(m(b.radius)?b.radius:8);x(this,[hd("blur"),hd("radius")],this.kg,!1,this);this.kg();var d=m(b.weight)?b.weight:"weight",e;ia(d)?e=function(b){return b.get(d)}:e=d;this.e(ra(function(b){b= -e(b);b=m(b)?Vb(b,0,1):1;var c=255*b|0,d=this.n[c];m(d)||(d=[new Hl({image:new Bk({opacity:b,src:this.r})})],this.n[c]=d);return d},this));this.set("renderOrder",null);x(this,"render",this.ak,!1,this)}w(Z,M);var Hy=["#00f","#0ff","#0f0","#ff0","#f00"];k=Z.prototype;k.Rf=function(){return this.get("blur")};k.Vf=function(){return this.get("gradient")};k.Eg=function(){return this.get("radius")}; -k.Ij=function(){for(var b=this.Vf(),c=Vi(1,256),d=c.createLinearGradient(0,0,1,256),e=1/(b.length-1),f=0,g=b.length;fTerms of Use'}); -az.prototype.i=function(b){if(200!=b.statusCode||"OK"!=b.statusDescription||"ValidCredentials"!=b.authenticationResultCode||1!=b.resourceSets.length||1!=b.resourceSets[0].resources.length)Fh(this,"error");else{var c=b.brandLogoUri;-1==c.indexOf("https")&&(c=c.replace("http","https"));var d=b.resourceSets[0].resources[0],e=-1==this.d?d.zoomMax:this.d;b=gg(this.g);var f=Ph({extent:b,minZoom:d.zoomMin,maxZoom:e,tileSize:d.imageWidth==d.imageHeight?d.imageWidth:[d.imageWidth,d.imageHeight]});this.tileGrid= -f;var g=this.f;this.tileUrlFunction=Wy(Ua(d.imageUrlSubdomains,function(b){var c=[0,0,0],e=d.imageUrl.replace("{subdomain}",b).replace("{culture}",g);return function(b){if(null!==b)return ag(b[0],b[1],-b[2]-1,c),e.replace("{quadkey}",cg(c))}}));if(d.imageryProviders){var h=De(ze("EPSG:4326"),this.g);b=Ua(d.imageryProviders,function(b){var c=b.attribution,d={};Sa(b.coverageAreas,function(b){var c=b.zoomMin,g=Math.min(b.zoomMax,e);b=b.bbox;b=le([b[1],b[0],b[3],b[2]],h);var l,n;for(l=c;l<=g;++l)n=l.toString(), -c=ig(f,b,l),n in d?d[n].push(c):d[n]=[c]});return new og({html:c,tileRanges:d})});b.push(bz);this.e=b}this.U=c;Fh(this,"ready")}};function cz(b){W.call(this,{attributions:b.attributions,extent:b.extent,logo:b.logo,projection:b.projection});this.D=void 0;this.T=m(b.distance)?b.distance:20;this.q=[];this.l=b.source;this.l.s("change",cz.prototype.ka,this)}w(cz,W);cz.prototype.X=function(){return this.l};cz.prototype.Zb=function(b,c,d){c!==this.D&&(this.clear(),this.D=c,this.l.Zb(b,c,d),dz(this),this.rc(this.q))};cz.prototype.ka=function(){this.clear();dz(this);this.rc(this.q);this.k()}; -function dz(b){if(m(b.D)){b.q.length=0;for(var c=Kd(),d=b.T*b.D,e=b.l.Cc(),f={},g=0,h=e.length;gl*h?g*f/(l*p):h*f/(n*p);d=de(d);e={OPERATION:this.X?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol.source.ImageMapGuide source",CLIP:"1",SETDISPLAYDPI:this.f,SETDISPLAYWIDTH:Math.round(e[0]),SETDISPLAYHEIGHT:Math.round(e[1]),SETVIEWSCALE:f,SETVIEWCENTERX:d[0],SETVIEWCENTERY:d[1]};Fb(e,c);return jo(lo([b],e))};k.Kl=function(b){this.c=null;this.b=b;this.k()};function gz(b){var c=m(b.attributions)?b.attributions:null,d=b.imageExtent,e,f;m(b.imageSize)&&(e=fe(d)/b.imageSize[1],f=[e]);var g=m(b.crossOrigin)?b.crossOrigin:null,h=m(b.imageLoadFunction)?b.imageLoadFunction:wn;qn.call(this,{attributions:c,logo:b.logo,projection:ze(b.projection),resolutions:f});this.b=new ux(d,e,1,c,b.url,g,h);x(this.b,"change",this.i,!1,this)}w(gz,qn);gz.prototype.Bc=function(b){return he(b,this.b.I())?this.b:null};function hz(b){b=m(b)?b:{};qn.call(this,{attributions:b.attributions,logo:b.logo,projection:b.projection,resolutions:b.resolutions});this.T=m(b.crossOrigin)?b.crossOrigin:null;this.d=b.url;this.l=m(b.imageLoadFunction)?b.imageLoadFunction:wn;this.c=b.params;this.f=!0;iz(this);this.R=b.serverType;this.X=m(b.hidpi)?b.hidpi:!0;this.b=null;this.q=[0,0];this.K=0;this.D=m(b.ratio)?b.ratio:1.5}w(hz,qn);var jz=[101,101];k=hz.prototype; -k.Rl=function(b,c,d,e){if(m(this.d)){var f=ee(b,c,0,jz),g={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.c.LAYERS};Fb(g,this.c,e);e=Math.floor((f[3]-b[1])/c);g[this.f?"I":"X"]=Math.floor((b[0]-f[0])/c);g[this.f?"J":"Y"]=e;return kz(this,f,jz,1,ze(d),g)}};k.Tl=function(){return this.c}; -k.Bc=function(b,c,d,e){if(!m(this.d))return null;c=rn(this,c);1==d||this.X&&m(this.R)||(d=1);var f=this.b;if(null!==f&&this.K==this.a&&f.resolution==c&&f.e==d&&Td(f.I(),b))return f;f={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};Fb(f,this.c);b=b.slice();var g=(b[0]+b[2])/2,h=(b[1]+b[3])/2;if(1!=this.D){var l=this.D*ie(b)/2,n=this.D*fe(b)/2;b[0]=g-l;b[1]=h-n;b[2]=g+l;b[3]=h+n}var l=c/d,n=Math.ceil(ie(b)/l),p=Math.ceil(fe(b)/l);b[0]=g-l*n/2;b[2]=g+l*n/2;b[1]=h-l* -p/2;b[3]=h+l*p/2;this.q[0]=n;this.q[1]=p;e=kz(this,b,this.q,d,e,f);this.b=new ux(b,c,d,this.e,e,this.T,this.l);this.K=this.a;x(this.b,"change",this.i,!1,this);return this.b};k.Sl=function(){return this.l}; -function kz(b,c,d,e,f,g){g[b.f?"CRS":"SRS"]=f.a;"STYLES"in b.c||(g.STYLES=new String(""));if(1!=e)switch(b.R){case "geoserver":e=90*e+.5|0;g.FORMAT_OPTIONS=m(g.FORMAT_OPTIONS)?g.FORMAT_OPTIONS+(";dpi:"+e):"dpi:"+e;break;case "mapserver":g.MAP_RESOLUTION=90*e;break;case "carmentaserver":case "qgis":g.DPI=90*e}g.WIDTH=d[0];g.HEIGHT=d[1];d=f.d;var h;b.f&&"ne"==d.substr(0,2)?h=[c[1],c[0],c[3],c[2]]:h=c;g.BBOX=h.join(",");return jo(lo([b.d],g))}k.Ul=function(){return this.d}; -k.Vl=function(b){this.b=null;this.l=b;this.k()};k.Wl=function(b){b!=this.d&&(this.d=b,this.b=null,this.k())};k.Xl=function(b){Fb(this.c,b);iz(this);this.b=null;this.k()};function iz(b){b.f=0<=Oa(Ab(b.c,"VERSION","1.3.0"),"1.3")};function lz(b){var c=m(b.projection)?b.projection:"EPSG:3857",d=m(b.tileGrid)?b.tileGrid:Ph({extent:gg(c),maxZoom:b.maxZoom,tileSize:b.tileSize});Zy.call(this,{attributions:b.attributions,crossOrigin:b.crossOrigin,logo:b.logo,projection:c,tileGrid:d,tileLoadFunction:b.tileLoadFunction,tilePixelRatio:b.tilePixelRatio,tileUrlFunction:Xy,wrapX:m(b.wrapX)?b.wrapX:!0});m(b.tileUrlFunction)?this.ya(b.tileUrlFunction):m(b.urls)?this.ya(Vy(b.urls)):m(b.url)&&this.d(b.url)}w(lz,Zy);lz.prototype.d=function(b){this.ya(Vy(Yy(b)))};function mz(b){b=m(b)?b:{};var c;m(b.attributions)?c=b.attributions:c=[nz];lz.call(this,{attributions:c,crossOrigin:m(b.crossOrigin)?b.crossOrigin:"anonymous",opaque:!0,maxZoom:m(b.maxZoom)?b.maxZoom:19,tileLoadFunction:b.tileLoadFunction,url:m(b.url)?b.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png",wrapX:b.wrapX})}w(mz,lz);var nz=new og({html:'© OpenStreetMap contributors.'});function oz(b){b=m(b)?b:{};var c=pz[b.layer];this.f=b.layer;lz.call(this,{attributions:c.attributions,crossOrigin:"anonymous",logo:"https://developer.mapquest.com/content/osm/mq_logo.png",maxZoom:c.maxZoom,opaque:!0,tileLoadFunction:b.tileLoadFunction,url:m(b.url)?b.url:"https://otile{1-4}-s.mqcdn.com/tiles/1.0.0/"+this.f+"/{z}/{x}/{y}.jpg"})}w(oz,lz); -var qz=new og({html:'Tiles Courtesy of MapQuest'}),pz={osm:{maxZoom:19,attributions:[qz,nz]},sat:{maxZoom:18,attributions:[qz,new og({html:"Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency"})]},hyb:{maxZoom:18,attributions:[qz,nz]}};oz.prototype.i=function(){return this.f};var rz={terrain:{Sa:"jpg",opaque:!0},"terrain-background":{Sa:"jpg",opaque:!0},"terrain-labels":{Sa:"png",opaque:!1},"terrain-lines":{Sa:"png",opaque:!1},"toner-background":{Sa:"png",opaque:!0},toner:{Sa:"png",opaque:!0},"toner-hybrid":{Sa:"png",opaque:!1},"toner-labels":{Sa:"png",opaque:!1},"toner-lines":{Sa:"png",opaque:!1},"toner-lite":{Sa:"png",opaque:!0},watercolor:{Sa:"jpg",opaque:!0}},sz={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:3,maxZoom:16}}; -function tz(b){var c=b.layer.indexOf("-"),d=rz[b.layer];lz.call(this,{attributions:uz,crossOrigin:"anonymous",maxZoom:sz[-1==c?b.layer:b.layer.slice(0,c)].maxZoom,opaque:d.opaque,tileLoadFunction:b.tileLoadFunction,url:m(b.url)?b.url:"https://stamen-tiles-{a-d}.a.ssl.fastly.net/"+b.layer+"/{z}/{x}/{y}."+d.Sa})}w(tz,lz);var uz=[new og({html:'Map tiles by Stamen Design, under CC BY 3.0.'}),nz];function vz(b){b=m(b)?b:{};var c=m(b.params)?b.params:{};Zy.call(this,{attributions:b.attributions,logo:b.logo,projection:b.projection,tileGrid:b.tileGrid,tileLoadFunction:b.tileLoadFunction,tileUrlFunction:ra(this.am,this),wrapX:m(b.wrapX)?b.wrapX:!0});var d=b.urls;!m(d)&&m(b.url)&&(d=Yy(b.url));this.f=null!=d?d:[];this.d=c;this.i=Kd()}w(vz,Zy);k=vz.prototype;k.Yl=function(){return this.d};k.Vb=function(b,c,d){b=vz.S.Vb.call(this,b,c,d);return 1==c?b:kd(b,c,this.c)};k.Zl=function(){return this.f}; -k.$l=function(b){b=m(b)?Yy(b):null;this.Kg(b)};k.Kg=function(b){this.f=null!=b?b:[];this.k()}; -k.am=function(b,c,d){var e=this.tileGrid;null===e&&(e=Th(this,d));if(!(e.a.length<=b[0])){var f=Kh(e,b,this.i),g=ld(e.Ca(b[0]),this.c);1!=c&&(g=kd(g,c,this.c));e={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};Fb(e,this.d);var h=this.f;0==h.length?b=void 0:(d=d.a.split(":").pop(),e.SIZE=g[0]+","+g[1],e.BBOX=f.join(","),e.BBOXSR=d,e.IMAGESR=d,e.DPI=Math.round(90*c),b=1==h.length?h[0]:h[Wb((b[1]<g||e>g;)f.push([Math.ceil(d/g),Math.ceil(e/g)]),g+=g;break;case "truncated":for(;d>g||e>g;)f.push([Math.ceil(d/g),Math.ceil(e/g)]),d>>=1,e>>=1}f.push([1,1]);f.reverse();for(var g=[1],h=[0],e=1,d=f.length;ethis.c||d+this.a>this.c)return null;e=Tz(this,!1,b,c,d,e,g);if(null===e)return null;b=Tz(this,!0,b,c,d,m(f)?f:pe,g);return{offsetX:e.offsetX,offsetY:e.offsetY,image:e.image,lg:b.image}}; -function Tz(b,c,d,e,f,g,h){var l=c?b.f:b.e,n,p,q;p=0;for(q=l.length;p=c+this.a&&g.height>=d+this.a)return l={offsetX:g.x+this.a,offsetY:g.y+this.a,image:this.c},this.d[b]=l,e.call(f,this.e,g.x+this.a,g.y+this.a),b=h,c=c+this.a,d=d+this.a,f=e=void 0,g.width-c>g.height-d?(e={x:g.x+c,y:g.y,width:g.width-c,height:g.height},f={x:g.x,y:g.y+d,width:c,height:g.height-d},Uz(this,b,e,f)):(e={x:g.x+c,y:g.y,width:g.width-c,height:d},f={x:g.x,y:g.y+d,width:g.width,height:g.height- -d},Uz(this,b,e,f)),l;return null};function Uz(b,c,d,e){c=[c,1];0e&&(e=0);f=d.TileMatrixSetLink[e].TileMatrixSet;var g=d.Format[0];m(c.format)&&(g=c.format);e=Xa(d.Style,function(b){return m(c.style)? -b.Title==c.style:b.isDefault});0>e&&(e=0);e=d.Style[e].Identifier;var h={};m(d.Dimension)&&Sa(d.Dimension,function(b){var c=b.Identifier,d=b["default"];m(d)||(d=b.values[0]);h[c]=d});var l=Wa(b.Contents.TileMatrixSet,function(b){return b.Identifier==f}),n;n=m(c.projection)?ze(c.projection):ze(l.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"));var p=d.WGS84BoundingBox,q,r;m(p)&&(r=ze("EPSG:4326").I(),r=p[0]==r[0]&&p[2]==r[2],q=Ve(p,"EPSG:4326",n),p=n.I(),null===p||Td(p,q)||(q=void 0)); -var l=Mz(l,q),t=[];q=c.requestEncoding;q=m(q)?q:"";if(b.hasOwnProperty("OperationsMetadata")&&b.OperationsMetadata.hasOwnProperty("GetTile")&&0!=q.lastIndexOf("REST",0))for(var d=b.OperationsMetadata.GetTile.DCP.HTTP.Get,p=0,v=d.length;p=c.j&&c.cancel())}this.v?this.v.call(this.B,this):this.o=!0;this.a||(b=new gy,hy(this),iy(this,!1,b))}};fy.prototype.G=function(b,c){this.l=!1;iy(this,b,c)};function iy(b,c,d){b.a=!0;b.b=d;b.c=!c;jy(b)} +function hy(b){if(b.a){if(!b.o)throw new ky;b.o=!1}}fy.prototype.cd=function(b){hy(this);iy(this,!0,b)};function ly(b,c,d,e){b.g.push([c,d,e]);b.a&&jy(b)}fy.prototype.then=function(b,c,d){var e,f,g=new Jn(function(b,c){e=b;f=c});ly(this,e,function(b){b instanceof gy?g.cancel():f(b)});return g.then(b,c,d)};wn(fy);function my(b){return db(b.g,function(b){return na(b[1])})} +function jy(b){if(b.i&&b.a&&my(b)){var c=b.i,d=ny[c];d&&(ba.clearTimeout(d.ya),delete ny[c]);b.i=0}b.f&&(b.f.j--,delete b.f);for(var c=b.b,e=d=!1;b.g.length&&!b.l;){var f=b.g.shift(),g=f[0],h=f[1],f=f[2];if(g=b.c?h:g)try{var k=g.call(f||b.B,c);ca(k)&&(b.c=b.c&&(k==c||k instanceof Error),b.b=c=k);if(xn(c)||"function"===typeof ba.Promise&&c instanceof ba.Promise)e=!0,b.l=!0}catch(m){c=m,b.c=!0,my(b)||(d=!0)}}b.b=c;e&&(k=ta(b.G,b,!0),e=ta(b.G,b,!1),c instanceof fy?(ly(c,k,e),c.C=!0):c.then(k,e));d&& +(c=new oy(c),ny[c.ya]=c,b.i=c.ya)}function ky(){za.call(this)}z(ky,za);ky.prototype.message="Deferred has already fired";ky.prototype.name="AlreadyCalledError";function gy(){za.call(this)}z(gy,za);gy.prototype.message="Deferred was canceled";gy.prototype.name="CanceledError";function oy(b){this.ya=ba.setTimeout(ta(this.f,this),0);this.a=b}oy.prototype.f=function(){delete ny[this.ya];throw this.a;};var ny={};function py(b,c){ca(b.name)?(this.name=b.name,this.code=qy[b.name]):(this.code=b.code,this.name=ry(b.code));za.call(this,Ca("%s %s",this.name,c))}z(py,za);function ry(b){var c=Mb(qy,function(c){return b==c});if(!ca(c))throw Error("Invalid code: "+b);return c}var qy={AbortError:3,EncodingError:5,InvalidModificationError:9,InvalidStateError:7,NotFoundError:1,NotReadableError:4,NoModificationAllowedError:6,PathExistsError:12,QuotaExceededError:10,SecurityError:2,SyntaxError:8,TypeMismatchError:11};function sy(b,c){rc.call(this,b.type,c)}z(sy,rc);function ty(){$c.call(this);this.vb=new FileReader;this.vb.onloadstart=ta(this.a,this);this.vb.onprogress=ta(this.a,this);this.vb.onload=ta(this.a,this);this.vb.onabort=ta(this.a,this);this.vb.onerror=ta(this.a,this);this.vb.onloadend=ta(this.a,this)}z(ty,$c);ty.prototype.getError=function(){return this.vb.error&&new py(this.vb.error,"reading file")};ty.prototype.a=function(b){this.s(new sy(b,this))};ty.prototype.X=function(){ty.da.X.call(this);delete this.vb}; +function uy(b){var c=new fy;b.Sa("loadend",ua(function(b,c){var f=c.vb.result,g=c.getError();null==f||g?(hy(b),iy(b,!1,g)):b.cd(f);c.rc()},c,b));return c};function vy(b){b=b?b:{};Kk.call(this,{handleEvent:se});this.l=b.formatConstructors?b.formatConstructors:[];this.v=b.projection?Ee(b.projection):null;this.c=null;this.a=void 0}z(vy,Kk);vy.prototype.X=function(){this.a&&Wc(this.a);vy.da.X.call(this)};vy.prototype.j=function(b){b=b.a.dataTransfer.files;var c,d,e;c=0;for(d=b.length;cb.jb:b.c===Jy&&(e=b.a[0].length>b.jb,f=[b.a[0][0],b.a[0][b.a[0].length-2]]);if(e)for(var e=c.map,g=0,h=f.length;gb.xa,b.D(g,e);else if(b.c===Jy){g=b.a[0];g.push(d.slice());if(f=g.length>b.xa)b.o=g[0];b.D(b.a,e)}Sy(b);f&&b.qd()}l.Io=function(){var b=this.j.W(),c,d;this.c===Ly?(c=this.a,c.splice(-2,1),this.D(c,b)):this.c===Jy&&(c=this.a[0],c.splice(-2,1),d=this.v.W(),d.ma(c),this.D(this.a,b));0===c.length&&(this.o=null);Sy(this)}; +l.qd=function(){var b=Ty(this),c=this.a,d=b.W();this.c===Ly?(c.pop(),this.D(c,d)):this.c===Jy&&(c[0].pop(),c[0].push(c[0][0]),this.D(c,d));"MultiPoint"===this.Y?b.Pa(new bs([c])):"MultiLineString"===this.Y?b.Pa(new V([c])):"MultiPolygon"===this.Y&&b.Pa(new cs([c]));this.s(new Dy("drawend",b));this.Fb&&this.Fb.push(b);this.oc&&this.oc.Ed(b)};function Ty(b){b.o=null;var c=b.j;c&&(b.j=null,b.O=null,b.v=null,b.qa.ea().clear(!0));return c} +l.nm=function(b){var c=b.W();this.j=b;this.a=c.Z();b=this.a[this.a.length-1];this.o=b.slice();this.a.push(b.slice());Sy(this);this.s(new Dy("drawstart",this.j))};l.Ec=re;function Sy(b){var c=[];b.j&&c.push(b.j);b.v&&c.push(b.v);b.O&&c.push(b.O);b=b.qa.ea();b.clear(!0);b.Ic(c)}l.vi=function(){var b=this.B,c=this.b();b&&c||Ty(this);this.qa.setMap(c?b:null)}; +function Iy(b){var c;"Point"===b||"MultiPoint"===b?c=Ky:"LineString"===b||"MultiLineString"===b?c=Ly:"Polygon"===b||"MultiPolygon"===b?c=Jy:"Circle"===b&&(c=Qy);return c}var Ky="Point",Ly="LineString",Jy="Polygon",Qy="Circle";function Uy(b,c,d){rc.call(this,b);this.features=c;this.mapBrowserPointerEvent=d}z(Uy,rc); +function Vy(b){Xk.call(this,{handleDownEvent:Wy,handleDragEvent:Xy,handleEvent:Yy,handleUpEvent:Zy});this.xa=b.deleteCondition?b.deleteCondition:xe(Tk,Sk);this.na=this.c=null;this.ia=[0,0];this.D=this.T=!1;this.a=new Dp;this.O=void 0!==b.pixelTolerance?b.pixelTolerance:10;this.o=this.qa=!1;this.j=null;this.U=new J({source:new Jp({useSpatialIndex:!1,wrapX:!!b.wrapX}),style:b.style?b.style:$y(),updateWhileAnimating:!0,updateWhileInteracting:!0});this.Y={Point:this.um,LineString:this.kh,LinearRing:this.kh, +Polygon:this.vm,MultiPoint:this.sm,MultiLineString:this.rm,MultiPolygon:this.tm,GeometryCollection:this.qm};this.v=b.features;this.v.forEach(this.Ef,this);D(this.v,"add",this.om,!1,this);D(this.v,"remove",this.pm,!1,this)}z(Vy,Xk);l=Vy.prototype;l.Ef=function(b){var c=b.W();c.V()in this.Y&&this.Y[c.V()].call(this,b,c);(c=this.B)&&az(this,this.ia,c);D(b,"change",this.jh,!1,this)};function bz(b,c){b.D||(b.D=!0,b.s(new Uy("modifystart",b.v,c)))} +function cz(b,c){dz(b,c);b.c&&0===b.v.bc()&&(b.U.ea().Sc(b.c),b.c=null);Vc(c,"change",b.jh,!1,b)}function dz(b,c){var d=b.a,e=[];d.forEach(function(b){c===b.feature&&e.push(b)});for(var f=e.length-1;0<=f;--f)d.remove(e[f])}l.setMap=function(b){this.U.setMap(b);Vy.da.setMap.call(this,b)};l.om=function(b){this.Ef(b.element)};l.jh=function(b){this.o||(b=b.target,cz(this,b),this.Ef(b))};l.pm=function(b){cz(this,b.element)}; +l.um=function(b,c){var d=c.Z(),d={feature:b,geometry:c,la:[d,d]};this.a.za(c.J(),d)};l.sm=function(b,c){var d=c.Z(),e,f,g;f=0;for(g=d.length;fd?h[1]:h[0]);ez(b,k);d={};d[w(h)]=!0;c=1;for(m=g.length;cd&&(b.index+=f)})}function $y(){var b=jm();return function(){return b.Point}};function hz(b,c,d,e){rc.call(this,b);this.selected=c;this.deselected=d;this.mapBrowserEvent=e}z(hz,rc); +function iz(b){Kk.call(this,{handleEvent:jz});var c=b?b:{};this.C=c.condition?c.condition:Sk;this.o=c.addCondition?c.addCondition:re;this.D=c.removeCondition?c.removeCondition:re;this.O=c.toggleCondition?c.toggleCondition:Uk;this.v=c.multi?c.multi:!1;this.l=c.filter?c.filter:se;var d=new J({source:new Jp({useSpatialIndex:!1,features:c.features,wrapX:c.wrapX}),style:c.style?c.style:kz(),updateWhileAnimating:!0,updateWhileInteracting:!0});this.c=d;if(c.layers)if(na(c.layers))b=function(b){return b=== +d||c.layers(b)};else{var e=c.layers;b=function(b){return b===d||ub(e,b)}}else b=se;this.j=b;this.a={};b=this.c.ea().c;D(b,"add",this.wm,!1,this);D(b,"remove",this.zm,!1,this)}z(iz,Kk);l=iz.prototype;l.xm=function(){return this.c.ea().c};l.ym=function(b){b=w(b);return this.a[b]}; +function jz(b){if(!this.C(b))return!0;var c=this.o(b),d=this.D(b),e=this.O(b),f=!c&&!d&&!e,g=b.map,h=this.c.ea().c,k=[],m=[],n=!1;if(f)g.sd(b.pixel,function(b,c){if(this.l(b,c)){m.push(b);var d=w(b);this.a[d]=c;return!this.v}},this,this.j),0f?h[1]:h[0],d=c.Ra(m),d=[Math.round(d[0]),Math.round(d[1])]);c=m;g&&(b.coordinate=c.slice(0,2),b.pixel=d);return Yk.call(this,b)} +function nz(){var b=Kb(this.v);b.length&&(b.forEach(this.ui,this),this.v={});return!1}function oz(b,c){return vd(this.U,b.la)-vd(this.U,c.la)};function pz(b,c,d){rc.call(this,b);this.features=c;this.coordinate=d}z(pz,rc);function qz(b){Xk.call(this,{handleDownEvent:rz,handleDragEvent:sz,handleMoveEvent:tz,handleUpEvent:uz});this.o=void 0;this.a=null;this.c=void 0!==b.features?b.features:null;this.j=null}z(qz,Xk);function rz(b){this.j=vz(this,b.pixel,b.map);return!this.a&&this.j?(this.a=b.coordinate,tz.call(this,b),this.s(new pz("translatestart",this.c,b.coordinate)),!0):!1} +function uz(b){return this.a?(this.a=null,tz.call(this,b),this.s(new pz("translateend",this.c,b.coordinate)),!0):!1}function sz(b){if(this.a){b=b.coordinate;var c=b[0]-this.a[0],d=b[1]-this.a[1];if(this.c)this.c.forEach(function(b){var e=b.W();e.Qc(c,d);b.Pa(e)});else if(this.j){var e=this.j.W();e.Qc(c,d);this.j.Pa(e)}this.a=b;this.s(new pz("translating",this.c,b))}} +function tz(b){var c=b.map.uc();if(b=b.map.sd(b.pixel,function(b){return b})){var d=!1;this.c&&ub(this.c.a,b)&&(d=!0);this.o=c.style.cursor;c.style.cursor=this.a?"-webkit-grabbing":d?"-webkit-grab":"pointer";c.style.cursor=this.a?d?"grab":"pointer":"grabbing"}else c.style.cursor=void 0!==this.o?this.o:"",this.o=void 0}function vz(b,c,d){var e=null;c=d.sd(c,function(b){return b});b.c&&ub(b.c.a,c)&&(e=c);return e};function X(b){b=b?b:{};var c=Rb(b);delete c.gradient;delete c.radius;delete c.blur;delete c.shadow;delete c.weight;J.call(this,c);this.g=null;this.Y=void 0!==b.shadow?b.shadow:250;this.T=void 0;this.U=null;D(this,hd("gradient"),this.Jk,!1,this);this.fi(b.gradient?b.gradient:wz);this.ai(void 0!==b.blur?b.blur:15);this.qh(void 0!==b.radius?b.radius:8);D(this,[hd("blur"),hd("radius")],this.Sg,!1,this);this.Sg();var d=b.weight?b.weight:"weight",e;la(d)?e=function(b){return b.get(d)}:e=d;this.c(function(b){b= +e(b);b=void 0!==b?Ra(b,0,1):1;var c=255*b|0,d=this.U[c];d||(d=[new em({image:new sk({opacity:b,src:this.T})})],this.U[c]=d);return d}.bind(this));this.set("renderOrder",null);D(this,"render",this.bl,!1,this)}z(X,J);var wz=["#00f","#0ff","#0f0","#ff0","#f00"];l=X.prototype;l.yg=function(){return this.get("blur")};l.Gg=function(){return this.get("gradient")};l.ph=function(){return this.get("radius")}; +l.Jk=function(){for(var b=this.Gg(),c=Mi(1,256),d=c.createLinearGradient(0,0,1,256),e=1/(b.length-1),f=0,g=b.length;f=e)this.state=4;else if(this.B=new gn(b,d,g,f,e*(void 0!==m?m:.5)),0===this.B.c.length)this.state=4;else if(this.j=Gh(c,e),d=jn(this.B),f&&(b.f?(d[1]=Ra(d[1], +f[1],f[3]),d[3]=Ra(d[3],f[1],f[3])):d=me(d,f)),ge(d))if(b=Bh(c,d,this.j),100>ig(b)*hg(b)){for(c=b.a;c<=b.c;c++)for(d=b.f;d<=b.b;d++)(m=k(this.j,c,d,h))&&this.f.push(m);0===this.f.length&&(this.state=4)}else this.state=3;else this.state=4}z(xz,sh);xz.prototype.X=function(){1==this.state&&(this.b.forEach(Wc),this.b=null);xz.da.X.call(this)};xz.prototype.Ua=function(b){if(void 0!==b){var c=w(b);if(c in this.g)return this.g[c];b=Nb(this.g)?this.i:this.i.cloneNode(!1);return this.g[c]=b}return this.i}; +xz.prototype.v=function(){var b=[];this.f.forEach(function(c){c&&2==c.state&&b.push({extent:this.l.Ba(c.ga),image:c.Ua()})},this);this.f.length=0;var c=this.G[0],d=this.o.Na(c),e=ma(d)?d:d[0],d=ma(d)?d:d[1],c=this.o.$(c),f=this.l.$(this.j),g=this.o.Ba(this.G);this.i=fn(e,d,this.C,f,this.l.J(),c,g,this.B,b,this.D);this.state=2;th(this)}; +xz.prototype.load=function(){if(0==this.state){this.state=1;th(this);var b=0;this.b=[];this.f.forEach(function(c){var d=c.state;if(0==d||1==d){b++;var e;e=c.Sa("change",function(){var d=c.state;if(2==d||3==d||4==d)Wc(e),b--,0===b&&(this.b.forEach(Wc),this.b=null,this.v())},!1,this);this.b.push(e)}},this);this.f.forEach(function(b){0==b.state&&b.load()});0===b&&ba.setTimeout(this.v.bind(this),0)}};function yz(b,c){var d=c||{},e=d.document||document,f=document.createElement("SCRIPT"),g={$h:f,Fc:void 0},h=new fy(zz,g),k=null,m=null!=d.timeout?d.timeout:5E3;0Terms of Use'}); +Oz.prototype.v=function(b){if(200!=b.statusCode||"OK"!=b.statusDescription||"ValidCredentials"!=b.authenticationResultCode||1!=b.resourceSets.length||1!=b.resourceSets[0].resources.length)wh(this,"error");else{var c=b.brandLogoUri;-1==c.indexOf("https")&&(c=c.replace("http","https"));var d=b.resourceSets[0].resources[0],e=-1==this.c?d.zoomMax:this.c;b=Ih(this.b);var f=Kh({extent:b,minZoom:d.zoomMin,maxZoom:e,tileSize:d.imageWidth==d.imageHeight?d.imageWidth:[d.imageWidth,d.imageHeight]});this.tileGrid= +f;var g=this.j;this.tileUrlFunction=Yp(d.imageUrlSubdomains.map(function(b){var c=[0,0,0],e=d.imageUrl.replace("{subdomain}",b).replace("{culture}",g);return function(b){if(b)return ag(b[0],b[1],-b[2]-1,c),e.replace("{quadkey}",bg(c))}}));if(d.imageryProviders){var h=Ie(Ee("EPSG:4326"),this.b);b=d.imageryProviders.map(function(b){var c=b.attribution,d={};b.coverageAreas.forEach(function(b){var c=b.zoomMin,g=Math.min(b.zoomMax,e);b=b.bbox;b=pe([b[1],b[0],b[3],b[2]],h);var k,m;for(k=c;k<=g;++k)m=k.toString(), +c=Bh(f,b,k),m in d?d[m].push(c):d[m]=[c]});return new kg({html:c,tileRanges:d})});b.push(Pz);this.oa(b)}this.U=c;wh(this,"ready")}};function Qz(b){Jp.call(this,{attributions:b.attributions,extent:b.extent,logo:b.logo,projection:b.projection,wrapX:b.wrapX});this.D=void 0;this.ha=void 0!==b.distance?b.distance:20;this.C=[];this.v=b.source;this.v.H("change",Qz.prototype.qa,this)}z(Qz,Jp);Qz.prototype.ia=function(){return this.v};Qz.prototype.Oc=function(b,c,d){this.v.Oc(b,c,d);c!==this.D&&(this.clear(),this.D=c,Rz(this),this.Ic(this.C))};Qz.prototype.qa=function(){this.clear();Rz(this);this.Ic(this.C);this.u()}; +function Rz(b){if(void 0!==b.D){b.C.length=0;for(var c=Ld(),d=b.ha*b.D,e=b.v.Be(),f={},g=0,h=e.length;gn*m?k*h/(n*q):m*h/(p*q),SETVIEWCENTERX:g[0],SETVIEWCENTERY:g[1]};Ub(f,this.i);e=mo(oo([e],f));e=new by(b,c,d,this.l,e,this.ha,this.c);D(e,"change",this.j,!1,this)}else e=null;this.g=e;this.T=this.f;return e};l.Om=function(){return this.c};l.Rm=function(b){Ub(this.i,b);this.u()};l.Qm=function(b){this.g=null;this.c=b;this.u()};function Uz(b){var c=void 0!==b.attributions?b.attributions:null,d=b.imageExtent,e=void 0!==b.crossOrigin?b.crossOrigin:null,f=void 0!==b.imageLoadFunction?b.imageLoadFunction:sn;mn.call(this,{attributions:c,logo:b.logo,projection:Ee(b.projection)});this.c=new by(d,void 0,1,c,b.url,e,f);this.g=b.imageSize?b.imageSize:null;D(this.c,"change",this.j,!1,this)}z(Uz,mn);Uz.prototype.td=function(b){return ne(b,this.c.J())?this.c:null}; +Uz.prototype.j=function(b){if(2==this.c.state){var c=this.c.J(),d=this.c.a(),e,f;this.g?(e=this.g[0],f=this.g[1]):(e=d.width,f=d.height);c=Math.ceil(ie(c)/(je(c)/f));if(c!=e){var g=document.createElement("canvas");g.width=c;g.height=f;g.getContext("2d").drawImage(d,0,0,e,f,0,0,g.width,g.height);this.c.f=g}}Uz.da.j.call(this,b)};function Vz(b){b=b||{};mn.call(this,{attributions:b.attributions,logo:b.logo,projection:b.projection,resolutions:b.resolutions});this.na=void 0!==b.crossOrigin?b.crossOrigin:null;this.i=b.url;this.T=void 0!==b.imageLoadFunction?b.imageLoadFunction:sn;this.g=b.params;this.v=!0;Wz(this);this.ia=b.serverType;this.xa=void 0!==b.hidpi?b.hidpi:!0;this.c=null;this.Y=[0,0];this.ha=0;this.o=void 0!==b.ratio?b.ratio:1.5}z(Vz,mn);var Xz=[101,101];l=Vz.prototype; +l.Xm=function(b,c,d,e){if(void 0!==this.i){var f=le(b,c,0,Xz),g={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.g.LAYERS};Ub(g,this.g,e);e=Math.floor((f[3]-b[1])/c);g[this.v?"I":"X"]=Math.floor((b[0]-f[0])/c);g[this.v?"J":"Y"]=e;return Yz(this,f,Xz,1,Ee(d),g)}};l.Zm=function(){return this.g}; +l.td=function(b,c,d,e){if(void 0===this.i)return null;c=nn(this,c);1==d||this.xa&&void 0!==this.ia||(d=1);b=b.slice();var f=(b[0]+b[2])/2,g=(b[1]+b[3])/2,h=c/d,k=ie(b)/h,h=je(b)/h,m=this.c;if(m&&this.ha==this.f&&m.$()==c&&m.b==d&&Ud(m.J(),b))return m;if(1!=this.o){var m=this.o*ie(b)/2,n=this.o*je(b)/2;b[0]=f-m;b[1]=g-n;b[2]=f+m;b[3]=g+n}f={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};Ub(f,this.g);this.Y[0]=Math.ceil(k*this.o);this.Y[1]=Math.ceil(h*this.o);e=Yz(this, +b,this.Y,d,e,f);this.c=new by(b,c,d,this.l,e,this.na,this.T);this.ha=this.f;D(this.c,"change",this.j,!1,this);return this.c};l.Ym=function(){return this.T}; +function Yz(b,c,d,e,f,g){g[b.v?"CRS":"SRS"]=f.Ya;"STYLES"in b.g||(g.STYLES=new String(""));if(1!=e)switch(b.ia){case "geoserver":e=90*e+.5|0;g.FORMAT_OPTIONS="FORMAT_OPTIONS"in g?g.FORMAT_OPTIONS+(";dpi:"+e):"dpi:"+e;break;case "mapserver":g.MAP_RESOLUTION=90*e;break;case "carmentaserver":case "qgis":g.DPI=90*e}g.WIDTH=d[0];g.HEIGHT=d[1];d=f.c;var h;b.v&&"ne"==d.substr(0,2)?h=[c[1],c[0],c[3],c[2]]:h=c;g.BBOX=h.join(",");return mo(oo([b.i],g))}l.$m=function(){return this.i}; +l.an=function(b){this.c=null;this.T=b;this.u()};l.bn=function(b){b!=this.i&&(this.i=b,this.c=null,this.u())};l.cn=function(b){Ub(this.g,b);Wz(this);this.c=null;this.u()};function Wz(b){b.v=0<=Pa(Pb(b.g,"VERSION","1.3.0"),"1.3")};function Zz(b){var c=void 0!==b.projection?b.projection:"EPSG:3857",d=void 0!==b.tileGrid?b.tileGrid:Kh({extent:Ih(c),maxZoom:b.maxZoom,tileSize:b.tileSize});Y.call(this,{attributions:b.attributions,crossOrigin:b.crossOrigin,logo:b.logo,opaque:b.opaque,projection:c,reprojectionErrorThreshold:b.reprojectionErrorThreshold,tileGrid:d,tileLoadFunction:b.tileLoadFunction,tilePixelRatio:b.tilePixelRatio,tileUrlFunction:b.tileUrlFunction,url:b.url,urls:b.urls,wrapX:void 0!==b.wrapX?b.wrapX:!0})}z(Zz,Y);function $z(b){b=b||{};var c;void 0!==b.attributions?c=b.attributions:c=[aA];Zz.call(this,{attributions:c,crossOrigin:void 0!==b.crossOrigin?b.crossOrigin:"anonymous",opaque:!0,maxZoom:void 0!==b.maxZoom?b.maxZoom:19,reprojectionErrorThreshold:b.reprojectionErrorThreshold,tileLoadFunction:b.tileLoadFunction,url:void 0!==b.url?b.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png",wrapX:b.wrapX})}z($z,Zz);var aA=new kg({html:'© OpenStreetMap contributors.'});function bA(b){b=b||{};var c=cA[b.layer];this.c=b.layer;Zz.call(this,{attributions:c.attributions,crossOrigin:"anonymous",logo:"https://developer.mapquest.com/content/osm/mq_logo.png",maxZoom:c.maxZoom,reprojectionErrorThreshold:b.reprojectionErrorThreshold,opaque:c.opaque,tileLoadFunction:b.tileLoadFunction,url:void 0!==b.url?b.url:"https://otile{1-4}-s.mqcdn.com/tiles/1.0.0/"+this.c+"/{z}/{x}/{y}.jpg"})}z(bA,Zz); +var dA=new kg({html:'Tiles Courtesy of MapQuest'}),cA={osm:{maxZoom:19,opaque:!0,attributions:[dA,aA]},sat:{maxZoom:18,opaque:!0,attributions:[dA,new kg({html:"Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency"})]},hyb:{maxZoom:18,opaque:!1,attributions:[dA,aA]}};bA.prototype.j=function(){return this.c};(function(){var b={},c={ka:b};(function(d){if("object"===typeof b&&"undefined"!==typeof c)c.ka=d();else{var e;"undefined"!==typeof window?e=window:"undefined"!==typeof global?e=global:"undefined"!==typeof self?e=self:e=this;e.Jp=d()}})(function(){return function e(b,c,h){function k(n,q){if(!c[n]){if(!b[n]){var r="function"==typeof require&&require;if(!q&&r)return r(n,!0);if(m)return m(n,!0);r=Error("Cannot find module '"+n+"'");throw r.code="MODULE_NOT_FOUND",r;}r=c[n]={ka:{}};b[n][0].call(r.ka,function(c){var e= +b[n][1][c];return k(e?e:c)},r,r.ka,e,b,c,h)}return c[n].ka}for(var m="function"==typeof require&&require,n=0;nthis.kj;)this.ad.shift().cd(null,null)};m.prototype.jg=function(){if(0===this.Td&&0Stamen Design, under CC BY 3.0.'}),aA];function qA(b){b=b||{};var c=void 0!==b.params?b.params:{};Y.call(this,{attributions:b.attributions,crossOrigin:b.crossOrigin,logo:b.logo,projection:b.projection,reprojectionErrorThreshold:b.reprojectionErrorThreshold,tileGrid:b.tileGrid,tileLoadFunction:b.tileLoadFunction,url:b.url,urls:b.urls,wrapX:void 0!==b.wrapX?b.wrapX:!0});this.c=c;this.j=Ld()}z(qA,Y);qA.prototype.v=function(){return this.c};qA.prototype.vc=function(b){return b}; +qA.prototype.rd=function(b,c,d){var e=this.tileGrid;e||(e=this.kb(d));if(!(e.a.length<=b[0])){var f=e.Ba(b,this.j),g=ld(e.Na(b[0]),this.g);1!=c&&(g=kd(g,c,this.g));e={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};Ub(e,this.c);var h=this.urls;h?(d=d.Ya.split(":").pop(),e.SIZE=g[0]+","+g[1],e.BBOX=f.join(","),e.BBOXSR=d,e.IMAGESR=d,e.DPI=Math.round(e.DPI?e.DPI*c:90*c),b=1==h.length?h[0]:h[md((b[1]<g||e>g;)f.push([Math.ceil(d/g),Math.ceil(e/g)]),g+=g;break;case "truncated":for(;d>g||e>g;)f.push([Math.ceil(d/g),Math.ceil(e/g)]),d>>=1,e>>=1}f.push([1,1]);f.reverse();for(var g=[1],h=[0],e=1,d=f.length;eb.b||e+b.a>b.b)return null;f=MA(b,!1,c,d,e,f);if(!f)return null;b=MA(b,!0,c,d,e,void 0!==g?g:te);return{offsetX:f.offsetX,offsetY:f.offsetY,image:f.image,Tg:b.image}} +function MA(b,c,d,e,f,g){var h=c?b.i:b.g,k,m,n;m=0;for(n=h.length;m=r+p.a&&x.height>=t+p.a){k={offsetX:x.x+p.a,offsetY:x.y+p.a,image:p.b};p.c[q]=k;v.call(void 0,p.g,x.x+p.a,x.y+p.a);q=p;r=r+p.a;p=t+p.a;v=t=void 0;x.width-r>x.height-p?(t={x:x.x+r,y:x.y,width:x.width-r,height:x.height},v={x:x.x,y:x.y+p,width:r,height:x.height-p},NA(q,C,t,v)):(t={x:x.x+r,y:x.y,width:x.width-r,height:p}, +v={x:x.x,y:x.y+p,width:x.width,height:x.height-p},NA(q,C,t,v));break a}k=null}if(k)return k;k||m!==n-1||(c?(k=Math.min(2*b.c,b.b),b.c=k):(k=Math.min(2*b.f,b.b),b.f=k),k=new OA(k,b.a),h.push(k),++n)}}function OA(b,c){this.a=c;this.f=[{x:0,y:0,width:b,height:b}];this.c={};this.b=document.createElement("CANVAS");this.b.width=b;this.b.height=b;this.g=this.b.getContext("2d")}OA.prototype.get=function(b){return Pb(this.c,b,null)}; +function NA(b,c,d,e){c=[c,1];0f&&(f=0);g=d.TileMatrixSetLink[f].TileMatrixSet; +var h=d.Format[0];"format"in c&&(h=c.format);f=fb(d.Style,function(b){return"style"in c?b.Title==c.style:b.isDefault});0>f&&(f=0);f=d.Style[f].Identifier;var k={};"Dimension"in d&&d.Dimension.forEach(function(b){var c=b.Identifier,d=b.Default;void 0===d&&(d=b.Value[0]);k[c]=d});var m=eb(b.Contents.TileMatrixSet,function(b){return b.Identifier==g}),n;n="projection"in c?Ee(c.projection):Ee(m.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"));var p=d.WGS84BoundingBox,q,r;void 0!==p&& +(r=Ee("EPSG:4326").J(),r=p[0]==r[0]&&p[2]==r[2],q=Ze(p,"EPSG:4326",n),(p=n.J())&&(Ud(p,q)||(q=void 0)));var m=IA(m,q),t=[];q=c.requestEncoding;q=void 0!==q?q:"";if(b.hasOwnProperty("OperationsMetadata")&&b.OperationsMetadata.hasOwnProperty("GetTile")&&0!==q.indexOf("REST"))for(var d=b.OperationsMetadata.GetTile.DCP.HTTP.Get,p=0,v=d.length;p