Files
openlayers/edit/build/ol.js
2013-09-14 00:29:38 +02:00

515 lines
273 KiB
JavaScript

(function(){function k(a){return function(){return this[a]}}function aa(a){return function(){return a}}var m,ba=ba||{},p=this;function da(){}function fa(a){a.ia=function(){return a.ce?a.ce:a.ce=new a}}
function ga(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function t(a){return void 0!==a}function ha(a){return null===a}function ia(a){return"array"==ga(a)}function ja(a){var b=ga(a);return"array"==b||"object"==b&&"number"==typeof a.length}function v(a){return"string"==typeof a}function ka(a){return"number"==typeof a}function la(a){return"function"==ga(a)}function ma(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function x(a){return a[na]||(a[na]=++oa)}
var na="closure_uid_"+(1E9*Math.random()>>>0),oa=0;function pa(a,b,c){return a.call.apply(a.bind,arguments)}function qa(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}
function y(a,b,c){y=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?pa:qa;return y.apply(null,arguments)}function ra(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=Array.prototype.slice.call(arguments);b.unshift.apply(b,c);return a.apply(this,b)}}var sa=Date.now||function(){return+new Date};
function C(a,b){var c=a.split("."),d=p;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d=d[e]?d[e]:d[e]={}:d[e]=b}function F(a,b){function c(){}c.prototype=b.prototype;a.B=b.prototype;a.prototype=new c;a.prototype.constructor=a};function ta(a){Error.captureStackTrace?Error.captureStackTrace(this,ta):this.stack=Error().stack||"";a&&(this.message=String(a))}F(ta,Error);ta.prototype.name="CustomError";function ua(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}function xa(a){if(!ya.test(a))return a;-1!=a.indexOf("\x26")&&(a=a.replace(za,"\x26amp;"));-1!=a.indexOf("\x3c")&&(a=a.replace(Aa,"\x26lt;"));-1!=a.indexOf("\x3e")&&(a=a.replace(Ba,"\x26gt;"));-1!=a.indexOf('"')&&(a=a.replace(Ca,"\x26quot;"));return a}var za=/&/g,Aa=/</g,Ba=/>/g,Ca=/\"/g,ya=/[&<>\"]/;
function Da(a){a=t(void 0)?a.toFixed(void 0):String(a);var b=a.indexOf(".");-1==b&&(b=a.length);b=Math.max(0,2-b);return Array(b+1).join("0")+a};var Ea=Array.prototype,Ga=Ea.indexOf?function(a,b,c){return Ea.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(v(a))return v(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Ha=Ea.forEach?function(a,b,c){Ea.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=v(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Ka=Ea.filter?function(a,b,c){return Ea.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=
0,g=v(a)?a.split(""):a,h=0;h<d;h++)if(h in g){var l=g[h];b.call(c,l,h,a)&&(e[f++]=l)}return e},La=Ea.map?function(a,b,c){return Ea.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=v(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e},Ma=Ea.some?function(a,b,c){return Ea.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=v(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;return!1};
function Na(a,b){var c=Oa(a,b,void 0);return 0>c?null:v(a)?a.charAt(c):a[c]}function Oa(a,b,c){for(var d=a.length,e=v(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1}function Qa(a,b){var c=Ga(a,b),d;(d=0<=c)&&Ea.splice.call(a,c,1);return d}function Ra(a){return Ea.concat.apply(Ea,arguments)}function Sa(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}function Ta(a,b,c,d){Ea.splice.apply(a,Ua(arguments,1))}
function Ua(a,b,c){return 2>=arguments.length?Ea.slice.call(a,b):Ea.slice.call(a,b,c)}function Va(a,b){Ea.sort.call(a,b||Wa)}function Wa(a,b){return a>b?1:a<b?-1:0}function Xa(a,b){for(var c={},d=0;d<a.length;d++){var e=a[d],f=b.call(void 0,e,d,a);t(f)&&(c[f]||(c[f]=[])).push(e)}return c};function Ya(a,b,c){this.z=a;this.x=b;this.y=c}function Za(a){a=a.split("/");a=La(a,function(a){return parseInt(a,10)});return new Ya(a[0],a[1],a[2])}function $a(a){var b=Array(a.z),c=1<<a.z-1,d,e;for(d=0;d<a.z;++d)e=48,a.x&c&&(e+=1),a.y&c&&(e+=2),b[d]=String.fromCharCode(e),c>>=1;return b.join("")}Ya.prototype.toString=function(){return[this.z,this.x,this.y].join("/")};function ab(a,b,c,d){this.a=a;this.d=b;this.c=c;this.b=d}function bb(a,b,c,d,e){return t(e)?(e.a=a,e.d=b,e.c=c,e.b=d,e):new ab(a,b,c,d)}ab.prototype.contains=function(a){return this.a<=a.x&&a.x<=this.d&&this.c<=a.y&&a.y<=this.b};function cb(a){this.b=a.html;this.a=t(a.tileRanges)?a.tileRanges:null};function db(){0!=eb&&(this.ih=Error().stack,fb[x(this)]=this)}var eb=0,fb={};db.prototype.ec=!1;db.prototype.uc=function(){if(!this.ec&&(this.ec=!0,this.v(),0!=eb)){var a=x(this);delete fb[a]}};function gb(a,b){var c=ra(hb,b);a.R||(a.R=[]);a.R.push(y(c,void 0))}db.prototype.v=function(){if(this.R)for(;this.R.length;)this.R.shift()()};function hb(a){a&&"function"==typeof a.uc&&a.uc()};function ib(a,b){this.type=a;this.c=this.target=b}m=ib.prototype;m.uc=function(){};m.jb=!1;m.cf=!1;m.re=!0;m.sb=function(){this.jb=!0};m.U=function(){this.cf=!0;this.re=!1};function jb(a){a.sb()}function kb(a){a.U()};var lb,mb,nb,ob,pb,qb,rb;function sb(){return p.navigator?p.navigator.userAgent:null}function tb(){return p.navigator}ob=nb=mb=lb=!1;var ub;if(ub=sb()){var vb=tb();lb=0==ub.lastIndexOf("Opera",0);mb=!lb&&(-1!=ub.indexOf("MSIE")||-1!=ub.indexOf("Trident"));nb=!lb&&-1!=ub.indexOf("WebKit");ob=!lb&&!nb&&!mb&&"Gecko"==vb.product}var wb=lb,G=mb,xb=ob,yb=nb,zb,Ab=tb();zb=Ab&&Ab.platform||"";pb=-1!=zb.indexOf("Mac");qb=-1!=zb.indexOf("Win");rb=-1!=zb.indexOf("Linux");
var Bb=!!tb()&&-1!=(tb().appVersion||"").indexOf("X11");function Cb(){var a=p.document;return a?a.documentMode:void 0}var Db;a:{var Eb="",Gb;if(wb&&p.opera)var Hb=p.opera.version,Eb="function"==typeof Hb?Hb():Hb;else if(xb?Gb=/rv\:([^\);]+)(\)|;)/:G?Gb=/\b(?:MSIE|rv)\s+([^\);]+)(\)|;)/:yb&&(Gb=/WebKit\/(\S+)/),Gb)var Ib=Gb.exec(sb()),Eb=Ib?Ib[1]:"";if(G){var Kb=Cb();if(Kb>parseFloat(Eb)){Db=String(Kb);break a}}Db=Eb}var Lb={};
function Mb(a){var b;if(!(b=Lb[a])){b=0;for(var c=ua(String(Db)).split("."),d=ua(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var g=c[f]||"",h=d[f]||"",l=RegExp("(\\d*)(\\D*)","g"),n=RegExp("(\\d*)(\\D*)","g");do{var q=l.exec(g)||["","",""],r=n.exec(h)||["","",""];if(0==q[0].length&&0==r[0].length)break;b=((0==q[1].length?0:parseInt(q[1],10))<(0==r[1].length?0:parseInt(r[1],10))?-1:(0==q[1].length?0:parseInt(q[1],10))>(0==r[1].length?0:parseInt(r[1],10))?1:0)||((0==q[2].length)<
(0==r[2].length)?-1:(0==q[2].length)>(0==r[2].length)?1:0)||(q[2]<r[2]?-1:q[2]>r[2]?1:0)}while(0==b)}b=Lb[a]=0<=b}return b}var Nb=p.document,Ob=Nb&&G?Cb()||("CSS1Compat"==Nb.compatMode?parseInt(Db,10):5):void 0;var Pb=!G||G&&9<=Ob,Qb=!G||G&&9<=Ob,Rb=G&&!Mb("9");!yb||Mb("528");xb&&Mb("1.9b")||G&&Mb("8")||wb&&Mb("9.5")||yb&&Mb("528");xb&&!Mb("8")||G&&Mb("9");function Sb(a){Sb[" "](a);return a}Sb[" "]=da;function Tb(a,b){a&&Ub(this,a,b)}F(Tb,ib);var Vb=[1,4,2];m=Tb.prototype;m.target=null;m.bf=null;m.Td=0;m.Ud=0;m.clientX=0;m.clientY=0;m.rd=0;m.sd=0;m.af=0;m.Ua=0;m.pd=0;m.Vb=!1;m.wa=!1;m.Va=!1;m.qd=!1;m.Jb=!1;m.da=null;
function Ub(a,b,c){var d=a.type=b.type;ib.call(a,d);a.target=b.target||b.srcElement;a.c=c;if(c=b.relatedTarget){if(xb){var e;a:{try{Sb(c.nodeName);e=!0;break a}catch(f){}e=!1}e||(c=null)}}else"mouseover"==d?c=b.fromElement:"mouseout"==d&&(c=b.toElement);a.bf=c;a.Td=yb||void 0!==b.offsetX?b.offsetX:b.layerX;a.Ud=yb||void 0!==b.offsetY?b.offsetY:b.layerY;a.clientX=void 0!==b.clientX?b.clientX:b.pageX;a.clientY=void 0!==b.clientY?b.clientY:b.pageY;a.rd=b.screenX||0;a.sd=b.screenY||0;a.af=b.button;a.Ua=
b.keyCode||0;a.pd=b.charCode||("keypress"==d?b.keyCode:0);a.Vb=b.ctrlKey;a.wa=b.altKey;a.Va=b.shiftKey;a.qd=b.metaKey;a.Jb=pb?b.metaKey:b.ctrlKey;a.a=b.state;a.da=b;b.defaultPrevented&&a.U();delete a.jb}function Wb(a){return(Pb?0==a.da.button:"click"==a.type?!0:!!(a.da.button&Vb[0]))&&!(yb&&pb&&a.Vb)}m.sb=function(){Tb.B.sb.call(this);this.da.stopPropagation?this.da.stopPropagation():this.da.cancelBubble=!0};
m.U=function(){Tb.B.U.call(this);var a=this.da;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Rb)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};m.Pe=k("da");var Xb="closure_listenable_"+(1E6*Math.random()|0);function Yb(a){return!(!a||!a[Xb])}var dc=0;function ec(a,b,c,d,e,f){this.Oa=a;this.a=b;this.src=c;this.type=d;this.capture=!!e;this.ub=f;this.key=++dc;this.ab=this.Cb=!1}function fc(a){a.ab=!0;a.Oa=null;a.a=null;a.src=null;a.ub=null};function gc(a,b){for(var c in a)b.call(void 0,a[c],c,a)}function hc(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c}function ic(a){var b=0,c;for(c in a)b++;return b}function jc(a){for(var b in a)return b}function kc(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function lc(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function mc(a){var b=nc,c;for(c in b)if(a.call(void 0,b[c],c,b))return c}function oc(a){for(var b in a)return!1;return!0}
function pc(a){var b={},c;for(c in a)b[c]=a[c];return b}var qc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function H(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<qc.length;f++)c=qc[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var rc={},sc={},tc={},xc={};function J(a,b,c,d,e){if(ia(b)){for(var f=0;f<b.length;f++)J(a,b[f],c,d,e);return null}c=yc(c);return Yb(a)?a.Wa(b,c,d,e):zc(a,b,c,!1,d,e)}
function zc(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");e=!!e;var g=sc;b in g||(g[b]={r:0});g=g[b];e in g||(g[e]={r:0},g.r++);var g=g[e],h=x(a),l;if(g[h]){l=g[h];for(var n=0;n<l.length;n++)if(g=l[n],g.Oa==c&&g.ub==f){if(g.ab)break;d||(l[n].Cb=!1);return l[n]}}else l=g[h]=[],g.r++;n=Ac();g=new ec(c,n,a,b,e,f);g.Cb=d;n.src=a;n.Oa=g;l.push(g);tc[h]||(tc[h]=[]);tc[h].push(g);a.addEventListener?a.addEventListener(b,n,e):a.attachEvent(b in xc?xc[b]:xc[b]="on"+b,n);return rc[g.key]=g}
function Ac(){var a=Bc,b=Qb?function(c){return a.call(b.src,b.Oa,c)}:function(c){c=a.call(b.src,b.Oa,c);if(!c)return c};return b}function Cc(a,b,c,d,e){if(ia(b)){for(var f=0;f<b.length;f++)Cc(a,b[f],c,d,e);return null}c=yc(c);return Yb(a)?a.Ia.add(b,c,!0,d,e):zc(a,b,c,!0,d,e)}function Dc(a,b,c,d,e){if(ia(b))for(var f=0;f<b.length;f++)Dc(a,b[f],c,d,e);else if(c=yc(c),Yb(a))a.Ed(b,c,d,e);else if(d=!!d,a=Ec(a,b,d))for(f=0;f<a.length;f++)if(a[f].Oa==c&&a[f].capture==d&&a[f].ub==e){Fc(a[f]);break}}
function Fc(a){if(ka(a)||!a||a.ab)return!1;var b=a.src;if(Yb(b))return Gc(b.Ia,a);var c=a.type,d=a.a,e=a.capture;b.removeEventListener?b.removeEventListener(c,d,e):b.detachEvent&&b.detachEvent(c in xc?xc[c]:xc[c]="on"+c,d);b=x(b);tc[b]&&(d=tc[b],Qa(d,a),0==d.length&&delete tc[b]);fc(a);if(d=sc[c][e][b])Qa(d,a),0==d.length&&(delete sc[c][e][b],sc[c][e].r--),0==sc[c][e].r&&(delete sc[c][e],sc[c].r--),0==sc[c].r&&delete sc[c];delete rc[a.key];return!0}
function Ec(a,b,c){var d=sc;return b in d&&(d=d[b],c in d&&(d=d[c],a=x(a),d[a]))?d[a]:null}function Hc(a,b,c,d,e){d=!!d;c=yc(c);if(Yb(a))return a=a.Ia.a[b],b=-1,a&&(b=Ic(a,c,d,e)),-1<b?a[b]:null;if(a=Ec(a,b,d))for(b=0;b<a.length;b++)if(!a[b].ab&&a[b].Oa==c&&a[b].capture==d&&a[b].ub==e)return a[b];return null}function Jc(a,b,c){var d=1;b=x(b);if(a[b])for(a=Sa(a[b]),b=0;b<a.length;b++){var e=a[b];e&&!e.ab&&(d&=!1!==Lc(e,c))}return Boolean(d)}
function Lc(a,b){var c=a.Oa,d=a.ub||a.src;a.Cb&&Fc(a);return c.call(d,b)}
function Bc(a,b){if(a.ab)return!0;var c=a.type,d=sc;if(!(c in d))return!0;var d=d[c],e,f;if(!Qb){if(!(c=b))a:{for(var c=["window","event"],g=p;e=c.shift();)if(null!=g[e])g=g[e];else{c=null;break a}c=g}e=c;c=!0 in d;g=!1 in d;if(c){if(0>e.keyCode||void 0!=e.returnValue)return!0;a:{var h=!1;if(0==e.keyCode)try{e.keyCode=-1;break a}catch(l){h=!0}if(h||void 0==e.returnValue)e.returnValue=!0}}h=new Tb;Ub(h,e,this);e=!0;try{if(c){for(var n=[],q=h.c;q;q=q.parentNode)n.push(q);f=d[!0];for(var r=n.length-
1;!h.jb&&0<=r;r--)h.c=n[r],e&=Jc(f,n[r],h);if(g)for(f=d[!1],r=0;!h.jb&&r<n.length;r++)h.c=n[r],e&=Jc(f,n[r],h)}else e=Lc(a,h)}finally{n&&(n.length=0)}return e}d=new Tb(b,this);return e=Lc(a,d)}var Mc="__closure_events_fn_"+(1E9*Math.random()>>>0);function yc(a){return la(a)?a:a[Mc]||(a[Mc]=function(b){return a.handleEvent(b)})};function Nc(a){this.src=a;this.a={};this.b=0}Nc.prototype.add=function(a,b,c,d,e){var f=this.a[a];f||(f=this.a[a]=[],this.b++);var g=Ic(f,b,d,e);-1<g?(a=f[g],c||(a.Cb=!1)):(a=new ec(b,null,this.src,a,!!d,e),a.Cb=c,f.push(a));return a};Nc.prototype.remove=function(a,b,c,d){if(!(a in this.a))return!1;var e=this.a[a];b=Ic(e,b,c,d);return-1<b?(fc(e[b]),Ea.splice.call(e,b,1),0==e.length&&(delete this.a[a],this.b--),!0):!1};
function Gc(a,b){var c=b.type;if(!(c in a.a))return!1;var d=Qa(a.a[c],b);d&&(fc(b),0==a.a[c].length&&(delete a.a[c],a.b--));return d}function Ic(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.ab&&f.Oa==b&&f.capture==!!c&&f.ub==d)return e}return-1};function Oc(){db.call(this);this.Ia=new Nc(this);this.Zc=this}F(Oc,db);Oc.prototype[Xb]=!0;m=Oc.prototype;m.yd=null;m.removeEventListener=function(a,b,c,d){Dc(this,a,b,c,d)};
function K(a,b){var c,d=a.yd;if(d)for(c=[];d;d=d.yd)c.push(d);var d=a.Zc,e=b,f=e.type||e;if(v(e))e=new ib(e,d);else if(e instanceof ib)e.target=e.target||d;else{var g=e,e=new ib(f,d);H(e,g)}var g=!0,h;if(c)for(var l=c.length-1;!e.jb&&0<=l;l--)h=e.c=c[l],g=Pc(h,f,!0,e)&&g;e.jb||(h=e.c=d,g=Pc(h,f,!0,e)&&g,e.jb||(g=Pc(h,f,!1,e)&&g));if(c)for(l=0;!e.jb&&l<c.length;l++)h=e.c=c[l],g=Pc(h,f,!1,e)&&g;return g}
m.v=function(){Oc.B.v.call(this);if(this.Ia){var a=this.Ia,b=0,c;for(c in a.a){for(var d=a.a[c],e=0;e<d.length;e++)++b,d[e].ab=!0;delete a.a[c];a.b--}}this.yd=null};m.Wa=function(a,b,c,d){return this.Ia.add(a,b,!1,c,d)};m.Ed=function(a,b,c,d){return this.Ia.remove(a,b,c,d)};function Pc(a,b,c,d){b=a.Ia.a[b];if(!b)return!0;b=Sa(b);for(var e=!0,f=0;f<b.length;++f){var g=b[f];if(g&&!g.ab&&g.capture==c){var h=g.Oa,l=g.ub||g.src;g.Cb&&Gc(a.Ia,g);e=!1!==h.call(l,d)&&e}}return e&&!1!=d.re};function L(a){Oc.call(this);this.q={};t(a)&&this.dc(a)}F(L,Oc);var Qc={},Rc={},Sc={};function Tc(a){return a.substr(0,1).toUpperCase()+a.substr(1)}function Uc(a){return a.ol_accessors_||(a.ol_accessors_={})}function Vc(a){return Qc.hasOwnProperty(a)?Qc[a]:Qc[a]="change:"+a.toLowerCase()}function Wc(a){return a.ol_bindings_||(a.ol_bindings_={})}m=L.prototype;
m.Ie=function(a,b,c,d){c=c||a;this.Dd(a);var e=Vc(c);Wc(this)[a]=J(b,e,function(){Xc(this,a)},void 0,this);Uc(this)[a]={target:b,key:c};d||Xc(this,a)};m.get=function(a){var b,c=Uc(this);c.hasOwnProperty(a)?(b=c[a],a=b.target,b=b.key,c=Rc.hasOwnProperty(b)?Rc[b]:Rc[b]="get"+Tc(b),b=a[c]?a[c]():a.get(b)):this.q.hasOwnProperty(a)&&(b=this.q[a]);return b};
m.Ka=function(){for(var a=lc(Uc(this)).concat(lc(this.q)),b={},c=0,d=0;d<a.length;){var e=a[d++],f=ma(e)?"o"+x(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(b,f)||(b[f]=!0,a[c++]=e)}a.length=c;return a};m.ge=function(a){var b=Uc(this);b.hasOwnProperty(a)?(a=b[a],a.target.ge(a.key)):Xc(this,a)};function Xc(a,b){var c=Vc(b);K(a,c);K(a,"change")}m.Vf=function(a,b,c){return J(this,a,b,!1,c)};m.Xf=function(a,b,c){return Cc(this,a,b,!1,c)};
m.set=function(a,b){var c=Uc(this);if(c.hasOwnProperty(a)){var d=c[a],c=d.target,d=d.key,e=Sc.hasOwnProperty(d)?Sc[d]:Sc[d]="set"+Tc(d);if(c[e])c[e](b);else c.set(d,b)}else this.q[a]=b,Xc(this,a)};m.dc=function(a){var b,c,d;for(b in a)if(c=a[b],d=Sc.hasOwnProperty(b)?Sc[b]:Sc[b]="set"+Tc(b),this[d])this[d](c);else this.set(b,c)};m.Dd=function(a){var b=Wc(this),c=b[a];c&&(delete b[a],Fc(c),b=this.get(a),delete Uc(this)[a],this.q[a]=b)};m.lg=function(a,b,c){Dc(this,a,b,!1,c)};m.mg=function(a){Fc(a)};
m.ng=function(){for(var a in Wc(this))this.Dd(a)};function Yc(a,b,c){ib.call(this,a,c);this.a=b}F(Yc,ib);Yc.prototype.b=k("a");function M(a){L.call(this);this.a=a||[];Zc(this)}F(M,L);m=M.prototype;m.clear=function(){for(;0<this.Cc();)this.pop()};m.Of=function(a){var b,c;b=0;for(c=a.length;b<c;++b)this.push(a[b]);return this};m.forEach=function(a,b){Ha(this.a,a,b)};m.Pf=k("a");m.Ne=function(a){return this.a[a]};m.Cc=function(){return this.get("length")};m.Ic=function(a,b){Ta(this.a,a,0,b);Zc(this);K(this,new Yc("add",b,this))};
m.pop=function(){return this.Ad(this.Cc()-1)};m.push=function(a){var b=this.a.length;this.Ic(b,a);return b};m.remove=function(a){var b=this.a,c,d;c=0;for(d=b.length;c<d;++c)if(b[c]===a)return this.Ad(c)};m.Ad=function(a){var b=this.a[a];Ea.splice.call(this.a,a,1);Zc(this);K(this,new Yc("remove",b,this));return b};m.fg=function(a,b){var c=this.Cc();if(a<c)c=this.a[a],this.a[a]=b,K(this,new Yc("remove",c,this)),K(this,new Yc("add",b,this));else{for(;c<a;++c)this.Ic(c,void 0);this.Ic(a,b)}};
function Zc(a){a.set("length",a.a.length)};function $c(a,b,c){return Math.min(Math.max(a,b),c)}function ad(a,b){var c=a%b;return 0>c*b?c+b:c}function bd(a){return a*Math.PI/180};function cd(a){L.call(this);a=t(a)?a:{};this.a=null;J(this,Vc("tracking"),this.i,!1,this);this.b(t(a.tracking)?a.tracking:!1)}F(cd,L);cd.prototype.v=function(){this.b(!1);cd.B.v.call(this)};var hd="DeviceOrientationEvent"in window;
cd.prototype.k=function(a){a=a.da;if(null!=a.alpha){var b=bd(a.alpha);this.set("alpha",b);"boolean"==typeof a.absolute&&a.absolute?this.set("heading",b):null!=a.webkitCompassHeading&&(null!=a.webkitCompassAccuracy&&-1!=a.webkitCompassAccuracy)&&this.set("heading",bd(a.webkitCompassHeading))}null!=a.beta&&this.set("beta",bd(a.beta));null!=a.gamma&&this.set("gamma",bd(a.gamma))};cd.prototype.d=function(){return this.get("alpha")};cd.prototype.getAlpha=cd.prototype.d;cd.prototype.e=function(){return this.get("beta")};
cd.prototype.getBeta=cd.prototype.e;cd.prototype.f=function(){return this.get("gamma")};cd.prototype.getGamma=cd.prototype.f;cd.prototype.g=function(){return this.get("heading")};cd.prototype.getHeading=cd.prototype.g;cd.prototype.c=function(){return this.get("tracking")};cd.prototype.getTracking=cd.prototype.c;cd.prototype.i=function(){if(hd){var a=this.c();a&&null===this.a?this.a=J(window,"deviceorientation",this.k,!1,this):a||null===this.a||(Fc(this.a),this.a=null)}};
cd.prototype.b=function(a){this.set("tracking",a)};cd.prototype.setTracking=cd.prototype.b;function id(a,b){a[0]+=b[0];a[1]+=b[1]}function jd(a,b){var c=ad(a+180,360)-180,d=Math.abs(Math.round(3600*c));return Math.floor(d/3600)+"\u00b0 "+Math.floor(d/60%60)+"\u2032 "+Math.floor(d%60)+"\u2033 "+b.charAt(0>c?1:0)}function kd(a,b){var c=Math.cos(b),d=Math.sin(b),e=a[1]*c+a[0]*d;a[0]=a[0]*c-a[1]*d;a[1]=e}function ld(a,b){var c=a[0]-b[0],d=a[1]-b[1];return c*c+d*d}
function md(a,b){var c=a[0],d=a[1],e=b[0],f=b[1],g=e[0],e=e[1],h=f[0],l=f[1],n=h-g,q=l-e,f=0==n&&0==q?0:(n*(c-g)+q*(d-e))/(n*n+q*q||0);0>=f||(1<=f?(g=h,e=l):(g+=f*n,e+=f*q));c=g-c;d=e-d;return[g,e,c*c+d*d,f]}function nd(a,b){if(t(a)){var c=b||0;return a[0].toFixed(c)+", "+a[1].toFixed(c)}return""}function od(a,b){var c=b.charAt(0);return"n"===c||"s"===c?[a[1],a[0]]:a};function pd(a){var b=qd(),c=a.length,d;for(d=0;d<c;++d){var e=b,f=a[d];f[0]<e[0]&&(e[0]=f[0]);f[0]>e[1]&&(e[1]=f[0]);f[1]<e[2]&&(e[2]=f[1]);f[1]>e[3]&&(e[3]=f[1])}return b}function rd(a,b,c){var d=Math.min.apply(null,a);a=Math.max.apply(null,a);var e=Math.min.apply(null,b);b=Math.max.apply(null,b);return sd(d,a,e,b,c)}function td(a,b){return a[0]<=b[0]&&b[0]<=a[1]&&a[2]<=b[1]&&b[1]<=a[3]}function ud(a,b){return a[0]<=b[0]&&b[1]<=a[1]&&a[2]<=b[2]&&b[3]<=a[3]}
function qd(){return[Infinity,-Infinity,Infinity,-Infinity]}function sd(a,b,c,d,e){return t(e)?(e[0]=a,e[1]=b,e[2]=c,e[3]=d,e):[a,b,c,d]}function vd(a,b){return a[0]==b[0]&&a[1]==b[1]&&a[2]==b[2]&&a[3]==b[3]}function wd(a,b){b[0]<a[0]&&(a[0]=b[0]);b[1]>a[1]&&(a[1]=b[1]);b[2]<a[2]&&(a[2]=b[2]);b[3]>a[3]&&(a[3]=b[3])}function xd(a){return[a[0],a[2]]}function yd(a){return[(a[0]+a[1])/2,(a[2]+a[3])/2]}
function zd(a,b,c,d){var e=b*d[0]/2;d=b*d[1]/2;b=Math.cos(c);c=Math.sin(c);e=[-e,-e,e,e];d=[-d,d,-d,d];var f,g,h;for(f=0;4>f;++f)g=e[f],h=d[f],e[f]=a[0]+g*b-h*c,d[f]=a[1]+g*c+h*b;return rd(e,d,void 0)}function Ad(a){return[a[0],a[3]]}function Bd(a,b){return a[0]<=b[1]&&a[1]>=b[0]&&a[2]<=b[3]&&a[3]>=b[2]}function Cd(a,b,c){a=[a[0],a[2],a[0],a[3],a[1],a[2],a[1],a[3]];b(a,a,2);return rd([a[0],a[2],a[4],a[6]],[a[1],a[3],a[5],a[7]],c)};function Dd(a){a=a?a:{};this.coordinates=[];this.b=[];this.c=[];this.va=a.dimension||2;this.a=a.offset||null}Dd.prototype.add=function(a){for(var b=this.coordinates.length,c=this.a,d=this.va,e=a.length,f,g,h=0;h<e;++h){f=a[h];g=b+h*d;for(var l=0;l<d;++l)this.coordinates[g+l]=f[l]-(c?c[l]:0)}a=this.b.push(b);this.c.push(e);return a-1};Dd.prototype.get=function(a,b,c){a=this.coordinates[this.b[a]+b*this.va+c];this.a&&(a+=this.a[c]);return a};Dd.prototype.T=function(a){return this.c[a]};
Dd.prototype.set=function(a,b,c,d){a=this.b[a];this.a&&(d-=this.a[c]);this.coordinates[a+b*this.va+c]=d};function Ed(){this.b=null}Ed.prototype.ca=function(){var a=new this.constructor(this.p());a.dimension=this.dimension;return a};var Fd={jh:"point",Tg:"linestring",Sg:"linearring",kh:"polygon",dh:"multipoint",ah:"multilinestring",eh:"multipolygon",Mg:"geometrycollection"};function N(a){L.call(this,a);this.Da="default";this.b=null}F(N,L);m=N.prototype;m.pb=function(){var a=this.Ka(),b=a.length,c={},d,e;for(d=0;d<b;++d)e=a[d],c[e]=this.get(e);return c};m.Se=k("Ja");m.u=function(){return t(this.a)?this.get(this.a):null};m.Eb=k("b");m.set=function(a,b){!t(this.a)&&b instanceof Ed&&(this.a=a);N.B.set.call(this,a,b)};m.ra=function(a){t(this.a)||(this.a="geometry");this.set(this.a,a)};/*
Latitude/longitude spherical geodesy formulae taken from
http://www.movable-type.co.uk/scripts/latlong.html
Licenced under CC-BY-3.0.
*/
function Gd(a){this.a=a}function Hd(a,b,c){var d=bd(b[1]),e=bd(c[1]),f=(e-d)/2;b=bd(c[0]-b[0])/2;d=Math.sin(f)*Math.sin(f)+Math.sin(b)*Math.sin(b)*Math.cos(d)*Math.cos(e);return 2*a.a*Math.atan2(Math.sqrt(d),Math.sqrt(1-d))}Gd.prototype.offset=function(a,b,c){var d=bd(a[1]);b/=this.a;var e=Math.asin(Math.sin(d)*Math.cos(b)+Math.cos(d)*Math.sin(b)*Math.cos(c));return[180*(bd(a[0])+Math.atan2(Math.sin(c)*Math.sin(b)*Math.cos(d),Math.cos(b)-Math.sin(d)*Math.sin(e)))/Math.PI,180*e/Math.PI]};var Id=new Gd(6370997);var Jd="object"==typeof Proj4js,Kd={xe:"degrees",Lg:"ft",Wg:"m"},Ld={};Ld.degrees=2*Math.PI*Id.a/360;Ld.ft=0.3048;Ld.m=1;function Md(a){this.Sa=a.code;this.Ab=a.units;this.f=t(a.extent)?a.extent:null;this.a=t(a.axisOrientation)?a.axisOrientation:"enu";this.nd=t(a.global)?a.global:!1;this.d=null}m=Md.prototype;m.Qe=k("Sa");m.ba=k("f");m.Sf=k("Ab");m.Tb=function(){return Ld[this.Ab]};m.Oe=k("a");m.If=k("nd");
function Nd(a,b){var c={units:a.units,axisOrientation:a.axis};H(c,b);Md.call(this,c);this.e=a;this.c=null}F(Nd,Md);Nd.prototype.Tb=function(){var a=this.e.to_meter;t(a)||(a=Ld[this.Ab]);return a};
Nd.prototype.b=function(a,b){if("degrees"==this.Ab)return a;null===this.c&&(this.c=Od(this,Pd({code:"EPSG:4326",extent:null})));var c=[b[0]-a/2,b[1],b[0]+a/2,b[1],b[0],b[1]-a/2,b[0],b[1]+a/2],c=this.c(c,c,2),d=Hd(Id,c.slice(0,2),c.slice(2,4)),c=Hd(Id,c.slice(4,6),c.slice(6,8)),d=(d+c)/2;"ft"==this.Ab&&(d/=0.3048);return d};function Qd(a){return a.e}var Rd={},Sd={},Td={};function Ud(a){Vd(a);Ha(a,function(b){Ha(a,function(a){b!==a&&Wd(b,a,Xd)})})}
function Yd(){var a=ee,b=fe,c=ge;Ha(he,function(d){Ha(a,function(a){Wd(d,a,b);Wd(a,d,c)})})}function ie(a){Sd[a.Sa]=a;Wd(a,a,Xd)}function Vd(a){Ha(a,function(a){ie(a)})}function je(a){return null!=a?v(a)?ke(a):a:ke("EPSG:3857")}function Wd(a,b,c){a=a.Sa;b=b.Sa;a in Td||(Td[a]={});Td[a][b]=c}function ke(a){var b;a instanceof Md?b=a:v(a)?(b=Sd[a],Jd&&!t(b)&&(b=Pd({code:a,extent:null})),t(b)||(b=null)):b=null;return b}
function Pd(a){var b=a.code,c=Rd[b];if(!t(c)){var d=new Proj4js.Proj(b),e=d.srsCode,c=Rd[e];t(c)||(a=pc(a),a.code=e,c=new Nd(d,a),Rd[e]=c);Rd[b]=c}return c}function le(a,b){var c=ke(a),d=ke(b);return Od(c,d)}
function Od(a,b){var c=a.Sa,d=b.Sa,e;c in Td&&d in Td[c]&&(e=Td[c][d]);if(Jd&&!t(e)){var f=Qd(a instanceof Nd?a:Pd({code:c,extent:null})),g=Qd(b instanceof Nd?b:Pd({code:d,extent:null}));e=function(a,b,c){var d=a.length;c=1<c?c:2;t(b)||(b=2<c?a.slice():Array(d));for(var e,w=0;w<d;w+=c)e=new Proj4js.Point(a[w],a[w+1]),e=Proj4js.transform(f,g,e),b[w]=e.x,b[w+1]=e.y;return b};Wd(a,b,e)}t(e)||(e=me);return e}function me(a,b){if(t(b)&&a!==b){for(var c=0,d=a.length;c<d;++c)b[c]=a[c];a=b}return a}
function Xd(a,b){var c;if(t(b)){c=0;for(var d=a.length;c<d;++c)b[c]=a[c];c=b}else c=a.slice();return c};function P(a){L.call(this);a=t(a)?a:{};this.a=null;this.c=me;this.b=void 0;J(this,Vc("projection"),this.Q,!1,this);J(this,Vc("tracking"),this.W,!1,this);t(a.projection)&&this.g(ke(a.projection));t(a.trackingOptions)&&this.i(a.trackingOptions);this.d(t(a.tracking)?a.tracking:!1)}F(P,L);P.prototype.v=function(){this.d(!1);P.B.v.call(this)};P.prototype.Q=function(){var a=this.fa();null!=a&&(this.c=Od(ke("EPSG:4326"),a),null===this.a||this.set("position",this.c(this.a)))};
P.prototype.W=function(){if(ne){var a=this.f();a&&!t(this.b)?this.b=p.navigator.geolocation.watchPosition(y(this.ta,this),y(this.ma,this),this.e()):!a&&t(this.b)&&(p.navigator.geolocation.clearWatch(this.b),this.b=void 0)}};var ne="geolocation"in p.navigator;
P.prototype.ta=function(a){a=a.coords;this.set("accuracy",a.accuracy);this.set("altitude",null===a.altitude?void 0:a.altitude);this.set("altitudeAccuracy",null===a.altitudeAccuracy?void 0:a.altitudeAccuracy);this.set("heading",null===a.heading?void 0:bd(a.heading));null===this.a?this.a=[a.longitude,a.latitude]:(this.a[0]=a.longitude,this.a[1]=a.latitude);this.set("position",this.c(this.a));this.set("speed",null===a.speed?void 0:a.speed)};P.prototype.ma=function(a){a.type="error";K(this,a)};
P.prototype.k=function(){return this.get("accuracy")};P.prototype.getAccuracy=P.prototype.k;P.prototype.o=function(){return this.get("altitude")};P.prototype.getAltitude=P.prototype.o;P.prototype.s=function(){return this.get("altitudeAccuracy")};P.prototype.getAltitudeAccuracy=P.prototype.s;P.prototype.G=function(){return this.get("heading")};P.prototype.getHeading=P.prototype.G;P.prototype.H=function(){return this.get("position")};P.prototype.getPosition=P.prototype.H;P.prototype.fa=function(){return this.get("projection")};
P.prototype.getProjection=P.prototype.fa;P.prototype.t=function(){return this.get("speed")};P.prototype.getSpeed=P.prototype.t;P.prototype.f=function(){return this.get("tracking")};P.prototype.getTracking=P.prototype.f;P.prototype.e=function(){return this.get("trackingOptions")};P.prototype.getTrackingOptions=P.prototype.e;P.prototype.g=function(a){this.set("projection",a)};P.prototype.setProjection=P.prototype.g;P.prototype.d=function(a){this.set("tracking",a)};P.prototype.setTracking=P.prototype.d;
P.prototype.i=function(a){this.set("trackingOptions",a)};P.prototype.setTrackingOptions=P.prototype.i;function oe(a){if("function"==typeof a.Ma)return a.Ma();if(v(a))return a.split("");if(ja(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return kc(a)}function pe(a,b,c){if("function"==typeof a.forEach)a.forEach(b,c);else if(ja(a)||v(a))Ha(a,b,c);else{var d;if("function"==typeof a.Ka)d=a.Ka();else if("function"!=typeof a.Ma)if(ja(a)||v(a)){d=[];for(var e=a.length,f=0;f<e;f++)d.push(f)}else d=lc(a);else d=void 0;for(var e=oe(a),f=e.length,g=0;g<f;g++)b.call(c,e[g],d&&d[g],a)}};function qe(a,b){this.b={};this.a=[];var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a){a instanceof qe?(c=a.Ka(),d=a.Ma()):(c=lc(a),d=kc(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}}m=qe.prototype;m.r=0;m.Hd=0;m.T=k("r");m.Ma=function(){re(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.b[this.a[b]]);return a};m.Ka=function(){re(this);return this.a.concat()};
m.xb=function(){return 0==this.r};m.clear=function(){this.b={};this.Hd=this.r=this.a.length=0};m.remove=function(a){return se(this.b,a)?(delete this.b[a],this.r--,this.Hd++,this.a.length>2*this.r&&re(this),!0):!1};function re(a){if(a.r!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];se(a.b,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.r!=a.a.length){for(var e={},c=b=0;b<a.a.length;)d=a.a[b],se(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}}m.get=function(a,b){return se(this.b,a)?this.b[a]:b};
m.set=function(a,b){se(this.b,a)||(this.r++,this.a.push(a),this.Hd++);this.b[a]=b};m.ca=function(){return new qe(this)};function se(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var te=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?\x3d[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function ue(a){if(ve){ve=!1;var b=p.location;if(b){var c=b.href;if(c&&(c=(c=ue(c)[3]||null)&&decodeURIComponent(c))&&c!=b.hostname)throw ve=!0,Error();}}return a.match(te)}var ve=yb;function we(a){if(a[1]){var b=a[0],c=b.indexOf("#");0<=c&&(a.push(b.substr(c)),a[0]=b=b.substr(0,c));c=b.indexOf("?");0>c?a[1]="?":c==b.length-1&&(a[1]=void 0)}return a.join("")}
function xe(a,b,c){if(ia(b))for(var d=0;d<b.length;d++)xe(a,String(b[d]),c);else null!=b&&c.push("\x26",a,""===b?"":"\x3d",encodeURIComponent(String(b)))}function ye(a,b){for(var c in b)xe(c,b[c],a);return a};function ze(a,b){var c;if(a instanceof ze)this.qb=t(b)?b:a.qb,Ae(this,a.Lb),c=a.Xc,Be(this),this.Xc=c,c=a.Qb,Be(this),this.Qb=c,Ce(this,a.Pc),c=a.Oc,Be(this),this.Oc=c,De(this,a.a.ca()),c=a.Ac,Be(this),this.Ac=c;else if(a&&(c=ue(String(a)))){this.qb=!!b;Ae(this,c[1]||"",!0);var d=c[2]||"";Be(this);this.Xc=d?decodeURIComponent(d):"";d=c[3]||"";Be(this);this.Qb=d?decodeURIComponent(d):"";Ce(this,c[4]);d=c[5]||"";Be(this);this.Oc=d?decodeURIComponent(d):"";De(this,c[6]||"",!0);c=c[7]||"";Be(this);this.Ac=
c?decodeURIComponent(c):""}else this.qb=!!b,this.a=new Ee(null,0,this.qb)}m=ze.prototype;m.Lb="";m.Xc="";m.Qb="";m.Pc=null;m.Oc="";m.Ac="";m.Jf=!1;m.qb=!1;
m.toString=function(){var a=[],b=this.Lb;b&&a.push(Fe(b,Ge),":");if(b=this.Qb){a.push("//");var c=this.Xc;c&&a.push(Fe(c,Ge),"@");a.push(encodeURIComponent(String(b)));b=this.Pc;null!=b&&a.push(":",String(b))}if(b=this.Oc)this.Qb&&"/"!=b.charAt(0)&&a.push("/"),a.push(Fe(b,"/"==b.charAt(0)?He:Ie));(b=this.a.toString())&&a.push("?",b);(b=this.Ac)&&a.push("#",Fe(b,Je));return a.join("")};m.ca=function(){return new ze(this)};
function Ae(a,b,c){Be(a);a.Lb=c?b?decodeURIComponent(b):"":b;a.Lb&&(a.Lb=a.Lb.replace(/:$/,""))}function Ce(a,b){Be(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Pc=b}else a.Pc=null}function De(a,b,c){Be(a);b instanceof Ee?(a.a=b,Ke(a.a,a.qb)):(c||(b=Fe(b,Le)),a.a=new Ee(b,0,a.qb))}function Me(a,b,c){Be(a);ia(c)||(c=[String(c)]);Ne(a.a,b,c)}function Be(a){if(a.Jf)throw Error("Tried to modify a read-only Uri");}
function Fe(a,b){return v(a)?encodeURI(a).replace(b,Oe):null}function Oe(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var Ge=/[#\/\?@]/g,Ie=/[\#\?:]/g,He=/[\#\?]/g,Le=/[\#\?@]/g,Je=/#/g;function Ee(a,b,c){this.a=a||null;this.b=!!c}
function Pe(a){if(!a.V&&(a.V=new qe,a.r=0,a.a))for(var b=a.a.split("\x26"),c=0;c<b.length;c++){var d=b[c].indexOf("\x3d"),e=null,f=null;0<=d?(e=b[c].substring(0,d),f=b[c].substring(d+1)):e=b[c];e=decodeURIComponent(e.replace(/\+/g," "));e=Qe(a,e);a.add(e,f?decodeURIComponent(f.replace(/\+/g," ")):"")}}m=Ee.prototype;m.V=null;m.r=null;m.T=function(){Pe(this);return this.r};m.add=function(a,b){Pe(this);this.a=null;a=Qe(this,a);var c=this.V.get(a);c||this.V.set(a,c=[]);c.push(b);this.r++;return this};
m.remove=function(a){Pe(this);a=Qe(this,a);return se(this.V.b,a)?(this.a=null,this.r-=this.V.get(a).length,this.V.remove(a)):!1};m.clear=function(){this.V=this.a=null;this.r=0};m.xb=function(){Pe(this);return 0==this.r};function Re(a,b){Pe(a);b=Qe(a,b);return se(a.V.b,b)}m.Ka=function(){Pe(this);for(var a=this.V.Ma(),b=this.V.Ka(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
m.Ma=function(a){Pe(this);var b=[];if(a)Re(this,a)&&(b=Ra(b,this.V.get(Qe(this,a))));else{a=this.V.Ma();for(var c=0;c<a.length;c++)b=Ra(b,a[c])}return b};m.set=function(a,b){Pe(this);this.a=null;a=Qe(this,a);Re(this,a)&&(this.r-=this.V.get(a).length);this.V.set(a,[b]);this.r++;return this};m.get=function(a,b){var c=a?this.Ma(a):[];return 0<c.length?String(c[0]):b};function Ne(a,b,c){a.remove(b);0<c.length&&(a.a=null,a.V.set(Qe(a,b),Sa(c)),a.r+=c.length)}
m.toString=function(){if(this.a)return this.a;if(!this.V)return"";for(var a=[],b=this.V.Ka(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.Ma(d),f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="\x3d"+encodeURIComponent(String(d[f])));a.push(g)}return this.a=a.join("\x26")};m.ca=function(){var a=new Ee;a.a=this.a;this.V&&(a.V=this.V.ca(),a.r=this.r);return a};function Qe(a,b){var c=String(b);a.b&&(c=c.toLowerCase());return c}
function Ke(a,b){b&&!a.b&&(Pe(a),a.a=null,pe(a.V,function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),Ne(this,e,a))},a));a.b=b};function Se(a){return function(){return a}}var Te=Se(!1),Ue=Se(!0),Ve=Se(null);function We(a){return function(){throw a;}}function Xe(a){var b;b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}}function Ye(a){var b=arguments,c=b.length;return function(){for(var a,e=0;e<c;e++)a=b[e].apply(this,arguments);return a}}function Ze(a){var b=arguments,c=b.length;return function(){for(var a=0;a<c;a++)if(!b[a].apply(this,arguments))return!1;return!0}};function $e(a,b,c){db.call(this);this.d=a;this.c=c;this.a=b||window;this.b=y(this.od,this)}F($e,db);m=$e.prototype;m.P=null;m.Gd=!1;m.start=function(){of(this);this.Gd=!1;var a=pf(this),b=qf(this);a&&!b&&this.a.mozRequestAnimationFrame?(this.P=J(this.a,"MozBeforePaint",this.b),this.a.mozRequestAnimationFrame(null),this.Gd=!0):this.P=a&&b?a.call(this.a,this.b):this.a.setTimeout(Xe(this.b),20)};
function of(a){if(null!=a.P){var b=pf(a),c=qf(a);b&&!c&&a.a.mozRequestAnimationFrame?Fc(a.P):b&&c?c.call(a.a,a.P):a.a.clearTimeout(a.P)}a.P=null}m.od=function(){this.Gd&&this.P&&Fc(this.P);this.P=null;this.d.call(this.c,sa())};m.v=function(){of(this);$e.B.v.call(this)};function pf(a){a=a.a;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null}
function qf(a){a=a.a;return a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};function rf(a,b,c){if(la(a))c&&(a=y(a,c));else if(a&&"function"==typeof a.handleEvent)a=y(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:p.setTimeout(a,b||0)};function sf(a,b,c){db.call(this);this.a=a;this.d=b||0;this.b=c;this.c=y(this.e,this)}F(sf,db);sf.prototype.P=0;sf.prototype.v=function(){sf.B.v.call(this);0!=this.P&&p.clearTimeout(this.P);this.P=0;delete this.a;delete this.b};sf.prototype.start=function(a){0!=this.P&&p.clearTimeout(this.P);this.P=0;this.P=rf(this.c,t(a)?a:this.d)};sf.prototype.e=function(){this.P=0;this.a&&this.a.call(this.b)};var tf,uf=!G||G&&9<=Ob;!xb&&!G||G&&G&&9<=Ob||xb&&Mb("1.9.1");G&&Mb("9");function vf(a){a=a.className;return v(a)&&a.match(/\S+/g)||[]}function wf(a,b){for(var c=vf(a),d=Ua(arguments,1),e=c.length+d.length,f=c,g=0;g<d.length;g++)0<=Ga(f,d[g])||f.push(d[g]);a.className=c.join(" ");return c.length==e}function xf(a,b,c){for(var d=vf(a),e=!1,f=0;f<d.length;f++)d[f]==b&&(Ta(d,f--,1),e=!0);e&&(d.push(c),a.className=d.join(" "))};function yf(a,b){this.x=t(a)?a:0;this.y=t(b)?b:0}m=yf.prototype;m.ca=function(){return new yf(this.x,this.y)};m.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};m.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};m.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};m.scale=function(a,b){var c=ka(b)?b:a;this.x*=a;this.y*=c;return this};function zf(a,b){this.width=a;this.height=b}m=zf.prototype;m.ca=function(){return new zf(this.width,this.height)};m.xb=function(){return!(this.width*this.height)};m.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};m.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};m.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
m.scale=function(a,b){var c=ka(b)?b:a;this.width*=a;this.height*=c;return this};function Af(a){return a?new Bf(Cf(a)):tf||(tf=new Bf)}function Df(a,b){gc(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in Ef?a.setAttribute(Ef[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var Ef={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};
function Ff(a){a=a.document.documentElement;return new zf(a.clientWidth,a.clientHeight)}function Gf(a,b,c){var d=arguments,e=document,f=d[0],g=d[1];if(!uf&&g&&(g.name||g.type)){f=["\x3c",f];g.name&&f.push(' name\x3d"',xa(g.name),'"');if(g.type){f.push(' type\x3d"',xa(g.type),'"');var h={};H(h,g);delete h.type;g=h}f.push("\x3e");f=f.join("")}f=e.createElement(f);g&&(v(g)?f.className=g:ia(g)?wf.apply(null,[f].concat(g)):Df(f,g));2<d.length&&Hf(e,f,d,2);return f}
function Hf(a,b,c,d){function e(c){c&&b.appendChild(v(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];!ja(f)||ma(f)&&0<f.nodeType?e(f):Ha(If(f)?Sa(f):f,e)}}function Jf(a){return document.createElement(a)}function Kf(a,b){Hf(Cf(a),a,arguments,1)}function Lf(a){for(var b;b=a.firstChild;)a.removeChild(b)}function Mf(a,b){b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling)}function Nf(a,b){a.insertBefore(b,a.childNodes[0]||null)}
function Of(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function Pf(a){if(void 0!=a.firstElementChild)a=a.firstElementChild;else for(a=a.firstChild;a&&1!=a.nodeType;)a=a.nextSibling;return a}function Cf(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function If(a){if(a&&"number"==typeof a.length){if(ma(a))return"function"==typeof a.item||"string"==typeof a.item;if(la(a))return"function"==typeof a.item}return!1}function Bf(a){this.a=a||p.document||document}Bf.prototype.createTextNode=function(a){return this.a.createTextNode(String(a))};
function Qf(){return!0}function Rf(a){var b=a.a;a=yb?b.body:b.documentElement;b=b.parentWindow||b.defaultView;return G&&Mb("10")&&b.pageYOffset!=a.scrollTop?new yf(a.scrollLeft,a.scrollTop):new yf(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}Bf.prototype.appendChild=function(a,b){a.appendChild(b)};
Bf.prototype.contains=function(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};function Sf(a){Oc.call(this);this.mc=a||window;this.Fc=J(this.mc,"resize",this.tf,!1,this);this.rb=Ff(this.mc||window)}F(Sf,Oc);m=Sf.prototype;m.Fc=null;m.mc=null;m.rb=null;m.v=function(){Sf.B.v.call(this);this.Fc&&(Fc(this.Fc),this.Fc=null);this.rb=this.mc=null};m.tf=function(){var a=Ff(this.mc||window);a==this.rb||a&&this.rb&&a.width==this.rb.width&&a.height==this.rb.height||(this.rb=a,K(this,"resize"))};function Tf(a,b,c,d,e){if(!(G||yb&&Mb("525")))return!0;if(pb&&e)return Uf(a);if(e&&!d||!c&&(17==b||18==b||pb&&91==b))return!1;if(yb&&d&&c)switch(a){case 220:case 219:case 221:case 192:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:return!1}if(G&&d&&b==a)return!1;switch(a){case 13:return!(G&&G&&9<=Ob);case 27:return!yb}return Uf(a)}
function Uf(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||yb&&0==a)return!0;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return!0;default:return!1}}function Vf(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function Wf(a,b){Oc.call(this);a&&(this.Kc&&Xf(this),this.Wb=a,this.Jc=J(this.Wb,"keypress",this,b),this.td=J(this.Wb,"keydown",this.a,b,this),this.Kc=J(this.Wb,"keyup",this.b,b,this))}F(Wf,Oc);m=Wf.prototype;m.Wb=null;m.Jc=null;m.td=null;m.Kc=null;m.pa=-1;m.gb=-1;m.ad=!1;
var Yf={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},Zf={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},$f=G||yb&&Mb("525"),ag=pb&&xb;
Wf.prototype.a=function(a){yb&&(17==this.pa&&!a.Vb||18==this.pa&&!a.wa||pb&&91==this.pa&&!a.qd)&&(this.gb=this.pa=-1);-1==this.pa&&(a.Vb&&17!=a.Ua?this.pa=17:a.wa&&18!=a.Ua?this.pa=18:a.qd&&91!=a.Ua&&(this.pa=91));$f&&!Tf(a.Ua,this.pa,a.Va,a.Vb,a.wa)?this.handleEvent(a):(this.gb=xb?Vf(a.Ua):a.Ua,ag&&(this.ad=a.wa))};Wf.prototype.b=function(a){this.gb=this.pa=-1;this.ad=a.wa};
Wf.prototype.handleEvent=function(a){var b=a.da,c,d,e=b.altKey;G&&"keypress"==a.type?(c=this.gb,d=13!=c&&27!=c?b.keyCode:0):yb&&"keypress"==a.type?(c=this.gb,d=0<=b.charCode&&63232>b.charCode&&Uf(c)?b.charCode:0):wb?(c=this.gb,d=Uf(c)?b.keyCode:0):(c=b.keyCode||this.gb,d=b.charCode||0,ag&&(e=this.ad),pb&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in Yf?f=Yf[c]:25==c&&a.Va&&(f=9):g&&g in Zf&&(f=Zf[g]);a=f==this.pa;this.pa=f;b=new bg(f,d,a,b);b.wa=e;K(this,b)};
function Xf(a){a.Jc&&(Fc(a.Jc),Fc(a.td),Fc(a.Kc),a.Jc=null,a.td=null,a.Kc=null);a.Wb=null;a.pa=-1;a.gb=-1}Wf.prototype.v=function(){Wf.B.v.call(this);Xf(this)};function bg(a,b,c,d){d&&Ub(this,d,void 0);this.type="key";this.Ua=a;this.pd=b;this.b=c}F(bg,Tb);function cg(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}m=cg.prototype;m.ca=function(){return new cg(this.top,this.right,this.bottom,this.left)};m.contains=function(a){return this&&a?a instanceof cg?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
m.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};m.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};m.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};
m.scale=function(a,b){var c=ka(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};function dg(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}m=dg.prototype;m.ca=function(){return new dg(this.left,this.top,this.width,this.height)};m.contains=function(a){return a instanceof dg?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};
m.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};m.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};m.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
m.scale=function(a,b){var c=ka(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};function eg(a,b){var c=Cf(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function fg(a,b){return eg(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}function gg(a,b,c){var d,e=xb&&(pb||Bb)&&Mb("1.9");b instanceof yf?(d=b.x,b=b.y):(d=b,b=c);a.style.left=hg(d,e);a.style.top=hg(b,e)}
function ig(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}G&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
function jg(a){if(G&&!(G&&8<=Ob))return a.offsetParent;var b=Cf(a),c=fg(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=fg(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null}
function kg(a){var b,c=Cf(a),d=fg(a,"position"),e=xb&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),f=new yf(0,0),g;b=c?Cf(c):document;g=!G||G&&9<=Ob||Qf(Af(b))?b.documentElement:b.body;if(a==g)return f;if(a.getBoundingClientRect)b=ig(a),a=Rf(Af(c)),f.x=b.left+a.x,f.y=b.top+a.y;else if(c.getBoxObjectFor&&!e)b=c.getBoxObjectFor(a),a=c.getBoxObjectFor(g),f.x=b.screenX-a.screenX,f.y=b.screenY-a.screenY;else{b=a;do{f.x+=b.offsetLeft;f.y+=
b.offsetTop;b!=a&&(f.x+=b.clientLeft||0,f.y+=b.clientTop||0);if(yb&&"fixed"==fg(b,"position")){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(wb||yb&&"absolute"==d)f.y-=c.body.offsetTop;for(b=a;(b=jg(b))&&b!=c.body&&b!=g;)f.x-=b.scrollLeft,wb&&"TR"==b.tagName||(f.y-=b.scrollTop)}return f}function lg(a,b){var c=mg(a),d=mg(b);return new yf(c.x-d.x,c.y-d.y)}
function mg(a){if(1==a.nodeType){var b;if(a.getBoundingClientRect)b=ig(a),b=new yf(b.left,b.top);else{b=Rf(Af(a));var c=kg(a);b=new yf(c.x-b.x,c.y-b.y)}if(xb&&!Mb(12)){var d;G?d="-ms-transform":yb?d="-webkit-transform":wb?d="-o-transform":xb&&(d="-moz-transform");var e;d&&(e=fg(a,d));e||(e=fg(a,"transform"));a=e?(a=e.match(ng))?new yf(parseFloat(a[1]),parseFloat(a[2])):new yf(0,0):new yf(0,0);a=new yf(b.x+a.x,b.y+a.y)}else a=b;return a}d=la(a.Pe);e=a;a.targetTouches?e=a.targetTouches[0]:d&&a.da.targetTouches&&
(e=a.da.targetTouches[0]);return new yf(e.clientX,e.clientY)}function hg(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function og(a){var b=pg;if("none"!=fg(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a}
function pg(a){var b=a.offsetWidth,c=a.offsetHeight,d=yb&&!b&&!c;return t(b)&&!d||!a.getBoundingClientRect?new zf(b,c):(a=ig(a),new zf(a.right-a.left,a.bottom-a.top))}function qg(a,b){var c=a.style;"opacity"in c?c.opacity=b:"MozOpacity"in c?c.MozOpacity=b:"filter"in c&&(c.filter=""===b?"":"alpha(opacity\x3d"+100*b+")")}function rg(a,b){a.style.display=b?"":"none"}function sg(a){return"rtl"==fg(a,"direction")}
function tg(a,b){var c=Qf(Af(Cf(a)));if(!G||c&&Mb("8")){var d=a.style;xb?d.MozBoxSizing="border-box":yb?d.WebkitBoxSizing="border-box":d.boxSizing="border-box";d.width=Math.max(b.width,0)+"px";d.height=Math.max(b.height,0)+"px"}else if(d=a.style,c){var c=ug(a,"padding"),e=vg(a);d.pixelWidth=b.width-e.left-c.left-c.right-e.right;d.pixelHeight=b.height-e.top-c.top-c.bottom-e.bottom}else d.pixelWidth=b.width,d.pixelHeight=b.height}
function wg(a,b,c,d){if(/^\d+px?$/.test(b))return parseInt(b,10);var e=a.style[c],f=a.runtimeStyle[c];a.runtimeStyle[c]=a.currentStyle[c];a.style[c]=b;b=a.style[d];a.style[c]=e;a.runtimeStyle[c]=f;return b}function xg(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?wg(a,c,"left","pixelLeft"):0}
function ug(a,b){if(G){var c=xg(a,b+"Left"),d=xg(a,b+"Right"),e=xg(a,b+"Top"),f=xg(a,b+"Bottom");return new cg(e,d,f,c)}c=eg(a,b+"Left");d=eg(a,b+"Right");e=eg(a,b+"Top");f=eg(a,b+"Bottom");return new cg(parseFloat(e),parseFloat(d),parseFloat(f),parseFloat(c))}var yg={thin:2,medium:4,thick:6};function zg(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:null))return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:null;return c in yg?yg[c]:wg(a,c,"left","pixelLeft")}
function vg(a){if(G){var b=zg(a,"borderLeft"),c=zg(a,"borderRight"),d=zg(a,"borderTop");a=zg(a,"borderBottom");return new cg(d,c,a,b)}b=eg(a,"borderLeftWidth");c=eg(a,"borderRightWidth");d=eg(a,"borderTopWidth");a=eg(a,"borderBottomWidth");return new cg(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}var ng=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function Ag(a,b){Oc.call(this);this.a=a;var c=ma(this.a)&&1==this.a.nodeType?this.a:this.a?this.a.body:null;this.e=!!c&&sg(c);this.b=J(this.a,xb?"DOMMouseScroll":"mousewheel",this,b)}F(Ag,Oc);
Ag.prototype.handleEvent=function(a){var b=0,c=0,d=0;a=a.da;if("mousewheel"==a.type){c=1;if(G||yb&&(qb||Mb("532.0")))c=40;d=Bg(-a.wheelDelta,c);t(a.wheelDeltaX)?(b=Bg(-a.wheelDeltaX,c),c=Bg(-a.wheelDeltaY,c)):c=d}else d=a.detail,100<d?d=3:-100>d&&(d=-3),t(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;ka(this.c)&&(b=$c(b,-this.c,this.c));ka(this.d)&&(c=$c(c,-this.d,this.d));this.e&&(b=-b);b=new Cg(d,a,b,c);K(this,b)};function Bg(a,b){return yb&&(pb||rb)&&0!=a%b?a:a/b}
Ag.prototype.v=function(){Ag.B.v.call(this);Fc(this.b);this.b=null};function Cg(a,b,c,d){b&&Ub(this,b,void 0);this.type="mousewheel";this.b=a;this.na=c;this.la=d}F(Cg,Tb);function Dg(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}Dg.prototype.a=4;Dg.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};Dg.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(Dg.BYTES_PER_ELEMENT=4,Dg.prototype.BYTES_PER_ELEMENT=Dg.prototype.a,Dg.prototype.set=Dg.prototype.set,Dg.prototype.toString=Dg.prototype.toString,C("Float32Array",Dg));function Eg(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}Eg.prototype.a=8;Eg.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};Eg.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{Eg.BYTES_PER_ELEMENT=8}catch(Fg){}Eg.prototype.BYTES_PER_ELEMENT=Eg.prototype.a;Eg.prototype.set=Eg.prototype.set;Eg.prototype.toString=Eg.prototype.toString;C("Float64Array",Eg)};function Gg(a,b,c,d,e){a[0]=b;a[1]=c;a[2]=d;a[3]=e};function Hg(){var a=Array(16);Jg(a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);return a}function Kg(){var a=Array(16);Jg(a,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);return a}function Jg(a,b,c,d,e,f,g,h,l,n,q,r,w,s,B,z,u){a[0]=b;a[1]=c;a[2]=d;a[3]=e;a[4]=f;a[5]=g;a[6]=h;a[7]=l;a[8]=n;a[9]=q;a[10]=r;a[11]=w;a[12]=s;a[13]=B;a[14]=z;a[15]=u}
function qh(a,b){a[0]=b[0];a[1]=b[1];a[2]=b[2];a[3]=b[3];a[4]=b[4];a[5]=b[5];a[6]=b[6];a[7]=b[7];a[8]=b[8];a[9]=b[9];a[10]=b[10];a[11]=b[11];a[12]=b[12];a[13]=b[13];a[14]=b[14];a[15]=b[15]}function rh(a){a[0]=1;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=1;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=1;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1}
function sh(a,b,c){var d=a[0],e=a[1],f=a[2],g=a[3],h=a[4],l=a[5],n=a[6],q=a[7],r=a[8],w=a[9],s=a[10],B=a[11],z=a[12],u=a[13],A=a[14];a=a[15];var E=b[0],D=b[1],R=b[2],O=b[3],Z=b[4],I=b[5],Q=b[6],va=b[7],wa=b[8],ca=b[9],ea=b[10],$=b[11],Pa=b[12],Fa=b[13],Fb=b[14];b=b[15];c[0]=d*E+h*D+r*R+z*O;c[1]=e*E+l*D+w*R+u*O;c[2]=f*E+n*D+s*R+A*O;c[3]=g*E+q*D+B*R+a*O;c[4]=d*Z+h*I+r*Q+z*va;c[5]=e*Z+l*I+w*Q+u*va;c[6]=f*Z+n*I+s*Q+A*va;c[7]=g*Z+q*I+B*Q+a*va;c[8]=d*wa+h*ca+r*ea+z*$;c[9]=e*wa+l*ca+w*ea+u*$;c[10]=f*wa+
n*ca+s*ea+A*$;c[11]=g*wa+q*ca+B*ea+a*$;c[12]=d*Pa+h*Fa+r*Fb+z*b;c[13]=e*Pa+l*Fa+w*Fb+u*b;c[14]=f*Pa+n*Fa+s*Fb+A*b;c[15]=g*Pa+q*Fa+B*Fb+a*b}function th(a,b){return a.length==b.length&&a[0]==b[0]&&a[1]==b[1]&&a[2]==b[2]&&a[3]==b[3]&&a[4]==b[4]&&a[5]==b[5]&&a[6]==b[6]&&a[7]==b[7]&&a[8]==b[8]&&a[9]==b[9]&&a[10]==b[10]&&a[11]==b[11]&&a[12]==b[12]&&a[13]==b[13]&&a[14]==b[14]&&a[15]==b[15]}
function uh(a,b,c){var d=b[0],e=b[1];b=b[2];c[0]=d*a[0]+e*a[4]+b*a[8]+a[12];c[1]=d*a[1]+e*a[5]+b*a[9]+a[13];c[2]=d*a[2]+e*a[6]+b*a[10]+a[14]}function vh(a,b,c){var d=a[1]*b+a[5]*c+0*a[9]+a[13],e=a[2]*b+a[6]*c+0*a[10]+a[14],f=a[3]*b+a[7]*c+0*a[11]+a[15];a[12]=a[0]*b+a[4]*c+0*a[8]+a[12];a[13]=d;a[14]=e;a[15]=f}function wh(a,b,c){Jg(a,a[0]*b,a[1]*b,a[2]*b,a[3]*b,a[4]*c,a[5]*c,a[6]*c,a[7]*c,1*a[8],1*a[9],1*a[10],1*a[11],a[12],a[13],a[14],a[15])}
function xh(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],h=a[5],l=a[6],n=a[7],q=Math.cos(b),r=Math.sin(b);a[0]=c*q+g*r;a[1]=d*q+h*r;a[2]=e*q+l*r;a[3]=f*q+n*r;a[4]=c*-r+g*q;a[5]=d*-r+h*q;a[6]=e*-r+l*q;a[7]=f*-r+n*q}new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);var yh=p.document&&"ontouchstart"in p.document.documentElement||!!p.navigator.msPointerEnabled;function zh(a,b){Oc.call(this);this.K=a;this.a=b}F(zh,Oc);zh.prototype.c=function(){return x(this).toString()};function Ah(a,b){this.f=a;this.e=b;this.a=[];this.b=[];this.c={}}Ah.prototype.clear=function(){this.a.length=0;this.b.length=0;var a=this.c,b;for(b in a)delete a[b]};function Bh(a){var b=a.a,c=a.b,d=b[0];1==b.length?(b.length=0,c.length=0):(b[0]=b.pop(),c[0]=c.pop(),Ch(a,0));b=a.e(d);delete a.c[b];return d}function Dh(a,b){var c=a.f(b);Infinity!=c&&(a.a.push(b),a.b.push(c),a.c[a.e(b)]=!0,Eh(a,0,a.a.length-1))}Ah.prototype.T=function(){return this.a.length};Ah.prototype.xb=function(){return 0===this.a.length};
function Ch(a,b){for(var c=a.a,d=a.b,e=c.length,f=c[b],g=d[b],h=b;b<e>>1;){var l=2*b+1,n=2*b+2,l=n<e&&d[n]<d[l]?n:l;c[b]=c[l];d[b]=d[l];b=l}c[b]=f;d[b]=g;Eh(a,h,b)}function Eh(a,b,c){var d=a.a;a=a.b;for(var e=d[c],f=a[c];c>b;){var g=c-1>>1;if(a[g]>f)d[c]=d[g],a[c]=a[g],c=g;else break}d[c]=e;a[c]=f}function Fh(a){var b=a.f,c=a.a,d=a.b,e=0,f=c.length,g,h,l;for(h=0;h<f;++h)g=c[h],l=b(g),Infinity==l?delete a.c[a.e(g)]:(d[e]=l,c[e++]=g);c.length=e;d.length=e;for(b=(a.a.length>>1)-1;0<=b;b--)Ch(a,b)};function Gh(a,b){Ah.call(this,function(b){return a.apply(null,b)},function(a){return a[0].c()});this.R=b;this.d=0}F(Gh,Ah);Gh.prototype.g=function(){--this.d;this.R()};function S(a){L.call(this);a=pc(a);a.brightness=t(a.brightness)?a.brightness:0;a.contrast=t(a.contrast)?a.contrast:1;a.hue=t(a.hue)?a.hue:0;a.opacity=t(a.opacity)?a.opacity:1;a.saturation=t(a.saturation)?a.saturation:1;a.visible=t(a.visible)?a.visible:!0;this.dc(a);J(this,[Vc("brightness"),Vc("contrast"),Vc("hue"),Vc("opacity"),Vc("saturation"),"load"],this.Gc,!1,this);J(this,Vc("visible"),this.ae,!1,this)}F(S,L);function Hh(a){K(a,"change")}S.prototype.d=function(){return this.get("brightness")};
S.prototype.getBrightness=S.prototype.d;S.prototype.e=function(){return this.get("contrast")};S.prototype.getContrast=S.prototype.e;S.prototype.f=function(){return this.get("hue")};S.prototype.getHue=S.prototype.f;function Ih(a){var b=a.d(),c=a.e(),d=a.f(),e=a.i(),f=a.Ba(),g=a.g();a=a.b();return{brightness:t(b)?$c(b,-1,1):0,contrast:t(c)?Math.max(c,0):1,hue:t(d)?d:0,opacity:t(e)?$c(e,0,1):1,Qc:f,saturation:t(g)?Math.max(g,0):1,visible:t(a)?!!a:!0}}S.prototype.i=function(){return this.get("opacity")};
S.prototype.getOpacity=S.prototype.i;S.prototype.g=function(){return this.get("saturation")};S.prototype.getSaturation=S.prototype.g;S.prototype.b=function(){return this.get("visible")};S.prototype.getVisible=S.prototype.b;S.prototype.Gc=function(){this.b()&&this.Ba()&&Hh(this)};S.prototype.ae=function(){this.Ba()&&Hh(this)};S.prototype.t=function(a){this.set("brightness",a)};S.prototype.setBrightness=S.prototype.t;S.prototype.G=function(a){this.set("contrast",a)};S.prototype.setContrast=S.prototype.G;
S.prototype.H=function(a){this.set("hue",a)};S.prototype.setHue=S.prototype.H;S.prototype.s=function(a){this.set("opacity",a)};S.prototype.setOpacity=S.prototype.s;S.prototype.Q=function(a){this.set("saturation",a)};S.prototype.setSaturation=S.prototype.Q;S.prototype.W=function(a){this.set("visible",a)};S.prototype.setVisible=S.prototype.W;function Jh(a){Oc.call(this);this.q=ke(a.projection);this.g=t(a.extent)?a.extent:t(a.projection)?this.q.ba():null;this.d=t(a.attributions)?a.attributions:null;this.f=a.logo;this.b=0}F(Jh,Oc);function Kh(a){++a.b;K(a,"change")}Jh.prototype.ba=k("g");Jh.prototype.fa=k("q");Jh.prototype.Ba=Ue;function Lh(a){var b=pc(a);delete b.source;S.call(this,b);this.Mb={gd:{},layer:null,Rc:{}};this.c=a.source;J(this.c,"change",this.vf,!1,this);this.c.Ba()||Cc(this.c,"load",this.wf,!1,this)}F(Lh,S);m=Lh.prototype;m.Sb=function(a){a=t(a)?a:[];a.push(this);return a};m.ld=function(a){a=t(a)?a:{layers:[],qa:[]};a.layers.push(this);a.qa.push(Ih(this));return a};m.ja=k("c");m.vf=function(){Hh(this)};m.wf=function(){K(this,"load")};m.Ba=function(){return this.ja().Ba()};function Mh(a,b,c){ib.call(this,a);this.map=b;this.b=t(c)?c:null}F(Mh,ib);function Nh(a,b,c,d){Mh.call(this,a,b,d);this.a=c;this.g=this.f=null}F(Nh,Mh);Nh.prototype.d=function(){null===this.f&&(this.f=Oh(this.map,this.e()));return this.f};Nh.prototype.e=function(){if(null===this.g){var a=lg(this.a,this.map.b);this.g=[a.x,a.y]}return this.g};Nh.prototype.U=function(){Nh.B.U.call(this);this.a.U()};Nh.prototype.sb=function(){Nh.B.sb.call(this);this.a.sb()};
function Ph(a){Oc.call(this);this.a=a;this.c=!1;this.b=this.g=this.d=this.e=this.f=null;a=this.a.b;this.e=[J(a,["click","dblclick"],this.Kd,!1,this),J(a,"mousedown",this.nf,!1,this),J(a,"mousemove",this.zd,!1,this),J(a,"mouseout",this.zd,!1,this),J(a,"contextmenu",this.zd,!1,this)];this.g=[J(a,["touchstart","MSPointerDown"],this.Bf,!1,this),J(p.document,["touchmove","MSPointerMove"],this.Af,!1,this),J(p.document,["touchend","MSPointerUp"],this.zf,!1,this)]}F(Ph,Oc);m=Ph.prototype;
m.Kd=function(a){if(!this.c){var b=a.type;K(this,0===this.f||"dblclick"==b?new Nh(Qh,this.a,a):new Nh(Rh,this.a,a))}};m.of=function(a){this.b&&(this.b=null,Ha(this.d,Fc),this.d=null,this.c&&K(this,new Nh(Sh,this.a,a)))};m.nf=function(a){K(this,new Nh(Th,this.a,a));this.b||(this.b=a,this.c=!1,this.d=[J(p.document,"mousemove",this.Qf,!1,this),J(p.document,"mouseup",this.of,!1,this)],a.U())};
m.Qf=function(a){var b;this.c||(this.c=!0,b=new Nh(Uh,this.a,this.b),K(this,b));b=new Nh(Vh,this.a,a);K(this,b)};m.zd=function(a){K(this,new Nh(a.type,this.a,a))};m.Bf=function(a){a.U();this.b=a;this.c=!1;K(this,new Nh(Wh,this.a,a))};m.Af=function(a){this.b&&(this.c=!0,K(this,new Nh(Xh,this.a,a)))};m.zf=function(a){K(this,new Nh(Yh,this.a,a));this.c||(a=sa(),this.f=!this.f||250<a-this.f?a:0,null===this.b||this.Kd(this.b));this.b=null};
m.v=function(){null!==this.e&&(Ha(this.e,Fc),this.e=null);null!==this.d&&(Ha(this.d,Fc),this.d=null);null!==this.g&&(Ha(this.g,Fc),this.g=null);Ph.B.v.call(this)};var Rh="click",Qh="dblclick",Th="down",Uh="dragstart",Vh="drag",Sh="dragend",Wh="touchstart",Xh="touchmove",Yh="touchend",Zh={Ag:Rh,Cg:Qh,Fg:Th,Ig:Uh,Gg:Vh,Hg:Sh,sh:Wh,rh:Xh,qh:Yh,Zg:"mousemove",$g:"mouseout",Bg:"contextmenu"};function $h(){L.call(this);this.c=[0,0]}F($h,L);function ai(a,b){a.c[1]+=b};function bi(a,b,c){var d=a.length;if(a[0]<=b)return 0;if(!(b<=a[d-1]))if(0<c)for(c=1;c<d;++c){if(a[c]<b)return c-1}else if(0>c)for(c=1;c<d;++c){if(a[c]<=b)return c}else for(c=1;c<d;++c){if(a[c]==b)return c;if(a[c]<b)return a[c-1]-b<b-a[c]?c-1:c}return d-1};function ci(a){return function(b,c,d){if(t(b))return b=bi(a,b,d),b=$c(b+c,0,a.length-1),a[b]}}function di(a,b,c){return function(d,e,f){if(t(d))return f=0<f?0:0>f?1:0.5,d=Math.floor(Math.log(b/d)/Math.log(a)+f),e=Math.max(d+e,0),t(c)&&(e=Math.min(e,c)),b/Math.pow(a,e)}};function ei(){return function(a,b){if(t(a))return 0.1>=Math.abs(a+b)?0:a+b}};function fi(a){var b=ei();this.resolution=a;this.rotation=b};function T(a){$h.call(this);a=a||{};var b={};b.center=t(a.center)?a.center:null;b.projection=je(a.projection);var c,d,e;if(t(a.resolutions))c=a.resolutions,d=c[0],e=c[c.length-1],c=ci(c);else{d=a.maxResolution;t(d)||(d=a.projection,e=je(d).ba(),d=(null===e?360*Ld.degrees/Ld[d.Ab]:Math.max(e[1]-e[0],e[3]-e[2]))/256);c=a.maxZoom;t(c)||(c=28);var f=a.zoomFactor;t(f)||(f=2);e=d/Math.pow(f,c);c=di(f,d,c)}this.b=d;this.f=e;this.g=new fi(c);t(a.resolution)?b.resolution=a.resolution:t(a.zoom)&&(b.resolution=
this.Ha(this.b,a.zoom));b.rotation=t(a.rotation)?a.rotation:0;this.dc(b)}F(T,$h);function gi(a,b,c){var d,e=a.a();t(e)&&(d=[e[0]-c[0],e[1]-c[1]],kd(d,b-a.d()),id(d,c));return d}function hi(a,b,c){var d,e=a.a();a=a.C();t(e)&&t(a)&&(d=[c[0]-b*(c[0]-e[0])/a,c[1]-b*(c[1]-e[1])/a]);return d}T.prototype.Ha=function(a,b,c){return this.g.resolution(a,b||0,c||0)};T.prototype.qc=function(a,b){return this.g.rotation(a,b||0)};T.prototype.a=function(){return this.get("center")};T.prototype.getCenter=T.prototype.a;
T.prototype.i=function(a){var b=this.a(),c=this.C();return[b[0]-c*a[0]/2,b[0]+c*a[0]/2,b[1]-c*a[1]/2,b[1]+c*a[1]/2]};T.prototype.fa=function(){return this.get("projection")};T.prototype.getProjection=T.prototype.fa;T.prototype.C=function(){return this.get("resolution")};T.prototype.getResolution=T.prototype.C;function ii(a){var b=a.b,c=Math.log(b/a.f)/Math.log(2);return function(a){return b/Math.pow(2,a*c)}}T.prototype.d=function(){return this.get("rotation")};T.prototype.getRotation=T.prototype.d;
function ji(a){var b=a.b,c=Math.log(b/a.f)/Math.log(2);return function(a){return Math.log(b/a)/Math.log(2)/c}}m=T.prototype;m.O=function(){return this};function ki(a){var b=a.a(),c=a.fa(),d=a.C();a=a.d();return{center:b.slice(),projection:t(c)?c:null,resolution:d,rotation:t(a)?a:0}}m.$e=function(){var a,b=this.C();if(t(b)){var c,d=0;do{c=this.Ha(this.b,d);if(c==b){a=d;break}++d}while(c>this.f)}return a};
m.jd=function(a,b){this.Ea(yd(a));var c=Math.max((a[1]-a[0])/b[0],(a[3]-a[2])/b[1]),c=this.Ha(c,0,0);this.kb(c)};m.ac=function(){return null!=this.a()&&t(this.C())};m.Ea=function(a){this.set("center",a)};T.prototype.setCenter=T.prototype.Ea;T.prototype.k=function(a){this.set("projection",a)};T.prototype.setProjection=T.prototype.k;T.prototype.kb=function(a){this.set("resolution",a)};T.prototype.setResolution=T.prototype.kb;T.prototype.e=function(a){this.set("rotation",a)};
T.prototype.setRotation=T.prototype.e;T.prototype.o=function(a){a=this.Ha(this.b,a,0);this.kb(a)};function li(a){L.call(this);this.element=t(a.element)?a.element:null;this.o=a.target;this.a=null;this.e=[]}F(li,L);li.prototype.v=function(){Of(this.element);li.B.v.call(this)};li.prototype.W=k("a");li.prototype.d=da;li.prototype.setMap=function(a){null===this.a||Of(this.element);0!=this.e.length&&(Ha(this.e,Fc),this.e.length=0);this.a=a;null!==this.a&&((t(this.o)?this.o:a.G).appendChild(this.element),this.d!==da&&this.e.push(J(a,"postrender",this.d,!1,this)))};function mi(a){a=t(a)?a:{};this.g=Jf("UL");var b=Gf("DIV",{"class":(t(a.className)?a.className:"ol-attribution")+" ol-unselectable"},this.g);li.call(this,{element:b,target:a.target});this.f=!0;this.c={};this.b={}}F(mi,li);
mi.prototype.d=function(a){a=a.b;if(null===a)this.f&&(rg(this.element,!1),this.f=!1);else{var b,c,d,e,f,g,h,l,n,q=a.Lc,r=pc(a.attributions),w={};b=0;for(c=q.length;b<c;b++)if(d=q[b].ja(),n=x(d).toString(),l=d.d,null!==l)for(d=0,e=l.length;d<e;d++)if(g=l[d],h=x(g).toString(),!(h in r)){f=a.lc[n];var s;if(s=t(f))a:if(null===g.a)s=!0;else{var B=s=void 0,z=void 0,u=void 0;for(u in f)if(u in g.a)for(z=f[u],s=0,B=g.a[u].length;s<B;++s)if(g.a[u][s].a<=z.d&&g.a[u][s].d>=z.a&&g.a[u][s].c<=z.b&&g.a[u][s].b>=
z.c){s=!0;break a}s=!1}s?(h in w&&delete w[h],r[h]=g):w[h]=g}b=[r,w];a=b[0];b=b[1];for(var A in this.c)A in a?(this.b[A]||(rg(this.c[A],!0),this.b[A]=!0),delete a[A]):A in b?(this.b[A]&&(rg(this.c[A],!1),delete this.b[A]),delete b[A]):(Of(this.c[A]),delete this.c[A],delete this.b[A]);for(A in a)c=Jf("LI"),c.innerHTML=a[A].b,this.g.appendChild(c),this.c[A]=c,this.b[A]=!0;for(A in b)c=Jf("LI"),c.innerHTML=b[A].b,rg(c,!1),this.g.appendChild(c),this.c[A]=c;A=!oc(this.b);this.f!=A&&(rg(this.element,A),
this.f=A)}};function ni(a){a=t(a)?a:{};this.c=Jf("UL");var b=Gf("DIV",{"class":(t(a.className)?a.className:"ol-logo")+" ol-unselectable"},this.c);li.call(this,{element:b,target:a.target});this.b=!0;this.f={}}F(ni,li);
ni.prototype.d=function(a){a=a.b;if(null===a)this.b&&(rg(this.element,!1),this.b=!1);else{var b;a=a.de;var c=this.f;for(b in c)b in a||(Of(c[b]),delete c[b]);var d,e;for(b in a)b in c||(d=new Image,d.src=b,e=Jf("LI"),e.appendChild(d),this.c.appendChild(e),c[b]=e);b=!oc(a);this.b!=b&&(rg(this.element,b),this.b=b)}};function oi(a){return 1-Math.pow(1-a,3)};function pi(a){return 3*a*a-2*a*a*a}function qi(a){return a}function ri(a){return 0.5>a?pi(2*a):1-pi(2*(a-0.5))};function si(a){var b=a.resolution,c=t(a.start)?a.start:sa(),d=t(a.duration)?a.duration:1E3,e=t(a.easing)?a.easing:ri;return function(a,g){if(g.time<c)return g.ua=!0,g.L[0]+=1,!0;if(g.time<c+d){var h=e((g.time-c)/d),l=b-g.D.resolution;g.ua=!0;g.D.resolution+=h*l;g.L[0]+=1;return!0}return!1}}
function ti(a){var b=a.source,c=t(a.start)?a.start:sa(),d=b[0],e=b[1],f=t(a.duration)?a.duration:1E3,g=t(a.easing)?a.easing:pi;return function(a,b){if(b.time<c)return b.ua=!0,b.L[0]+=1,!0;if(b.time<c+f){var n=1-g((b.time-c)/f),q=d-b.D.center[0],r=e-b.D.center[1];b.ua=!0;b.D.center[0]+=n*q;b.D.center[1]+=n*r;b.L[0]+=1;return!0}return!1}}
function ui(a){var b=a.rotation,c=t(a.start)?a.start:sa(),d=t(a.duration)?a.duration:1E3,e=t(a.easing)?a.easing:pi;return function(a,g){if(g.time<c)return g.ua=!0,g.L[0]+=1,!0;if(g.time<c+d){var h=1-e((g.time-c)/d),l=b-g.D.rotation;g.ua=!0;g.D.rotation+=h*l;g.L[0]+=1;return!0}return!1}}
function vi(a){var b=a.resolution,c=t(a.start)?a.start:sa(),d=t(a.duration)?a.duration:1E3,e=t(a.easing)?a.easing:pi;return function(a,g){if(g.time<c)return g.ua=!0,g.L[0]+=1,!0;if(g.time<c+d){var h=1-e((g.time-c)/d),l=b-g.D.resolution;g.ua=!0;g.D.resolution+=h*l;g.L[0]+=1;return!0}return!1}};function wi(a){a=t(a)?a:{};var b=t(a.className)?a.className:"ol-zoom",c=t(a.delta)?a.delta:1,d=Gf("A",{href:"#zoomIn","class":b+"-in"});J(d,["touchend","click"],ra(wi.prototype.b,c),!1,this);var e=Gf("A",{href:"#zoomOut","class":b+"-out"});J(e,["touchend","click"],ra(wi.prototype.b,-c),!1,this);b=Gf("DIV",b+" ol-unselectable",d,e);li.call(this,{element:b,target:a.target})}F(wi,li);
wi.prototype.b=function(a,b){b.U();var c=this.a,d=c.a().O(),e=d.C();t(e)&&(c.Ga(vi({resolution:e,duration:250,easing:oi})),c=d.Ha(e,a),d.kb(c))};function xi(a){a=t(a)?a:{};var b=new M;(t(a.attribution)?a.attribution:1)&&b.push(new mi(t(a.attributionOptions)?a.attributionOptions:void 0));(t(a.logo)?a.logo:1)&&b.push(new ni(t(a.logoOptions)?a.logoOptions:void 0));(t(a.zoom)?a.zoom:1)&&b.push(new wi(t(a.zoomOptions)?a.zoomOptions:void 0));return b};function yi(){this.e=-0.005;this.d=0.05;this.f=100;this.a=[];this.b=this.c=0}function zi(a){var b=sa()-a.f,c=a.a.length-3;if(a.a[c+2]<b)return!1;for(var d=c-3;0<=d&&a.a[d+2]>b;)d-=3;if(0<=d){var b=a.a[c+2]-a.a[d+2],e=a.a[c]-a.a[d],c=a.a[c+1]-a.a[d+1];a.c=Math.atan2(c,e);a.b=Math.sqrt(e*e+c*c)/b;return a.b>a.d}return!1}function Ai(a,b){var c=a.e,d=a.b,e=a.d,f=Math.log(a.d/a.b)/a.e;return ti({source:b,duration:f,easing:function(a){return d*(Math.exp(c*a*f)-1)/(e-d)}})};function Bi(){}function Ci(a,b,c,d,e){if(null!=c){var f=b.d(),g=b.a();t(f)&&(t(g)&&t(e))&&(a.Ga(ui({rotation:f,duration:e,easing:oi})),t(d)&&a.Ga(ti({source:g,duration:e,easing:oi})));if(null!=d){var h=gi(b,c,d);Di(a,function(){b.Ea(h);b.e(c)})}else b.e(c)}}function Ei(a,b,c,d,e){var f=b.C();c=b.Ha(f,c,0);Fi(a,b,c,d,e)}
function Fi(a,b,c,d,e){if(null!=c){var f=b.C(),g=b.a();t(f)&&(t(g)&&t(e))&&(a.Ga(vi({resolution:f,duration:e,easing:oi})),t(d)&&a.Ga(ti({source:g,duration:e,easing:oi})));if(null!=d){var h=hi(b,c,d);Di(a,function(){b.Ea(h);b.kb(c)})}else b.kb(c)}};function Gi(a){a=t(a)?a:{};this.a=t(a.delta)?a.delta:1}F(Gi,Bi);Gi.prototype.Xa=function(a){var b=!1,c=a.a;if(a.type==Qh&&(yh||Wb(a.a))){var b=a.map,d=a.d(),c=c.Va?-this.a:this.a,e=b.a().O();Ei(b,e,c,d,250);a.U();b=!0}return!b};function Hi(a){a=a.a;return a.wa&&!a.Jb&&a.Va}function Ii(a){return"click"==a.a.type}function Ji(a){a=a.a;return!a.wa&&!a.Jb&&!a.Va}function Ki(a){a=a.a;return!a.wa&&!a.Jb&&a.Va}function Li(a){a=a.a.target.tagName;return"INPUT"!==a&&"SELECT"!==a&&"TEXTAREA"!==a};function Mi(){this.c=!1;this.e=1;this.o=this.k=this.R=this.g=0;this.kc=this.q=null}F(Mi,Bi);m=Mi.prototype;m.Yb=da;m.Zb=da;m.Gb=Te;m.$d=da;
m.Xa=function(a){var b=a.map;if(!b.ac())return!0;var c=!1,b=b.a(),d=a.a;a.type==Th&&this.$d(a);if(this.c)a.type==Vh?(this.na=d.clientX-this.g,this.la=d.clientY-this.R,this.Yb(a)):a.type==Sh&&(this.na=d.clientX-this.g,this.la=d.clientY-this.R,this.Zb(a),ai(b,-this.e),this.c=!1);else if(a.type==Uh){var e=ki(b.O());this.g=d.clientX;this.R=d.clientY;this.la=this.na=0;this.q=e.center;this.kc=a.d();this.Gb(a)&&(ai(b,this.e),this.c=!0,a.U(),c=!0)}return!c};function Ni(a){Mi.call(this);a=t(a)?a:{};this.d=t(a.condition)?a.condition:Ji;this.a=a.kinetic;this.b=null}F(Ni,Mi);Ni.prototype.Yb=function(a){this.a&&this.a.a.push(a.a.clientX,a.a.clientY,sa());a=a.map;var b=a.a(),c=ki(b),d=[-c.resolution*this.na,c.resolution*this.la];kd(d,c.rotation);id(d,this.q);Oi(a);b.Ea(d)};
Ni.prototype.Zb=function(a){a=a.map;var b=a.a().O();if(this.a&&zi(this.a)){var c=ki(b),d=(this.a.d-this.a.b)/this.a.e,e=this.a.c;this.b=Ai(this.a,c.center);a.Ga(this.b);c=Pi(a,c.center);d=Oh(a,[c[0]-d*Math.cos(e),c[1]-d*Math.sin(e)]);b.Ea(d)}Oi(a)};Ni.prototype.Gb=function(a){var b=a.a;if(Wb(b)&&this.d(a)){if(this.a){var c=this.a;c.a.length=0;c.c=0;c.b=0;this.a.a.push(b.clientX,b.clientY,sa())}Oi(a.map);return!0}return!1};
Ni.prototype.$d=function(a){var b=a.map,c=b.a();null!==this.b&&Qa(b.g,this.b)&&(Oi(b),c.Ea(a.b.D.center),this.b=null)};function Qi(a){a=t(a)?a:{};Mi.call(this);this.b=t(a.condition)?a.condition:Hi;this.a=void 0}F(Qi,Mi);Qi.prototype.Yb=function(a){var b=a.map,c=b.c();a=a.e();c=Math.atan2(c[1]/2-a[1],a[0]-c[0]/2);if(t(this.a)){a=c-this.a;var d=b.a().O(),e=ki(d);Oi(b);Ci(b,d,e.rotation-a)}this.a=c};Qi.prototype.Zb=function(a){a=a.map;var b=a.a().O(),c=ki(b).rotation,c=b.qc(c,0);Ci(a,b,c,void 0,250)};Qi.prototype.Gb=function(a){return Wb(a.a)&&this.b(a)?(Oi(a.map),this.a=void 0,!0):!1};function Ri(a){var b=Gf("DIV","ol-dragbox");this.b=null;this.c=a.kc;li.call(this,{element:b})}F(Ri,li);Ri.prototype.setMap=function(a){Ri.B.setMap.call(this,a);null!==a&&(this.b=Pi(a,this.c),gg(this.element,this.b[0],this.b[1]),tg(this.element,new zf(0,0)),this.e.push(J(a,Vh,this.f,!1,this)))};Ri.prototype.f=function(a){var b=this.a;a=a.d();b=Pi(b,a);gg(this.element,Math.min(b[0],this.b[0]),Math.min(b[1],this.b[1]));tg(this.element,new zf(Math.abs(b[0]-this.b[0]),Math.abs(b[1]-this.b[1])))};function Si(a){Mi.call(this);a=t(a)?a:{};this.b=t(a.condition)?a.condition:Ki;this.a=null}F(Si,Mi);Si.prototype.Zb=function(a){this.a.setMap(null);this.a=null;if(64<=this.na*this.na+this.la*this.la){var b=a.map,c=pd([this.kc,a.d()]);Di(b,function(){var a=b.a(),e=b.c();a.jd(c,e);a.e(0)})}};Si.prototype.Gb=function(a){return Wb(a.a)&&this.b(a)?(this.a=new Ri({kc:this.kc}),this.a.setMap(a.map),!0):!1};function Ti(a){a=t(a)?a:{};this.a=t(a.condition)?a.condition:Ze(Ji,Li);this.b=t(a.delta)?a.delta:128}F(Ti,Bi);Ti.prototype.Xa=function(a){var b=!1;if("key"==a.type){var c=a.a.Ua;if(this.a(a)&&(40==c||37==c||39==c||38==c)){var b=a.map,d=b.a(),e=ki(d),f=e.resolution*this.b,g=0,h=0;40==c?h=-f:37==c?g=-f:39==c?g=f:h=f;c=[g,h];kd(c,e.rotation);e=d.a();t(e)&&(t(100)&&b.Ga(ti({source:e,duration:100,easing:qi})),d.Ea([e[0]+c[0],e[1]+c[1]]));a.U();b=!0}}return!b};function Ui(a){a=t(a)?a:{};this.b=t(a.condition)?a.condition:Ze(Ji,Li);this.a=t(a.delta)?a.delta:1}F(Ui,Bi);Ui.prototype.Xa=function(a){var b=!1;if("key"==a.type){var c=a.a.pd;if(this.b(a)&&(43==c||45==c)){b=a.map;c=43==c?this.a:-this.a;Oi(b);var d=b.a().O();Ei(b,d,c,void 0,100);a.U();b=!0}}return!b};function Vi(){this.a=0;this.c=null;this.d=this.b=void 0}F(Vi,Bi);Vi.prototype.Xa=function(a){var b=!1;if("mousewheel"==a.type){var b=a.map,c=a.a;this.c=a.d();this.a+=c.la/3;t(this.b)||(this.b=sa());c=Math.max(80-(sa()-this.b),0);p.clearTimeout(this.d);this.d=p.setTimeout(y(this.e,this,b),c);a.U();b=!0}return!b};Vi.prototype.e=function(a){var b=$c(this.a,-1,1),c=a.a().O();Oi(a);Ei(a,c,-b,this.c,250);this.a=0;this.c=null;this.d=this.b=void 0};function Wi(){this.c=!1;this.i={};this.targetTouches=[]}F(Wi,Bi);function Xi(a){for(var b=a.length,c=0,d=0,e=0;e<b;e++)c+=a[e].clientX,d+=a[e].clientY;return[c/b,d/b]}Wi.prototype.f=da;Wi.prototype.e=Te;Wi.prototype.g=Te;
Wi.prototype.Xa=function(a){var b=a.map.a(),c=a.type;if(c===Wh||c===Xh||c===Yh)c=a.a.da,t(c.targetTouches)?this.targetTouches=c.targetTouches:t(c.pointerId)&&(a.type==Yh?delete this.i[c.pointerId]:this.i[c.pointerId]=c,this.targetTouches=kc(this.i));this.c&&(a.type==Xh?this.f(a):a.type==Yh&&((this.c=this.e(a))||ai(b,-1)));a.type==Wh&&(a=this.g(a),!this.c&&a&&ai(b,1),this.c=a);return!0};function Yi(a){Wi.call(this);this.a=(t(a)?a:{}).kinetic;this.b=this.d=null;this.R=!1}F(Yi,Wi);Yi.prototype.f=function(a){var b=Xi(this.targetTouches);if(null!==this.b){this.a&&this.a.a.push(b[0],b[1],sa());var c=this.b[0]-b[0],d=b[1]-this.b[1];a=a.map;var e=a.a().O(),f=ki(e),c=[c,d],d=f.resolution;c[0]*=d;c[1]*=d;kd(c,f.rotation);id(c,f.center);Oi(a);e.Ea(c)}this.b=b};
Yi.prototype.e=function(a){a=a.map;var b=a.a();if(0===this.targetTouches.length){if(!this.R&&this.a&&zi(this.a)){var c=(this.a.d-this.a.b)/this.a.e,d=this.a.c,e=b.a();this.d=Ai(this.a,e);a.Ga(this.d);e=Pi(a,e);c=Oh(a,[e[0]-c*Math.cos(d),e[1]-c*Math.sin(d)]);b.Ea(c)}Oi(a);return!1}this.b=null;return!0};
Yi.prototype.g=function(a){if(0<this.targetTouches.length){var b=a.map,c=b.a();this.b=null;Oi(b);null!==this.d&&Qa(b.g,this.d)&&(c.Ea(a.b.D.center),this.d=null);this.a&&(a=this.a,a.a.length=0,a.c=0,a.b=0);this.R=1<this.targetTouches.length;return!0}return!1};function Zi(a){Wi.call(this);a=t(a)?a:{};this.b=null;this.d=void 0;this.a=!1;this.R=0;this.q=t(a.Tf)?a.Tf:0.3}F(Zi,Wi);Zi.prototype.f=function(a){var b=0,c=this.targetTouches[0],d=this.targetTouches[1],c=Math.atan2(d.clientY-c.clientY,d.clientX-c.clientX);t(this.d)&&(b=c-this.d,this.R+=b,!this.a&&Math.abs(this.R)>this.q&&(this.a=!0));this.d=c;a=a.map;c=mg(a.b);d=Xi(this.targetTouches);d[0]-=c.x;d[1]-=c.y;this.b=Oh(a,d);this.a&&(c=a.a().O(),d=ki(c),Oi(a),Ci(a,c,d.rotation+b,this.b))};
Zi.prototype.e=function(a){if(2>this.targetTouches.length){a=a.map;var b=a.a().O(),c=ki(b);if(this.a){var c=c.rotation,d=this.b,c=b.qc(c,0);Ci(a,b,c,d,250)}return!1}return!0};Zi.prototype.g=function(a){return 2<=this.targetTouches.length?(a=a.map,this.b=null,this.d=void 0,this.a=!1,this.R=0,Oi(a),!0):!1};function $i(){Wi.call(this);this.b=null;this.a=void 0;this.d=1}F($i,Wi);$i.prototype.f=function(a){var b=1,c=this.targetTouches[0],d=this.targetTouches[1],e=c.clientX-d.clientX,c=c.clientY-d.clientY,e=Math.sqrt(e*e+c*c);t(this.a)&&(b=this.a/e);this.a=e;1!=b&&(this.d=b);a=a.map;var e=a.a().O(),c=ki(e),d=mg(a.b),f=Xi(this.targetTouches);f[0]-=d.x;f[1]-=d.y;this.b=Oh(a,f);Oi(a);Fi(a,e,c.resolution*b,this.b)};
$i.prototype.e=function(a){if(2>this.targetTouches.length){a=a.map;var b=a.a().O(),c=ki(b).resolution,d=this.b,c=b.Ha(c,0,this.d-1);Fi(a,b,c,d,400);return!1}return!0};$i.prototype.g=function(a){return 2<=this.targetTouches.length?(a=a.map,this.b=null,this.a=void 0,this.d=1,Oi(a),!0):!1};function aj(a){a=t(a)?a:{};var b=new M,c=new yi;(t(a.altShiftDragRotate)?a.altShiftDragRotate:1)&&b.push(new Qi);(t(a.doubleClickZoom)?a.doubleClickZoom:1)&&b.push(new Gi({delta:a.zoomDelta}));(t(a.touchPan)?a.touchPan:1)&&b.push(new Yi({kinetic:c}));(t(a.touchRotate)?a.touchRotate:1)&&b.push(new Zi);(t(a.touchZoom)?a.touchZoom:1)&&b.push(new $i);(t(a.dragPan)?a.dragPan:1)&&b.push(new Ni({kinetic:c}));if(t(a.keyboard)?a.keyboard:1)b.push(new Ti),b.push(new Ui({delta:a.zoomDelta}));(t(a.mouseWheelZoom)?
a.mouseWheelZoom:1)&&b.push(new Vi);(t(a.shiftDragZoom)?a.shiftDragZoom:1)&&b.push(new Si);return b};function bj(a){var b=t(a)?a:{};a=pc(b);delete a.layers;b=b.layers;S.call(this,a);this.a=null;J(this,Vc("layers"),this.kf,!1,this);t(b)?ia(b)&&(b=new M(Sa(b))):b=new M;this.c(b)}F(bj,S);m=bj.prototype;m.Gc=function(){this.b()&&Hh(this)};m.ae=function(){Hh(this)};
m.kf=function(){null!==this.a&&(Ha(kc(this.a),Fc),this.a=null);var a=this.Ya();if(null!=a){this.a={add:J(a,"add",this.jf,!1,this),remove:J(a,"remove",this.lf,!1,this)};var a=a.a,b,c,d;b=0;for(c=a.length;b<c;b++)d=a[b],this.a[x(d).toString()]=J(d,"change",this.Gc,!1,this)}Hh(this)};m.jf=function(a){a=a.a;this.a[x(a).toString()]=J(a,"change",this.Gc,!1,this);Hh(this)};m.lf=function(a){a=x(a.a).toString();Fc(this.a[a]);delete this.a[a];Hh(this)};m.Ya=function(){return this.get("layers")};
bj.prototype.getLayers=bj.prototype.Ya;bj.prototype.c=function(a){this.set("layers",a)};bj.prototype.setLayers=bj.prototype.c;bj.prototype.Sb=function(a){var b=t(a)?a:[];this.Ya().forEach(function(a){a.Sb(b)});return b};
bj.prototype.ld=function(a){var b=t(a)?a:{layers:[],qa:[]},c=b.layers.length;this.Ya().forEach(function(a){a.ld(b)});a=Ih(this);var d,e;for(d=b.qa.length;c<d;c++)e=b.qa[c],e.brightness=$c(e.brightness+a.brightness,-1,1),e.contrast*=a.contrast,e.hue+=a.hue,e.opacity*=a.opacity,e.saturation*=a.saturation,e.visible=e.visible&&a.visible;return b};bj.prototype.Ba=function(){return null===Na(this.Ya().a,function(a){return!a.Ba()})};function cj(a){return Math.pow(2,Math.ceil(Math.log(a)/Math.LN2))};function dj(a){Md.call(this,{code:a,units:"m",extent:ej,global:!0})}F(dj,Md);var fj=6378137*Math.PI,ej=[-fj,fj,-fj,fj],ee=La(["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913","urn:ogc:def:crs:EPSG:6.18:3:3857"],function(a){return new dj(a)});function fe(a,b,c){var d=a.length;c=1<c?c:2;t(b)||(b=2<c?a.slice():Array(d));for(var e=0;e<d;e+=c)b[e]=6378137*Math.PI*a[e]/180,b[e+1]=6378137*Math.log(Math.tan(Math.PI*(a[e+1]+90)/360));return b}
function ge(a,b,c){var d=a.length;c=1<c?c:2;t(b)||(b=2<c?a.slice():Array(d));for(var e=0;e<d;e+=c)b[e]=180*a[e]/(6378137*Math.PI),b[e+1]=360*Math.atan(Math.exp(a[e+1]/6378137))/Math.PI-90;return b}dj.prototype.b=function(a,b){return a/((Math.exp(b[1]/6378137)+Math.exp(-(b[1]/6378137)))/2)};function gj(a,b){Md.call(this,{code:a,units:"degrees",extent:hj,axisOrientation:b,global:!0})}F(gj,Md);var hj=[-180,180,-90,90],he=[new gj("CRS:84"),new gj("EPSG:4326","neu"),new gj("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new gj("urn:ogc:def:crs:OGC:1.3:CRS84"),new gj("urn:ogc:def:crs:OGC:2:84"),new gj("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new gj("urn:x-ogc:def:crs:EPSG:4326","neu")];gj.prototype.b=function(a){return a};function ij(){Ud(ee);Ud(he);Yd()};function jj(a,b,c,d,e){Oc.call(this);this.e=e;this.f=a;this.i=c;this.g=b;this.b=new Image;null!==d&&(this.b.crossOrigin=d);this.d={};this.c=null;this.a=0}F(jj,Oc);jj.prototype.ba=k("f");function kj(a,b){if(t(b)){var c,d=x(b);if(d in a.d)return a.d[d];c=oc(a.d)?a.b:a.b.cloneNode(!1);return a.d[d]=c}return a.b}jj.prototype.C=k("g");jj.prototype.q=function(){this.a=3;Ha(this.c,Fc);this.c=null;K(this,"change")};jj.prototype.k=function(){this.a=2;Ha(this.c,Fc);this.c=null;K(this,"change")};
function lj(a){0==a.a&&(a.a=1,a.c=[Cc(a.b,"error",a.q,!1,a),Cc(a.b,"load",a.k,!1,a)],a.b.src=a.i)};function mj(a){this.minZoom=t(a.minZoom)?a.minZoom:0;this.a=a.resolutions;this.maxZoom=this.a.length-1;this.d=t(a.origin)?a.origin:null;this.f=null;t(a.origins)&&(this.f=a.origins);this.b=null;t(a.tileSizes)&&(this.b=a.tileSizes);this.e=t(a.tileSize)?a.tileSize:null===this.b?[256,256]:null}var nj=new Ya(0,0,0);m=mj.prototype;m.zc=function(a,b,c,d,e){e=oj(this,a,e);for(a=a.z-1;a>=this.minZoom;){if(b.call(c,a,pj(this,e,a,d)))return!0;--a}return!1};m.Ve=k("minZoom");
m.Ib=function(a){return null===this.d?this.f[a]:this.d};m.C=function(a){return this.a[a]};m.Ub=k("a");m.Dc=function(a,b,c){return a.z<this.maxZoom?(c=oj(this,a,c),pj(this,c,a.z+1,b)):null};function qj(a,b,c,d){rj(a,b[0],b[2],c,!1,nj);var e=nj.x,f=nj.y;rj(a,b[1],b[3],c,!0,nj);return bb(e,nj.x,f,nj.y,d)}function pj(a,b,c,d){c=a.C(c);return qj(a,b,c,d)}function sj(a,b){var c=a.Ib(b.z),d=a.C(b.z),e=a.Aa(b.z);return[c[0]+(b.x+0.5)*e[0]*d,c[1]+(b.y+0.5)*e[1]*d]}
function oj(a,b,c){var d=a.Ib(b.z),e=a.C(b.z);a=a.Aa(b.z);var f=d[0]+b.x*a[0]*e;b=d[1]+b.y*a[1]*e;return sd(f,f+a[0]*e,b,b+a[1]*e,c)}function rj(a,b,c,d,e,f){var g=bi(a.a,d,0),h=d/a.C(g),l=a.Ib(g);a=a.Aa(g);b=h*(b-l[0])/(d*a[0]);c=h*(c-l[1])/(d*a[1]);e?(b=Math.ceil(b)-1,c=Math.ceil(c)-1):(b=Math.floor(b),c=Math.floor(c));e=b;t(f)?(f.z=g,f.x=e,f.y=c):f=new Ya(g,e,c);return f}function tj(a,b,c){c=a.C(c);return rj(a,b[0],b[1],c,!1,void 0)}m.Aa=function(a){return null===this.e?this.b[a]:this.e};
function uj(a){var b=a.d;if(null===b){for(var b=a.ba(),c=null===b?360*Ld.degrees/a.Tb():Math.max(b[1]-b[0],b[3]-b[2]),d=t(void 0)?void 0:[256,256],e=Array((t(void 0)?NaN:42)+1),c=c/Math.max(d[0],d[1]),f=0,g=e.length;f<g;++f)e[f]=c/Math.pow(2,f);b=new mj({origin:null===b?[0,0]:xd(b),resolutions:e,tileSize:d});a.d=b}return b};function vj(a){Jh.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection});this.t=t(a.opaque)?a.opaque:!1;this.tileGrid=t(a.tileGrid)?a.tileGrid:null}F(vj,Jh);m=vj.prototype;m.xd=Te;m.hd=function(a,b,c,d){var e=!0,f,g,h,l;for(h=d.a;h<=d.d;++h)for(l=d.c;l<=d.b;++l)g=this.fb(c,h,l),a[c]&&a[c][g]||(f=b(c,h,l),null===f?e=!1:(a[c]||(a[c]={}),a[c][g]=f));return e};m.fb=function(a,b,c){return[a,b,c].join("/")};m.Ub=function(){return this.tileGrid.Ub()};m.Ye=k("tileGrid");
m.we=da;function wj(a,b){db.call(this);this.a=a;this.b=b}F(wj,db);wj.prototype.Ta=function(a,b,c){var d=this.b,e=d.ja();la(e.Ta)&&e.Ta(a,this.a.f,function(a){b(a,d)},c)};wj.prototype.k=function(a){2===a.target.a&&(a=this.b,a.b()&&a.Ba()&&Vj(this.a.f))};function Wj(a,b){b.xd()&&a.ib.push(ra(function(a,b,e){b=x(a).toString();a.Rb(e.lc[b])},b))}function Xj(a,b){if(null!=b){var c,d,e;d=0;for(e=b.length;d<e;++d)c=b[d],a[x(c).toString()]=c}}function Yj(a,b){var c=b.f;t(c)&&(a.de[c]=!0)}
function Zj(a,b,c,d){b=x(b).toString();c=c.toString();b in a?c in a[b]?(a=a[b][c],d.a<a.a&&(a.a=d.a),d.d>a.d&&(a.d=d.d),d.c<a.c&&(a.c=d.c),d.b>a.b&&(a.b=d.b)):a[b][c]=d:(a[b]={},a[b][c]=d)}function ak(a,b,c){return function(d,e,f){d=b.Fb(d,e,f,c);return a(d)?d:null}}function bk(a,b,c){return[b*(Math.round(a[0]/b)+c[0]%2/2),b*(Math.round(a[1]/b)+c[1]%2/2)]}
function ck(a,b,c,d,e,f,g,h,l){var n=x(b).toString();n in a.Ob||(a.Ob[n]={});var q=a.Ob[n];a=a.jg;var r=c.minZoom,w,s,B,z,u,A;for(A=f;A>=r;--A)for(s=pj(c,e,A),B=c.C(A),z=s.a;z<=s.d;++z)for(u=s.c;u<=s.b;++u)f-A<=g?(w=b.Fb(A,z,u,d),0==w.a&&(q[w.K.toString()]=!0,w.c()in a.c||Dh(a,[w,n,sj(c,w.K),B])),t(h)&&h.call(l,w)):b.we(A,z,u)};function dk(a,b){db.call(this);this.f=b;this.d={}}F(dk,db);
function ek(a){var b=a.D,c=a.Md;rh(c);vh(c,a.size[0]/2,a.size[1]/2);wh(c,1/b.resolution,-1/b.resolution);xh(c,-b.rotation);vh(c,-b.center[0],-b.center[1]);a=a.ne;var b=c[0],d=c[1],e=c[2],f=c[3],g=c[4],h=c[5],l=c[6],n=c[7],q=c[8],r=c[9],w=c[10],s=c[11],B=c[12],z=c[13],u=c[14],c=c[15],A=b*h-d*g,E=b*l-e*g,D=b*n-f*g,R=d*l-e*h,O=d*n-f*h,Z=e*n-f*l,I=q*z-r*B,Q=q*u-w*B,va=q*c-s*B,wa=r*u-w*z,ca=r*c-s*z,ea=w*c-s*u,$=A*ea-E*ca+D*wa+R*va-O*Q+Z*I;0!=$&&($=1/$,a[0]=(h*ea-l*ca+n*wa)*$,a[1]=(-d*ea+e*ca-f*wa)*$,a[2]=
(z*Z-u*O+c*R)*$,a[3]=(-r*Z+w*O-s*R)*$,a[4]=(-g*ea+l*va-n*Q)*$,a[5]=(b*ea-e*va+f*Q)*$,a[6]=(-B*Z+u*D-c*E)*$,a[7]=(q*Z-w*D+s*E)*$,a[8]=(g*ca-h*va+n*I)*$,a[9]=(-b*ca+d*va-f*I)*$,a[10]=(B*O-z*D+c*A)*$,a[11]=(-q*O+r*D-s*A)*$,a[12]=(-g*wa+h*Q-l*I)*$,a[13]=(b*wa-d*Q+e*I)*$,a[14]=(-B*R+z*E-u*A)*$,a[15]=(q*R-r*E+w*A)*$)}m=dk.prototype;m.rc=function(a){return new wj(this,a)};m.v=function(){gc(this.d,function(a){hb(a)});dk.B.v.call(this)};m.Bc=Ve;
m.Ta=function(a,b,c,d){function e(a,d){g[Ga(b,d)]=a;--f;f||c(g)}for(var f=b.length,g=Array(f),h,l=0;l<f;++l)h=b[l],h=fk(this,h),la(h.Ta)?h.Ta(a,e,d):--f};function gk(a,b,c,d,e){function f(a,b){h[Ga(c,b)]=a;--g;g||d(h)}for(var g=c.length,h=Array(g),l,n=0;n<g;++n)l=c[n],l=fk(a,l),la(l.wd)?l.wd(b,f,e):--g}function fk(a,b){var c=x(b).toString();if(c in a.d)return a.d[c];var d=a.rc(b);return a.d[c]=d}m.Nc=da;
m.cg=function(a,b){for(var c in this.d)if(!(null!==b&&c in b.qa)){var d=this.d[c];delete this.d[c];hb(d)}};function hk(a,b){for(var c in a.d)if(!(c in b.qa)){b.ib.push(y(a.cg,a));break}};function ik(a,b){var c=jk;return function(d,e,f){return c(a,b,d,e,f)}}function kk(){};function lk(a){Jh.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection});this.Hb=t(a.Hb)?a.Hb:kk;this.i=t(a.crossOrigin)?a.crossOrigin:null;this.c=t(a.resolutions)?a.resolutions:null}F(lk,Jh);function mk(a,b,c,d,e){var f=null;d=a.Hb(b,d,e);t(d)&&(f=new jj(b,c,d,a.i,a.d));return f};function nk(a){Lh.call(this,a)}F(nk,Lh);function ok(a){Lh.call(this,a);this.k(t(a.preload)?a.preload:0)}F(ok,Lh);ok.prototype.a=function(){return this.get("preload")};ok.prototype.getPreload=ok.prototype.a;ok.prototype.k=function(a){this.set("preload",a)};ok.prototype.setPreload=ok.prototype.k;function pk(){}function qk(a,b){this.c=a;this.b=b}F(qk,pk);qk.prototype.a=function(a,b,c){var d=this.c.a(null!=b?b:a);if(!d||!la(d))throw Error("Expected function but found "+d);for(var e=t(c)?c:{},f=this.b.length,g=Array(f),h=0;h<f;++h)g[h]=this.b[h].a(a,b,c);return d.apply(e,g)};var rk={Kg:"\x3d\x3d",gh:"!\x3d",lh:"\x3d\x3d\x3d",mh:"!\x3d\x3d",Ng:"\x3e",Ug:"\x3c",Og:"\x3e\x3d",Vg:"\x3c\x3d"};function sk(a,b,c){this.b=a;this.Na=b;this.Qa=c}F(sk,pk);
var tk=function(){var a={},b;for(b in rk)a[rk[b]]=!0;return function(b){return!!a[b]}}();sk.prototype.a=function(a,b,c){var d;d=this.Qa.a(a,b,c);a=this.Na.a(a,b,c);b=this.b;if("\x3d\x3d"===b)d=a==d;else if("!\x3d"===b)d=a!=d;else if("\x3d\x3d\x3d"===b)d=a===d;else if("!\x3d\x3d"===b)d=a!==d;else if("\x3e"===b)d=a>d;else if("\x3c"===b)d=a<d;else if("\x3e\x3d"===b)d=a>=d;else if("\x3c\x3d"===b)d=a<=d;else throw Error("Unsupported comparison operator: "+this.b);return d};function uk(a){this.b=a}
F(uk,pk);uk.prototype.a=function(a){if(null==a)throw Error("Attempt to evaluate identifier with no scope");return a[this.b]};function U(a){this.bb=a}F(U,pk);U.prototype.a=k("bb");var vk={vg:"\x26\x26",hh:"||"};function wk(a,b,c){this.b=a;this.Na=b;this.Qa=c}F(wk,pk);var xk=function(){var a={},b;for(b in vk)a[vk[b]]=!0;return function(b){return!!a[b]}}();
wk.prototype.a=function(a,b,c){var d;d=this.Qa.a(a,b,c);a=this.Na.a(a,b,c);if("\x26\x26"===this.b)d=a&&d;else if("||"===this.b)d=a||d;else throw Error("Unsupported logical operator: "+this.b);return d};var yk={ug:"+",nh:"-",bh:"*",Dg:"/",Yg:"%"};function zk(a,b,c){this.b=a;this.Na=b;this.Qa=c}F(zk,pk);var Ak=function(){var a={},b;for(b in yk)a[yk[b]]=!0;return function(b){return!!a[b]}}();
zk.prototype.a=function(a,b,c){var d;d=this.Qa.a(a,b,c);a=this.Na.a(a,b,c);b=this.b;if("+"===b)d=a+d;else if("-"===b)d=Number(a)-Number(d);else if("*"===b)d=Number(a)*Number(d);else if("/"===b)d=Number(a)/Number(d);else if("%"===b)d=Number(a)%Number(d);else throw Error("Unsupported math operator: "+this.b);return d};function Bk(a,b){this.b=a;this.c=b}F(Bk,pk);Bk.prototype.a=function(a,b,c){a=this.b.a(a,b,c);if(!ma(a))throw Error("Expected member expression to evaluate to an object but got "+a);return this.c.a(a)};
function Ck(a){this.b=a}F(Ck,pk);Ck.prototype.a=function(a,b,c){return!this.b.a(a,b,c)};function Dk(a){this.b=a;this.c=a.length;this.d=this.a=0}function Ek(a,b){if(!a.match(b))throw new Fk({type:"Unknown",value:a.b[a.a],index:a.a});a.a=a.d}function Gk(a,b){a.a+=b}function Hk(a){return 48<=a&&57>=a}function Ik(a){return 36===a||95===a||65<=a&&90>=a||97<=a&&122>=a}function Jk(a){return a.b.charCodeAt(a.a+0)}Dk.prototype.match=function(a){var b=Kk(this);return"Punctuator"===b.type&&b.value===a};
function Lk(a){var b;for(b=NaN;a.a<a.c;)if(b=Jk(a),32===b||9===b||11===b||12===b||160===b||5760<=b&&0<"\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005"+"\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\ufeff".indexOf(String.fromCharCode(b)))Gk(a,1);else break;if(a.a>=a.c)a={type:"\x3cend\x3e",value:null,index:a.a};else if(40===b||41===b)a=Mk(a,b);else if(39===b||34===b){var c=a.a;Gk(a,1);for(var d="",e;a.a<a.c;){e=Jk(a);Gk(a,1);if(e===b){b=0;break}92===e?(d+=a.b[a.a],Gk(a,1)):d+=String.fromCharCode(e)}if(0!==
b)throw new Fk(Kk(a));a={type:"String",value:d,index:c}}else if(Ik(b)){c=b;b=a.a;for(Gk(a,1);a.a<a.c;)if(c=Jk(a),Ik(c)||48<=c&&57>=c)Gk(a,1);else break;a=a.b.slice(b,a.a);a={type:1===a.length?"Identifier":"break"===a||"case"===a||"catch"===a||"continue"===a||"debugger"===a||"default"===a||"delete"===a||"do"===a||"else"===a||"finally"===a||"for"===a||"function"===a||"if"===a||"in"===a||"instanceof"===a||"new"===a||"return"===a||"switch"===a||"this"===a||"throw"===a||"try"===a||"typeof"===a||"var"===
a||"void"===a||"while"===a||"with"===a?"Keyword":"null"===a?"Null":"true"===a||"false"===a?"Boolean":"Identifier",value:a,index:b}}else a=46===b?Hk(a.b.charCodeAt(a.a+1))?Nk(a,b):Mk(a,b):Hk(b)?Nk(a,b):Mk(a,b);return a}function Kk(a){var b=a.a,c=Lk(a);a.d=a.a;a.a=b;return c}
function Nk(a,b){var c="",d=a.a;if(46!==b){if(48===b){var e=a.b.charCodeAt(a.a+1);if(88===e||120===e){Gk(a,2);c=Jk(a);d="";for(e=a.a-2;a.a<a.c&&(Hk(c)||97<=c&&102>=c||65<=c&&70>=c);)d+=String.fromCharCode(c),Gk(a,1),c=Jk(a);if(0===d.length||Ik(c))throw new Fk({type:"Unknown",value:String.fromCharCode(c),index:a.a});return{type:"Numeric",value:parseInt("0x"+d,16),index:e}}if(48<=e&&55>=e){Gk(a,1);d="0"+String.fromCharCode(e);e=a.a-1;for(Gk(a,1);a.a<a.c;){c=Jk(a);if(!(48<=c&&55>=c))break;d+=String.fromCharCode(c);
Gk(a,1)}c=Jk(a);if(Ik(c)||Hk(c))throw new Fk({type:"Unknown",value:String.fromCharCode(c),index:a.a});return{type:"Numeric",value:parseInt(d,8),index:e}}if(Hk(e))throw new Fk({type:"Unknown",value:String.fromCharCode(e),index:a.a});}for(;Hk(b);)c+=String.fromCharCode(b),Gk(a,1),b=Jk(a)}if(46===b)for(c+=String.fromCharCode(b),Gk(a,1),b=Jk(a);Hk(b);)c+=String.fromCharCode(b),Gk(a,1),b=Jk(a);if(69===b||101===b){c+="E";Gk(a,1);b=Jk(a);if(43===b||45===b)c+=String.fromCharCode(b),Gk(a,1),b=Jk(a);if(!Hk(b))throw new Fk({type:"Unknown",
value:String.fromCharCode(b),index:a.a});for(;Hk(b);)c+=String.fromCharCode(b),Gk(a,1),b=Jk(a)}if(Ik(b))throw new Fk({type:"Unknown",value:String.fromCharCode(b),index:a.a});return{type:"Numeric",value:parseFloat(c),index:d}}
function Mk(a,b){var c=a.a;if(46===b||40===b||41===b||44===b||43===b||45===b||42===b||47===b||37===b||126===b)return Gk(a,1),{type:"Punctuator",value:String.fromCharCode(b),index:c};var d=a.b.charCodeAt(a.a+1);if(61===d){if(33===b||61===b)return Gk(a,2),61===Jk(a)?(Gk(a,1),{type:"Punctuator",value:String.fromCharCode(b)+"\x3d\x3d",index:c}):{type:"Punctuator",value:String.fromCharCode(b)+"\x3d",index:c};if(62===b||60===b)return Gk(a,2),{type:"Punctuator",value:String.fromCharCode(b)+"\x3d",index:c}}if(b===
d&&(124===b||38===b))return Gk(a,2),d=String.fromCharCode(b),{type:"Punctuator",value:d+d,index:c};if(62===b||60===b||33===b||38===b||124===b)return Gk(a,1),{type:"Punctuator",value:String.fromCharCode(b),index:c};throw new Fk({type:"Unknown",value:String.fromCharCode(b),index:a.a});}function Fk(a,b){ta.call(this,t(b)?b:"Unexpected token "+a.value+" at index "+a.index);this.a=a}F(Fk,ta);Fk.prototype.name="UnexpectedToken";function Ok(){}function Pk(a){var b=0;if("Punctuator"!==a.type)return b;switch(a.value){case "||":b=1;break;case "\x26\x26":b=2;break;case "\x3d\x3d":case "!\x3d":case "\x3d\x3d\x3d":case "!\x3d\x3d":b=3;break;case "\x3e":case "\x3c":case "\x3e\x3d":case "\x3c\x3d":b=4;break;case "+":case "-":b=5;break;case "*":case "/":case "%":b=6}return b}
function Qk(a,b,c){if(tk(a))a=new sk(a,b,c);else if(xk(a))a=new wk(a,b,c);else if(Ak(a))a=new zk(a,b,c);else throw Error("Unsupported binary operator: "+a);return a}function Rk(a){return new U(a)}function Sk(a){var b=new Dk(a);a=Tk(new Ok,b);b=Kk(b);if("\x3cend\x3e"!==b.type)throw new Fk(b);return a}
function Tk(a,b){var c=Uk(a,b),d=Kk(b),e=Pk(d);if(0===e)return c;b.a=b.d;for(var f=Uk(a,b),g=[c,d,f],e=Pk(Kk(b));0<e;){for(;2<g.length&&e<=Pk(g[g.length-2]);)f=g.pop(),d=g.pop(),c=g.pop(),g.push(Qk(d.value,c,f));g.push(Lk(b));g.push(Uk(a,b));e=Pk(Kk(b))}c=g.length-1;for(d=g[c];1<c;)d=Qk(g[c-1].value,g[c-2],d),c-=2;return d}
function Vk(a,b){var c;c=Kk(b);if("("===c.value)Ek(b,"("),c=Tk(a,b),Ek(b,")");else{b.a=b.d;var d=c.type;if("Identifier"===d)c=new uk(c.value);else if("String"===d||"Numeric"===d)c=Rk(c.value);else if("Boolean"===d)c=Rk("true"===c.value);else if("Null"===d)c=Rk(null);else throw new Fk(c);}d=Kk(b);if("("===d.value){if(!(c instanceof uk))throw new Fk(d);d=[];Ek(b,"(");if(!b.match(")"))for(;;){d.push(Tk(a,b));if(b.match(")"))break;Ek(b,",")}b.a=b.d;c=new qk(c,d)}else for(;"."===d.value;){d=b;Ek(d,".");
d=Lk(d);if("Identifier"!==d.type&&"Keyword"!==d.type&&"Boolean"!==d.type&&"Null"!==d.type)throw new Fk(d);c=new Bk(c,new uk(String(d.value)));d=Kk(b)}return c}function Uk(a,b){var c,d=Kk(b);if("Punctuator"!==d.type)c=Vk(a,b);else if("!"===d.value||"-"===d.value||"+"===d.value){b.a=b.d;c=Uk(a,b);if("!"===d.value)d=new Ck(c);else if(c instanceof U)d="+"===d.value?Rk(+c.a()):Rk(-c.a());else throw new Fk(d);c=d}else c=Vk(a,b);return c};function Wk(a,b){return t(b)?a.a(b.pb(),Xk,b):a.a()}
var Xk={concat:function(a){for(var b="",c=0,d=arguments.length;c<d;++c)b+=String(arguments[c]);return b},extent:function(a,b,c,d,e,f){e=!1;(f=t(f)?this.get(f):this.u())&&(e=Bd(f.ea(),[a,b,c,d]));return e},fid:function(a){var b=!1,c=this.Ja;if(t(c))for(var d=0,e=arguments.length;d<e;++d)if(arguments[d]===c){b=!0;break}return b},like:function(a,b,c,d,e,f){if("."==c)throw Error('"." is an unsupported wildCard character for the "like" function');c=t(c)?c:"*";d=t(d)?d:".";e=t(e)?e:"!";b=b.replace(RegExp("\\"+
e+"(.|$)","g"),"\\$1");b=b.replace(RegExp("\\"+d,"g"),".");b=b.replace(RegExp("\\"+c,"g"),".*");b=b.replace(RegExp("\\\\.\\*","g"),"\\"+c);b=b.replace(RegExp("\\\\\\.","g"),"\\"+d);return RegExp(b,!1===f?"gi":"g").test(a)},ieq:function(a,b){return v(a)&&v(b)?a.toUpperCase()==b.toUpperCase():a==b},ineq:function(a,b){return v(a)&&v(b)?a.toUpperCase()!=b.toUpperCase():a!=b},geometryType:function(a){var b=!1,c=this.u();c&&(b=c.N()===a);return b},renderIntent:function(a){return this.Da==a},intersects:function(){throw Error("Spatial function not implemented: intersects");
},within:function(){throw Error("Spatial function not implemented: within");},contains:function(){throw Error("Spatial function not implemented: contains");},dwithin:function(){throw Error("Spatial function not implemented: dwithin");}};function Yk(){}Yk.prototype.a=null;function Zk(a){var b;(b=a.a)||(b={},$k(a)&&(b[0]=!0,b[1]=!0),b=a.a=b);return b};var al;function bl(){}F(bl,Yk);function cl(a){return(a=$k(a))?new ActiveXObject(a):new XMLHttpRequest}function $k(a){if(!a.b&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.b=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.b}al=new bl;function dl(a){Oc.call(this);this.ta=new qe;this.q=a||null;this.b=!1;this.i=this.a=null;this.ma=this.s="";this.d=0;this.f="";this.c=this.G=this.o=this.k=!1;this.g=0;this.e=null;this.Q=el;this.t=this.Ra=!1}F(dl,Oc);var el="",fl=/^https?$/i,gl=["POST","PUT"],hl=[];function il(a,b){var c=new dl;hl.push(c);b&&c.Wa("complete",b);c.Ia.add("ready",c.W,!0,void 0,void 0);jl(c,a,void 0,void 0,void 0)}dl.prototype.W=function(){this.uc();Qa(hl,this)};
function jl(a,b,c,d,e){if(a.a)throw Error("[goog.net.XhrIo] Object is active with another request\x3d"+a.s+"; newUri\x3d"+b);c=c?c.toUpperCase():"GET";a.s=b;a.f="";a.d=0;a.ma=c;a.k=!1;a.b=!0;a.a=a.q?cl(a.q):cl(al);a.i=a.q?Zk(a.q):Zk(al);a.a.onreadystatechange=y(a.H,a);try{a.G=!0,a.a.open(c,b,!0),a.G=!1}catch(f){kl(a,f);return}b=d||"";var g=a.ta.ca();e&&pe(e,function(a,b){g.set(b,a)});e=Na(g.Ka(),ll);d=p.FormData&&b instanceof p.FormData;!(0<=Ga(gl,c))||(e||d)||g.set("Content-Type","application/x-www-form-urlencoded;charset\x3dutf-8");
pe(g,function(a,b){this.a.setRequestHeader(b,a)},a);a.Q&&(a.a.responseType=a.Q);"withCredentials"in a.a&&(a.a.withCredentials=a.Ra);try{ml(a),0<a.g&&(a.t=G&&Mb(9)&&ka(a.a.timeout)&&t(a.a.ontimeout),a.t?(a.a.timeout=a.g,a.a.ontimeout=y(a.zb,a)):a.e=rf(a.zb,a.g,a)),a.o=!0,a.a.send(b),a.o=!1}catch(h){kl(a,h)}}function ll(a){return"content-type"==a.toLowerCase()}
dl.prototype.zb=function(){"undefined"!=typeof ba&&this.a&&(this.f="Timed out after "+this.g+"ms, aborting",this.d=8,K(this,"timeout"),this.a&&this.b&&(this.b=!1,this.c=!0,this.a.abort(),this.c=!1,this.d=8,K(this,"complete"),K(this,"abort"),nl(this)))};function kl(a,b){a.b=!1;a.a&&(a.c=!0,a.a.abort(),a.c=!1);a.f=b;a.d=5;pl(a);nl(a)}function pl(a){a.k||(a.k=!0,K(a,"complete"),K(a,"error"))}dl.prototype.v=function(){this.a&&(this.b&&(this.b=!1,this.c=!0,this.a.abort(),this.c=!1),nl(this,!0));dl.B.v.call(this)};
dl.prototype.H=function(){if(!this.ec&&this.b&&"undefined"!=typeof ba&&(!this.i[1]||4!=ql(this)||2!=rl(this)))if(this.o&&4==ql(this))rf(this.H,0,this);else if(K(this,"readystatechange"),4==ql(this)){this.b=!1;try{if(sl(this))K(this,"complete"),K(this,"success");else{this.d=6;var a;try{a=2<ql(this)?this.a.statusText:""}catch(b){a=""}this.f=a+" ["+rl(this)+"]";pl(this)}}finally{nl(this)}}};
function nl(a,b){if(a.a){ml(a);var c=a.a,d=a.i[0]?da:null;a.a=null;a.i=null;b||K(a,"ready");try{c.onreadystatechange=d}catch(e){}}}function ml(a){a.a&&a.t&&(a.a.ontimeout=null);ka(a.e)&&(p.clearTimeout(a.e),a.e=null)}
function sl(a){var b=rl(a),c;a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:c=!0;break a;default:c=!1}if(!c){if(b=0===b)a=ue(String(a.s))[1]||null,!a&&self.location&&(a=self.location.protocol,a=a.substr(0,a.length-1)),b=!fl.test(a?a.toLowerCase():"");c=b}return c}function ql(a){return a.a?a.a.readyState:0}function rl(a){try{return 2<ql(a)?a.a.status:-1}catch(b){return-1}}function tl(a){try{return a.a?a.a.responseText:""}catch(b){return""}};function ul(a){this.c=t(a.data)?a.data:null;this.a=0;this.i=t(a.parser)?a.parser:null;this.e=a.url;Jh.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection})}F(ul,Jh);function vl(a,b,c,d){t(a.e)&&0==a.a?(a.a=1,il(a.e,y(function(a){a=a.target;sl(a)?(wl(b,tl(a),this.i,c),this.a=2,t(d)&&d()):this.a=3},a))):null!==a.c&&(wl(b,a.c,a.i,c),a.c=null,a.a=2);return a.a};function xl(a){this.c=t(a)?a:6;this.a=Math.floor(this.c/2);this.b={extent:qd(),l:[]}}function yl(a){var b=a.l.length,c=a.extent;if(0===b)c[0]=c[2]=Infinity,c[1]=c[3]=-Infinity;else{var d=a.l[0].extent;c[0]=d[0];c[1]=d[1];c[2]=d[2];c[3]=d[3];for(d=1;d<b;++d)wd(c,a.l[d].extent)}}function zl(a,b,c){var d=(a+b)/2;a*=b;return a*c/(a/(d*d))}function Al(a,b,c,d){b={extent:b,yb:c};t(d)&&(b.type=d);Bl(a,b,a.b)}
function Bl(a,b,c){var d;if(0===c.l.length)c.extent=b.extent.concat(),c.l.push(b);else{var e=-1,f=[],g;f.push(c);c=c.l;do{-1!=e&&(f.push(c[e]),c=c[e].l,e=-1);for(var h=c.length-1;0<=h;--h){var l=c[h];if(t(l.yb)){e=-1;break}var n=zl(l.extent[1]-l.extent[0],l.extent[3]-l.extent[2],l.l.length+1),l=zl((l.extent[1]>b.extent[1]?l.extent[1]:b.extent[1])-(l.extent[0]<b.extent[0]?l.extent[0]:b.extent[0]),(l.extent[3]>b.extent[3]?l.extent[3]:b.extent[3])-(l.extent[2]<b.extent[2]?l.extent[2]:b.extent[2]),l.l.length+
2);if(0>e||Math.abs(l-n)<g)g=Math.abs(l-n),e=h}}while(-1!=e);do{if(d&&t(d.l)&&0===d.l.length)for(e=d,d=f.pop(),g=0,c=d.l.length;g<c;++g){if(d.l[g]===e||0===d.l[g].l.length){d.l.splice(g,1);break}}else d=f.pop();e=ia(b);if(t(b.yb)||t(b.l)||e){if(e){e=0;for(g=b.length;e<g;++e)wd(d.extent,b[e].extent);d.l=d.l.concat(b)}else wd(d.extent,b.extent),d.l.push(b);if(d.l.length<=a.c)b={extent:d.extent.concat()};else{b=a;g=e=d.l;c=g.length-1;for(var h=0,n=g.length-1,l=0,q=void 0,r=void 0,q=g.length-2;0<=q;--q)r=
g[q],r.extent[0]>g[h].extent[0]?h=q:r.extent[1]<g[c].extent[2]&&(c=q),r.extent[2]>g[l].extent[2]?l=q:r.extent[3]<g[n].extent[3]&&(n=q);Math.abs(g[c].extent[1]-g[h].extent[0])>Math.abs(g[n].extent[3]-g[l].extent[2])?c>h?(q=g.splice(c,1)[0],r=g.splice(h,1)[0]):(r=g.splice(h,1)[0],q=g.splice(c,1)[0]):n>l?(q=g.splice(n,1)[0],r=g.splice(l,1)[0]):(r=g.splice(l,1)[0],q=g.splice(n,1)[0]);for(g=[{extent:q.extent.concat(),l:[q]},{extent:r.extent.concat(),l:[r]}];0<e.length;){c=b;for(var h=e,n=g[0],l=g[1],r=
zl(n.extent[1]-n.extent[0],n.extent[3]-n.extent[2],n.l.length+1),w=zl(l.extent[1]-l.extent[0],l.extent[3]-l.extent[2],l.l.length+1),s=void 0,B=void 0,q=void 0,z=h.length-1;0<=z;--z){var u=h[z],A=[n.extent[0]<u.extent[0]?n.extent[0]:u.extent[0],n.extent[1]>u.extent[1]?n.extent[1]:u.extent[1],n.extent[2]<u.extent[2]?n.extent[2]:u.extent[2],n.extent[3]>u.extent[3]?n.extent[3]:u.extent[3]],A=Math.abs(zl(A[1]-A[0],A[3]-A[2],n.l.length+2)-r),u=[l.extent[0]<u.extent[0]?l.extent[0]:u.extent[0],l.extent[1]>
u.extent[1]?l.extent[1]:u.extent[1],l.extent[2]<u.extent[2]?l.extent[2]:u.extent[2],l.extent[3]>u.extent[3]?l.extent[3]:u.extent[3]],u=Math.abs(zl(u[1]-u[0],u[3]-u[2],l.l.length+2)-w),E=Math.abs(u-A);if(!B||!s||E<s)B=z,s=E,q=u<A?l:n}r=h.splice(B,1)[0];n.l.length+h.length+1<=c.a?(n.l.push(r),wd(n.extent,r.extent)):l.l.length+h.length+1<=c.a?(l.l.push(r),wd(l.extent,r.extent)):(q.l.push(r),wd(q.extent,r.extent))}b=e=g;1>f.length&&(d.l.push(e[0]),f.push(d),b=e[1])}}else wd(d.extent,b.extent),b={extent:d.extent.concat()}}while(0<
f.length)}}xl.prototype.remove=function(a,b){arguments[0]={extent:a};switch(arguments.length){case 1:arguments[1]=!1;case 2:arguments[2]=this.b;default:arguments.length=3}if(!1===arguments[1]){var c=0,d=[];do c=d.length,d=d.concat(this.d.apply(this,arguments));while(c!=d.length);return d}return this.d.apply(this,arguments)};
xl.prototype.d=function(a,b,c){var d=[],e=[],f=[];if(!a||!Bd(a.extent,c.extent))return f;a=a.extent.concat();var g;e.push(c.l.length);d.push(c);do{c=d.pop();var h=e.pop()-1;if(t(b))for(;0<=h;){var l=c.l[h];if(Bd(a,l.extent))if(b&&t(l.yb)&&l.yb===b||!b&&(t(l.yb)||ud(a,l.extent))){t(l.l)?(f=Cl(l,!0,[],l),c.l.splice(h,1)):f=c.l.splice(h,1);yl(c);b=void 0;c.l.length<this.a&&(g=Cl(c,!0,[],c));break}else t(l.l)&&(e.push(h),d.push(c),c=l,h=l.l.length);h-=1}else if(t(g)){c.l.splice(h+1,1);0<c.l.length&&yl(c);
h=0;for(l=g.length;h<l;++h)Bl(this,g[h],c);g.length=0;0===d.length&&1>=c.l.length?(g=Cl(c,!0,g,c),c.l.length=0,d.push(c),e.push(1)):0<d.length&&c.l.length<this.a?(g=Cl(c,!0,g,c),c.l.length=0):g=void 0}else yl(c)}while(0<d.length);return f};xl.prototype.search=function(a,b){return Cl({extent:a},!1,[],this.b,b)};
function Cl(a,b,c,d,e,f){var g={},h=[];if(!Bd(a.extent,d.extent))return c;h.push(d.l);do{d=h.pop();for(var l=d.length-1;0<=l;--l){var n=d[l];Bd(a.extent,n.extent)&&(t(n.l)?h.push(n.l):t(n.yb)&&(b?c.push(n):t(e)&&n.type!=e||(n=n.yb,t(f)?g[x(n).toString()]=n:c.push(n))))}}while(0<h.length);return t(f)?g:c};function Dl(){};function El(a){this.fillColor=a.fillColor;this.oa=a.oa;this.strokeColor=a.strokeColor;this.sa=a.sa;this.Fa=a.Fa}F(El,Dl);El.prototype.a=function(a){return this.fillColor==a.fillColor&&this.oa==a.oa&&this.strokeColor==a.strokeColor&&this.sa==a.sa&&this.Fa==a.Fa};function Fl(){};function Gl(a){a=a||{};this.a=null!=a.color?a.color instanceof pk?a.color:new U(a.color):new U(Hl);this.b=null!=a.opacity?a.opacity instanceof pk?a.opacity:new U(a.opacity):new U(Il)}F(Gl,Fl);Gl.prototype.eb=function(a){var b;a instanceof N&&(b=a,a=(a=b.u())?a.N():null);var c=null;if("polygon"===a||"multipolygon"===a)a=Wk(this.a,b),b=Number(Wk(this.b,b)),c=new El({fillColor:a,oa:b});return c};var Hl="#ffffff",Il=0.4;function Jl(a){var b=null;t(a.filter)&&(b=v(a.filter)?Sk(a.filter):a.filter);this.a=b;this.b=t(a.symbolizers)?a.symbolizers:[]}Jl.prototype.Eb=k("b");function Kl(){}F(Kl,Dl);var Ll={zg:"circle"};function Ml(a){this.type=a.type;this.size=a.size;this.fillColor=a.fillColor;this.oa=a.oa;this.strokeColor=a.strokeColor;this.sa=a.sa;this.Fa=a.Fa}F(Ml,Kl);Ml.prototype.a=function(a){return this.type==a.type&&this.size==a.size&&this.fillColor==a.fillColor&&this.oa==a.oa&&this.strokeColor==a.strokeColor&&this.sa==a.sa&&this.Fa==a.Fa};function Nl(a){this.color=a.color;this.opacity=a.opacity;this.width=a.width}F(Nl,Dl);Nl.prototype.a=function(a){return this.color==a.color&&this.opacity==a.opacity&&this.width==a.width};function Ol(a){a=a||{};this.a=null!=a.color?a.color instanceof pk?a.color:new U(a.color):new U(Pl);this.b=null!=a.opacity?a.opacity instanceof pk?a.opacity:new U(a.opacity):new U(Ql);this.c=null!=a.width?a.width instanceof pk?a.width:new U(a.width):new U(Rl)}F(Ol,Fl);
Ol.prototype.eb=function(a){var b;a instanceof N&&(b=a,a=(a=b.u())?a.N():null);var c=Wk(this.a,b),d=Number(Wk(this.b,b));b=Number(Wk(this.c,b));var e=null;if("linestring"===a||"multilinestring"===a)e=new Nl({color:c,opacity:d,width:b});else if("polygon"===a||"multipolygon"===a)e=new El({strokeColor:c,sa:d,Fa:b});return e};var Pl="#696969",Ql=0.75,Rl=1.5;function Sl(a){this.c=t(a.type)?a.type:Tl;this.d=null!=a.size?a.size instanceof pk?a.size:new U(a.size):new U(Ul);this.b=null!=a.fill?a.fill:null;this.a=null!=a.stroke?a.stroke:null}
Sl.prototype.eb=function(a){var b;a instanceof N&&(b=a,a=(a=b.u())?a.N():null);var c=null;if("point"===a||"multipoint"===a){a=Number(Wk(this.d,b));var d,e;null!==this.b&&(d=Wk(this.b.a,b),e=Number(Wk(this.b.b,b)));var f,g,h;null!==this.a&&(f=Wk(this.a.a,b),g=Number(Wk(this.a.b,b)),h=Number(Wk(this.a.c,b)));c=new Ml({type:this.c,size:a,fillColor:d,oa:e,strokeColor:f,sa:g,Fa:h})}return c};Sl.prototype.N=k("c");var Tl="circle",Ul=5;function Vl(a){this.b=t(a.rules)?a.rules:[];this.a=t(a.symbolizers)?a.symbolizers:[]}var Wl=null;function Xl(a,b){for(var c=a.length,d=Array(c),e=0;e<c;++e)d[e]=a[e].eb(b);for(var c=[],f,g,h,l,n=0,q=d.length;n<q;++n)if(e=d[n],e instanceof El)if(t(e.strokeColor)&&!t(e.fillColor))if(g){for(h in e)l=e[h],t(l)&&(g[h]=l);g=null}else f=e,c.push(f);else if(t(e.fillColor)&&!t(e.strokeColor))if(f){for(h in e)l=e[h],t(l)&&(f[h]=l);f=null}else g=e,c.push(g);else c.push(e);else e&&c.push(e);return c};function Yl(a){this.color=a.color;this.fontFamily=a.fontFamily;this.fontSize=a.fontSize;this.text=a.text;this.opacity=a.opacity}F(Yl,Dl);Yl.prototype.a=function(a){return this.color==a.color&&this.fontFamily==a.fontFamily&&this.fontSize==a.fontSize&&this.opacity==a.opacity};function Zl(){this.clear()}Zl.prototype.clear=function(){this.a={};var a={},b;for(b in Fd)a[Fd[b]]={};this.c=a;this.b=new xl};Zl.prototype.add=function(a){var b=x(a).toString(),c=a.u();this.a[b]=a;if(null!==c){var d=c.N();this.c[d][b]=a;Al(this.b,c.ea(),a,d)}};Zl.prototype.remove=function(a){var b=null,c=x(a).toString(),d=a.u();delete this.a[c];null!==d&&(delete this.c[d.N()][c],b=this.b.remove(d.ea(),a),0==b.length&&(b=this.b.remove([-Infinity,Infinity,-Infinity,Infinity],a)),b=b[0].extent);return b};
function $l(a){Lh.call(this,a);this.k=t(a.style)?a.style:null;this.a=new Zl;this.kg=t(a.transformFeatureInfo)?a.transformFeatureInfo:am;this.fc=new Dd;this.cc=new Dd;this.gc=new Dd;this.o=!1;this.nb={Za:null,Yc:null}}F($l,Lh);function bm(a,b){for(var c=qd(),d,e=0,f=b.length;e<f;++e)d=b[e],a.a.add(d),d=d.u(),null===d||wd(c,d.ea());K(a,{extent:c,features:b,type:"add"})}$l.prototype.clear=function(){this.a.clear();K(this,{type:"change"})};
function cm(a,b,c,d,e){return 1==vl(a.ja(),a,c,e)?null:t(d)&&oc(a.a.c[d])?{}:Cl({extent:b},!1,[],a.a.b.b,d,!0)}
function wl(a,b,c,d){function e(a){var b=a.features,c=this.ja().fa();null===c&&(c=a.metadata.projection);a=le(c,d);a(this.fc.coordinates,this.fc.coordinates,this.fc.va);a(this.cc.coordinates,this.cc.coordinates,this.cc.va);a(this.gc.coordinates,this.gc.coordinates,this.gc.va);bm(this,b)}var f={};f.point=a.fc;f.linestring=a.cc;f.polygon=a.gc;f.multipoint=a.fc;f.multilinestring=a.cc;f.multipolygon=a.gc;var g={aa:function(a,b){return f[b]}};if(v(b))la(c.pe)?c.pe(b,y(e,a),g):(b=c.ic(b,g),e.call(a,b));
else if(ma(b))la(c.oe)?c.oe(b,y(e,a),g):(b=c.hc(b,g),e.call(a,b));else throw Error("Data type not supported: "+b);}$l.prototype.Sc=function(a,b){var c;if(t(b))c=b;else{var d=this.a,e;if(t(void 0)){if(!t(e)){var d=d.a,f;e={};for(c in d)f=d[c],Wk(void 0,f)&&(e[c]=f)}}else e=d.a;c=kc(e)}e=qd();for(d=c.length-1;0<=d;--d)f=c[d],f.Da=a,f=f.u(),null===f||wd(e,f.ea());K(this,{extent:e,features:c,type:"intentchange"})};
function dm(a,b){for(var c=qd(),d=b.length-1;0<=d;--d){var e=b[d],f=e.u(),g=a.a.remove(e);null===g||wd(c,g);a.a.add(e);wd(c,f.ea())}K(a,{extent:c,features:b,type:"change"})}function am(a){return La(a,function(a){return x(a)}).join(", ")};function em(a,b){wj.call(this,a,b)}F(em,wj);function fm(a,b){wj.call(this,a,b);this.c=null;this.d=Hg()}F(fm,em);fm.prototype.ha=function(){return null===this.c?null:kj(this.c,this)};fm.prototype.md=k("d");
fm.prototype.Pa=function(a){var b=a.D,c=b.center,d=b.resolution,e=b.rotation,f=this.b.ja(),g=a.L;g[0]||g[1]||(b=f.ha(a.extent,d,b.projection),null!==b&&(g=b.a,0==g?(Cc(b,"change",this.k,!1,this),lj(b)):2==g&&(this.c=b)));if(null!==this.c){var b=this.c,g=b.ba(),h=b.C(),l=this.d;rh(l);vh(l,a.size[0]/2,a.size[1]/2);xh(l,e);wh(l,h/d,h/d);vh(l,(g[0]-c[0])/h,(c[1]-g[3])/h);Xj(a.attributions,b.e);Yj(a,f)}};function gm(a,b){wj.call(this,a,b);this.q=this.d=this.f=null;this.o=Hg();this.t=NaN;this.i=this.c=null}F(gm,em);gm.prototype.ha=k("f");gm.prototype.md=k("o");
gm.prototype.Pa=function(a){var b=a.D,c=b.projection,d=this.b,e=d.ja(),f=e.tileGrid;null===f&&(f=uj(c));var g=bi(f.a,b.resolution,0),h=f.Aa(g),l=f.C(g),n=b.center,q;l==b.resolution?(n=bk(n,l,a.size),q=zd(n,l,b.rotation,a.size)):q=a.extent;var r=qj(f,q,l),w=h[0]*(r.d-r.a+1),s=h[1]*(r.b-r.c+1),B,z;null===this.f?(B=Jf("CANVAS"),B.width=w,B.height=s,z=B.getContext("2d"),this.f=B,this.d=[w,s],this.q=z):(B=this.f,z=this.q,this.d[0]<w||this.d[1]<s?(B.width=w,B.height=s,this.d=[w,s],this.c=null):(w=this.d[0],
s=this.d[1],g==this.t&&this.c.a<=r.a&&r.d<=this.c.d&&this.c.c<=r.c&&r.b<=this.c.b||(this.c=null)));var u,A;null===this.c?(w/=h[0],s/=h[1],u=r.a-Math.floor((w-(r.d-r.a+1))/2),A=r.c-Math.floor((s-(r.b-r.c+1))/2),this.t=g,this.c=new ab(u,u+w-1,A,A+s-1),this.i=Array(w*s),s=this.c):(s=this.c,w=s.d-s.a+1);B={};B[g]={};var E=[],D=y(e.hd,e,B,ak(function(a){return null!==a&&2==a.a},e,c)),R=qd(),O=new ab(0,0,0,0),Z,I,Q;for(A=r.a;A<=r.d;++A)for(Q=r.c;Q<=r.b;++Q)I=e.Fb(g,A,Q,c),u=I.a,2==u||4==u||3==u?B[g][I.K.toString()]=
I:(Z=f.zc(I.K,D,null,O,R),Z||(E.push(I),Z=f.Dc(I.K,O,R),null===Z||D(g+1,Z)));D=0;for(Z=E.length;D<Z;++D)I=E[D],A=h[0]*(I.K.x-s.a),Q=h[1]*(s.b-I.K.y),z.clearRect(A,Q,h[0],h[1]);var va=La(lc(B),Number);Va(va);var wa=e.t,E=Ad(oj(f,new Ya(g,s.a,s.b),R)),ca,ea,$,Pa,Fa,Fb,D=0;for(Z=va.length;D<Z;++D)if(ca=va[D],h=f.Aa(ca),Pa=B[ca],ca==g)for($ in Pa)I=Pa[$],ea=(I.K.y-s.c)*w+(I.K.x-s.a),this.i[ea]!=I&&(A=h[0]*(I.K.x-s.a),Q=h[1]*(s.b-I.K.y),u=I.a,4!=u&&3!=u&&wa||z.clearRect(A,Q,h[0],h[1]),2==u&&z.drawImage(I.ha(),
A,Q),this.i[ea]=I);else for($ in ca=f.C(ca)/l,Pa)for(I=Pa[$],ea=oj(f,I.K,R),A=(ea[0]-E[0])/l,Q=(E[1]-ea[3])/l,Fb=ca*h[0],Fa=ca*h[1],u=I.a,4!=u&&wa||z.clearRect(A,Q,Fb,Fa),2==u&&z.drawImage(I.ha(),A,Q,Fb,Fa),I=pj(f,ea,g,O),u=Math.max(I.a,s.a),Q=Math.min(I.d,s.d),A=Math.max(I.c,s.c),I=Math.min(I.b,s.b);u<=Q;++u)for(Fa=A;Fa<=I;++Fa)ea=(Fa-s.c)*w+(u-s.a),this.i[ea]=void 0;Zj(a.lc,e,g,r);ck(a,e,f,c,q,g,d.a());Wj(a,e);Yj(a,e);c=this.o;rh(c);vh(c,a.size[0]/2,a.size[1]/2);xh(c,b.rotation);wh(c,l/b.resolution,
l/b.resolution);vh(c,(E[0]-n[0])/l,(n[1]-E[1])/l)};function hm(){this.r=0;this.c={};this.b=this.a=null}m=hm.prototype;m.clear=function(){this.r=0;this.c={};this.b=this.a=null};function im(a,b){return a.c.hasOwnProperty(b)}m.forEach=function(a,b){for(var c=this.a;null!==c;)a.call(b,c.bb,c.bc,this),c=c.Ca};m.get=function(a){a=this.c[a];if(a===this.b)return a.bb;a===this.a?(this.a=this.a.Ca,this.a.hb=null):(a.Ca.hb=a.hb,a.hb.Ca=a.Ca);a.Ca=null;a.hb=this.b;this.b=this.b.Ca=a;return a.bb};m.T=k("r");
m.Ka=function(){var a=Array(this.r),b=0,c;for(c=this.b;null!==c;c=c.hb)a[b++]=c.bc;return a};m.Ma=function(){var a=Array(this.r),b=0,c;for(c=this.b;null!==c;c=c.hb)a[b++]=c.bb;return a};m.pop=function(){var a=this.a;delete this.c[a.bc];null!==a.Ca&&(a.Ca.hb=null);this.a=a.Ca;null===this.a&&(this.b=null);--this.r;return a.bb};m.set=function(a,b){var c={bc:a,Ca:null,hb:this.b,bb:b};null===this.b?this.a=c:this.b.Ca=c;this.b=c;this.c[a]=c;++this.r};function jm(a){hm.call(this);this.d=t(a)?a:2048}F(jm,hm);jm.prototype.Rb=function(a){for(var b,c;this.T()>this.d&&!(b=this.a.bb,c=b.K.z.toString(),c in a&&a[c].contains(b.K));)this.pop()};function km(){this.bounds=this.n=this.b=null}F(km,Ed);km.prototype.ea=function(){if(null===this.bounds){var a,b=a=Infinity,c,d=c=-Infinity,e=this.n,f=e.length,g,h;for(h=0;h<f;++h)g=e[h].ea(),a=Math.min(g[0],a),c=Math.max(g[1],c),b=Math.min(g[2],b),d=Math.max(g[3],d);this.bounds=[a,c,b,d]}return this.bounds};km.prototype.p=function(){for(var a=this.n.length,b=Array(a),c=0;c<a;++c)b[c]=this.n[c].p();return b};km.prototype.wb=function(){this.bounds=null};function lm(a,b){this.b=null;var c=b;t(c)||(c=a[0].length,c=new Dd({dimension:c}));this.b=c;this.d=c.add(a);this.dimension=c.va;this.c=null}F(lm,Ed);m=lm.prototype;m.get=function(a,b){return this.b.get(this.d,a,b)};m.p=function(){for(var a=this.T(),b=Array(a),c,d=0;d<a;++d){c=Array(this.dimension);for(var e=0;e<this.dimension;++e)c[e]=this.get(d,e);b[d]=c}return b};m.T=function(){return this.b.T(this.d)};
m.ea=function(){if(null===this.c){var a=this.dimension,b=this.b,c=this.d,d=b.T(c),e=b.b[c],d=e+d*a,b=b.coordinates,f,g,h,l,n,c=f=b[e];g=h=b[e+1];for(n=e+a;n<d;n+=a)e=b[n],l=b[n+1],e<c?c=e:e>f&&(f=e),l<g?g=l:l>h&&(h=l);this.c=[c,f,g,h]}return this.c};m.N=aa("linestring");m.vc=function(a){for(var b=this.p(),c=Infinity,d=0,e=1,f=b.length;e<f;d=e++)c=Math.min(c,md(a,[b[d],b[e]])[2]);return Math.sqrt(c)};m.wb=function(){this.c=null};m.set=function(a,b,c){this.wb();this.b.set(this.d,a,b,c)};function mm(a,b){km.call(this);var c=b;t(c)||(c=a[0][0].length,c=new Dd({dimension:c}));var d=a.length;this.n=Array(d);for(var e=0;e<d;++e)this.n[e]=new lm(a[e],c);this.dimension=c.va}F(mm,km);mm.prototype.N=aa("multilinestring");mm.prototype.vc=function(a){for(var b=Infinity,c=0,d=this.n.length;c<d;++c)b=Math.min(b,this.n[c].vc(a));return b};function nm(a,b){this.b=null;var c=b;t(c)||(c=a.length,c=new Dd({dimension:c}));this.b=c;this.d=c.add([a]);this.dimension=c.va;this.c=null}F(nm,Ed);m=nm.prototype;m.get=function(a){return this.b.get(this.d,0,a)};m.ea=function(){if(null===this.c){var a=this.get(0),b=this.get(1);this.c=[a,a,b,b]}return this.c};m.p=function(){for(var a=Array(this.dimension),b=0;b<this.dimension;++b)a[b]=this.get(b);return a};m.N=aa("point");m.wb=function(){this.c=null};
m.set=function(a,b){null!==this.c&&1>=a&&(this.c[2*a]=b,this.c[2*a+1]=b);this.b.set(this.d,0,a,b)};function om(a,b){km.call(this);var c=b;t(c)||(c=a[0].length,c=new Dd({dimension:c}));this.b=c;var d=a.length;this.n=Array(d);for(var e=0;e<d;++e)this.n[e]=new nm(a[e],c);this.dimension=c.va}F(om,km);om.prototype.N=aa("multipoint");function pm(a,b){lm.call(this,a,b)}F(pm,lm);function qm(a){for(var b=a.length,c=0,d=a[b-1],e=d[0],d=d[1],f,g,h=0;h<b;++h)g=a[h],f=g[0],g=g[1],c+=(f-e)*(g+d),e=f,d=g;return 0<c}pm.prototype.N=aa("linearring");pm.prototype.mb=function(a){var b=a[0];a=a[1];var c=this.p(),d=!1,e,f,g,h,l=c.length,n=0;for(h=l-1;n<l;h=n++)e=c[n][0],f=c[n][1],g=c[h][0],h=c[h][1],(e=f>a!=h>a&&b<(g-e)*(a-f)/(h-f)+e)&&(d=!d);return d};function rm(a,b){this.b=null;var c=b;t(c)||(c=a[0][0].length,c=new Dd({dimension:c}));this.e=null;this.b=c;var d=a.length;this.a=Array(d);for(var e,f=0;f<d;++f)e=a[f],0===f?qm(e)||e.reverse():qm(e)&&e.reverse(),this.a[f]=new pm(e,c);this.dimension=c.va}F(rm,Ed);m=rm.prototype;m.ea=function(){return this.a[0].ea()};m.p=function(){for(var a=this.a.length,b=Array(a),c=0;c<a;++c)b[c]=this.a[c].p();return b};m.N=aa("polygon");
m.mb=function(a){for(var b=this.a,c,d=0,e=b.length;d<e&&(c=b[d].mb(a),0<d&&(c=!c),c);++d);return c};m.wb=function(){this.a[0].wb()};function sm(a,b){km.call(this);var c=b;t(c)||(c=a[0][0][0].length,c=new Dd({dimension:c}));var d=a.length;this.n=Array(d);for(var e=0;e<d;++e)this.n[e]=new rm(a[e],c);this.dimension=c.va}F(sm,km);sm.prototype.N=aa("multipolygon");sm.prototype.mb=function(a){for(var b=!1,c=0,d=this.n.length;c<d;++c)if(this.n[c].mb(a)){b=!0;break}return b};function tm(a){this.url=a.url;this.width=a.width;this.height=a.height;this.opacity=a.opacity;this.rotation=a.rotation;this.xOffset=a.xOffset;this.yOffset=a.yOffset}F(tm,Kl);tm.prototype.a=function(a){return this.url==a.url&&this.width==a.width&&this.height==a.height&&this.opacity==a.opacity&&this.rotation==a.rotation&&this.xOffset==a.xOffset&&this.yOffset==a.yOffset};function um(a,b,c){a=a.getContext("2d");this.e=b;var d=[1,0,0],e=d[0],f=d[1],g=d[2];d[0]=e*b[0]+f*b[4]+g*b[8];d[1]=e*b[1]+f*b[5]+g*b[9];d[2]=e*b[2]+f*b[6]+g*b[10];this.b=1/Math.sqrt(d[0]*d[0]+d[1]*d[1]);this.d=a;this.g=c;this.a={};this.f={};this.c=[0,0]}
function vm(a){if(a instanceof km){a=a.n;for(var b=a.length,c=[],d=0;d<b;++d)c.push.apply(c,vm(a[d]));return c}c=a.N();if("point"==c)return[[a.get(0),a.get(1),0]];if("polygon"==c){if(null===a.e){var c=yd(a.ea())[1],e=a.a[0].p(),d=[],f=0,g,h,l;for(g=e.length-1;1<=g;--g)if(h=e[g],l=e[g-1],h[1]>=c&&l[1]<=c||h[1]<=c&&l[1]>=c)h=(c-h[1])/(l[1]-h[1])*(l[0]-h[0])+h[0],d.push(h);d.sort();for(g=d.length-1;1<=g;--g)e=Math.abs(d[g]-d[g-1]),e>f&&(h=(d[g]+d[g-1])/2,a.mb([h,c])&&(f=e,b=h));a.e=[b,c]}a=a.e;return[[a[0],
a[1],0]]}throw Error("Label rendering not implemented for geometry type: "+c);}function wm(a,b){var c=a.url,d=xm[c],e=!1;if(!t(d))e=!0,d=Jf("IMG"),Cc(d,"error",y(ym,null,b),!1,wm),Cc(d,"load",y(zm,null,b),!1,wm),d.setAttribute("src",c);else if(null!==d){var c=a.width,f=a.height;t(c)&&t(f)?(d.width=c,d.height=f):t(c)?(d.height*=c/d.width,d.width=c):t(f)&&(d.width*=f/d.height,d.height=f)}return e?null:d}var xm={};function ym(a,b){if(t(b)){var c=b.target.getAttribute("src");xm[c]=null;zm(a,b)}}
function zm(a,b){if(t(b)){var c=b.target.getAttribute("src");xm[c]=b.target}t(a)&&a()};function Am(a,b){wj.call(this,a,b);this.i=Jf("CANVAS");this.ma=this.i.getContext("2d");this.G=Hg();this.Ra=Jf("CANVAS");this.lb=Hg();this.c=new jm(Bm);J(b,["add","change","remove","intentchange"],this.ff,!1,this);this.d=null;this.ta="point multipoint linestring multilinestring polygon multipolygon".split(" ");this.H=null;this.o=this.q=!1;this.f=null;this.W=new ab(NaN,NaN,NaN,NaN);this.t=y(function(){this.q=!0;Oi(a.f)},this)}F(Am,em);m=Am.prototype;m.ha=k("i");m.md=k("G");
m.Ta=function(a,b){this.wd(a,function(a,d){b((0,d.kg)(a),d)})};
m.wd=function(a,b,c){var d=this.a.f,e=[],f=this.b;a=Oh(d,a);var g=tj(this.f,a,0).toString();if(im(this.c,g)){var h=this.c.get(g),g=h[1],l=h[2],h=h[3],n=l[0]/2,l=l[1]/2,l=pd([[a[0]-n,a[1]-l],[a[0]+n,a[1]+l]]),d=cm(f,l,d.a().O().fa());if(null===d){t(c)&&p.setTimeout(function(){c()},0);return}var q,r,w,s;for(s in d)if(l=d[s],n=l.u(),q=n.N(),"point"===q||"multipoint"===q)for(r=x(l),q=g[r],r=h[r],w=q[0]/2,q=q[1]/2,q=pd([[a[0]-w-r[0],a[1]-q+r[1]],[a[0]+w-r[0],a[1]+q+r[1]]]),n=n.p(),ia(n[0])||(n=[n]),r=
n.length-1;0<=r;--r){if(td(q,n[r])){e.push(l);break}}else la(n.mb)?n.mb(a)&&e.push(l):la(n.vc)&&2*n.vc(a)<=g[x(l)][0]&&e.push(l)}p.setTimeout(function(){b(e,f)},0)};m.ff=function(a){var b=a.extent;a=this.c;if(t(b))for(var b=pj(this.f,b,0),c=a.T(),d;c--;)d=a.a.bc,b.contains(Za(d))?a.pop():a.get(d);else a.clear();this.t()};
m.Pa=function(a){var b=a.D,c=b.resolution,d=b.projection,e=a.extent,f=this.b,g=this.f,h=[512,512],l=!a.L[0]&&!a.L[1];if(l){var n=0.14929107086948487,q=d.Tb();q&&(n/=q);var r=Math.max(c,n);r!==this.Q&&(g=new mj({origin:[0,0],projection:d,resolutions:[r],tileSize:h}),this.c.clear(),this.f=g)}if(null!==g){var w=g.C(0);l&&qj(g,e,w,this.W);var s=this.G,B=this.W,z,u=g,A=u.Ib(0),E=u.C(0),D=u.Aa(0);z=sd(A[0]+B.a*D[0]*E,A[0]+(B.d+1)*D[0]*E,A[1]+B.c*D[1]*E,A[1]+(B.b+1)*D[1]*E,void 0);var R=Ad(z);rh(s);vh(s,
a.size[0]/2,a.size[1]/2);wh(s,w/c,w/c);xh(s,b.rotation);vh(s,(R[0]-b.center[0])/w,(b.center[1]-R[1])/w);if(this.q||this.Q!==w||!vd(this.H,z)){null===this.d&&(this.d=Jf("CANVAS"),this.d.width=h[0],this.d.height=h[1]);var O=this.Ra,Z=h[0]*(B.d-B.a+1),I=h[1]*(B.b-B.c+1),Q=this.lb,va=Z/2,wa=I/2;rh(Q);vh(Q,va,wa);wh(Q,1/w,-1/w);vh(Q,-(R[0]+va*w),-(R[1]-wa*w));O.width=Z;O.height=I;var ca=new um(O,Q,this.t),ea=this.i;ea.width=Z;ea.height=I;var $=this.ma,Pa={},Fa={},Fb={},Ig=15*w,af,Zb,uc,Lg,Mg,rn=this.ta,
Br=rn.length,xj=!1,sn=!1,Ng,Kc,$b,yj,Og,Pg,tn,Qg,Rg;Lg=B.a;a:for(;Lg<=B.d;++Lg)for(Mg=B.c;Mg<=B.b;++Mg)if(Zb=new Ya(0,Lg,Mg),uc=Zb.toString(),im(this.c,uc))Fa[uc]=Zb;else if(l){$b=oj(g,Zb);$b[0]-=Ig;$b[1]+=Ig;$b[2]-=Ig;$b[3]+=Ig;Rg=!1;for(Ng=0;Ng<Br;++Ng){Kc=rn[Ng];t(Pa[Kc])||(Pa[Kc]={});Qg=cm(f,$b,d,Kc,this.t);if(null===Qg){xj=!0;break a}Rg=Rg||!oc(Qg);H(Pa[Kc],Qg)}Rg&&(Fb[uc]=Zb)}else sn=!0;this.q=sn;a:for(Kc in Pa){var un=Pa[Kc],bf={},cf=[],zj=f.k,vn=void 0,df=void 0,wn=void 0,ef=void 0,Aj=void 0,
ff=void 0,xn=void 0,Zd=void 0,Bj=void 0,Sg=void 0,Cj=void 0;for(vn in un){ef=un[vn];Aj=ef.Eb();if(null===Aj){null===zj&&(null===Wl&&(Wl=new Vl({rules:[new Jl({filter:new qk(new uk("renderIntent"),[new U("select")]),symbolizers:[new Sl({fill:new Gl({color:"#ffffff",opacity:0.7}),stroke:new Ol({color:"#696969",opacity:0.9,width:2})}),new Gl({color:"#ffffff",opacity:0.7}),new Ol({color:"#696969",opacity:0.9,width:2})]})],symbolizers:[new Sl({fill:new Gl,stroke:new Ol}),new Gl,new Ol]})),zj=Wl);for(var yn=
zj,zn=ef,An=yn.b,Tg=[],Bn=!1,Ug=void 0,Dj=0,Cr=An.length;Dj<Cr;++Dj)if(Ug=An[Dj],null===Ug.a||Wk(Ug.a,zn))Bn=!0,Tg.push.apply(Tg,Ug.Eb());Bn||(Tg=yn.a);ff=Xl(Tg,zn)}else ff=Xl(Aj,ef);xn=ff.length;for(df=0;df<xn;++df){Zd=ff[df];for(wn in bf)if(Bj=cf[bf[wn]][1],Zd.a(Bj)){Zd=Bj;break}Sg=x(Zd);Sg in bf||(bf[Sg]=cf.length,cf.push([[],Zd,[]]));Cj=cf[bf[Sg]];Cj[0].push(ef);Zd instanceof Yl&&Cj[2].push(ff[df].text)}}yj=cf;tn=yj.length;for(Pg=0;Pg<tn;++Pg){Og=yj[Pg];var Vg=ca,Cn=Kc,Wg=Og[0],vc=Og[1],Ej=!1;
if(vc instanceof Yl){var Dn=Vg,En=Wg,gf=vc,Dr=Og[2],dd=Dn.d,Fj=void 0,Gj=void 0,hf=void 0;dd.fillStyle!==gf.color&&(dd.fillStyle=gf.color);dd.font=gf.fontSize+"px "+gf.fontFamily;dd.globalAlpha=gf.opacity;dd.textAlign="center";dd.textBaseline="middle";for(var Xg=0,Er=En.length;Xg<Er;++Xg)if(Fj=En[Xg],"hidden"!==Fj.Da)for(var Gj=vm(Fj.u()),Hj=0,Fr=Gj.length;Hj<Fr;++Hj)hf=Gj[Hj],uh(Dn.e,hf,hf),dd.fillText(Dr[Xg],hf[0],hf[1])}else switch(Cn){case "point":case "multipoint":var Ia=Vg,Fn=Wg,ac=vc,jf=Ia.d,
bc=void 0,Ij=void 0,Yg=void 0,Gn=void 0,Zg=void 0,$d=void 0,$g=void 0,ah=void 0,Jj=void 0,bh=void 0,Hn=void 0,Kj=void 0,kf=void 0,ch=0,dh=0;if(ac instanceof Ml){var In=void 0;if("circle"===ac.type){var ed=ac,Jn=ed.Fa||0,Lj=ed.size+2*Jn+1,Kn=Lj/2,eh=Jf("CANVAS"),Jb=eh.getContext("2d"),Mj=ed.fillColor,Nj=ed.strokeColor,Gr=2*Math.PI;eh.height=Lj;eh.width=Lj;Mj&&(Jb.fillStyle=Mj);Nj&&(Jb.lineWidth=Jn,Jb.strokeStyle=Nj,Jb.lineCap="round",Jb.lineJoin="round");Jb.beginPath();Jb.arc(Kn,Kn,ed.size/2,0,Gr,
!0);Mj&&(Jb.globalAlpha=ed.oa,Jb.fill());Nj&&(Jb.globalAlpha=ed.sa,Jb.stroke());In=eh}else throw Error("Unsupported shape type: "+ac);bc=In;Ij=1}else if(ac instanceof tm)bc=wm(ac,Ia.g),Ij=ac.opacity,ch=ac.xOffset,dh=ac.yOffset;else throw Error("Unsupported symbolizer: "+ac);if(null===bc)Ej=!0;else{var Hr=bc.width/2,Ir=bc.height/2,Ln=bc.width*Ia.b,Mn=bc.height*Ia.b,Jr=ch*Ia.b,Kr=dh*Ia.b;jf.save();jf.setTransform(1,0,0,1,-Hr,-Ir);jf.globalAlpha=Ij;Yg=0;for(Gn=Fn.length;Yg<Gn;++Yg)if(Zg=Fn[Yg],"hidden"!==
Zg.Da)for($d=x(Zg),$g=Ia.a[$d],Ia.a[$d]=t($g)?[Math.max($g[0],Ln),Math.max($g[1],Mn)]:[Ln,Mn],Ia.f[$d]=[ch*Ia.b,dh*Ia.b],Ia.c=[Math.max(Ia.c[0],Ia.a[$d][0]+2*Math.abs(Jr)),Math.max(Ia.c[1],Ia.a[$d][1]+2*Math.abs(Kr))],ah=Zg.u(),Jj=ah instanceof nm?[ah]:ah.n,bh=0,Hn=Jj.length;bh<Hn;++bh)Kj=Jj[bh],kf=[Kj.get(0),Kj.get(1),0],uh(Ia.e,kf,kf),jf.drawImage(bc,kf[0]+ch,kf[1]+dh,bc.width,bc.height);jf.restore();Ej=!1}break;case "linestring":case "multilinestring":var wc=Vg,Nn=Wg,Oj=vc,cc=wc.d,fh=void 0,On=
void 0,gh=void 0,hh=void 0,ae=void 0,ih=void 0,Pj=void 0,jh=void 0,Pn=void 0,kh=void 0,be=void 0,Qn=void 0,fd=void 0,Rn=void 0;cc.globalAlpha=Oj.opacity;cc.strokeStyle=Oj.color;cc.lineWidth=Oj.width;cc.lineCap="round";cc.lineJoin="round";Rn=cc.lineWidth*wc.b;cc.beginPath();fh=0;for(On=Nn.length;fh<On;++fh)if(gh=Nn[fh],"hidden"!==gh.Da)for(hh=x(gh),ae=t(wc.a[hh])?wc.a[hh]:[0],ae[0]=Math.max(ae[0],Rn),wc.a[hh]=ae,wc.c=[Math.max(ae[0],wc.c[0]),Math.max(ae[0],wc.c[1])],ih=gh.u(),Pj=ih instanceof lm?[ih]:
ih.n,jh=0,Pn=Pj.length;jh<Pn;++jh)for(kh=Pj[jh],be=0,Qn=kh.T();be<Qn;++be)fd=[kh.get(be,0),kh.get(be,1),0],uh(wc.e,fd,fd),0===be?cc.moveTo(fd[0],fd[1]):cc.lineTo(fd[0],fd[1]);cc.stroke();break;case "polygon":case "multipolygon":var Sn=Vg,Tn=Wg,Ja=Sn.d,lh=vc.strokeColor,Un=vc.Fa,mh=vc.sa,lf=vc.fillColor,nh=vc.oa,ce=void 0,mf=void 0,Qj=void 0,oh=void 0,Rj=void 0,nf=void 0,Sj=void 0,Vn=void 0,Tj=void 0,Wn=void 0,ph=void 0,de=void 0,Xn=void 0,gd=void 0,Uj=void 0;lh&&(Ja.strokeStyle=lh,Un&&(Ja.lineWidth=
Un),Ja.lineCap="round",Ja.lineJoin="round");lf&&(Ja.fillStyle=lf);Ja.beginPath();mf=0;for(Qj=Tn.length;mf<Qj;++mf)if(Uj=Tn[mf],"hidden"!==Uj.Da)for(oh=Uj.u(),Rj=oh instanceof rm?[oh]:oh.n,nf=0,Sj=Rj.length;nf<Sj;++nf)if(Vn=Rj[nf],Tj=Vn.a,Wn=Tj.length,0<Wn){ph=Tj[0];de=0;for(Xn=ph.T();de<Xn;++de)gd=[ph.get(de,0),ph.get(de,1),0],uh(Sn.e,gd,gd),0===de?Ja.moveTo(gd[0],gd[1]):Ja.lineTo(gd[0],gd[1]);lf&&lh&&(nh!==ce&&(ce=Ja.globalAlpha=nh),Ja.fill(),mh!==ce&&(ce=Ja.globalAlpha=mh),Ja.stroke(),(mf<Qj-1||
nf<Sj-1)&&Ja.beginPath())}lf&&lh||(lf?(nh!==ce&&(Ja.globalAlpha=nh),Ja.fill()):(mh!==ce&&(Ja.globalAlpha=mh),Ja.stroke()));break;default:throw Error("Rendering not implemented for geometry type: "+Cn);}if(xj=Ej)break a}}xj||H(Fa,Fb);var Lr=ca.a,Mr=ca.c,Nr=ca.f;for(uc in Fa)Zb=Fa[uc],im(this.c,uc)?af=this.c.get(uc)[0]:(af=this.d.cloneNode(!1),af.getContext("2d").drawImage(O,(B.a-Zb.x)*h[0],(Zb.y-B.b)*h[1]),this.c.set(uc,[af,Lr,Mr,Nr])),$.drawImage(af,h[0]*(Zb.x-B.a),h[1]*(B.b-Zb.y));this.Q=w;this.H=
z;this.o||(this.o=!0,a.ib.push(y(this.Yf,this)))}}};m.Yf=function(){for(;this.c.T()>this.c.d;)this.c.pop();this.o=!1};var Bm=128;function Cm(a,b){dk.call(this,0,b);this.b=Jf("CANVAS");this.b.height=a.clientHeight;this.b.width=a.clientWidth;this.b.className="ol-unselectable";Nf(a,this.b);this.c=!0;this.e=[a.clientHeight,a.clientWidth];this.g=this.b.getContext("2d")}F(Cm,dk);Cm.prototype.rc=function(a){return a instanceof nk?new fm(this,a):a instanceof ok?new gm(this,a):a instanceof $l?new Am(this,a):null};Cm.prototype.Bc=k("b");
Cm.prototype.Nc=function(a){if(null===a)this.c&&(rg(this.b,!1),this.c=!1);else{var b=a.size;if(this.e[0]!=b[0]||this.e[1]!=b[1])this.b.width=b[0],this.b.height=b[1],this.e=b;var c=this.g;c.setTransform(1,0,0,1,0,0);c.clearRect(0,0,b[0],b[1]);ek(a);var b=a.qa,d=a.Lc,e,f,g,h,l;e=0;for(f=d.length;e<f;++e)g=d[e],h=fk(this,g),l=b[x(g)],l.visible&&l.Qc&&(h.Pa(a,l),g=h.ha(),null!==g&&(h=h.md(),c.globalAlpha=l.opacity,0===a.D.rotation?c.drawImage(g,0,0,g.width,g.height,h[12],h[13],g.width*h[0],g.height*h[5]):
(c.setTransform(h[0],h[1],h[4],h[5],h[12],h[13]),c.drawImage(g,0,0))));this.c||(rg(this.b,!0),this.c=!0);hk(this,a)}};var Dm=function(){if(!("HTMLCanvasElement"in p))return!1;try{var a=Jf("CANVAS");return!ha(a.getContext("2d"))}catch(b){return!1}}();function Em(a,b){var c;if(t(6)){var d=Array(16);for(c=0;16>c;++c)d[c]=b[c].toFixed(6);c=d.join(",")}else c=b.join(",");c="matrix3d("+c+")";d=a.style;d.WebkitTransform=c;d.MozTransform=c;d.a=c;d.transform=c};function Fm(a,b,c){wj.call(this,a,b);this.target=c}F(Fm,wj);function Gm(a,b){var c=Jf("DIV");c.style.position="absolute";Fm.call(this,a,b,c);this.c=null;this.d=Kg()}F(Gm,Fm);
Gm.prototype.Pa=function(a){var b=a.D,c=b.center,d=b.resolution,e=b.rotation,f=this.c,g=this.b.ja(),h=a.L;h[0]||h[1]||(b=g.ha(a.extent,d,b.projection),null!==b&&(h=b.a,0==h?(Cc(b,"change",this.k,!1,this),lj(b)):2==h&&(f=b)));if(null!==f){var h=f.ba(),l=f.C(),b=Hg();rh(b);vh(b,a.size[0]/2,a.size[1]/2);xh(b,e);wh(b,l/d,l/d);vh(b,(h[0]-c[0])/l,(c[1]-h[3])/l);f!=this.c&&(c=kj(f,this),c.style.maxWidth="none",c.style.position="absolute",Lf(this.target),this.target.appendChild(c),this.c=f);th(b,this.d)||
(Em(this.target,b),qh(this.d,b));Xj(a.attributions,f.e);Yj(a,g)}};function Hm(a,b){var c=Jf("DIV");c.style.position="absolute";Fm.call(this,a,b,c);this.d=!0;this.i=1;this.f=0;this.c={}}F(Hm,Fm);
Hm.prototype.Pa=function(a,b){if(b.visible){var c=a.D,d=c.projection,e=this.b,f=e.ja(),g=f.tileGrid;null===g&&(g=uj(d));var h=bi(g.a,c.resolution,0),l=g.C(h),n=c.center,q;l==c.resolution?(n=bk(n,l,a.size),q=zd(n,l,c.rotation,a.size)):q=a.extent;var l=qj(g,q,l),r={};r[h]={};var w=y(f.hd,f,r,ak(function(a){return null!==a&&2==a.a},f,d)),s=qd(),B=new ab(0,0,0,0),z,u,A,E;for(A=l.a;A<=l.d;++A)for(E=l.c;E<=l.b;++E)z=f.Fb(h,A,E,d),u=z.a,2==u?r[h][z.K.toString()]=z:3!=u&&4!=u&&(u=g.zc(z.K,w,null,B,s),u||
(z=g.Dc(z.K,B,s),null===z||w(h+1,z)));var D;if(this.f!=f.b){for(D in this.c)s=this.c[+D],Of(s.target);this.c={};this.f=f.b}A=La(lc(r),Number);Va(A);var w={},R;E=0;for(z=A.length;E<z;++E){D=A[E];D in this.c?s=this.c[D]:(s=tj(g,n,D),s=new Im(g,s),w[D]=!0,this.c[D]=s);D=r[D];for(R in D)Jm(s,D[R]);Km(s)}R=La(lc(this.c),Number);Va(R);var O;z=Hg();A=0;for(E=R.length;A<E;++A)if(D=R[A],s=this.c[D],D in r)if(O=s.C(),u=s.f,rh(z),vh(z,a.size[0]/2,a.size[1]/2),xh(z,c.rotation),wh(z,O/c.resolution,O/c.resolution),
vh(z,(u[0]-n[0])/O,(n[1]-u[1])/O),Lm(s,z),D in w){for(D-=1;0<=D;--D)if(D in this.c){Mf(s.target,this.c[D].target);break}0>D&&Nf(this.target,s.target)}else a.L[0]||a.L[1]||Mm(s,q,B);else Of(s.target),delete this.c[D];b.opacity!=this.i&&(qg(this.target,b.opacity),this.i=b.opacity);b.visible&&!this.d&&(rg(this.target,!0),this.d=!0);Zj(a.lc,f,h,l);ck(a,f,g,d,q,h,e.a());Wj(a,f);Yj(a,f)}else this.d&&(rg(this.target,!1),this.d=!1)};
function Im(a,b){this.target=Jf("DIV");this.target.style.position="absolute";this.d=a;this.c=b;this.f=Ad(oj(a,b));this.g=a.C(b.z);this.b={};this.a=null;this.e=Kg()}function Jm(a,b){var c=b.K,d=c.toString();if(!(d in a.b)){var e=a.d.Aa(c.z),f=b.ha(a),g=f.style;g.maxWidth="none";g.position="absolute";g.left=(c.x-a.c.x)*e[0]+"px";g.top=(a.c.y-c.y)*e[1]+"px";null===a.a&&(a.a=document.createDocumentFragment());a.a.appendChild(f);a.b[d]=b}}
function Km(a){null!==a.a&&(a.target.appendChild(a.a),a.a=null)}Im.prototype.C=k("g");function Mm(a,b,c){var d=pj(a.d,b,a.c.z,c);b=[];for(var e in a.b)c=a.b[e],d.contains(c.K)||b.push(c);var f,d=0;for(f=b.length;d<f;++d)c=b[d],e=c.K.toString(),Of(c.ha(a)),delete a.b[e]}function Lm(a,b){th(b,a.e)||(Em(a.target,b),qh(a.e,b))};function Nm(a,b){dk.call(this,0,b);this.b=Jf("DIV");this.b.className="ol-unselectable";var c=this.b.style;c.position="absolute";c.width="100%";c.height="100%";Nf(a,this.b);this.c=!0}F(Nm,dk);Nm.prototype.rc=function(a){if(a instanceof ok)a=new Hm(this,a);else if(a instanceof nk)a=new Gm(this,a);else return null;this.b.appendChild(a.target);return a};
Nm.prototype.Nc=function(a){if(null===a)this.c&&(rg(this.b,!1),this.c=!1);else{var b=a.qa,c=a.Lc,d,e,f,g;d=0;for(e=c.length;d<e;++d)f=c[d],g=fk(this,f),f=a.qa[x(f)],f.Qc&&g.Pa(a,f);for(var h in this.d)h in b||(g=this.d[h],Of(g.target));this.c||(rg(this.b,!0),this.c=!0);ek(a);hk(this,a)}};function Om(a,b){var c=Array(2*b),d=0,e;for(e=0;e<b;++e)c[d++]=Infinity,c[d++]=-Infinity;var f=a.a;Pm(a,function(a,d){var e,n,q;for(n=a;n<d;n+=b)for(q=e=0;q<b;++q)c[e++]=Math.min(c[2*q],f[n+q]),c[e++]=Math.max(c[2*q+1],f[n+q])});return c}function Qm(a,b,c,d){var e=c.length,f,g,h;for(f=0;f<e;++f)for(h=c[f],g=0;g<d;++g)a[b++]=h[g];return b};function Rm(a){this.a=t(a)?a:[]}function Sm(a,b,c){if(b!=c){var d=a.a,e=d.length,f;for(f=0;f<e;f+=2)if(b<=d[f]){d.splice(f,0,b,c);Tm(a);return}d.push(b,c);Tm(a)}}Rm.prototype.clear=function(){this.a.length=0};function Tm(a){a=a.a;var b=a.length,c=0,d;for(d=0;d<b;d+=2)a[d]!=a[d+1]&&(0<c&&a[c-2]<=a[d]&&a[d]<=a[c-1]?a[c-1]=Math.max(a[c-1],a[d+1]):(a[c++]=a[d],a[c++]=a[d+1]));a.length=c}function Um(a,b){var c=a.a,d=c.length,e;for(e=0;e<d;e+=2)b.call(void 0,c[e],c[e+1])}
Rm.prototype.xb=function(){return 0===this.a.length};function Vm(a,b,c){var d=a.a,e=d.length,f;for(f=0;f<e;f+=2)if(!(c<d[f]||d[f+1]<b)){if(d[f]>c)break;if(b<d[f])if(c==d[f])break;else if(c<d[f+1]){d[f]=Math.max(d[f],c);break}else d.splice(f,2),f-=2,e-=2;else if(b==d[f])if(c<d[f+1]){d[f]=c;break}else if(c==d[f+1]){d.splice(f,2);break}else d.splice(f,2),f-=2,e-=2;else if(c<d[f+1]){d.splice(f,2,d[f],b,c,d[f+1]);break}else if(c==d[f+1]){d[f+1]=b;break}else d[f+1]=b}Tm(a)};function Wm(a,b,c){this.a=t(a)?a:[];this.b=[];this.c=new Rm;a=t(b)?b:this.a.length;a<this.a.length&&Sm(this.c,a,this.a.length);this.e=this.f=null;this.d=t(c)?c:35044}function Xm(a,b){var c;a:{c=a.c.a;var d=c.length,e=-1,f,g,h;for(g=0;g<d;g+=2){h=c[g+1]-c[g];if(h==b){c=c[g];break a}h>b&&(-1==e||h<f)&&(e=c[g],f=h)}c=e}Vm(a.c,c,c+b);return c}Wm.prototype.add=function(a){var b=a.length,c=Xm(this,b),d;for(d=0;d<b;++d)this.a[c+d]=a[d];Ym(this,b,c);return c};
function Pm(a,b){if(0!==a.a.length){var c=a.a.length,d=a.c.a,e=d.length;if(0===e)b.call(void 0,0,c);else{0<d[0]&&b.call(void 0,0,d[0]);var f;for(f=1;f<e-1;f+=2)b.call(void 0,d[f],d[f+1]);d[e-1]<c&&b.call(void 0,d[e-1],c)}}}Wm.prototype.T=function(){var a=this.c.a,b=a.length,c=0,d;for(d=0;d<b;d+=2)c+=a[d+1]-a[d];return this.a.length-c};function Ym(a,b,c){var d,e;d=0;for(e=a.b.length;d<e;++d)Sm(a.b[d],c,c+b)}
Wm.prototype.remove=function(a,b){var c,d;Sm(this.c,b,b+a);c=0;for(d=this.b.length;c<d;++c)Vm(this.b[c],b,b+a)};Wm.prototype.set=function(a,b){var c=this.a,d=a.length,e;for(e=0;e<d;++e)c[b+e]=a[e];Ym(this,d,b)};function Zm(a,b,c){this.$=a;this.a=t(b)?b:{};this.b=t(c)?c:2}m=Zm.prototype;m.add=function(a){var b=a.length*this.b,c=Xm(this.$,b);this.a[c+""]=c+b;Qm(this.$.a,c,a,this.b);return c};m.get=function(a){for(var b=this.$.a,c=this.a[a+""],d=this.b,e=Array((c-a)/d),f=0;a<c;a+=d)e[f++]=b.slice(a,a+d);return e};m.T=function(){return ic(this.a)};m.ba=function(){return Om(this.$,this.b)};m.remove=function(a){this.$.remove(this.a[a+""]-a,a);delete this.a[a+""]};
m.set=function(a,b){var c=this.b,d=this.a[a+""];if(b.length*c==d-a)return Qm(this.$.a,a,b,c),Ym(this.$,d-a,a),a;this.remove(a);return this.add(b)};function $m(a,b){this.$=a;this.a=t(b)?b:2}m=$m.prototype;m.add=function(a){return this.$.add(a)};m.get=function(a){return this.$.a.slice(a,a+this.a)};m.T=function(){return this.$.T()/this.a};m.ba=function(){return Om(this.$,this.a)};m.remove=function(a){this.$.remove(this.a,a)};m.set=function(a,b){this.$.set(b,a)};function an(a){Jh.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.c=t(a.pointCollections)?a.pointCollections:[];this.a=t(a.Mf)?a.Mf:[]}F(an,Jh);function bn(a){Lh.call(this,a)}F(bn,Lh);function cn(a,b,c){var d=b[0];b=b[1];c[0]=d*a[0]+b*a[4]+a[12];c[1]=d*a[1]+b*a[5]+a[13];return c};function dn(a,b){wj.call(this,a,b);this.i=this.xa=null;this.q=void 0;this.e=Hg();this.s=Kg();this.H=new Float32Array(16);this.G=void 0;this.t=new Float32Array(16);this.W=void 0;this.Q=new Float32Array(16);this.ma=void 0;this.ta=new Float32Array(16);this.Pb=void 0;this.lb=new Float32Array(16)}F(dn,wj);
function en(a,b,c){var d=a.a.a;if(t(a.q)&&a.q==c)d.bindFramebuffer(36160,a.i);else{b.ib.push(ra(function(a,b,c){a.isContextLost()||(a.deleteFramebuffer(b),a.deleteTexture(c))},d,a.i,a.xa));b=d.createTexture();d.bindTexture(3553,b);d.texImage2D(3553,0,6408,c,c,0,6408,5121,null);d.texParameteri(3553,10240,9729);d.texParameteri(3553,10241,9729);var e=d.createFramebuffer();d.bindFramebuffer(36160,e);d.framebufferTexture2D(36160,36064,3553,b,0);a.xa=b;a.i=e;a.q=c}}
function fn(a,b,c,d,e){var f=!1;b!==a.G&&(f=a.t,rh(f),f[12]=b,f[13]=b,f[14]=b,f[15]=1,a.G=b,f=!0);c!==a.W&&(b=a.Q,rh(b),b[0]=c,b[5]=c,b[10]=c,b[15]=1,f=-0.5*c+0.5,b[12]=f,b[13]=f,b[14]=f,b[15]=1,a.W=c,f=!0);d!==a.ma&&(c=Math.cos(d),b=Math.sin(d),Jg(a.ta,0.213+0.787*c-0.213*b,0.213-0.213*c+0.143*b,0.213-0.213*c-0.787*b,0,0.715-0.715*c-0.715*b,0.715+0.285*c+0.14*b,0.715-0.715*c+0.715*b,0,0.072-0.072*c+0.928*b,0.072-0.072*c-0.283*b,0.072+0.928*c+0.072*b,0,0,0,0,1),a.ma=d,f=!0);e!==a.Pb&&(Jg(a.lb,0.213+
0.787*e,0.213-0.213*e,0.213-0.213*e,0,0.715-0.715*e,0.715+0.285*e,0.715-0.715*e,0,0.072-0.072*e,0.072-0.072*e,0.072+0.928*e,0,0,0,0,1),a.Pb=e,f=!0);f&&(d=a.H,rh(d),sh(d,a.Q,d),sh(d,a.t,d),sh(d,a.lb,d),sh(d,a.ta,d));return a.H}dn.prototype.g=function(){this.i=this.xa=null;this.q=void 0};function gn(a,b){dn.call(this,a,b);this.c=null}F(gn,dn);function hn(a,b){var c=kj(b,a),d=a.a.a,e=d.createTexture();d.bindTexture(3553,e);d.texImage2D(3553,0,6408,6408,5121,c);d.texParameteri(3553,10242,33071);d.texParameteri(3553,10243,33071);d.texParameteri(3553,10241,9729);d.texParameteri(3553,10240,9729);return e}
gn.prototype.Pa=function(a){var b=this.a.a,c=a.D,d=c.center,e=c.resolution,f=c.rotation,g=this.c,h=this.xa,l=this.b.ja(),n=a.L;n[0]||n[1]||(c=l.ha(a.extent,e,c.projection),null!==c&&(n=c.a,0==n?(Cc(c,"change",this.k,!1,this),lj(c)):2==n&&(g=c,h=hn(this,c),null===this.xa||a.ib.push(ra(function(a,b){a.isContextLost()||a.deleteTexture(b)},b,this.xa)))));null!==g&&(b=this.a.Bc(),jn(this,b.width,b.height,d,e,f,g.ba()),d=this.e,rh(d),wh(d,1,-1),vh(d,0,-1),this.c=g,this.xa=h,Xj(a.attributions,g.e),Yj(a,
l))};function jn(a,b,c,d,e,f,g){b*=e;c*=e;a=a.s;rh(a);wh(a,2/b,2/c);xh(a,-f);vh(a,g[0]-d[0],g[2]-d[1]);wh(a,(g[1]-g[0])/2,(g[3]-g[2])/2);vh(a,1,1)};var kn=["webgl","webgl-experimental","webkit-3d","moz-webgl"];function ln(a,b){var c,d,e=kn.length;for(d=0;d<e;++d)try{if(c=a.getContext(kn[d],b),null!==c)return c}catch(f){}return null}var mn=function(){if(!("WebGLRenderingContext"in p))return!1;try{var a=Jf("CANVAS");return!ha(ln(a))}catch(b){return!1}}();function nn(a){this.a=a}nn.prototype.ja=k("a");function on(a){this.a=a}F(on,nn);on.prototype.N=aa(35632);function pn(a){this.a=a}F(pn,nn);pn.prototype.N=aa(35633);function qn(){this.a="precision mediump float;varying vec2 a;uniform sampler2D c;void main(){gl_FragColor\x3dtexture2D(c,a);}"}F(qn,on);fa(qn);function Yn(){this.a="varying vec2 a;attribute vec2 c,d;uniform vec4 b;void main(){gl_Position\x3dvec4(c*b.xy+b.zw,0,1);a\x3dd;}"}F(Yn,pn);fa(Yn);function Zn(a,b){this.d=a.getUniformLocation(b,"b");this.c=a.getUniformLocation(b,"c");this.a=a.getAttribLocation(b,"c");this.b=a.getAttribLocation(b,"d")};function $n(a,b){dn.call(this,a,b);this.nc=qn.ia();this.Zc=Yn.ia();this.c=null;this.Ra=new Wm([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]);this.o=this.d=null;this.f=-1}F($n,dn);$n.prototype.v=function(){var a=this.a,b=a.a,c=x(this.Ra),d=a.e[c];Qa(d.$.b,d.tc);b.isContextLost()||b.deleteBuffer(d.buffer);delete a.e[c];$n.B.v.call(this)};$n.prototype.g=function(){$n.B.g.call(this);this.c=null};
$n.prototype.Pa=function(a){var b=this.a,c=b.a,d=a.D,e=d.projection,f=this.b,g=f.ja(),h=g.tileGrid;null===h&&(h=uj(e));var l=bi(h.a,d.resolution,0),n=h.C(l),q=d.center,r;n==d.resolution?(q=bk(q,n,a.size),r=zd(q,n,d.rotation,a.size)):r=a.extent;var w=qj(h,r,n);if(null!==this.d&&this.d.a==w.a&&(this.d.c==w.c&&this.d.d==w.d&&this.d.b==w.b)&&this.f==g.b)n=this.o;else{var s=[w.d-w.a+1,w.b-w.c+1],B=h.Aa(l),s=Math.max(s[0]*B[0],s[1]*B[1]),z=cj(s),s=n*z,u=h.Ib(l),A=u[0]+w.a*B[0]*n,n=u[1]+w.c*B[1]*n,n=[A,
A+s,n,n+s];en(this,a,z);c.viewport(0,0,z,z);c.clearColor(0,0,0,0);c.clear(16384);c.disable(3042);B=ao(b,this.nc,this.Zc);c.useProgram(B);null===this.c&&(this.c=new Zn(c,B));bo(b,this.Ra);c.enableVertexAttribArray(this.c.a);c.vertexAttribPointer(this.c.a,2,5126,!1,16,0);c.enableVertexAttribArray(this.c.b);c.vertexAttribPointer(this.c.b,2,5126,!1,16,8);c.uniform1i(this.c.c,0);B={};B[l]={};var E=y(g.hd,g,B,ak(function(a){return null!==a&&2==a.a&&im(b.b,a.c())},g,e)),z=!0,A=qd(),D=new ab(0,0,0,0),R,O,
Z;for(O=w.a;O<=w.d;++O)for(Z=w.c;Z<=w.b;++Z){u=g.Fb(l,O,Z,e);R=u.a;if(2==R){if(im(b.b,u.c())){B[l][u.K.toString()]=u;continue}}else if(3==R||4==R)continue;z=!1;R=h.zc(u.K,E,null,D,A);R||(u=h.Dc(u.K,D,A),null===u||E(l+1,u))}E=La(lc(B),Number);Va(E);var D=new Float32Array(4),I,Q,va,wa,ca;O=0;for(Z=E.length;O<Z;++O)for(va in wa=B[E[O]],wa)u=wa[va],Q=oj(h,u.K,A),R=2*(Q[1]-Q[0])/s,I=2*(Q[3]-Q[2])/s,ca=2*(Q[0]-n[0])/s-1,Q=2*(Q[2]-n[2])/s-1,Gg(D,R,I,ca,Q),c.uniform4fv(this.c.d,D),co(b,u),c.drawArrays(5,
0,4);z?(this.d=w,this.o=n,this.f=g.b):(this.o=this.d=null,this.f=-1,a.ua=!0)}Zj(a.lc,g,l,w);var ea=b.k;ck(a,g,h,e,r,l,f.a(),function(a){var c;(c=2!=a.a)||(c=im(b.b,a.c()))||(c=a.c()in ea.c);c||Dh(ea,[a,sj(h,a.K),h.C(a.K.z)])},this);Wj(a,g);Yj(a,g);c=this.e;rh(c);vh(c,(q[0]-n[0])/(n[1]-n[0]),(q[1]-n[2])/(n[3]-n[2]));xh(c,d.rotation);wh(c,a.size[0]*d.resolution/(n[1]-n[0]),a.size[1]*d.resolution/(n[3]-n[2]));vh(c,-0.5,-0.5)};function eo(){this.a="precision mediump float;uniform vec4 b;void main(){gl_FragColor\x3db;}"}F(eo,on);fa(eo);function fo(){this.a="attribute vec2 b;uniform mat4 a;void main(){gl_Position\x3da*vec4(b,0,1);}"}F(fo,pn);fa(fo);function go(a,b){this.c=a.getUniformLocation(b,"a");this.b=a.getUniformLocation(b,"b");this.a=a.getAttribLocation(b,"b")};function ho(){this.a="precision mediump float;uniform vec4 c;void main(){gl_FragColor\x3dc;}"}F(ho,on);fa(ho);function io(){this.a="attribute vec2 c;uniform float a;uniform mat4 b;void main(){gl_Position\x3db*vec4(c,0,1);gl_PointSize\x3da;}"}F(io,pn);fa(io);function jo(a,b){this.d=a.getUniformLocation(b,"a");this.c=a.getUniformLocation(b,"b");this.b=a.getUniformLocation(b,"c");this.a=a.getAttribLocation(b,"c")};function ko(a,b){dn.call(this,a,b);rh(this.s);this.f=Kg();this.c=this.d=null}F(ko,dn);ko.prototype.g=function(){ko.B.g.call(this);this.c=null};
ko.prototype.Pa=function(a){var b=this.a.a,c=a.D,d=this.b.ja(),e=a.size,f=cj(Math.max(e[0],e[1]));en(this,a,f);b.viewport(0,0,f,f);b.clearColor(0,0,0,0);b.clear(16384);b.enable(3042);rh(this.f);0!==c.rotation&&xh(this.f,-c.rotation);wh(this.f,2/(f*c.resolution),2/(f*c.resolution));vh(this.f,-c.center[0],-c.center[1]);a=d.c;0<a.length&&lo(this,a);d=d.a;if(0<d.length){a=this.a;var b=a.a,c=eo.ia(),g=fo.ia(),c=ao(a,c,g);b.useProgram(c);null===this.d&&(this.d=new go(b,c));b.uniformMatrix4fv(this.d.c,!1,
this.f);for(var h,l,g=0;g<d.length;++g){l=d[g];h=l.$;c=l.b;bo(a,h);h=l;l=h.b;var n=La(lc(h.a),Number);Va(n);for(var q=n.length,r=[],w=void 0,s=void 0,B=void 0,B=s=void 0,w=0;w<q;++w)for(s=n[w],B=h.a[s],B=B/l-1,s=s/l;s<B;++s)r.push(s,s+1);l=new Uint16Array(r);h=b.createBuffer();b.bindBuffer(34963,h);b.bufferData(34963,l,35048);b.enableVertexAttribArray(this.d.a);b.vertexAttribPointer(this.d.a,2,5126,!1,4*c,0);b.uniform4fv(this.d.b,[1,1,0,0.75]);b.drawElements(1,l.length,5123,0);b.bindBuffer(34963,
null);b.deleteBuffer(h)}}rh(this.e);vh(this.e,0.5,0.5);wh(this.e,e[0]/f,e[1]/f);vh(this.e,-0.5,-0.5)};function lo(a,b){var c=a.a,d=c.a,e=ho.ia(),f=io.ia(),e=ao(c,e,f);d.useProgram(e);null===a.c&&(a.c=new jo(d,e));d.uniformMatrix4fv(a.c.c,!1,a.f);for(var g,h,f=0;f<b.length;++f)h=b[f],e=h.$,g=h.a,bo(c,e),d.enableVertexAttribArray(a.c.a),d.vertexAttribPointer(a.c.a,2,5126,!1,4*g,0),d.uniform4fv(a.c.b,[1,0,0,0.75]),d.uniform1f(a.c.d,3),Pm(e,function(a,b){d.drawArrays(0,a/g,(b-a)/g)})};function mo(){this.a="precision mediump float;varying vec2 a;uniform mat4 d;uniform float e;uniform sampler2D f;void main(){vec4 g\x3dtexture2D(f,a);gl_FragColor.rgb\x3d(d*vec4(g.rgb,1)).rgb;gl_FragColor.a\x3dg.a*e;}"}F(mo,on);fa(mo);function no(){this.a="varying vec2 a;attribute vec2 d,e;uniform mat4 b,c;void main(){gl_Position\x3dc*vec4(d,0,1);a\x3d(b*vec4(e,0,1)).st;}"}F(no,pn);fa(no);
function oo(a,b){this.f=a.getUniformLocation(b,"b");this.e=a.getUniformLocation(b,"c");this.g=a.getUniformLocation(b,"d");this.d=a.getUniformLocation(b,"e");this.c=a.getUniformLocation(b,"f");this.a=a.getAttribLocation(b,"d");this.b=a.getAttribLocation(b,"e")};function po(){this.a="precision mediump float;varying vec2 a;uniform float d;uniform sampler2D e;void main(){vec4 f\x3dtexture2D(e,a);gl_FragColor.rgb\x3df.rgb;gl_FragColor.a\x3df.a*d;}"}F(po,on);fa(po);function qo(){this.a="varying vec2 a;attribute vec2 d,e;uniform mat4 b,c;void main(){gl_Position\x3dc*vec4(d,0,1);a\x3d(b*vec4(e,0,1)).st;}"}F(qo,pn);fa(qo);
function ro(a,b){this.f=a.getUniformLocation(b,"b");this.e=a.getUniformLocation(b,"c");this.d=a.getUniformLocation(b,"d");this.c=a.getUniformLocation(b,"e");this.a=a.getAttribLocation(b,"d");this.b=a.getAttribLocation(b,"e")};function so(a,b){dk.call(this,0,b);this.c=Jf("CANVAS");this.c.height=a.clientHeight;this.c.width=a.clientWidth;this.c.className="ol-unselectable";Nf(a,this.c);this.t=!0;this.G=[a.clientHeight,a.clientWidth];this.a=ln(this.c,{antialias:!0,depth:!1,preserveDrawingBuffer:!1,stencil:!1});J(this.c,"webglcontextlost",this.Uf,!1,this);J(this.c,"webglcontextrestored",this.Ef,!1,this);this.s=this.o=null;this.W=new Wm([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]);this.e={};this.i={};this.g={};this.b=new hm;this.H=
null;this.k=new Ah(y(function(a){var b=a[1];a=a[2];var e=b[0]-this.H[0],b=b[1]-this.H[1];return 65536*Math.log(a)+Math.sqrt(e*e+b*b)/a},this),function(a){return a[0].c()});this.Q=y(function(){if(!this.k.xb()){Fh(this.k);var a=Bh(this.k)[0];co(this,a)}},this);this.q=0;to(this)}F(so,dk);
function bo(a,b){var c=a.a,d=b.a,e=x(b);if(e in a.e)e=a.e[e],c.bindBuffer(34962,e.buffer),Um(e.tc,function(a,b){var e=d.slice(a,b);c.bufferSubData(34962,a,new Float32Array(e))}),e.tc.clear();else{var f=c.createBuffer();c.bindBuffer(34962,f);c.bufferData(34962,new Float32Array(d),b.d);var g=new Rm;b.b.push(g);a.e[e]={$:b,buffer:f,tc:g}}}
function co(a,b){var c=a.a,d=b.c();if(im(a.b,d))d=a.b.get(d),c.bindTexture(3553,d.xa),9729!=d.ee&&(c.texParameteri(3553,10240,9729),d.ee=9729),9729!=d.fe&&(c.texParameteri(3553,10240,9729),d.fe=9729);else{var e=c.createTexture();c.bindTexture(3553,e);c.texImage2D(3553,0,6408,6408,5121,b.ha());c.texParameteri(3553,10240,9729);c.texParameteri(3553,10241,9729);c.texParameteri(3553,10242,33071);c.texParameteri(3553,10243,33071);a.b.set(d,{xa:e,ee:9729,fe:9729})}}m=so.prototype;
m.rc=function(a){return a instanceof ok?new $n(this,a):a instanceof nk?new gn(this,a):a instanceof bn?new ko(this,a):null};m.v=function(){var a=this.a;gc(this.e,function(a){Qa(a.$.b,a.tc)});a.isContextLost()||(gc(this.e,function(b){a.deleteBuffer(b.buffer)}),gc(this.g,function(b){a.deleteProgram(b)}),gc(this.i,function(b){a.deleteShader(b)}),this.b.forEach(function(b){null===b||a.deleteTexture(b.xa)}));so.B.v.call(this)};
m.Le=function(a,b){for(var c=this.a,d;1024<this.b.T()-this.q;){d=this.b.a.bb;if(null===d)if(+this.b.a.bc==b.index)break;else--this.q;else c.deleteTexture(d.xa);this.b.pop()}};m.Bc=k("c");function ao(a,b,c){var d=x(b)+"/"+x(c);if(d in a.g)return a.g[d];var e=a.a,f=e.createProgram();e.attachShader(f,uo(a,b));e.attachShader(f,uo(a,c));e.linkProgram(f);return a.g[d]=f}
function uo(a,b){var c=x(b);if(c in a.i)return a.i[c];var d=a.a,e=d.createShader(b.N());d.shaderSource(e,b.ja());d.compileShader(e);return a.i[c]=e}m.Uf=function(a){a.U();this.s=this.o=null;this.e={};this.i={};this.g={};this.b.clear();this.q=0;gc(this.d,function(a){a.g()})};m.Ef=function(){to(this);Vj(this.f)};function to(a){a=a.a;a.activeTexture(33984);a.blendFuncSeparate(770,771,1,771);a.disable(2884);a.disable(2929);a.disable(3089)}
m.Nc=function(a){var b=this.a;if(b.isContextLost())return!1;if(null===a)return this.t&&(rg(this.c,!1),this.t=!1),!1;this.H=a.focus;this.b.set((-a.index).toString(),null);++this.q;var c=a.Lc,d,e,f,g,h;d=0;for(e=c.length;d<e;++d)f=c[d],g=fk(this,f),h=a.qa[x(f)],h.visible&&h.Qc&&g.Pa(a,h);d=a.size;if(this.G[0]!=d[0]||this.G[1]!=d[1])this.c.width=d[0],this.c.height=d[1],this.G=d;b.bindFramebuffer(36160,null);b.clearColor(0,0,0,0);b.clear(16384);b.enable(3042);b.viewport(0,0,d[0],d[1]);bo(this,this.W);
var l=null,n;d=0;for(e=c.length;d<e;++d)if(f=c[d],h=a.qa[x(f)],h.visible&&h.Qc){var q=h.brightness||1!=h.contrast||h.hue||1!=h.saturation,r;q?(g=mo.ia(),r=no.ia()):(g=po.ia(),r=qo.ia());g=ao(this,g,r);g!=l&&(b.useProgram(g),l=g,q?null===this.o?this.o=n=new oo(b,g):n=this.o:null===this.s?this.s=n=new ro(b,g):n=this.s,b.enableVertexAttribArray(n.a),b.vertexAttribPointer(n.a,2,5126,!1,16,0),b.enableVertexAttribArray(n.b),b.vertexAttribPointer(n.b,2,5126,!1,16,8),b.uniform1i(n.c,0));g=fk(this,f);b.uniformMatrix4fv(n.f,
!1,g.e);b.uniformMatrix4fv(n.e,!1,g.s);q&&b.uniformMatrix4fv(n.g,!1,fn(g,h.brightness,h.contrast,h.hue,h.saturation));b.uniform1f(n.d,h.opacity);b.bindTexture(3553,g.xa);b.drawArrays(5,0,4)}this.t||(rg(this.c,!0),this.t=!0);ek(a);1024<this.b.T()-this.q&&a.ib.push(y(this.Le,this));this.k.xb()||(a.ib.push(this.Q),a.ua=!0);hk(this,a)};var vo={},wo={yg:"canvas",Eg:"dom",vh:"webgl"},xo=["webgl","canvas","dom"];
function V(a){L.call(this);a=yo(a);this.e=new $e(this.dg,void 0,this);gb(this,this.e);this.Ae=Hg();this.Ce=Hg();this.Be=0;this.d=null;this.f=0;this.s=!1;this.o=this.Q=null;this.b=Gf("DIV","ol-viewport");this.b.style.position="relative";this.b.style.overflow="hidden";this.b.style.width="100%";this.b.style.height="100%";this.b.style.msTouchAction="none";yh&&(this.b.className="ol-touch");this.G=Gf("DIV","ol-overlaycontainer");J(this.G,["click","dblclick",yh?"touchstart":"mousedown"],jb);this.b.appendChild(this.G);
var b=new Ph(this);J(b,kc(Zh),this.ie,!1,this);gb(this,b);b=new Wf(p.document);J(b,"key",this.Zd,!1,this);gb(this,b);b=new Ag(this.b);J(b,"mousewheel",this.Zd,!1,this);gb(this,b);this.k=a.controls;this.Ra=a.interactions;this.H=a.overlays;this.i=new a.eg(this.b,this);gb(this,this.i);this.Fe=new Sf;J(this.Fe,"resize",this.ma,!1,this);this.t=null;this.g=[];this.Pb=[];this.ta=new sf(this.sf,0,this);this.nc=new Gh(y(this.Ze,this),y(this.yf,this));J(this,Vc("layergroup"),this.gf,!1,this);J(this,Vc("view"),
this.Cf,!1,this);J(this,Vc("size"),this.uf,!1,this);J(this,Vc("target"),this.xf,!1,this);this.dc(a.og);this.k.forEach(function(a){a.setMap(this)},this);this.H.forEach(function(a){a.d(this)},this)}F(V,L);m=V.prototype;m.Ge=function(a){this.k.push(a);a.setMap(this)};m.he=function(a){this.La().Ya().push(a)};m.He=function(a){this.H.push(a);a.d(this)};m.Ga=function(a){Oi(this);Array.prototype.push.apply(this.g,arguments)};m.v=function(){Of(this.b);hb(this.ta);V.B.v.call(this)};m.Xe=k("i");m.Mc=function(){return this.get("target")};
V.prototype.getTarget=V.prototype.Mc;function Oh(a,b){var c=a.d;if(null===c)return null;var d=b.slice();return cn(c.ne,d,d)}m=V.prototype;m.Re=k("k");m.We=k("H");m.Te=function(a){var b=null!=a.layers?a.layers:this.La().Sb();this.i.Ta(a.pixel,b,a.success,a.error)};m.Sd=function(a){var b=null!=a.layers?a.layers:this.La().Sb();gk(this.i,a.pixel,b,a.success,a.error)};m.Ue=k("Ra");m.La=function(){return this.get("layergroup")};V.prototype.getLayerGroup=V.prototype.La;V.prototype.lb=function(){return this.La().Ya()};
function Pi(a,b){var c=a.d;if(null===c)return null;var d=b.slice(0,2);return cn(c.Md,d,d)}V.prototype.c=function(){return this.get("size")};V.prototype.getSize=V.prototype.c;V.prototype.a=function(){return this.get("view")};V.prototype.getView=V.prototype.a;m=V.prototype;m.Ze=function(a,b,c,d){var e=this.d;if(!(null!==e&&b in e.Ob&&e.Ob[b][a.K.toString()]))return Infinity;a=c[0]-e.focus[0];c=c[1]-e.focus[1];return 65536*Math.log(d)+Math.sqrt(a*a+c*c)/d};
m.Zd=function(a,b){this.ie(new Nh(b||a.type,this,a))};m.ie=function(a){if(null!==this.d){"mouseout"==a.type||"touchend"==a.type?this.t=null:this.t=a.d();a.b=this.d;var b=this.Ra.a,c;if(!1!==K(this,a))for(c=b.length-1;0<=c&&b[c].Xa(a);c--);}};
m.sf=function(){var a=this.d,b=this.nc;if(!b.xb()){var c=16,d=c;if(null!==a){var e=a.L;if(e[0]||e[1])c=8,d=2}e=ic(a.Ob);c*=e;d*=e;if(b.d<c){Fh(b);c=Math.min(c-b.d,d,b.T());for(d=0;d<c;++d)e=Bh(b)[0],Cc(e,"change",b.g,!1,b),0==e.a&&(e.a=1,e.d=[Cc(e.b,"error",e.g,!1,e),Cc(e.b,"load",e.i,!1,e)],e.b.src=e.f);b.d+=c}}b=this.Pb;c=0;for(d=b.length;c<d;++c)b[c](this,a);b.length=0};m.uf=function(){Vj(this)};
m.xf=function(){var a=this.Mc(),a=t(a)?v(a)?document.getElementById(a):a:null;null===a?Of(this.b):a.appendChild(this.b);this.ma()};m.yf=function(){Oi(this)};m.Df=function(){Vj(this)};m.Cf=function(){null!==this.Q&&(Fc(this.Q),this.Q=null);var a=this.a();null!=a&&(this.Q=J(a,"change",this.Df,!1,this));Vj(this)};m.hf=function(){Vj(this)};m.gf=function(){null!==this.o&&(Fc(this.o),this.o=null);var a=this.La();null!=a&&(this.o=J(a,"change",this.hf,!1,this));Vj(this)};
m.ac=function(){var a=this.a(),b;if(b=t(a)){if(a=a.ac())a=null!=this.c();b=a}return b};function Vj(a){null==a.e.P&&(0===a.f?(a=a.e,of(a),a.od()):a.s=!0)}function Oi(a){0===a.f?null!=a.e.P||a.e.start():a.s=!0}m.Zf=function(a){if(t(this.k.remove(a)))return a.setMap(null),a};m.qe=function(a){return this.La().Ya().remove(a)};m.ag=function(a){if(t(this.H.remove(a)))return a.d(null),a};
m.dg=function(a){var b,c,d;if(0===this.f){var e=this.c();b=this.a();var f=t(b)?this.a().O():void 0,g=null;if(t(e)&&t(f)&&f.ac()){g=Sa(b.c);b=this.La().ld();var h=b.layers;d=b.qa;var l={},n;b=0;for(c=h.length;b<c;++b)n=h[b],l[x(n)]=d[b];d=ki(f);g={ua:!1,attributions:{},Md:this.Ae,extent:null,focus:null===this.t?d.center:this.t,index:this.Be++,Lc:h,qa:l,de:{},ne:this.Ce,ib:[],size:e,jg:this.nc,time:a,lc:{},D:d,L:g,Ob:{}}}a=this.g;b=e=0;for(c=a.length;b<c;++b)f=a[b],f(this,g)&&(a[e++]=f);a.length=e;
null!==g&&(g.extent=zd(d.center,d.resolution,d.rotation,g.size));this.d=g;this.i.Nc(g);this.s=!1;null!==g&&(g.ua&&Oi(this),Array.prototype.push.apply(this.Pb,g.ib),0!=this.g.length||(g.ua||g.L[0]||g.L[1])||K(this,new Mh("moveend",this)));K(this,new Mh("postrender",this,g));0!=this.ta.P||this.ta.start()}};m.gg=function(a){this.set("layergroup",a)};V.prototype.setLayerGroup=V.prototype.gg;V.prototype.W=function(a){this.set("size",a)};V.prototype.setSize=V.prototype.W;
V.prototype.De=function(a){this.set("target",a)};V.prototype.setTarget=V.prototype.De;V.prototype.Ee=function(a){this.set("view",a)};V.prototype.setView=V.prototype.Ee;V.prototype.ma=function(){var a=this.Mc(),a=t(a)?v(a)?document.getElementById(a):a:null;null===a?this.W(void 0):(a=og(a),this.W([a.width,a.height]))};function Di(a,b){++a.f;try{b.call(void 0)}finally{if(0===--a.f&&a.s){var c=a.e;of(c);c.od()}}}
function yo(a){var b={},c=a.layers instanceof bj?a.layers:new bj({layers:a.layers});b.layergroup=c;b.target=a.target;b.view=t(a.view)?a.view:new T;var c=dk,d;d=t(a.renderers)?a.renderers:t(a.renderer)?[a.renderer]:xo;var e=d.length,f,g;for(f=0;f<e;++f)if(g=d[f],"canvas"==g){if(Dm){c=Cm;break}}else if("dom"==g){c=Nm;break}else if("webgl"==g&&mn){c=so;break}d=t(a.controls)?ia(a.controls)?new M(Sa(a.controls)):a.controls:xi();e=t(a.interactions)?a.interactions:aj();a=t(a.overlays)?ia(a.overlays)?new M(Sa(a.overlays)):
a.overlays:new M;return{controls:d,interactions:e,overlays:a,eg:c,og:b}}vo.Ke=function(a){var b=p.location.search.substring(1);a=t(a)?a:new Ee(b);return Re(a,"renderers")?a.get("renderers").split(","):Re(a,"renderer")?[a.get("renderer")]:xo};ij();var zo={wg:"bottom-left",xg:"bottom-right",oh:"top-left",ph:"top-right"};function Ao(a){L.call(this);this.b=Jf("DIV");this.b.style.position="absolute";this.a={pc:"",Na:"",Qa:"",Wc:"",visible:!0};this.c=null;J(this,Vc("element"),this.ef,!1,this);J(this,Vc("map"),this.mf,!1,this);J(this,Vc("position"),this.qf,!1,this);J(this,Vc("positioning"),this.rf,!1,this);t(a.element)&&this.te(a.element);t(a.position)&&this.k(a.position);t(a.positioning)&&this.set("positioning",a.positioning)}F(Ao,L);
Ao.prototype.g=function(){return this.get("element")};Ao.prototype.getElement=Ao.prototype.g;Ao.prototype.e=function(){return this.get("map")};Ao.prototype.getMap=Ao.prototype.e;Ao.prototype.i=function(){return this.get("position")};Ao.prototype.getPosition=Ao.prototype.i;Ao.prototype.f=function(){return this.get("positioning")};Ao.prototype.getPositioning=Ao.prototype.f;m=Ao.prototype;m.ef=function(){Lf(this.b);var a=this.g();null!=a&&Kf(this.b,a)};
m.mf=function(){null!==this.c&&(Of(this.b),Fc(this.c),this.c=null);var a=this.e();null!=a&&(this.c=J(a,"postrender",this.Rf,!1,this),Bo(this),Kf(a.G,this.b))};m.Rf=function(){Bo(this)};m.qf=function(){Bo(this)};m.rf=function(){Bo(this)};m.te=function(a){this.set("element",a)};Ao.prototype.setElement=Ao.prototype.te;Ao.prototype.d=function(a){this.set("map",a)};Ao.prototype.setMap=Ao.prototype.d;Ao.prototype.k=function(a){this.set("position",a)};Ao.prototype.setPosition=Ao.prototype.k;
function Bo(a){var b=a.e(),c=a.i();if(t(b)&&b.ac()&&t(c)){var c=Pi(b,c),d=b.c(),b=a.b.style,e=a.f();if("bottom-right"==e||"top-right"==e){""!==a.a.Na&&(a.a.Na=b.left="");var f=Math.round(d[0]-c[0])+"px";a.a.Qa!=f&&(a.a.Qa=b.right=f)}else""!==a.a.Qa&&(a.a.Qa=b.right=""),f=Math.round(c[0])+"px",a.a.Na!=f&&(a.a.Na=b.left=f);"top-left"==e||"top-right"==e?(""!==a.a.pc&&(a.a.pc=b.bottom=""),c=Math.round(c[1])+"px",a.a.Wc!=c&&(a.a.Wc=b.top=c)):(""!==a.a.Wc&&(a.a.Wc=b.top=""),c=Math.round(d[1]-c[1])+"px",
a.a.pc!=c&&(a.a.pc=b.bottom=c));a.a.visible||(rg(a.b,!0),a.a.visible=!0)}else a.a.visible&&(rg(a.b,!1),a.a.visible=!1)};var Co;Co=!1;var Do=sb();Do&&(-1!=Do.indexOf("Firefox")||-1!=Do.indexOf("Camino")||-1!=Do.indexOf("iPhone")||-1!=Do.indexOf("iPod")||-1!=Do.indexOf("iPad")||-1!=Do.indexOf("Android")||-1!=Do.indexOf("Chrome")&&(Co=!0));var Eo=Co;var Fo=yb?"webkitfullscreenchange":"mozfullscreenchange";function Go(){var a=Af().a,b=a.body;return!!b.webkitRequestFullScreen||!!b.mozRequestFullScreen&&a.mozFullScreenEnabled}function Ho(){var a=Af().a;return!!a.webkitIsFullScreen||!!a.mozFullScreen};function Io(a){a=t(a)?a:{};this.b=t(a.className)?a.className:"ol-full-screen";var b=Gf("A",{href:"#fullScreen","class":this.b+"-"+Ho()});J(b,["click","touchend"],this.c,!1,this);J(p.document,Fo,this.f,!1,this);b=Gf("DIV",{"class":this.b+" ol-unselectable "+(Go()?"":"ol-unsupported")},b);li.call(this,{element:b,target:a.target});this.g=t(a.keys)?a.keys:!1}F(Io,li);
Io.prototype.c=function(a){Go()&&(a.U(),a=this.a,null!==a&&(Ho()?(a=Af().a,a.webkitCancelFullScreen?a.webkitCancelFullScreen():a.mozCancelFullScreen&&a.mozCancelFullScreen()):(a=a.Mc(),a=v(a)?document.getElementById(a):a,this.g?a.mozRequestFullScreenWithKeys?a.mozRequestFullScreenWithKeys():a.webkitRequestFullScreen&&a.ALLOW_KEYBOARD_INPUT&&Eo?a.webkitRequestFullScreen(a.ALLOW_KEYBOARD_INPUT):a.webkitRequestFullScreen?a.webkitRequestFullScreen():a.mozRequestFullScreen&&a.mozRequestFullScreen():a.webkitRequestFullScreen?
a.webkitRequestFullScreen():a.mozRequestFullScreen&&a.mozRequestFullScreen())))};Io.prototype.f=function(){var a=this.b+"-true",b=this.b+"-false",c=Pf(this.element);Ho()?xf(c,b,a):xf(c,a,b)};function Jo(a){a=t(a)?a:{};var b=Gf("DIV",{"class":t(a.className)?a.className:"ol-mouse-position"});li.call(this,{element:b,target:a.target});J(this,Vc("projection"),this.H,!1,this);t(a.coordinateFormat)&&this.s(a.coordinateFormat);t(a.projection)&&this.k(ke(a.projection));this.Q=t(a.undefinedHTML)?a.undefinedHTML:"";this.g=b.innerHTML;this.f=this.c=this.b=null}F(Jo,li);Jo.prototype.d=function(a){a=a.b;null===a?this.b=null:this.b!=a.D.projection&&(this.b=a.D.projection,this.c=null);Ko(this,this.f)};
Jo.prototype.H=function(){this.c=null};Jo.prototype.i=function(){return this.get("coordinateFormat")};Jo.prototype.getCoordinateFormat=Jo.prototype.i;Jo.prototype.fa=function(){return this.get("projection")};Jo.prototype.getProjection=Jo.prototype.fa;Jo.prototype.t=function(a){a=lg(a,this.a.b);this.f=[a.x,a.y];Ko(this,this.f)};Jo.prototype.G=function(){Ko(this,null);this.f=null};
Jo.prototype.setMap=function(a){Jo.B.setMap.call(this,a);null!==a&&(a=a.b,this.e.push(J(a,"mousemove",this.t,!1,this),J(a,"mouseout",this.G,!1,this)))};Jo.prototype.s=function(a){this.set("coordinateFormat",a)};Jo.prototype.setCoordinateFormat=Jo.prototype.s;Jo.prototype.k=function(a){this.set("projection",a)};Jo.prototype.setProjection=Jo.prototype.k;
function Ko(a,b){var c=a.Q;if(null!==b&&null!==a.b){if(null===a.c){var d=a.fa();a.c=t(d)?Od(a.b,d):me}d=Oh(a.a,b);null!==d&&(a.c(d,d),c=a.i(),c=t(c)?c(d):d.toString())}t(a.g)&&c==a.g||(a.element.innerHTML=c,a.g=c)};var Lo={xe:"degrees",Rg:"imperial",fh:"nautical",Xg:"metric",th:"us"};function Mo(a){a=a||{};var b=t(a.className)?a.className:"ol-scale-line";this.f=Gf("DIV",{"class":b+"-inner"});this.g=Gf("DIV",{"class":b+" ol-unselectable"},this.f);this.k=null;this.i=t(a.minWidth)?a.minWidth:64;this.c=!1;this.G=void 0;this.s="";this.b=null;li.call(this,{element:this.g,target:a.target});J(this,Vc("units"),this.Q,!1,this);this.H(a.units||"metric")}F(Mo,li);var No=[1,2,5];Mo.prototype.t=function(){return this.get("units")};
Mo.prototype.getUnits=Mo.prototype.t;Mo.prototype.d=function(a){a=a.b;null===a?this.k=null:this.k=a.D;Oo(this)};Mo.prototype.Q=function(){Oo(this)};Mo.prototype.H=function(a){this.set("units",a)};Mo.prototype.setUnits=Mo.prototype.H;
function Oo(a){var b=a.k;if(null===b)a.c&&(rg(a.g,!1),a.c=!1);else{var c=b.center,d=b.projection,b=d.b(b.resolution,c),e=d.Ab,f=a.t();"degrees"!=e||"metric"!=f&&"imperial"!=f?"ft"!=e&&"m"!=e||"degrees"!=f?a.b=null:(null===a.b&&(a.b=Od(d,ke("EPSG:4326"))),c=Math.cos(bd(a.b(c)[1])),d=Id.a,"ft"==e&&(d/=0.3048),b*=180/(Math.PI*c*d)):(a.b=null,c=Math.cos(bd(c[1])),b*=Math.PI*c*Id.a/180);c=a.i*b;e="";"degrees"==f?c<1/60?(e="\u2033",b*=3600):1>c?(e="\u2032",b*=60):e="\u00b0":"imperial"==f?0.9144>c?(e="in",
b/=0.0254):1609.344>c?(e="ft",b/=0.3048):(e="mi",b/=1609.344):"nautical"==f?(b/=1852,e="nm"):"metric"==f?1>c?(e="mm",b*=1E3):1E3>c?e="m":(e="km",b/=1E3):"us"==f&&(0.9144>c?(e="in",b*=39.37):1609.344>c?(e="ft",b/=0.30480061):(e="mi",b/=1609.3472));for(var f=3*Math.floor(Math.log(a.i*b)/Math.log(10)),g,h;;){g=No[f%3]*Math.pow(10,Math.floor(f/3));h=Math.round(g/b);if(h>=a.i)break;++f}g=g+e;a.s!=g&&(a.f.innerHTML=g,a.s=g);a.G!=h&&(a.f.style.width=h+"px",a.G=h);a.c||(rg(a.g,!0),a.c=!0)}};function Po(a){db.call(this);this.b=a;this.a={}}F(Po,db);var Qo=[];Po.prototype.Wa=function(a,b,c,d,e){ia(b)||(Qo[0]=b,b=Qo);for(var f=0;f<b.length;f++){var g=J(a,b[f],c||this,d||!1,e||this.b||this);this.a[g.key]=g}return this};Po.prototype.Ed=function(a,b,c,d,e){if(ia(b))for(var f=0;f<b.length;f++)this.Ed(a,b[f],c,d,e);else if(a=Hc(a,b,c||this,d,e||this.b||this))Fc(a),delete this.a[a.key];return this};function Ro(a){gc(a.a,Fc);a.a={}}Po.prototype.v=function(){Po.B.v.call(this);Ro(this)};
Po.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function So(a,b,c){Oc.call(this);this.target=a;this.d=b||a;this.b=c||new dg(NaN,NaN,NaN,NaN);this.c=Cf(a);this.a=new Po(this);gb(this,this.a);J(this.d,["touchstart","mousedown"],this.ve,!1,this)}F(So,Oc);var To=G||xb&&Mb("1.9.3");m=So.prototype;m.clientX=0;m.clientY=0;m.Vd=0;m.Wd=0;m.Xd=0;m.Yd=0;m.na=0;m.la=0;m.Nd=!0;m.tb=!1;m.be=0;m.Nf=0;m.Gf=!1;m.Fd=!1;
m.v=function(){So.B.v.call(this);Dc(this.d,["touchstart","mousedown"],this.ve,!1,this);Ro(this.a);To&&this.c.releaseCapture();this.d=this.target=null};function Uo(a){t(a.f)||(a.f=sg(a.target));return a.f}
m.ve=function(a){var b="mousedown"==a.type;if(!this.Nd||this.tb||b&&!Wb(a))K(this,"earlycancel");else{Vo(a);if(0==this.be)if(K(this,new Wo("start",this,a.clientX,a.clientY,a)))this.tb=!0,a.U();else return;else a.U();var b=this.c,c=b.documentElement,d=!To;this.a.Wa(b,["touchmove","mousemove"],this.pf,d);this.a.Wa(b,["touchend","mouseup"],this.wc,d);To?(c.setCapture(!1),this.a.Wa(c,"losecapture",this.wc)):this.a.Wa(b?b.parentWindow||b.defaultView:window,"blur",this.wc);G&&this.Gf&&this.a.Wa(b,"dragstart",
kb);this.g&&this.a.Wa(this.g,"scroll",this.Wf,d);this.clientX=this.Xd=a.clientX;this.clientY=this.Yd=a.clientY;this.Vd=a.rd;this.Wd=a.sd;this.Fd?(a=this.target,b=a.offsetLeft,c=a.offsetParent,c||"fixed"!=fg(a,"position")||(c=Cf(a).documentElement),c?(xb?(d=vg(c),b+=d.left):G&&8<=Ob&&(d=vg(c),b-=d.left),a=sg(c)?c.clientWidth-(b+a.offsetWidth):b):a=b):a=this.target.offsetLeft;this.na=a;this.la=this.target.offsetTop;this.e=Rf(Af(this.c));this.Nf=sa()}};
m.wc=function(a,b){Ro(this.a);To&&this.c.releaseCapture();if(this.tb){Vo(a);this.tb=!1;var c=Xo(this,this.na),d=Yo(this,this.la);K(this,new Wo("end",this,a.clientX,a.clientY,a,c,d,b||"touchcancel"==a.type))}else K(this,"earlycancel")};function Vo(a){var b=a.type;"touchstart"==b||"touchmove"==b?Ub(a,a.da.targetTouches[0],a.c):"touchend"!=b&&"touchcancel"!=b||Ub(a,a.da.changedTouches[0],a.c)}
m.pf=function(a){if(this.Nd){Vo(a);var b=(this.Fd&&Uo(this)?-1:1)*(a.clientX-this.clientX),c=a.clientY-this.clientY;this.clientX=a.clientX;this.clientY=a.clientY;this.Vd=a.rd;this.Wd=a.sd;if(!this.tb){var d=this.Xd-this.clientX,e=this.Yd-this.clientY;if(d*d+e*e>this.be)if(K(this,new Wo("start",this,a.clientX,a.clientY,a)))this.tb=!0;else{this.ec||this.wc(a);return}}c=Zo(this,b,c);b=c.x;c=c.y;this.tb&&K(this,new Wo("beforedrag",this,a.clientX,a.clientY,a,b,c))&&($o(this,a,b,c),a.U())}};
function Zo(a,b,c){var d=Rf(Af(a.c));b+=d.x-a.e.x;c+=d.y-a.e.y;a.e=d;a.na+=b;a.la+=c;b=Xo(a,a.na);a=Yo(a,a.la);return new yf(b,a)}m.Wf=function(a){var b=Zo(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;$o(this,a,b.x,b.y)};function $o(a,b,c,d){a.Fd&&Uo(a)?a.target.style.right=c+"px":a.target.style.left=c+"px";a.target.style.top=d+"px";K(a,new Wo("drag",a,b.clientX,b.clientY,b,c,d))}
function Xo(a,b){var c=a.b,d=isNaN(c.left)?null:c.left,c=isNaN(c.width)?0:c.width;return Math.min(null!=d?d+c:Infinity,Math.max(null!=d?d:-Infinity,b))}function Yo(a,b){var c=a.b,d=isNaN(c.top)?null:c.top,c=isNaN(c.height)?0:c.height;return Math.min(null!=d?d+c:Infinity,Math.max(null!=d?d:-Infinity,b))}function Wo(a,b,c,d,e,f,g,h){ib.call(this,a);this.clientX=c;this.clientY=d;this.d=e;this.left=t(f)?f:b.na;this.top=t(g)?g:b.la;this.b=b;this.a=!!h}F(Wo,ib);function ap(a){a=t(a)?a:{};this.b=void 0;this.c=bp;this.i=!1;this.f=null;a=t(a.className)?a.className:"ol-zoomslider";a=Gf("DIV",a+" ol-unselectable",Gf("DIV",a+"-thumb ol-unselectable"));null!==this.f&&(Ha(this.f,Fc),this.f=null);var b=new So(a.childNodes[0]);this.f=[J(b,["drag","end"],this.s,void 0,this)];this.g=b;J(a,["touchend","click"],this.k,!1,this);li.call(this,{element:a})}F(ap,li);var bp=0;ap.prototype.setMap=function(a){ap.B.setMap.call(this,a);null===a||Vj(a)};
ap.prototype.d=function(a){if(null!==a.b){if(!this.i){var b=this.element,c=Pf(b);var d=Cf(b),e=G&&b.currentStyle;e&&Qf(Af(d))&&"auto"!=e.width&&"auto"!=e.height&&!e.boxSizing?(d=wg(b,e.width,"width","pixelWidth"),b=wg(b,e.height,"height","pixelHeight"),b=new zf(d,b)):(e=new zf(b.offsetWidth,b.offsetHeight),d=ug(b,"padding"),b=vg(b),b=new zf(e.width-b.left-d.left-d.right-b.right,e.height-b.top-d.top-d.bottom-b.bottom));var e=kg(c),d=og(c),e=new dg(e.x,e.y,d.width,d.height),d=ug(c,"margin"),f=vg(c),
c=b.width-d.left-d.right-f.left-f.right-e.width,e=b.height-d.top-d.bottom-f.top-f.bottom-e.height;b.width>b.height?(this.c=1,c=new dg(0,0,c,0)):(this.c=bp,c=new dg(0,0,0,e));this.g.b=c||new dg(NaN,NaN,NaN,NaN);this.i=!0}a=a.b.D.resolution;a!==this.b&&(this.b=a,a=-1*(ji(this.a.a().O())(a)-1),c=this.g,b=Pf(this.element),1==this.c?gg(b,c.b.left+c.b.width*a):gg(b,c.b.left,c.b.top+c.b.height*a))}};ap.prototype.k=function(){};
ap.prototype.s=function(a){var b=this.a,c=b.a().O();if("drag"===a.type){var b=this.g.b,d=0,d=1===this.c?(a.left-b.left)/b.width:(a.top-b.top)/b.height;a=-1*($c(d,0,1)-1);a=ii(this.a.a().O())(a);a!==this.b&&(this.b=a,c.kb(a))}else b.Ga(vi({resolution:this.b,duration:200,easing:oi})),a=c.Ha(this.b),c.kb(a)};function cp(a){a=t(a)?a:{};this.b=t(a.extent)?a.extent:null;var b=Gf("DIV",{"class":(t(a.className)?a.className:"ol-zoom-extent")+" ol-unselectable"}),c=Gf("A",{href:"#zoomExtent"});b.appendChild(c);J(b,["touchend","click"],this.c,!1,this);li.call(this,{element:b,target:a.target})}F(cp,li);cp.prototype.c=function(a){a.U();a=this.a;var b=a.a().O(),c=null===this.b?b.fa().ba():this.b;b.jd(c,a.c())};function dp(a){L.call(this);this.a=a;J(this.a,"change",this.k,!1,this);J(this,Vc("value"),this.s,!1,this);J(this,Vc("valueAsNumber"),this.o,!1,this);J(this,Vc("checked"),this.i,!1,this)}F(dp,L);dp.prototype.b=function(){return this.get("checked")};dp.prototype.getChecked=dp.prototype.b;dp.prototype.d=function(){return this.get("value")};dp.prototype.getValue=dp.prototype.d;dp.prototype.c=function(){return this.get("valueAsNumber")};dp.prototype.getValueAsNumber=dp.prototype.c;
dp.prototype.f=function(a){this.set("value",a)};dp.prototype.setValue=dp.prototype.f;dp.prototype.g=function(a){this.set("valueAsNumber",a)};dp.prototype.setValueAsNumber=dp.prototype.g;dp.prototype.e=function(a){this.set("checked",a)};dp.prototype.setChecked=dp.prototype.e;dp.prototype.k=function(){"checkbox"===this.a.type||"radio"===this.a.type?this.e(this.a.checked):(this.f(this.a.value),this.g(this.a.valueAsNumber))};dp.prototype.i=function(){this.a.checked=this.b()?"checked":void 0};
dp.prototype.s=function(){this.a.value=this.d()};dp.prototype.o=function(){this.a.value=this.c()};function ep(a,b){this.x=a;this.y=b}F(ep,yf);ep.prototype.ca=function(){return new ep(this.x,this.y)};ep.prototype.scale=yf.prototype.scale;ep.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};function fp(a){a=t(a)?a:{};Mi.call(this);this.f=t(a.condition)?a.condition:Ki;this.a=this.b=void 0;this.d=0}F(fp,Mi);fp.prototype.Yb=function(a){var b=a.a;a=a.map;var c=a.c(),c=new ep(b.Td-c[0]/2,c[1]/2-b.Ud),b=Math.atan2(c.y,c.x),c=Math.sqrt(c.x*c.x+c.y*c.y),d=a.a().O(),e=ki(d);Oi(a);t(this.b)&&Ci(a,d,e.rotation-(b-this.b));this.b=b;t(this.a)&&Fi(a,d,this.a*(e.resolution/c));t(this.a)&&(this.d=this.a/c);this.a=c};
fp.prototype.Zb=function(a){var b=a.map,c=b.a().O(),d=ki(c),e=this.d-1;Di(b,function(){var a=d.rotation,a=c.qc(a,0);Ci(b,c,a,void 0,void 0);a=d.resolution;a=c.Ha(a,0,e);Fi(b,c,a,void 0,400)});this.d=0;return!0};fp.prototype.Gb=function(a){return this.f(a)?(this.a=this.b=void 0,!0):!1};function gp(a){Mi.call(this);a=t(a)?a:{};this.i=t(a.layerFilter)?a.layerFilter:null;this.f=null;this.b=!1;this.d=t(a.pixelTolerance)?a.pixelTolerance:20;this.a=null;this.e=0}F(gp,Mi);m=gp.prototype;m.$c=function(a){var b=a.target;a=a.features;for(var c=0,d=a.length;c<d;++c){var e=a[c],f=e.u();if(f instanceof km)for(var g=0,h=f.n.length;g<h;++g)hp(this,b,e,f.n[g],[[f.n,g]]);else hp(this,b,e,f)}};
function ip(a,b){var c=b.Mb,d=c.layer,e=d.nb;if(null===e.Za){e.Za=new xl;var f=new N;f.Da="hidden";f.ra(new nm([NaN,NaN]));bm(d,[f]);e.Yc=f}a.$c({target:d,features:kc(c.Rc)});J(d,"add",a.$c,!1,a);J(d,"remove",a.$f,!1,a)}
function hp(a,b,c,d,e){var f=x(c),g=b.nb.Za,h;if(d instanceof nm)a=d.p(),b=[[a,a],c,d,NaN],t(e)&&b.push(e),Al(g,d.ea(),b,f);else if(d instanceof lm||d instanceof pm){h=d.p();for(var l=0,n=h.length-1;l<n;++l)a=h.slice(l,l+2),b=[a,c,d,l],e&&b.push(e),Al(g,pd(a),b,f)}else if(d instanceof rm)for(e=0,f=d.a.length;e<f;++e)hp(a,b,c,d.a[e],[d.a,e])}
m.Gb=function(){this.a=[];for(var a=0,b=this.f.length;a<b;++a){var c=this.f[a].Mb.layer;if(null!==c){var d=c.nb,e=d.Yc;if(null!==e&&"hidden"!=e.Da)for(var f=e.u().p(),g=pd([f]),d=d.Za.search(g),g=0,h=d.length;g<h;++g){var l=d[g],n=l[0];if("temporary"==e.Da){for(var n=n[0],q=!0,r=n.length-1;0<=r;--r)if(n[r]!=f[r]){q=!1;break}q?this.a.push([c,l,0]):this.a.push([c,l,1])}else{var n=c,w=l,l=f,q=w[0],r=w[1],s=w[2],B=w[3],z=s.p();z.splice(B+1,0,l);var u=s,s=new s.constructor(z),z=void 0;4<w.length?(z=w[4],
z[0][z[1]]=s,r.u().wb()):r.ra(s);var A=n.nb.Za;A.remove(pd(q),w);for(var w=x(r),E=A.search(s.ea(),w),D=0,R=E.length;D<R;++D){var O=E[D];O[2]===u&&(O[2]=s,O[3]>B&&++O[3])}u=[q[0],l];E=[u,r,s,B];t(z)&&E.push(z);Al(A,pd(u),E,w);this.a.push([n,E,1]);u=[l,q[1]];E=[u,r,s,B+1];t(z)&&E.push(z);Al(A,pd(u),E,w);this.a.push([n,E,0])}}}}return this.b};
m.Yb=function(a){a=a.d();for(var b=0,c=this.a.length;b<c;++b){var d=this.a[b],e=d[0],f=d[1],g=f[1],h=f[2],d=d[2];h.set(f[3]+d,0,a[0]);h.set(f[3]+d,1,a[1]);g.u().wb();var h=e.nb,l=h.Yc,n=l.u(),q=f[0];h.Za.remove(pd(q),f);q[d]=a;n.set(0,a[0]);n.set(1,a[1]);Al(h.Za,pd(q),f,x(g));dm(e,[g,l])}};m.Xa=function(a){var b=a.map.a();Sa(b.c)[1]||(this.c||"mousemove"!=a.type)||jp(this,a);gp.B.Xa.call(this,a);return!this.b};
function jp(a,b){function c(a,b){return md(g,a[0])[2]-md(g,b[0])[2]}var d=b.map,e=Ka(d.La().Ya().a,a.Hf);null===a.i||(e=Ka(e,a.i));a.f=e;var f=b.e(),g=Oh(d,f),h=Oh(d,[f[0]-a.d,f[1]+a.d]),f=Oh(d,[f[0]+a.d,f[1]-a.d]),h=pd([h,f]),l;a.b=!1;for(f=e.length-1;0<=f;--f){l=e[f];var n=l.Mb.layer;if(null!==n){ha(Hc(n,"add",a.$c,!1,a))&&ip(a,l);var q=n.nb;l=q.Yc;var q=q.Za.search(h),r="hidden";if(0<q.length){q.sort(c);var q=q[0][0],w=l.u(),s=md(g,q),r=Pi(d,s),B=Pi(d,q[0]),z=Pi(d,q[1]),B=ld(r,B),z=ld(r,z),u=Math.sqrt(Math.min(B,
z)),r="future";10>=u&&(s=B>z?q[1]:q[0],r="temporary");w.set(0,s[0]);w.set(1,s[1]);dm(n,[l]);a.b=!0}l.Da!=r&&n.Sc(r,[l])}}}m.Hf=function(a){return!(a instanceof $l&&a.o)};m.$f=function(a){var b=a.target.nb.Za;a=a.features;for(var c=0,d=a.length;c<d;++c)for(var e=a[c],e=b.search(e.u().ea(),x(e)),f=e.length-1;0<=f;--f){var g=e[f];b.remove(pd(g[0]),g)}};function kp(a){a=t(a)?a:{};this.b=t(a.condition)?a.condition:Ii;this.a=t(a.layerFilter)?a.layerFilter:null}F(kp,Bi);function lp(a,b){var c=a.Mb,d=new N(b.pb());d.ra(b.u().ca());d.Ja=b.Ja;d.b=b.Eb();d.Da="selected";c.gd[x(d)]=b;return c.Rc[x(b)]=d}
kp.prototype.Xa=function(a){if(this.b(a)){var b=a.map,c=b.La().Sb();null===this.a||(c=Ka(c,this.a));var d=!Ki(a);b.Sd({layers:c,pixel:a.e(),success:function(a){for(var f=c,g=0,h=a.length;g<h;++g){var l=f[g],n=l.Mb,q=n.layer;null===q&&(q=new $l({source:new ul({parser:null}),style:l instanceof $l?l.k:null}),q.o=!0,n.layer=q);-1==Ga(b.lb().a,q)&&b.he(q);var r=a[g],w=r.length,s=[],B=[],z=[],u=[],A=n.Rc,E=n.gd,n={};H(n,A);var D;if(d)for(var R in E)D=E[R],z.push(D),u.push(mp(l,D));for(var O=0;O<w;++O)D=
r[O],E=x(D),A[E]?(z.push(D),u.push(mp(l,D))):E in n||(s.push(D),B.push(lp(l,D)));la(l.Sc)&&(l.Sc("hidden",s),l.Sc("default",z));l=q;r=qd();z=z=void 0;w=0;for(s=u.length;w<s;++w)z=u[w],l.a.remove(z),z=z.u(),null===z||wd(r,z.ea());K(l,{extent:r,features:u,type:"remove"});bm(q,B);0==ic(A)&&b.qe(q)}}})}return!0};function mp(a,b){var c=a.Mb,d=x(b),e=c.Rc,f=e[d];delete e[d];delete c.gd[x(f)];return f};function np(a){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(a,"application/xml");if("undefined"!=typeof ActiveXObject){var b=new ActiveXObject("MSXML2.DOMDocument");if(b){b.resolveExternals=!1;b.validateOnParse=!1;try{b.setProperty("ProhibitDTD",!0),b.setProperty("MaxXMLSize",2048),b.setProperty("MaxElementDepth",256)}catch(c){}}b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");}
function op(a){if("undefined"!=typeof XMLSerializer)return(new XMLSerializer).serializeToString(a);if(a=a.xml)return a;throw Error("Your browser does not support serializing XML documents");};function pp(){};function qp(){p.ActiveXObject&&(this.b=new ActiveXObject("Microsoft.XMLDOM"));this.S={ya:/^\s*|\s*$/g,bg:/\s*/g,Nb:/\s+/,Cd:/\s*,\s*/g}}F(qp,pp);m=qp.prototype;m.$a=function(a,b){b||(b={});var c=this.j[a.namespaceURI]||this.j[this.A];if(c){var d=a.localName||a.nodeName.split(":").pop();(c=c[d]||c["*"])&&c.apply(this,[a,b])}return b};function W(a,b,c){c||(c={});b=b.childNodes;for(var d,e=0,f=b.length;e<f;++e)d=b[e],1==d.nodeType&&a.$a(d,c)}
function X(a){var b="";if(a)for(a=a.firstChild;a;a=a.nextSibling)switch(a.nodeType){case 3:case 4:b+=a.nodeValue}return b}m.getAttributeNS=function(a,b,c){var d="";if(a.getAttributeNS)d=a.getAttributeNS(b,c)||"";else{var e=null;if(a.getAttributeNodeNS)e=a.getAttributeNodeNS(b,c);else{a=a.attributes;for(var f,g,h=0,l=a.length;h<l;++h)if(f=a[h],f.namespaceURI==b&&(g=f.prefix?f.prefix+":"+c:c,g==f.nodeName)){e=f;break}}if(b=e)d=b.nodeValue}return d};
m.createElementNS=function(a,b){var c=b?b:this.A;return this.b?this.b.createNode(1,a,c):document.createElementNS(c,a)};function Y(a,b,c,d,e){var f=null;t(a.a)&&(f=a.a[d?d:a.A][b].apply(a,[c]),e&&f&&e.appendChild(f));return f}m.createTextNode=function(a){return this.b?this.b.createTextNode(a):document.createTextNode(a)};
m.setAttributeNS=function(a,b,c,d){if(a.setAttributeNS)a.setAttributeNS(b,c,d);else if(this.b)b?(b=a.ownerDocument.createNode(2,c,b),b.nodeValue=d,a.setAttributeNode(b)):a.setAttribute(c,d);else throw Error("setAttributeNS not implemented");};function rp(a,b){if(a.b)return b.xml;if(1==b.nodeType){var c=document.implementation.createDocument("","",null);c.importNode?c.appendChild(c.importNode(b,!0)):c.appendChild(b);return op(c)}return op(b)}
m.createDocumentFragment=function(){return this.b?this.b.createDocumentFragment():document.createDocumentFragment()};function sp(a){a=t(a)?a:{};this.extractAttributes=t(a.extractAttributes)?a.extractAttributes:!0;this.extractWaypoints=t(a.extractWaypoints)?a.extractWaypoints:!0;this.extractTracks=t(a.extractTracks)?a.extractTracks:!0;this.extractRoutes=t(a.extractRoutes)?a.extractRoutes:!0;this.creator=t(a.creator)?a.creator:"OpenLayers";this.defaultDesc=t(a.defaultDesc)?a.defaultDesc:"No description available";this.A="http://www.topografix.com/GPX/1/1";this.schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd";
this.j={"http://www.topografix.com/GPX/1/1":{gpx:function(a,c){t(c.features)||(c.features=[]);W(this,a,c)},wpt:function(a,c){if(this.extractWaypoints){var d={},e=[parseFloat(a.getAttribute("lon")),parseFloat(a.getAttribute("lat"))];W(this,a,d);var d=new N(d),f;if(this.ga){var g=this.ga.aa;g&&(f=g(d,"point"))}e=new nm(e,f);d.ra(e);c.features.push(d)}},rte:function(a,c){if(this.extractRoutes||c.Me){var d={properties:{},geometry:{type:"linestring",coordinates:[]}};W(this,a,d);var e=new N(d.properties),
f;if(this.ga){var g=this.ga.aa;g&&(f=g(e,"linestring"))}d=new lm(d.geometry.coordinates,f);e.ra(d);c.features.push(e)}},rtept:function(a,c){var d=[parseFloat(a.getAttribute("lon")),parseFloat(a.getAttribute("lat"))];c.geometry.coordinates.push(d)},trk:function(a,c){if(this.extractTracks){var d=this.j[this.A];c.Me=!0;d.rte.apply(this,arguments)}},trkseg:function(a,c){W(this,a,c)},trkpt:function(a,c){this.j[this.A].rtept.apply(this,arguments)},"*":function(a,c){if(!0===this.extractAttributes){var d=
a.childNodes.length;1!==d&&2!==d||3!==a.firstChild.nodeType&&4!==a.firstChild.nodeType||this.j[this.A]._attribute.apply(this,arguments)}},_attribute:function(a,c){var d=a.localName||a.nodeName.split(":").pop(),e=X(a);c.properties?c.properties[d]=e.replace(this.S.ya,""):c[d]=e.replace(this.S.ya,"")}}};this.j["http://www.topografix.com/GPX/1/0"]=this.j[this.A];this.a={"http://www.topografix.com/GPX/1/1":{_feature:function(a){var c=a.u();if(c instanceof nm)return Y(this,"wpt",a);if(c instanceof lm||
c instanceof mm||c instanceof rm)return Y(this,"trk",a)},wpt:function(a){var c=this.createElementNS("wpt"),d=a.u().p();c.setAttribute("lon",d[0]);c.setAttribute("lat",d[1]);d=a.pb();a=d.name||x(a).toString();Y(this,"name",a,void 0,c);Y(this,"desc",d.description||this.defaultDesc,void 0,c);return c},trk:function(a){var c=a.pb(),d=this.createElementNS("trk"),e=c.name||x(a).toString();Y(this,"name",e,void 0,d);Y(this,"desc",c.description||this.defaultDesc,void 0,d);c=a.u();if(c instanceof lm)Y(this,
"trkseg",a.u(),void 0,d);else if(c instanceof mm)for(a=0,e=c.n.length;a<e;++a)Y(this,"trkseg",c.n[a],void 0,d);else if(c instanceof rm)for(a=0,e=c.a.length;a<e;++a)Y(this,"trkseg",c.a[a],void 0,d);return d},trkseg:function(a){var c=this.createElementNS("trkseg");a=a.p();for(var d=0,e=a.length;d<e;++d)Y(this,"trkpt",a[d],void 0,c);return c},trkpt:function(a){var c=this.createElementNS("trkpt");c.setAttribute("lon",a[0]);c.setAttribute("lat",a[1]);return c},metadata:function(a){var c=this.createElementNS("metadata");
t(a.name)&&Y(this,"name",a.name,void 0,c);t(a.desc)&&Y(this,"desc",a.desc,void 0,c);t(a.author)&&Y(this,"author",a.author,void 0,c);return c},name:function(a){var c=this.createElementNS("name");c.appendChild(this.createTextNode(a));return c},desc:function(a){var c=this.createElementNS("desc");c.appendChild(this.createTextNode(a));return c},author:function(a){var c=this.createElementNS("author");c.appendChild(this.createTextNode(a));return c}}};qp.call(this)}F(sp,qp);
sp.prototype.F=function(a){v(a)&&(a=np(a));a&&9==a.nodeType&&(a=a.documentElement);var b={metadata:{projection:"EPSG:4326"}};this.$a(a,b);return b};sp.prototype.ic=function(a,b){this.ga=b;return this.F(a)};sp.prototype.hc=function(a,b){this.ga=b;return this.F(a)};
sp.prototype.write=function(a){var b=ia(a.features)?a.features:[a.features],c=this.createElementNS("gpx");c.setAttribute("version","1.1");c.setAttribute("creator",this.creator);this.setAttributeNS(c,"http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.schemaLocation);t(a.metadata)&&Y(this,"metadata",a.metadata,void 0,c);a=0;for(var d=b.length;a<d;a++)Y(this,"_feature",b[a],void 0,c);return rp(this,c)};function tp(a){km.call(this);this.n=a;for(var b=0,c=0,d=a.length;c<d;++c)t(b)&&(b=a[c].dimension);this.dimension=b}F(tp,km);tp.prototype.N=aa("geometrycollection");function up(){}F(up,pp);fa(up);up.prototype.F=function(a){a=JSON.parse(a);return vp(this,a)};up.prototype.ic=function(a,b){var c=JSON.parse(a);return wp(this,c,b)};up.prototype.hc=function(a,b){return wp(this,a,b)};
function vp(a,b,c){if("FeatureCollection"===b.type){a=b.features;b=a.length;var d=Array(b),e;for(e=0;e<b;++e)d[e]=xp(a[e],c);c=d}else if("Feature"===b.type)c=xp(b,c);else if("GeometryCollection"===b.type){b=b.geometries;d=b.length;e=Array(d);var f;for(f=0;f<d;++f)e[f]=vp(a,b[f],c);c=e}else c=xp({type:"Feature",geometry:b},c).u();return c}
function wp(a,b,c){c=vp(a,b,c);a=[];var d;if(c instanceof N)a=[c];else if(c instanceof Ed)d=new N,d.ra(c),a=[d];else if(ia(c))for(var e,f,g=0,h=c.length;g<h;++g)if(e=c[g],f=f||e instanceof Ed)d=new N,d.ra(e),a[g]=d;else{a=c;break}f="EPSG:4326";null!=b.crs&&(b=b.crs,"name"===b.type&&(f=b.properties.name));return{features:a,metadata:{projection:f}}}
function xp(a,b){var c=a.geometry,d=null,e=b||{},f=new N(a.properties);t(a.id)&&(f.Ja=a.id);if(c){var d=c.type,e=e.aa,g;e&&(g=e(f,nc[d]));switch(d){case "Point":d=new nm(c.coordinates,g);break;case "LineString":d=new lm(c.coordinates,g);break;case "Polygon":d=new rm(c.coordinates,g);break;case "MultiPoint":d=new om(c.coordinates,g);break;case "MultiLineString":d=new mm(c.coordinates,g);break;case "MultiPolygon":d=new sm(c.coordinates,g);break;default:throw Error("Bad geometry type: "+d);}f.ra(d)}return f}
function yp(a){var b=a.N();return{type:mc(function(a){return a===b}),coordinates:a.p()}}function zp(a){var b=a.u();a=a.pb();return{type:"Feature",properties:hc(a,function(a){return!(a instanceof Ed)}),geometry:yp(b)}}
up.prototype.write=function(a){var b;if(a instanceof tp){b=[];for(var c=0,d=a.n.length;c<d;++c)b.push(yp(a.n[c]));b={type:"GeometryCollection",geometries:b}}else if(a instanceof Ed)b=yp(a);else if(a instanceof N)b=zp(a);else if(ia(a)){b=[];c=0;for(d=a.length;c<d;++c)b.push(zp(a[c]));b={type:"FeatureCollection",features:b}}return JSON.stringify(b)};var nc={Point:"point",LineString:"linestring",Polygon:"polygon",MultiPoint:"multipoint",MultiLineString:"multilinestring",MultiPolygon:"multipolygon",GeometryCollection:"geometrycollection"};/*
Portions of this code are from MochiKit, received by
The Closure Authors under the MIT license. All other code is Copyright
2005-2009 The Closure Authors. All Rights Reserved.
*/
function Ap(a,b){this.c=[];this.k=a;this.g=b||null}m=Ap.prototype;m.ob=!1;m.Xb=!1;m.bd=!1;m.Je=!1;m.Bd=!1;m.cd=0;m.cancel=function(a){if(this.ob)this.b instanceof Ap&&this.b.cancel();else{if(this.a){var b=this.a;delete this.a;a?b.cancel(a):(b.cd--,0>=b.cd&&b.cancel())}this.k?this.k.call(this.g,this):this.Bd=!0;this.ob||this.Db(new Bp(this))}};m.Ld=function(a,b){this.bd=!1;Cp(this,a,b)};function Cp(a,b,c){a.ob=!0;a.b=c;a.Xb=!b;Dp(a)}function Ep(a){if(a.ob){if(!a.Bd)throw new Fp(a);a.Bd=!1}}
m.aa=function(a){Ep(this);Cp(this,!0,a)};m.Db=function(a){Ep(this);Cp(this,!1,a)};function Gp(a,b,c){return Hp(a,b,null,c)}function Hp(a,b,c,d){a.c.push([b,c,d]);a.ob&&Dp(a);return a}function Ip(a){return Ma(a.c,function(a){return la(a[1])})}
function Dp(a){a.f&&(a.ob&&Ip(a))&&(p.clearTimeout(a.f),delete a.f);a.a&&(a.a.cd--,delete a.a);for(var b=a.b,c=!1,d=!1;a.c.length&&!a.bd;){var e=a.c.shift(),f=e[0],g=e[1],e=e[2];if(f=a.Xb?g:f)try{var h=f.call(e||a.g,b);t(h)&&(a.Xb=a.Xb&&(h==b||h instanceof Error),a.b=b=h);b instanceof Ap&&(d=!0,a.bd=!0)}catch(l){b=l,a.Xb=!0,Ip(a)||(c=!0)}}a.b=b;d&&(Hp(b,y(a.Ld,a,!0),y(a.Ld,a,!1)),b.Je=!0);c&&(a.f=p.setTimeout(We(b),0))}function Fp(a){ta.call(this);this.a=a}F(Fp,ta);Fp.prototype.message="Deferred has already fired";
Fp.prototype.name="AlreadyCalledError";function Bp(a){ta.call(this);this.a=a}F(Bp,ta);Bp.prototype.message="Deferred was canceled";Bp.prototype.name="CanceledError";function Jp(a,b,c,d,e,f){Ap.call(this,e,f);this.e=a;this.d=[];this.R=!!b;this.s=!!c;this.o=!!d;for(b=this.q=0;b<a.length;b++)Hp(a[b],y(this.i,this,b,!0),y(this.i,this,b,!1));0!=a.length||this.R||this.aa(this.d)}F(Jp,Ap);Jp.prototype.i=function(a,b,c){this.q++;this.d[a]=[b,c];this.ob||(this.R&&b?this.aa([a,c]):this.s&&!b?this.Db(c):this.q==this.e.length&&this.aa(this.d));this.o&&!b&&(c=null);return c};Jp.prototype.Db=function(a){Jp.B.Db.call(this,a);for(a=0;a<this.e.length;a++)this.e[a].cancel()};
function Kp(a){return Gp(new Jp(a,!1,!0),function(a){for(var c=[],d=0;d<a.length;d++)c[d]=a[d][1];return c})};var Lp;
Lp={e:["BC","AD"],d:["Before Christ","Anno Domini"],g:"JFMAMJJASOND".split(""),ec:"JFMAMJJASOND".split(""),f:"January February March April May June July August September October November December".split(" "),s:"January February March April May June July August September October November December".split(" "),q:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),G:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),ta:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),Q:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
o:"Sun Mon Tue Wed Thu Fri Sat".split(" "),H:"Sun Mon Tue Wed Thu Fri Sat".split(" "),R:"SMTWTFS".split(""),t:"SMTWTFS".split(""),k:["Q1","Q2","Q3","Q4"],i:["1st quarter","2nd quarter","3rd quarter","4th quarter"],a:["AM","PM"],b:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],W:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],c:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],ye:6,ma:[5,6],ze:5};var Mp=/^(\d{4})(?:(?:-?(\d{2})(?:-?(\d{2}))?)|(?:-?(\d{3}))|(?:-?W(\d{2})(?:-?([1-7]))?))?$/,Np=/^(\d{2})(?::?(\d{2})(?::?(\d{2})(\.\d+)?)?)?$/,Op=/Z|(?:([-+])(\d{2})(?::?(\d{2}))?)$/;
function Pp(a){var b=new Qp(2E3);a=ua(a);a=a.split(-1==a.indexOf("T")?" ":"T");var c;var d=a[0].match(Mp);if(d){var e=Number(d[2]),f=Number(d[3]),g=Number(d[4]);c=Number(d[5]);var h=Number(d[6])||1;b.a.setFullYear(Number(d[1]));g?(b.a.setDate(1),b.a.setMonth(0),b.add(new Rp(Sp,g-1))):c?(b.a.setMonth(0),b.a.setDate(1),d=b.a.getDay()||7,b.add(new Rp(Sp,(4>=d?1-d:8-d)+(Number(h)+7*(Number(c)-1))-1))):(e&&(b.a.setDate(1),b.a.setMonth(e-1)),f&&b.a.setDate(f));c=!0}else c=!1;c&&!(c=2>a.length)&&(a=a[1],
c=a.match(Op),h=0,c&&("Z"!=c[0]&&(h=60*c[2]+Number(c[3]),h*="-"==c[1]?1:-1),h-=b.a.getTimezoneOffset(),a=a.substr(0,a.length-c[0].length)),(c=a.match(Np))?(b.a.setHours(Number(c[1])),b.a.setMinutes(Number(c[2])||0),b.a.setSeconds(Number(c[3])||0),b.a.setMilliseconds(c[4]?1E3*c[4]:0),0!=h&&b.a.setTime(b.getTime()+6E4*h),c=!0):c=!1);return c?b:null}
function Rp(a,b,c,d,e,f){v(a)?(this.f=a==Tp?b:0,this.d=a==Up?b:0,this.a=a==Sp?b:0,this.b=a==Vp?b:0,this.c=a==Wp?b:0,this.e=a==Xp?b:0):(this.f=a||0,this.d=b||0,this.a=c||0,this.b=d||0,this.c=e||0,this.e=f||0)}Rp.prototype.ca=function(){return new Rp(this.f,this.d,this.a,this.b,this.c,this.e)};var Tp="y",Up="m",Sp="d",Vp="h",Wp="n",Xp="s";Rp.prototype.add=function(a){this.f+=a.f;this.d+=a.d;this.a+=a.a;this.b+=a.b;this.c+=a.c;this.e+=a.e};
function Yp(a,b,c){ka(a)?(this.a=new Date(a,b||0,c||1),Zp(this,c||1)):ma(a)?(this.a=new Date(a.getFullYear(),a.getMonth(),a.getDate()),Zp(this,a.getDate())):(this.a=new Date(sa()),this.a.setHours(0),this.a.setMinutes(0),this.a.setSeconds(0),this.a.setMilliseconds(0))}m=Yp.prototype;m.xc=Lp.ye;m.yc=Lp.ze;m.ca=function(){var a=new Yp(this.a);a.xc=this.xc;a.yc=this.yc;return a};m.getFullYear=function(){return this.a.getFullYear()};m.getMonth=function(){return this.a.getMonth()};m.getDate=function(){return this.a.getDate()};
m.getTime=function(){return this.a.getTime()};function $p(a){a=a.a.getTimezoneOffset();if(0==a)a="Z";else{var b=Math.abs(a)/60,c=Math.floor(b),b=60*(b-c);a=(0<a?"-":"+")+Da(c)+":"+Da(b)}return a}m.set=function(a){this.a=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
m.add=function(a){if(a.f||a.d){var b=this.getMonth()+a.d+12*a.f,c=this.getFullYear()+Math.floor(b/12),b=b%12;0>b&&(b+=12);var d;a:{switch(b){case 1:d=0!=c%4||0==c%100&&0!=c%400?28:29;break a;case 5:case 8:case 10:case 3:d=30;break a}d=31}d=Math.min(d,this.getDate());this.a.setDate(1);this.a.setFullYear(c);this.a.setMonth(b);this.a.setDate(d)}a.a&&(a=new Date((new Date(this.getFullYear(),this.getMonth(),this.getDate(),12)).getTime()+864E5*a.a),this.a.setDate(1),this.a.setFullYear(a.getFullYear()),
this.a.setMonth(a.getMonth()),this.a.setDate(a.getDate()),Zp(this,a.getDate()))};m.Ec=function(a,b){return[this.getFullYear(),Da(this.getMonth()+1),Da(this.getDate())].join(a?"-":"")+(b?$p(this):"")};m.toString=function(){return this.Ec()};function Zp(a,b){a.getDate()!=b&&a.a.setUTCHours(a.a.getUTCHours()+(a.getDate()<b?1:-1))}m.valueOf=function(){return this.a.valueOf()};function Qp(a,b,c,d,e,f,g){this.a=ka(a)?new Date(a,b||0,c||1,d||0,e||0,f||0,g||0):new Date(a?a.getTime():sa())}F(Qp,Yp);
Qp.prototype.add=function(a){Yp.prototype.add.call(this,a);a.b&&this.a.setHours(this.a.getHours()+a.b);a.c&&this.a.setMinutes(this.a.getMinutes()+a.c);a.e&&this.a.setSeconds(this.a.getSeconds()+a.e)};Qp.prototype.Ec=function(a,b){var c=Yp.prototype.Ec.call(this,a);return a?c+" "+Da(this.a.getHours())+":"+Da(this.a.getMinutes())+":"+Da(this.a.getSeconds())+(b?$p(this):""):c+"T"+Da(this.a.getHours())+Da(this.a.getMinutes())+Da(this.a.getSeconds())+(b?$p(this):"")};Qp.prototype.toString=function(){return this.Ec()};
Qp.prototype.ca=function(){var a=new Qp(this.a);a.xc=this.xc;a.yc=this.yc;return a};function aq(a){this.d=a.url instanceof pk?a.url:new U(a.url);this.b=t(a.width)?a.width instanceof pk?a.width:new U(a.width):null;this.a=t(a.height)?a.height instanceof pk?a.height:new U(a.height):null;this.c=t(a.opacity)?a.opacity instanceof pk?a.opacity:new U(a.opacity):new U(bq);this.e=t(a.rotation)?a.rotation instanceof pk?a.rotation:new U(a.rotation):new U(cq);this.f=t(a.xOffset)?a.xOffset instanceof pk?a.xOffset:new U(a.xOffset):new U(dq);this.g=t(a.yOffset)?a.yOffset instanceof pk?a.yOffset:
new U(a.yOffset):new U(eq)}aq.prototype.eb=function(a){var b;a instanceof N&&(b=a,a=(a=b.u())?a.N():null);var c=null;if("point"===a||"multipoint"===a){a=Wk(this.d,b);var d;null===this.b||(d=Number(Wk(this.b,b)));var e;null===this.a||(e=Number(Wk(this.a,b)));var c=Number(Wk(this.c,b)),f=Number(Wk(this.e,b)),g=Number(Wk(this.f,b));b=Number(Wk(this.g,b));c=new tm({url:a,width:d,height:e,opacity:c,rotation:f,xOffset:g,yOffset:b})}return c};var bq=1,cq=0,dq=0,eq=0;function fq(a){a=t(a)?a:{};this.extractAttributes=t(a.extractAttributes)?a.extractAttributes:!0;this.extractStyles=t(a.extractStyles)?a.extractStyles:!1;this.schemaLocation="http://www.opengis.net/kml/2.2 http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd";this.dimension=t(a.dimension)?a.dimension:3;this.maxDepth=t(a.maxDepth)?a.maxDepth:0;this.trackAttributes=t(a.trackAttributes)?a.trackAttributes:null;this.A="http://www.opengis.net/kml/2.2";this.j={"http://www.opengis.net/kml/2.2":{kml:function(a,
c){t(c.features)||(c.features=[]);t(c.links)||(c.links=[]);W(this,a,c)},Document:function(a,c){W(this,a,c)},"*":function(a,c){if(!0===this.extractAttributes){var d=a.childNodes.length;1!==d&&2!==d||3!==a.firstChild.nodeType&&4!==a.firstChild.nodeType||this.j[this.A]._attribute.apply(this,arguments)}},NetworkLink:function(a,c){var d={};W(this,a,d);c.links.push(d)},Link:function(a,c){W(this,a,c)},_attribute:function(a,c){var d=a.localName||a.nodeName.split(":").pop(),e=X(a);c.properties?c.properties[d]=
e.replace(this.S.ya,""):c[d]=e.replace(this.S.ya,"")},Placemark:function(a,c){var d={properties:{}},e,f,g=a.getAttribute("id");W(this,a,d);if(t(d.ka)){var h=d.ka,l;delete d.ka;for(var n=0,q=h.Bb.length;n<q;++n){if(this.trackAttributes)for(l=0,e=this.trackAttributes.length;l<e;++l)f=this.trackAttributes[l],d.properties[f]=h.attributes[f][n];d.properties.when=h.Bb[n];t(h.cb[n])&&(d.properties.heading=parseFloat(h.cb[n][0]),d.properties.tilt=parseFloat(h.cb[n][1]),d.properties.roll=parseFloat(h.cb[n][2]));
3===h.Kb[n].coordinates.length&&(d.properties.altitude=h.Kb[n].coordinates[2]);l=new N(d.properties);null!==g&&(l.Ja=g);var r=h.Kb[n];r&&(e=void 0,this.ga&&(f=this.ga.aa)&&(e=f(l,r.type)),e=gq(this,{geometry:r},e),t(e)&&l.ra(e));c.features.push(l)}}else t(d.geometry)&&(h=d.properties.styleUrl,t(h)&&(0==h.lastIndexOf("#",0)||c.links.push({href:h})),l=new N(d.properties),null!==g&&(l.Ja=g),d.geometry&&(e=void 0,this.ga&&(f=this.ga.aa)&&(e=f(l,d.geometry.type)),e=gq(this,d,e),t(e)&&l.ra(e)),g=void 0,
t(d.Uc)&&(g=d.Uc[0].symbolizers),hq(l,c.styles,g),c.features.push(l))},MultiGeometry:function(a,c){var d=[];W(this,a,d);var e=Xa(d,function(a){return a.type}),f;if(1===ic(e))switch(jc(e)){case "point":f={type:"multipoint",M:d};break;case "linestring":f={type:"multilinestring",M:d};break;case "polygon":f={type:"multipolygon",M:d}}else f={type:"geometrycollection",M:d};ia(c)?c.push(f):c.geometry=f},Point:function(a,c){var d=[];W(this,a,d);d={type:"point",coordinates:d[0][0]};ia(c)?c.push(d):c.geometry=
d},Polygon:function(a,c){var d=[];W(this,a,d);d={type:"polygon",coordinates:d};ia(c)?c.push(d):c.geometry=d},LineString:function(a,c){var d=[];W(this,a,d);d={type:"linestring",coordinates:d[0]};ia(c)?c.push(d):c.geometry=d},outerBoundaryIs:function(a,c){W(this,a,c)},LinearRing:function(a,c){W(this,a,c)},coordinates:function(a,c){for(var d=this.S,e=X(a).replace(d.ya,"").split(d.Nb),f=[],g=0,h=e.length;g<h;g++){for(var l=e[g].replace(d.bg,"").split(","),n=[],q=Math.min(l.length,this.dimension),r=0;r<
q;r++)n.push(parseFloat(l[r]));f.push(n)}c.push(f)},innerBoundaryIs:function(a,c){W(this,a,c)},Folder:function(a,c){W(this,a,c)},ExtendedData:function(a,c){W(this,a,c.properties)},SchemaData:function(a,c){W(this,a,c)},SimpleData:function(a,c){c[a.getAttribute("name")]=X(a)},Data:function(a,c){var d={};W(this,a,d);c[a.getAttribute("name")]=d.value},when:function(a,c){var d=X(a),e=d.split("T");2===e.length&&2===e[1].split("-").length&&(d+=":00");c.Bb.push(Pp(d).a)},_trackPointAttribute:function(a,c){var d=
a.nodeName.split(":").pop();c.attributes[d].push(X(a))},Style:function(a,c){if(!0===this.extractStyles){c.styles||(c.styles=[]);var d={symbolizers:[],ids:[]},e=a.getAttribute("id");null===e||(d.id=e);W(this,a,d);c.styles.push(d)}},LineStyle:function(a,c){var d={},e={};W(this,a,d);d.color&&(e.color=d.color.color,e.opacity=d.color.opacity);d.width&&(e.width=parseFloat(d.width));c.ids.push(a.getAttribute("id"));c.symbolizers.push(new Ol(e))},PolyStyle:function(a,c){var d={},e={};W(this,a,d);"0"!==d.fill&&
"false"!==d.fill&&(d.color?(e.color=d.color.color,e.opacity=d.color.opacity):(e.color="#ffffff",e.opacity=1),c.symbolizers.push(new Gl(e)));"0"!==d.outline&&"false"!==d.outline&&(d.color?(e.color=d.color.color,e.opacity=d.color.opacity):(e.color="#ffffff",e.opacity=1),c.symbolizers.push(new Ol(e)));c.ids.push(a.getAttribute("id"))},fill:function(a,c){c.fill=X(a)},outline:function(a,c){c.outline=X(a)},scale:function(a,c){c.scale=parseFloat(X(a))},Icon:function(a,c){c.vb={};W(this,a,c.vb)},href:function(a,
c){c.href=X(a)},w:function(a,c){c.qg=X(a)},h:function(a,c){c.df=X(a)},x:function(a,c){c.x=X(a)},y:function(a,c){c.y=X(a)},hotSpot:function(a,c){c.$b={x:parseFloat(a.getAttribute("x")),y:parseFloat(a.getAttribute("y")),sg:a.getAttribute("xunits"),tg:a.getAttribute("yunits")}},IconStyle:function(a,c){var d={},e={};W(this,a,d);var f=d.scale||1,g=32*f,h=32*f,l,n;if(t(d.vb)&&(l=d.vb.href,t(l))){n=d.vb.qg;var q=d.vb.df;0!=l.lastIndexOf("http://maps.google.com/mapfiles/kml",0)||(t(n)||t(q))||(q=n=64,f/=
2);n=n||q;q=q||n;n&&(g=parseInt(n,10)*f);q&&(h=parseInt(q,10)*f);if(n=l.match(this.S.Lf)){var q=n[1],r=n[2];l=d.vb.x;n=d.vb.y;l="http://maps.google.com/mapfiles/kml/pal"+q+"/icon"+(8*(n?7-n/32:7)+(l?l/32:0))+r}e.opacity=1;e.url=l}t(d.$b)&&(l=d.$b.x,n=d.$b.y,q=d.$b.sg,d=d.$b.tg,"pixels"===q?e.xOffset=-l*f:"insetPixels"===q?e.xOffset=-g+l*f:"fraction"===q&&(e.xOffset=-g*l),"pixels"==d?e.yOffset=-h+n*f+1:"insetPixels"==d?e.yOffset=-(n*f)+1:"fraction"==d&&(e.yOffset=-h*(1-n)+1));e.width=g;e.height=h;
c.ids.push(a.getAttribute("id"));c.symbolizers.push(new aq(e))},color:function(a,c){var d=X(a);d&&(d=d.match(this.S.Kf))&&(c.color={color:"#"+d[4]+d[3]+d[2],opacity:parseInt(d[1],16)/255})},width:function(a,c){c.width=X(a)}},"http://www.google.com/kml/ext/2.2":{Track:function(a,c){c.ka={Bb:[],Kb:[],cb:[]};if(this.trackAttributes){var d;c.ka.attributes={};for(var e=0,f=this.trackAttributes.length;e<f;++e){d=this.trackAttributes[e];c.ka.attributes[d]=[];var g=this.j[this.A];d in g||(g[d]=g._trackPointAttribute)}}W(this,
a,c.ka);if(c.ka.Bb.length!==c.ka.Kb.length)throw Error("gx:Track with unequal number of when ("+c.ka.Bb.length+") and gx:coord ("+c.ka.Kb.length+") elements.");if(0<c.ka.cb.length&&c.ka.Bb.length!==c.ka.cb.length)throw Error("gx:Track with unequal number of when ("+c.ka.Bb.length+") and gx:angles ("+c.ka.cb.length+") elements.");},coord:function(a,c){for(var d=X(a).replace(this.S.ya,"").split(/\s+/),e=0,f=this.dimension;e<f;++e)d[e]=parseFloat(d[e]);c.Kb.push({type:"point",coordinates:d})},angles:function(a,
c){var d=X(a).replace(this.S.ya,"").split(/\s+/);c.cb.push(d)}}};this.a={"http://www.opengis.net/kml/2.2":{kml:function(a){var c=this.createElementNS("kml");Y(this,"Document",a,null,c);return c},Document:function(a){var c=this.createElementNS("Document"),d;for(d in a)if(a.hasOwnProperty(d)&&v(a[d])){var e=this.createElementNS(d);e.appendChild(this.createTextNode(a[d]));c.appendChild(e)}if(t(a.Uc))for(d=0,e=a.Uc.length;d<e;++d)Y(this,"_style",a.Uc[d],null,c);d=0;for(e=a.features.length;d<e;++d)Y(this,
"_feature",a.features[d],null,c);return c},_style:function(a){var c=this.createElementNS("Style");t(a.id)&&this.setAttributeNS(c,null,"id",a.id);for(var d=0,e=a.symbolizers.length;d<e;++d)Y(this,"_symbolizer",{Vc:a.symbolizers[d],id:a.Ff?a.Ff[d]:void 0},null,c);return c},_symbolizer:function(a){var c=a.Vc;if(c instanceof aq)return Y(this,"IconStyle",a);if(c instanceof Ol)return Y(this,"LineStyle",a);if(c instanceof Gl)return Y(this,"PolyStyle",a)},PolyStyle:function(a){var c=this.createElementNS("PolyStyle");
a.id&&this.setAttributeNS(c,null,"id",a.id);a=a.Vc.eb("polygon");var d,e;0!==a.oa?(Y(this,"fill","1",null,c),d=a.fillColor,e=a.oa):Y(this,"fill","0",null,c);a.sa?(Y(this,"outline","1",null,c),d=d||a.strokeColor,e=e||a.sa):Y(this,"outline","0",null,c);d&&e&&Y(this,"color",{color:d.substring(1),opacity:e},null,c);return c},fill:function(a){var c=this.createElementNS("fill");c.appendChild(this.createTextNode(a));return c},outline:function(a){var c=this.createElementNS("outline");c.appendChild(this.createTextNode(a));
return c},LineStyle:function(a){var c=this.createElementNS("LineStyle");a.id&&this.setAttributeNS(c,null,"id",a.id);a=a.Vc.eb("linestring");Y(this,"color",{color:a.color.substring(1),opacity:a.opacity},null,c);Y(this,"width",a.width,null,c);return c},color:function(a){var c=a.color;a=(255*a.opacity).toString(16)+c.substring(4,6)+c.substring(2,4)+c.substring(0,2);c=this.createElementNS("color");c.appendChild(this.createTextNode(a));return c},width:function(a){var c=this.createElementNS("width");c.appendChild(this.createTextNode(a));
return c},IconStyle:function(a){var c=this.createElementNS("IconStyle");this.setAttributeNS(c,null,"id",a.id);Y(this,"Icon",a.Vc.eb("point").url,null,c);return c},Icon:function(a){var c=this.createElementNS("Icon");Y(this,"href",a,null,c);return c},href:function(a){var c=this.createElementNS("href");c.appendChild(this.createTextNode(a));return c},_feature:function(a){var c=this.createElementNS("Placemark"),d=a.Ja;t(d)&&c.setAttribute("id",d);Y(this,"name",a,null,c);Y(this,"description",a,null,c);
t(a.get("styleUrl"))?Y(this,"styleUrl",a,null,c):(d=a.Eb(),null===d||Y(this,"_style",{symbolizers:d},null,c));Y(this,"_geometry",a.u(),null,c);return c},name:function(a){a=a.get("name");if(t(a)){var c=this.createElementNS("name");c.appendChild(this.createTextNode(a));return c}},description:function(a){a=a.get("description");if(t(a)){var c=this.createElementNS("description");c.appendChild(this.createTextNode(a));return c}},styleUrl:function(a){a=a.get("styleUrl");var c=this.createElementNS("styleUrl");
c.appendChild(this.createTextNode(a));return c},_geometry:function(a){if(a instanceof nm)return Y(this,"Point",a);if(a instanceof lm)return Y(this,"LineString",a);if(a instanceof rm)return Y(this,"Polygon",a);if(a instanceof km)return Y(this,"MultiGeometry",a)},MultiGeometry:function(a){for(var c=this.createElementNS("MultiGeometry"),d=0,e=a.n.length;d<e;++d)Y(this,"_geometry",a.n[d],null,c);return c},Point:function(a){var c=this.createElementNS("Point");a=a.p();Y(this,"coordinates",[a],null,c);return c},
LineString:function(a){var c=this.createElementNS("LineString");Y(this,"coordinates",a.p(),null,c);return c},Polygon:function(a){var c=this.createElementNS("Polygon");a=a.p();Y(this,"outerBoundaryIs",a[0],null,c);for(var d=1,e=a.length;d<e;++d)Y(this,"innerBoundaryIs",a[d],null,c);return c},outerBoundaryIs:function(a){var c=this.createElementNS("outerBoundaryIs");Y(this,"LinearRing",a,null,c);return c},innerBoundaryIs:function(a){var c=this.createElementNS("innerBoundaryIs");Y(this,"LinearRing",a,
null,c);return c},LinearRing:function(a){var c=this.createElementNS("LinearRing");Y(this,"coordinates",a,null,c);return c},coordinates:function(a){for(var c=this.createElementNS("coordinates"),d="",e=0,f=a.length;e<f;++e){for(var g=0,h=a[e].length;g<h;++g)d+=a[e][g],g<h-1&&(d+=",");e<f-1&&(d+=" ")}c.appendChild(this.createTextNode(d));return c}}};qp.call(this);H(this.S,{Kf:/(\w{2})(\w{2})(\w{2})(\w{2})/,Lf:/root:\/\/icons\/palette-(\d+)(\.\w+)/,a:/\$\[(.*?)\]/g})}F(fq,qp);m=fq.prototype;
m.oe=function(a,b,c){this.ga=c;this.F(a,b)};m.pe=function(a,b,c){this.ga=c;this.F(a,b)};m.ic=function(a,b){this.ga=b;return this.F(a)};m.hc=function(a,b){this.ga=b;return this.F(a)};
function iq(a,b,c,d){var e;if(a.c<a.maxDepth){a.c++;for(var f=0,g=c.links.length;f<g;++f){var h=c.links[f];if(!0!==h.pg){e=!0;var l=new Ap,n=new dl,q=a;J(n,"complete",function(a){if(sl(a.target)){var e;var f=a.target;try{e=f.a?f.a.responseXML:null}catch(g){e=null}e=e||tl(a.target);v(e)&&(e=np(e));hb(a.target);e&&(9==e.nodeType&&(e=e.documentElement),q.$a(e,c));iq(q,b,c,d);this.aa(e)}},!1,l);b.push(l);jl(n,h.href);h.pg=!0}}}!0!==e&&!0!==a.Id&&d.call(a)}
m.F=function(a,b){v(a)&&(a=np(a));a&&9==a.nodeType&&(a=a.documentElement);var c={metadata:{projection:"EPSG:4326"}};this.$a(a,c);if(t(b)){var d=[];this.c=0;this.Id=!1;iq(this,d,c,function(){this.Id=!0;Hp(Kp(d),function(){for(var a=0,d=c.features.length;a<d;++a)hq(c.features[a],c.styles);b.call(null,c)},function(){throw Error("KML: parsing of NetworkLinks failed");},this)})}else return c};
function hq(a,b,c){var d,e;if(a.get("styleUrl")&&null===a.Eb()){var f=a.get("styleUrl"),f=f.substring(f.indexOf("#")+1);if(t(b))for(d=0,e=b.length;d<e;++d)if(b[d].id===f){c=b[d].symbolizers;break}}t(c)&&(a.b=c)}
function gq(a,b,c){var d=null,e;switch(b.geometry.type){case "point":d=new nm(b.geometry.coordinates,c);break;case "linestring":d=new lm(b.geometry.coordinates,c);break;case "polygon":d=new rm(b.geometry.coordinates,c);break;case "multipoint":a=[];d=0;for(e=b.geometry.M.length;d<e;d++)a.push(b.geometry.M[d].coordinates);d=new om(a,c);break;case "multilinestring":a=[];d=0;for(e=b.geometry.M.length;d<e;d++)a.push(b.geometry.M[d].coordinates);d=new mm(a,c);break;case "multipolygon":a=[];d=0;for(e=b.geometry.M.length;d<
e;d++)a.push(b.geometry.M[d].coordinates);d=new sm(a,c);break;case "geometrycollection":var f=[],d=0;for(e=b.geometry.M.length;d<e;d++)f.push(gq(a,{geometry:b.geometry.M[d]},c));d=new tp(f)}return d}m.write=function(a){a=Y(this,"kml",a);this.setAttributeNS(a,"http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.schemaLocation);return rp(this,a)};function jq(){this.a=new N}F(jq,pp);fa(jq);function kq(a,b){for(var c=[],d,e=0,f=a.length;e<f;++e)d=a[e],0<e&&c.pop(),d=0<=d?b[d]:b[~d].slice().reverse(),c.push.apply(c,d);return c}jq.prototype.F=function(a){a=JSON.parse(a);return this.hc(a).features};jq.prototype.ic=function(a,b){var c=JSON.parse(a);if("Topology"!==c.type)throw Error('Not a "Topology" type object');return{features:lq(this,c,b),metadata:{projection:"EPSG:4326"}}};
jq.prototype.hc=function(a,b){if("Topology"!==a.type)throw Error('Not a "Topology" type object');return{features:lq(this,a,b),metadata:{projection:"EPSG:4326"}}};
function mq(a,b,c,d,e,f){var g=b.type;if("Point"===g){c=b.coordinates;nq(c,d,e);f=f&&f.aa;var h;f&&(h=f(a.a,"point"));a=new nm(c,h)}else if("LineString"===g){c=kq(b.arcs,c);f=f&&f.aa;var l;f&&(l=f(a.a,"linestring"));a=new lm(c,l)}else if("Polygon"===g){var n=b.arcs;d=n.length;var q=Array(d);for(e=0;e<d;++e)q[e]=kq(n[e],c);f=f&&f.aa;var r;f&&(r=f(a.a,"polygon"));a=new rm(q,r)}else if("MultiPoint"===g){c=b.coordinates;q=0;for(r=c.length;q<r;++q)nq(c[q],d,e);f=f&&f.aa;var w;f&&(w=f(a.a,"multipoint"));
a=new om(c,w)}else if("MultiLineString"===g){r=b.arcs;d=r.length;q=Array(d);for(e=0;e<d;++e)q[e]=kq(r[e],c);(f=f&&f.aa)&&(n=f(a.a,"multilinestring"));a=new mm(q,n)}else if("MultiPolygon"===g){n=b.arcs;d=n.length;r=Array(d);for(g=0;g<d;++g){e=n[g];w=e.length;h=Array(w);for(l=0;l<w;++l)h[l]=kq(e[l],c);r[g]=h}(f=f&&f.aa)&&(q=f(a.a,"multipolygon"));a=new sm(r,q)}else throw Error("Unsupported geometry type: "+g);f=new N;f.ra(a);t(b.id)&&(f.Ja=String(b.id));return f}
function oq(a,b,c,d,e,f){b=b.geometries;for(var g=b.length,h=Array(g),l=0;l<g;++l)h[l]=mq(a,b[l],c,d,e,f);return h}function lq(a,b,c){for(var d=b.transform,e=d.scale,d=d.translate,f=b.arcs,g=0,h=f.length;g<h;++g)for(var l=f[g],n=e,q=d,r=0,w=0,s=void 0,B=0,z=l.length;B<z;++B)s=l[B],r+=s[0],w+=s[1],s[0]=r,s[1]=w,nq(s,n,q);b=b.objects;var g=[],u;for(u in b)"GeometryCollection"===b[u].type?g.push.apply(g,oq(a,b[u],f,e,d,c)):g.push(mq(a,b[u],f,e,d,c));return g}
function nq(a,b,c){a[0]=a[0]*b[0]+c[0];a[1]=a[1]*b[1]+c[1]};function pq(){}F(pq,pp);fa(pq);var qq=/^\s*(\w+)\s*\(\s*(.*)\s*\)\s*$/,rq=/\s+/,sq=/\)\s*,\s*\(/,tq=/\)\s*\)\s*,\s*\(\s*\(/,uq=/^\s*\(?(.*?)\)?\s*$/,vq=/,\s*([A-Za-z])/g,wq=/[\n\r]/g;m=pq.prototype;m.vd=function(a){a=ua(a).split(rq);return new nm(La(a,parseFloat))};m.ud=function(a){a=ua(a).split(",");for(var b=[],c=0,d=a.length;c<d;++c)b.push(this.vd.apply(this,[a[c]]).p());return new lm(b)};
m.ke=function(a){var b;a=ua(a).split(sq);for(var c=[],d=0,e=a.length;d<e;++d)b=a[d].replace(uq,"$1"),b=this.ud.apply(this,[b]).p(),c.push(b);return new rm(c)};m.Od=function(a){a=a.p();return a[0]+" "+a[1]};m.ed=function(a){a=a.p();for(var b=[],c=0,d=a.length;c<d;++c)b.push(a[c][0]+" "+a[c][1]);return b.join(",")};m.Pd=function(a){for(var b=[],c=0,d=a.a.length;c<d;++c)b.push("("+this.ed.apply(this,[a.a[c]])+")");return b.join(",")};
m.le=function(a){a=a.replace(wq," ");a=qq.exec(a);var b;if(a)switch(b=a[1].toLowerCase(),a=a[2],b){case "point":b=this.vd(a);break;case "multipoint":var c=ua(a).split(",");a=[];for(var d=0,e=c.length;d<e;++d)b=c[d].replace(uq,"$1"),a.push(this.vd.apply(this,[b]));b=a.length;c=Array(b);for(d=0;d<b;++d)c[d]=a[d].p();b=new om(c,void 0);break;case "linestring":b=this.ud(a);break;case "multilinestring":c=ua(a).split(sq);a=[];d=0;for(e=c.length;d<e;++d)b=c[d].replace(uq,"$1"),a.push(this.ud.apply(this,
[b]));b=a.length;c=Array(b);for(d=0;d<b;++d)c[d]=a[d].p();b=new mm(c,void 0);break;case "polygon":b=this.ke(a);break;case "multipolygon":c=ua(a).split(tq);a=[];d=0;for(e=c.length;d<e;++d)b=c[d].replace(uq,"$1"),a.push(this.ke.apply(this,[b]));b=a.length;c=Array(b);for(d=0;d<b;++d)c[d]=a[d].p();b=new sm(c,void 0);break;case "geometrycollection":a=a.replace(vq,"|$1");a=ua(a).split("|");b=[];c=0;for(d=a.length;c<d;++c)b.push(this.le.apply(this,[a[c]]));b=new tp(b);break;default:throw Error("Bad geometry type: "+
b);}return b};
m.je=function(a){var b=a.N(),c=b.toUpperCase()+"(";if(a instanceof nm)c+=this.Od(a);else if(a instanceof om){for(var b=c,c=[],d=0,e=a.n.length;d<e;++d)c.push("("+this.Od.apply(this,[a.n[d]])+")");c=b+c.join(",")}else if(a instanceof lm)c+=this.ed(a);else if(a instanceof mm){b=c;c=[];d=0;for(e=a.n.length;d<e;++d)c.push("("+this.ed.apply(this,[a.n[d]])+")");c=b+c.join(",")}else if(a instanceof rm)c+=this.Pd(a);else if(a instanceof sm){b=c;c=[];d=0;for(e=a.n.length;d<e;++d)c.push("("+this.Pd.apply(this,[a.n[d]])+
")");c=b+c.join(",")}else if(a instanceof tp){b=c;c=[];d=0;for(e=a.n.length;d<e;++d)c.push(this.je.apply(this,[a.n[d]]));c=b+c.join(",")}else throw Error("Bad geometry type: "+b);return c+")"};m.F=function(a){return this.le(a)};m.write=function(a){return this.je(a)};function xq(a){var b=t(a)?a:{};this.extractAttributes=t(b.extractAttributes)?b.extractAttributes:!0;this.surface=t(b.surface)?b.surface:!1;this.curve=t(b.curve)?b.curve:!1;this.multiCurve=t(b.multiCurve)?b.multiCurve:!0;this.multiSurface=t(b.multiSurface)?b.multiSurface:!0;this.readOptions=b.readOptions;this.writeOptions=b.writeOptions;t(b.schemaLocation)&&(this.schemaLocation=b.schemaLocation);t(b.featureNS)&&(this.featureNS=b.featureNS);t(b.featureType)&&(this.featureType=b.featureType);this.hg=
!t(a)||v(a.featureType);this.A="http://www.opengis.net/gml";this.j={"http://www.opengis.net/wfs":{FeatureCollection:function(a,b){W(this,a,b)}},"http://www.opengis.net/gml":{_inherit:function(a){var b;t(this.srsName)||(b=this.srsName=a.getAttribute("srsName"));t(this.axisOrientation)||(this.axisOrientation=null!=b?ke(b).a:"enu")},name:function(a,b){b.name=X(a)},featureMember:function(a,b){W(this,a,b)},featureMembers:function(a,b){W(this,a,b)},GeometryCollection:function(a,b){var e=[];this.j[this.A]._inherit.apply(this,
[a,e,b]);W(this,a,e);b.geometry={type:"geometrycollection",M:e}},geometryMember:function(a,b){W(this,a,b)},MultiPoint:function(a,b){var e=[];this.j[this.A]._inherit.apply(this,[a,e,b]);W(this,a,e);b.geometry={type:"multipoint",M:e}},pointMember:function(a,b){W(this,a,b)},MultiLineString:function(a,b){var e=[];this.j[this.A]._inherit.apply(this,[a,e,b]);W(this,a,e);b.geometry={type:"multilinestring",M:e}},lineStringMember:function(a,b){W(this,a,b)},MultiPolygon:function(a,b){var e=[];this.j[this.A]._inherit.apply(this,
[a,e,b]);W(this,a,e);b.geometry={type:"multipolygon",M:e}},polygonMember:function(a,b){W(this,a,b)},Point:function(a,b){var e=[];this.j[this.A]._inherit.apply(this,[a,e,b]);W(this,a,e);e={type:"point",coordinates:e[0][0]};ia(b)?b.push(e):b.geometry=e},LineString:function(a,b){var e=[];this.j[this.A]._inherit.apply(this,[a,e,b]);W(this,a,e);e={type:"linestring",coordinates:e[0]};ia(b)?b.push(e):b.geometry=e},Polygon:function(a,b){var e={me:null,Hc:[]};this.j[this.A]._inherit.apply(this,[a,e,b]);W(this,
a,e);e.Hc.unshift(e.me);e={type:"polygon",coordinates:e.Hc};ia(b)?b.push(e):b.geometry=e},LinearRing:function(a,b){var e=[];this.j[this.A]._inherit.apply(this,[a,e,b]);W(this,a,e);ia(b)?b.push(e):b.geometry={type:"linearring",coordinates:e[0]}},coordinates:function(a,b){for(var e=X(a).replace(this.S.ya,""),e=e.replace(this.S.Cd,","),f=a.getAttribute("cs")||",",g=a.getAttribute("ts")||this.S.Nb,g=e.split(g),h=g.length,l=Array(h),n=0;n<h;++n)e=La(g[n].split(f),parseFloat),"en"===this.axisOrientation.substr(0,
2)?l[n]=e:2===e.length?l[n]=e.reverse():3===e.length&&(l[n]=[e[1],e[0],e[2]]);b.push(l)},coord:function(a,b){var e={};0===b.length&&b.push([]);W(this,a,e);t(e.z)?b.push([e.x,e.y,e.z]):b[0].push([e.x,e.y])},X:function(a,b){b.x=parseFloat(X(a))},Y:function(a,b){b.y=parseFloat(X(a))},Z:function(a,b){b.z=parseFloat(X(a))}}};this.d={"*":function(a,b){var e,f=a.localName||a.nodeName.split(":").pop();b.features?this.hg||-1===Ga(this.featureType,f)?f===this.featureType&&(e="_typeName"):e="_typeName":0===
a.childNodes.length||1===a.childNodes.length&&3===a.firstChild.nodeType?this.extractAttributes&&(e="_attribute"):e="_geometry";e&&this.j[this.featureNS][e].apply(this,[a,b])},_typeName:function(a,b){var e={properties:{}};W(this,a,e);e.name&&(e.properties.name=e.name);var f=new N(e.properties);if(e=e.geometry){var g=void 0;if(this.ga){var h=this.ga.aa;h&&(g=h(f,e.type))}e=yq(this,{geometry:e},g);t(e)&&f.ra(e)}e=a.getAttribute("fid")||this.getAttributeNS(a,this.A,"id");null!==e&&(f.Ja=e);b.features.push(f)},
_geometry:function(a,b){this.geometryName||(this.geometryName=a.nodeName.split(":").pop());W(this,a,b)},_attribute:function(a,b){var e=a.localName||a.nodeName.split(":").pop();b.properties[e]=X(a)}};t(this.featureNS)&&(this.j[this.featureNS]=this.d);this.a={"http://www.opengis.net/gml":{featureMember:function(a){var b=this.createElementNS("gml:featureMember");Y(this,"_typeName",a,this.featureNS,b);return b},MultiPoint:function(a){for(var b=this.createElementNS("gml:MultiPoint"),e=0,f=a.n.length;e<
f;++e)Y(this,"pointMember",a.n[e],null,b);return b},pointMember:function(a){var b=this.createElementNS("gml:pointMember");Y(this,"Point",a,null,b);return b},MultiLineString:function(a){for(var b=this.createElementNS("gml:MultiLineString"),e=0,f=a.n.length;e<f;++e)Y(this,"lineStringMember",a.n[e],null,b);return b},lineStringMember:function(a){var b=this.createElementNS("gml:lineStringMember");Y(this,"LineString",a,null,b);return b},MultiPolygon:function(a){for(var b=this.createElementNS("gml:MultiPolygon"),
e=0,f=a.n.length;e<f;++e)Y(this,"polygonMember",a.n[e],null,b);return b},polygonMember:function(a){var b=this.createElementNS("gml:polygonMember");Y(this,"Polygon",a,null,b);return b},GeometryCollection:function(a){for(var b=this.createElementNS("gml:GeometryCollection"),e=0,f=a.n.length;e<f;++e)Y(this,"geometryMember",a.n[e],null,b);return b},geometryMember:function(a){var b=this.createElementNS("gml:geometryMember");a=Y(this,"_geometry",a,this.featureNS);b.appendChild(a.firstChild);return b}},"http://www.opengis.net/wfs":{FeatureCollection:function(a){for(var b=
this.createElementNS("wfs:FeatureCollection","http://www.opengis.net/wfs"),e=0,f=a.length;e<f;++e)Y(this,"featureMember",a[e],null,b);return b}}};this.c={_typeName:function(a){var b=this.createElementNS("feature:"+this.featureType,this.featureNS),e=a.Ja;t(e)&&this.setAttributeNS(b,this.A,"fid",e);null!==a.u()&&Y(this,"_geometry",a.u(),this.featureNS,b);a=a.pb();for(var f in a)e=a[f],null==e||e instanceof Ed||Y(this,"_attribute",{name:f,value:e},this.featureNS,b);return b},_geometry:function(a){var b=
this.createElementNS("feature:"+this.geometryName,this.featureNS),e=a.N(),f;"point"===e?f=Y(this,"Point",a,null,b):"multipoint"===e?f=Y(this,"MultiPoint",a,null,b):"linearring"===e?f=Y(this,"LinearRing",a.p(),null,b):"linestring"===e?f=Y(this,"LineString",a,null,b):"multilinestring"===e?f=Y(this,"MultiLineString",a,null,b):"polygon"===e?f=Y(this,"Polygon",a,null,b):"multipolygon"===e?f=Y(this,"MultiPolygon",a,null,b):"geometrycollection"===e&&(f=Y(this,"GeometryCollection",a,null,b));null!=this.srsName&&
this.setAttributeNS(f,null,"srsName",this.srsName);return b},_attribute:function(a){var b=this.createElementNS("feature:"+a.name,this.featureNS);b.appendChild(this.createTextNode(a.value));return b}};t(this.featureNS)&&(this.a[this.featureNS]=this.c);qp.call(this)}F(xq,qp);
xq.prototype.F=function(a,b){var c;t(b)&&t(b.srsName)?c=b.srsName:t(this.readOptions)&&t(this.readOptions.srsName)&&(c=this.readOptions.srsName);t(c)&&(this.srsName=v(c)?c:c.Sa);t(b)&&t(b.axisOrientation)?this.axisOrientation=b.axisOrientation:t(this.readOptions)&&t(this.readOptions.axisOrientation)&&(this.axisOrientation=this.readOptions.axisOrientation);"string"==typeof a&&(a=np(a));a&&9==a.nodeType&&(a=a.documentElement);c={features:[],metadata:{}};this.$a(a,c,!0);c.metadata.projection=this.srsName;
delete this.srsName;delete this.axisOrientation;return c};
xq.prototype.$a=function(a,b,c){!0===c&&!0===this.e&&(this.featureType=null,delete this.j[this.featureNS],delete this.a[this.featureNS],this.featureNS=null);this.featureNS||(a.namespaceURI in this.j||a.parentNode.namespaceURI!=this.A||!/^(.*:)?featureMembers?$/.test(a.parentNode.nodeName))||(this.featureType=a.nodeName.split(":").pop(),this.j[a.namespaceURI]=this.d,this.a[a.namespaceURI]=this.c,this.featureNS=a.namespaceURI,this.e=!0);return qp.prototype.$a.apply(this,[a,b])};
function yq(a,b,c){var d=null,e;switch(b.geometry.type){case "point":d=new nm(b.geometry.coordinates,c);break;case "linearring":d=new pm(b.geometry.coordinates,c);break;case "linestring":d=new lm(b.geometry.coordinates,c);break;case "polygon":d=new rm(b.geometry.coordinates,c);break;case "multipoint":a=[];d=0;for(e=b.geometry.M.length;d<e;d++)a.push(b.geometry.M[d].coordinates);d=new om(a,c);break;case "multilinestring":a=[];d=0;for(e=b.geometry.M.length;d<e;d++)a.push(b.geometry.M[d].coordinates);
d=new mm(a,c);break;case "multipolygon":a=[];d=0;for(e=b.geometry.M.length;d<e;d++)a.push(b.geometry.M[d].coordinates);d=new sm(a,c);break;case "geometrycollection":var f=[],d=0;for(e=b.geometry.M.length;d<e;d++)f.push(yq(a,{geometry:b.geometry.M[d]},c));d=new tp(f)}return d}xq.prototype.ic=function(a,b){this.ga=b;return this.F(a)};
function zq(a,b,c){var d;t(c)&&t(c.srsName)?d=c.srsName:t(a.writeOptions)&&t(a.writeOptions.srsName)?d=a.writeOptions.srsName:t(b.metadata)&&(d=b.metadata.projection);a.srsName=v(d)?d:d.Sa;a.axisOrientation=t(c)&&t(c.axisOrientation)?c.axisOrientation:t(a.writeOptions)&&t(a.writeOptions.axisOrientation)?a.writeOptions.axisOrientation:ke(a.srsName).a};function Aq(a){this.schemaLocation="http://www.opengis.net/gml http://schemas.opengis.net/gml/2.1.2/feature.xsd";xq.call(this,a);H(this.j["http://www.opengis.net/gml"],{outerBoundaryIs:function(a,c){var d=[];W(this,a,d);c.outer=d[0][0]},innerBoundaryIs:function(a,c){var d=[];W(this,a,d);c.Hc.push(d[0][0])},Box:function(a,c){var d=[];this.j[this.A]._inherit.apply(this,[a,d,c]);W(this,a,d);c.projection=a.getAttribute("srsName");c.bounds=[d[0][0][0],d[0][1][0],d[0][0][1],d[0][1][1]]}});H(this.a["http://www.opengis.net/gml"],
{Point:function(a){var c=this.createElementNS("gml:Point");Y(this,"coordinates",[a.p()],null,c);return c},coordinates:function(a){for(var c=a.length,d=Array(c),e=0;e<c;++e){var f=a[e],g=Ra(f);"en"!==this.axisOrientation.substr(0,2)&&(g[0]=f[1],g[1]=f[0]);d[e]=g.join(",")}a=d.join(" ");c=this.createElementNS("gml:coordinates");this.setAttributeNS(c,null,"decimal",".");this.setAttributeNS(c,null,"cs",",");this.setAttributeNS(c,null,"ts"," ");c.appendChild(this.createTextNode(a));return c},LineString:function(a){var c=
this.createElementNS("gml:LineString");Y(this,"coordinates",a.p(),null,c);return c},Polygon:function(a){var c=this.createElementNS("gml:Polygon");a=a.p();Y(this,"outerBoundaryIs",a[0].reverse(),null,c);for(var d=1;d<a.length;++d)Y(this,"innerBoundaryIs",a[d].reverse(),null,c);return c},outerBoundaryIs:function(a){var c=this.createElementNS("gml:outerBoundaryIs");Y(this,"LinearRing",a,null,c);return c},innerBoundaryIs:function(a){var c=this.createElementNS("gml:innerBoundaryIs");Y(this,"LinearRing",
a,null,c);return c},LinearRing:function(a){var c=this.createElementNS("gml:LinearRing");Y(this,"coordinates",a,null,c);return c},Box:function(a){var c=this.createElementNS("gml:Box");Y(this,"coordinates",[[a[0],a[1]],[a[2],a[3]]],null,c);null!=this.srsName&&c.setAttribute("srsName",this.srsName);return c}})}F(Aq,xq);
Aq.prototype.write=function(a,b){zq(this,a,b);var c=Y(this,"FeatureCollection",a.features,"http://www.opengis.net/wfs");this.setAttributeNS(c,"http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.schemaLocation);c=rp(this,c);delete this.srsName;delete this.axisOrientation;return c};function Bq(a){this.schemaLocation="http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd";xq.call(this,a);this.c._geometry=function(a){var c=this.createElementNS("feature:"+this.geometryName,this.featureNS),d=a.N(),e;"point"===d?e=Y(this,"Point",a,null,c):"multipoint"===d?e=Y(this,"MultiPoint",a,null,c):"linestring"===d?e=!0===this.curve?Y(this,"Curve",a,null,c):Y(this,"LineString",a,null,c):"linearring"===d?e=Y(this,"LinearRing",a.p(),null,c):"multilinestring"===
d?e=!1===this.multiCurve?Y(this,"MultiLineString",a,null,c):Y(this,"MultiCurve",a,null,c):"polygon"===d?e=!0===this.surface?Y(this,"Surface",a,null,c):Y(this,"Polygon",a,null,c):"multipolygon"===d?e=!1===this.multiSurface?Y(this,"MultiPolygon",a,null,c):Y(this,"MultiSurface",a,null,c):"geometrycollection"===d&&(e=Y(this,"MultiGeometry",a,null,c));null!=this.srsName&&this.setAttributeNS(e,null,"srsName",this.srsName);return c};H(this.j["http://www.opengis.net/gml"],{_inherit:Ye(this.j["http://www.opengis.net/gml"]._inherit,
function(a,c,d){if(a=parseInt(a.getAttribute("srsDimension"),10)||d&&d.ue)c.ue=a}),featureMembers:function(a,c){W(this,a,c)},Curve:function(a,c){var d=[];this.j[this.A]._inherit.apply(this,[a,d,c]);W(this,a,d);d={type:"linestring",coordinates:d[0]};ia(c)?c.push(d):c.geometry=d},segments:function(a,c){W(this,a,c)},LineStringSegment:function(a,c){var d=[];W(this,a,d);c.push(d[0])},pos:function(a,c){var d=X(a).replace(this.S.ya,""),d=La(d.split(this.S.Nb),parseFloat);"en"===this.axisOrientation.substr(0,
2)?c.push([d]):2===d.length?c.push([d.reverse()]):3===d.length&&c.push([d[1],d[0],d[2]])},posList:function(a,c){for(var d=X(a).replace(this.S.ya,"").split(this.S.Nb),e=c.ue||parseInt(a.getAttribute("srsDimension")||a.getAttribute("dimension"),10)||2,f,g,h=Array(d.length/e),l=0,n=d.length;l<n;l+=e){f=parseFloat(d[l]);g=parseFloat(d[l+1]);var q="en"===this.axisOrientation.substr(0,2);3===e?h[l/e]=q?[f,g,parseFloat(d[l+2])]:[g,f,parseFloat(d[l+2])]:2===e&&(h[l/e]=q?[f,g]:[g,f])}c.push(h)},Surface:function(a,
c){W(this,a,c)},patches:function(a,c){W(this,a,c)},PolygonPatch:function(a,c){this.j[this.A].Polygon.apply(this,[a,c])},exterior:function(a,c){var d=[];W(this,a,d);c.me=d[0][0]},interior:function(a,c){var d=[];W(this,a,d);c.Hc.push(d[0][0])},MultiCurve:function(a,c){var d=[];this.j[this.A]._inherit.apply(this,[a,d,c]);W(this,a,d);c.geometry={type:"multilinestring",M:d}},curveMember:function(a,c){W(this,a,c)},MultiSurface:function(a,c){var d=[];this.j[this.A]._inherit.apply(this,[a,d,c]);W(this,a,
d);c.geometry={type:"multipolygon",M:d}},surfaceMember:function(a,c){W(this,a,c)},surfaceMembers:function(a,c){W(this,a,c)},pointMembers:function(a,c){W(this,a,c)},lineStringMembers:function(a,c){W(this,a,c)},polygonMembers:function(a,c){W(this,a,c)},geometryMembers:function(a,c){W(this,a,c)},Envelope:function(a,c){var d=[];this.j[this.A]._inherit.apply(this,[a,d,c]);W(this,a,d);c.projection=a.getAttribute("srsName");c.bounds=[d[0][0][0][0],d[1][0][0][0],d[0][0][0][1],d[1][0][0][1]]},lowerCorner:function(a,
c){var d=[];this.j[this.A].pos.apply(this,[a,d]);c.push(d)},upperCorner:function(a,c){var d=[];this.j[this.A].pos.apply(this,[a,d]);c.push(d)}});H(this.a["http://www.opengis.net/gml"],{featureMembers:function(a){for(var c=this.createElementNS("gml:featureMembers"),d=0,e=a.length;d<e;++d)Y(this,"_typeName",a[d],this.featureNS,c);return c},Point:function(a){var c=this.createElementNS("gml:Point");Y(this,"pos",a.p(),null,c);return c},pos:function(a){a="en"===this.axisOrientation.substr(0,2)?a[0]+" "+
a[1]:a[1]+" "+a[0];var c=this.createElementNS("gml:pos");c.appendChild(this.createTextNode(a));return c},LineString:function(a){var c=this.createElementNS("gml:LineString");Y(this,"posList",a.p(),null,c);return c},Curve:function(a){var c=this.createElementNS("gml:Curve");Y(this,"segments",a,null,c);return c},segments:function(a){var c=this.createElementNS("gml:segments");Y(this,"LineStringSegment",a,null,c);return c},LineStringSegment:function(a){var c=this.createElementNS("gml:LineStringSegment");
Y(this,"posList",a.p(),null,c);return c},posList:function(a){for(var c=a.length,d=Array(c),e,f=0;f<c;++f)e=a[f],d[f]="en"===this.axisOrientation.substr(0,2)?e[0]+" "+e[1]:e[1]+" "+e[0];a=this.createElementNS("gml:posList");a.appendChild(this.createTextNode(d.join(" ")));return a},Surface:function(a){var c=this.createElementNS("gml:Surface");Y(this,"patches",a,null,c);return c},patches:function(a){var c=this.createElementNS("gml:patches");Y(this,"PolygonPatch",a,null,c);return c},PolygonPatch:function(a){var c=
this.createElementNS("gml:PolygonPatch");c.setAttribute("interpolation","planar");a=a.p();Y(this,"exterior",a[0].reverse(),null,c);for(var d=1,e=a.length;d<e;++d)Y(this,"interior",a[d].reverse(),null,c);return c},Polygon:function(a){var c=this.createElementNS("gml:Polygon");a=a.p();Y(this,"exterior",a[0].reverse(),null,c);for(var d=1,e=a.length;d<e;++d)Y(this,"interior",a[d].reverse(),null,c);return c},exterior:function(a){var c=this.createElementNS("gml:exterior");Y(this,"LinearRing",a,null,c);return c},
interior:function(a){var c=this.createElementNS("gml:interior");Y(this,"LinearRing",a,null,c);return c},LinearRing:function(a){var c=this.createElementNS("gml:LinearRing");Y(this,"posList",a,null,c);return c},MultiCurve:function(a){for(var c=this.createElementNS("gml:MultiCurve"),d=0,e=a.n.length;d<e;++d)Y(this,"curveMember",a.n[d],null,c);return c},curveMember:function(a){var c=this.createElementNS("gml:curveMember");this.curve?Y(this,"Curve",a,null,c):Y(this,"LineString",a,null,c);return c},MultiSurface:function(a){for(var c=
this.createElementNS("gml:MultiSurface"),d=0,e=a.n.length;d<e;++d)Y(this,"surfaceMember",a.n[d],null,c);return c},surfaceMember:function(a){var c=this.createElementNS("gml:surfaceMember");this.surface?Y(this,"Surface",a,null,c):Y(this,"Polygon",a,null,c);return c},Envelope:function(a){var c=this.createElementNS("gml:Envelope");Y(this,"lowerCorner",a,null,c);Y(this,"upperCorner",a,null,c);t(this.srsName)&&c.setAttribute("srsName",this.srsName);return c},lowerCorner:function(a){a="en"===this.axisOrientation.substr(0,
2)?a[0]+" "+a[2]:a[2]+" "+a[0];var c=this.createElementNS("gml:lowerCorner");c.appendChild(this.createTextNode(a));return c},upperCorner:function(a){a="en"===this.axisOrientation.substr(0,2)?a[1]+" "+a[3]:a[3]+" "+a[1];var c=this.createElementNS("gml:upperCorner");c.appendChild(this.createTextNode(a));return c}})}F(Bq,xq);
Bq.prototype.write=function(a,b){zq(this,a,b);var c=Y(this,"featureMembers",a.features);this.setAttributeNS(c,"http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.schemaLocation);c=rp(this,c);delete this.srsName;delete this.axisOrientation;return c};function Cq(){function a(a,b){b.ig.push(X(a))}function b(a,b){var e={code:a.getAttribute("exceptionCode"),xh:a.getAttribute("locator"),ig:[]};b.Rd.push(e);W(this,a,e)}this.j={"http://www.opengis.net/ogc":{ServiceExceptionReport:function(a,b){b.exceptionReport={};b.exceptionReport.exceptions=[];W(this,a,b.exceptionReport)},ServiceException:function(a,b){var e={};e.code=a.getAttribute("code");e.locator=a.getAttribute("locator");e.text=X(a);b.exceptions.push(e)}},"http://www.opengis.net/ows":{ExceptionReport:function(a,
b){b.success=!1;b.fd={version:a.getAttribute("version"),language:a.getAttribute("language"),Rd:[]};W(this,a,b.fd)},Exception:function(a,d){b.apply(this,arguments)},ExceptionText:function(b,d){a.apply(this,arguments)}},"http://www.opengis.net/ows/1.1":{ExceptionReport:function(a,b){b.fd={version:a.getAttribute("version"),language:a.getAttribute("xml:lang"),Rd:[]};W(this,a,b.fd)},Exception:function(a,d){b.apply(this,arguments)},ExceptionText:function(b,d){a.apply(this,arguments)}}};qp.call(this)}
F(Cq,qp);Cq.prototype.F=function(a){v(a)&&(a=np(a));var b={exceptionReport:null};a&&W(this,a,b);return b};function Dq(a){this.b=a=t(a)?a:{};this.sc=a.sc||null;this.version=a.version;this.profile=a.profile;t(a.oc)?this.oc=a.oc:this.oc=!1;t(a.Tc)?this.Tc=a.Tc:this.Tc=!1}function Eq(a,b,c){b?(c=a.version,c||(c=b.getAttribute("version"),c||(c=a.sc))):c=c&&c.version||a.version||a.sc;return c}
function Fq(a,b){b=b||a.sc;var c=a.profile?"_"+a.profile:"";if(!a.parser||a.parser.VERSION!=b){var d=a.a["v"+b.replace(/\./g,"_")+c];if(!d&&(""!==c&&a.oc&&(c="",d=a.a["v"+b.replace(/\./g,"_")+c]),!d))throw"Can't find a parser for version "+b+c;a.parser=new d(a.b)}return a.parser}Dq.prototype.write=function(a,b){var c=Eq(this,null,b);this.parser=Fq(this,c);c=this.parser.write(a,b);return!1===this.Tc?c:op(c)};
Dq.prototype.F=function(a,b){v(a)&&(a=np(a));var c=Eq(this,a.documentElement);this.parser=Fq(this,c);var d=this.parser.F(a,b),e=this.parser.Qd||null;null!==e&&void 0===d[e]&&(e=new Cq,d.error=e.F(a));d.version=c;return d};function Gq(){this.A="http://www.opengis.net/wms";this.Qd="service";this.j={"http://www.opengis.net/wms":{Service:function(a,b){b.service={};W(this,a,b.service)},Name:function(a,b){b.name=X(a)},Title:function(a,b){b.title=X(a)},Abstract:function(a,b){b["abstract"]=X(a)},BoundingBox:function(a){var b={};b.bbox=[parseFloat(a.getAttribute("minx")),parseFloat(a.getAttribute("miny")),parseFloat(a.getAttribute("maxx")),parseFloat(a.getAttribute("maxy"))];a={x:parseFloat(a.getAttribute("resx")),y:parseFloat(a.getAttribute("resy"))};
isNaN(a.x)&&isNaN(a.y)||(b.res=a);return b},OnlineResource:function(a,b){b.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ContactInformation:function(a,b){b.contactInformation={};W(this,a,b.contactInformation)},ContactPersonPrimary:function(a,b){b.personPrimary={};W(this,a,b.personPrimary)},ContactPerson:function(a,b){b.person=X(a)},ContactOrganization:function(a,b){b.organization=X(a)},ContactPosition:function(a,b){b.position=X(a)},ContactAddress:function(a,b){b.contactAddress=
{};W(this,a,b.contactAddress)},AddressType:function(a,b){b.type=X(a)},Address:function(a,b){b.address=X(a)},City:function(a,b){b.city=X(a)},StateOrProvince:function(a,b){b.stateOrProvince=X(a)},PostCode:function(a,b){b.postcode=X(a)},Country:function(a,b){b.country=X(a)},ContactVoiceTelephone:function(a,b){b.phone=X(a)},ContactFacsimileTelephone:function(a,b){b.fax=X(a)},ContactElectronicMailAddress:function(a,b){b.email=X(a)},Fees:function(a,b){var c=X(a);c&&"none"!=c.toLowerCase()&&(b.fees=c)},
AccessConstraints:function(a,b){var c=X(a);c&&"none"!=c.toLowerCase()&&(b.accessConstraints=c)},Capability:function(a,b){b.capability={};b.capability.nestedLayers=[];b.capability.layers=[];W(this,a,b.capability)},Request:function(a,b){b.request={};W(this,a,b.request)},GetCapabilities:function(a,b){b.getcapabilities={};b.getcapabilities.formats=[];W(this,a,b.getcapabilities)},Format:function(a,b){ia(b.formats)?b.formats.push(X(a)):b.format=X(a)},DCPType:function(a,b){W(this,a,b)},HTTP:function(a,b){W(this,
a,b)},Get:function(a,b){b.get={};W(this,a,b.get)},Post:function(a,b){b.post={};W(this,a,b.post)},GetMap:function(a,b){b.getmap={};b.getmap.formats=[];W(this,a,b.getmap)},GetFeatureInfo:function(a,b){b.getfeatureinfo={};b.getfeatureinfo.formats=[];W(this,a,b.getfeatureinfo)},Exception:function(a,b){b.exception={};b.exception.formats=[];W(this,a,b.exception)},Layer:function(a,b){var c,d;b.capability?(d=b.capability,c=b):d=b;var e=a.getAttributeNode("queryable"),f=e&&e.specified?a.getAttribute("queryable"):
null,g=(e=a.getAttributeNode("cascaded"))&&e.specified?a.getAttribute("cascaded"):null,h=(e=a.getAttributeNode("opaque"))&&e.specified?a.getAttribute("opaque"):null,l=a.getAttribute("noSubsets"),n=a.getAttribute("fixedWidth"),q=a.getAttribute("fixedHeight"),e=c||{},f={nestedLayers:[],styles:c?[].concat(c.styles):[],srs:{},metadataURLs:[],bbox:{},llbbox:e.llbbox,dimensions:{},authorityURLs:{},identifiers:{},keywords:[],queryable:f&&""!==f?"1"===f||"true"===f:e.queryable||!1,cascaded:null!==g?parseInt(g,
10):e.cascaded||0,opaque:h?"1"===h||"true"===h:e.opaque||!1,noSubsets:null!==l?"1"===l||"true"===l:e.noSubsets||!1,fixedWidth:null!==n?parseInt(n,10):e.fixedWidth||0,fixedHeight:null!==q?parseInt(q,10):e.fixedHeight||0,minScale:e.minScale,maxScale:e.maxScale,attribution:e.attribution};c&&(H(f.srs,e.srs),H(f.bbox,e.bbox),H(f.dimensions,e.dimensions),H(f.authorityURLs,e.authorityURLs));b.nestedLayers.push(f);f.capability=d;W(this,a,f);delete f.capability;f.name&&(c=f.name.split(":"),g=d.request,e=g.getfeatureinfo,
0<c.length&&(f.prefix=c[0]),d.layers.push(f),t(f.formats)||(f.formats=g.getmap.formats),!t(f.infoFormats)&&e&&(f.infoFormats=e.formats))},Attribution:function(a,b){b.attribution={};W(this,a,b.attribution)},LogoURL:function(a,b){b.logo={width:a.getAttribute("width"),height:a.getAttribute("height")};W(this,a,b.logo)},Style:function(a,b){var c={};b.styles.push(c);W(this,a,c)},LegendURL:function(a,b){var c={width:a.getAttribute("width"),height:a.getAttribute("height")};b.legend=c;W(this,a,c)},MetadataURL:function(a,
b){var c={type:a.getAttribute("type")};b.metadataURLs.push(c);W(this,a,c)},DataURL:function(a,b){b.dataURL={};W(this,a,b.dataURL)},FeatureListURL:function(a,b){b.featureListURL={};W(this,a,b.featureListURL)},AuthorityURL:function(a,b){var c=a.getAttribute("name"),d={};W(this,a,d);b.authorityURLs[c]=d.href},Identifier:function(a,b){var c=a.getAttribute("authority");b.identifiers[c]=X(a)},KeywordList:function(a,b){W(this,a,b)},SRS:function(a,b){b.srs[X(a)]=!0}}};qp.call(this)}F(Gq,qp);
Gq.prototype.F=function(a){v(a)&&(a=np(a));a&&9==a.nodeType&&(a=a.documentElement);var b={};this.$a(a,b);return b};function Hq(){Gq.call(this);var a=this.j["http://www.opengis.net/wms"].BoundingBox;H(this.j["http://www.opengis.net/wms"],{WMT_MS_Capabilities:function(a,c){W(this,a,c)},Keyword:function(a,c){c.keywords&&c.keywords.push({value:X(a)})},DescribeLayer:function(a,c){c.describelayer={formats:[]};W(this,a,c.describelayer)},GetLegendGraphic:function(a,c){c.getlegendgraphic={formats:[]};W(this,a,c.getlegendgraphic)},GetStyles:function(a,c){c.getstyles={formats:[]};W(this,a,c.getstyles)},PutStyles:function(a,
c){c.putstyles={formats:[]};W(this,a,c.putstyles)},UserDefinedSymbolization:function(a,c){var d={supportSLD:1==parseInt(a.getAttribute("SupportSLD"),10),userLayer:1==parseInt(a.getAttribute("UserLayer"),10),userStyle:1==parseInt(a.getAttribute("UserStyle"),10),remoteWFS:1==parseInt(a.getAttribute("RemoteWFS"),10)};c.userSymbols=d},LatLonBoundingBox:function(a,c){c.llbbox=[parseFloat(a.getAttribute("minx")),parseFloat(a.getAttribute("miny")),parseFloat(a.getAttribute("maxx")),parseFloat(a.getAttribute("maxy"))]},
BoundingBox:function(b,c){var d=a.apply(this,arguments);d.srs=b.getAttribute("SRS");c.bbox[d.srs]=d},ScaleHint:function(a,c){var d=parseFloat(a.getAttribute("min")),e=parseFloat(a.getAttribute("max")),f=Math.pow(2,0.5),g=25.4/0.28;0!==d&&(c.maxScale=parseFloat(39.37*(d/f)*g));Infinity!=e&&(c.minScale=parseFloat(39.37*(e/f)*g))},Dimension:function(a,c){var d={name:a.getAttribute("name").toLowerCase(),units:a.getAttribute("units"),unitsymbol:a.getAttribute("unitSymbol")};c.dimensions[d.name]=d},Extent:function(a,
c){var d=a.getAttribute("name").toLowerCase();d in c.dimensions&&(d=c.dimensions[d],d.nearestVal="1"===a.getAttribute("nearestValue"),d.multipleVal="1"===a.getAttribute("multipleValues"),d.current="1"===a.getAttribute("current"),d["default"]=a.getAttribute("default")||"",d.values=X(a).split(","))}})}F(Hq,Gq);function Iq(){Hq.call(this);this.version="1.1.0";H(this.j["http://www.opengis.net/wms"],{SRS:function(a,b){for(var c=X(a).split(/ +/),d=0,e=c.length;d<e;d++)b.srs[c[d]]=!0}})}F(Iq,Hq);function Jq(){Hq.call(this);this.version="1.1.1";H(this.j["http://www.opengis.net/wms"],{SRS:function(a,b){b.srs[X(a)]=!0}})}F(Jq,Hq);function Kq(){Jq.call(this);this.profile="WMSC";H(this.j["http://www.opengis.net/wms"],{VendorSpecificCapabilities:function(a,b){b.vendorSpecific={tileSets:[]};W(this,a,b.vendorSpecific)},TileSet:function(a,b){var c={srs:{},bbox:{},resolutions:[]};W(this,a,c);b.yh.push(c)},Resolutions:function(a,b){for(var c=X(a).split(" "),d=0,e=c.length;d<e;d++)""!==c[d]&&b.resolutions.push(parseFloat(c[d]))},Width:function(a,b){b.width=parseInt(X(a),10)},Height:function(a,b){b.height=parseInt(X(a),10)},Layers:function(a,
b){b.layers=X(a)},Styles:function(a,b){b.styles=X(a)}})}F(Kq,Jq);function Lq(){Gq.call(this);var a=this.j["http://www.opengis.net/wms"].BoundingBox;H(this.j["http://www.opengis.net/wms"],{WMS_Capabilities:function(a,c){W(this,a,c)},LayerLimit:function(a,c){c.layerLimit=parseInt(X(a),10)},MaxWidth:function(a,c){c.maxWidth=parseInt(X(a),10)},MaxHeight:function(a,c){c.maxHeight=parseInt(X(a),10)},BoundingBox:function(b,c){var d=a.apply(this,arguments);d.srs=b.getAttribute("CRS");c.bbox[d.srs]=d},CRS:function(a,c){this.j["http://www.opengis.net/wms"].SRS.apply(this,
arguments)},EX_GeographicBoundingBox:function(a,c){c.llbbox=[];W(this,a,c.llbbox)},westBoundLongitude:function(a,c){c[0]=X(a)},eastBoundLongitude:function(a,c){c[2]=X(a)},southBoundLatitude:function(a,c){c[1]=X(a)},northBoundLatitude:function(a,c){c[3]=X(a)},MinScaleDenominator:function(a,c){c.maxScale=parseFloat(X(a)).toPrecision(16)},MaxScaleDenominator:function(a,c){c.minScale=parseFloat(X(a)).toPrecision(16)},Dimension:function(a,c){var d={name:a.getAttribute("name").toLowerCase(),units:a.getAttribute("units"),
unitsymbol:a.getAttribute("unitSymbol"),nearestVal:"1"===a.getAttribute("nearestValue"),multipleVal:"1"===a.getAttribute("multipleValues"),"default":a.getAttribute("default")||"",current:"1"===a.getAttribute("current"),values:X(a).split(",")};c.dimensions[d.name]=d},Keyword:function(a,c){var d={value:X(a),vocabulary:a.getAttribute("vocabulary")};c.keywords&&c.keywords.push(d)}});this.j.sld={UserDefinedSymbolization:function(a,c){this.j["http://www.opengis.net/wms"].uh.apply(this,arguments);var d=
a.getAttribute("InlineFeature");c.userSymbols.inlineFeature=1==parseInt(d,10);d=a.getAttribute("RemoteWCS");c.userSymbols.remoteWCS=1==parseInt(d,10)},DescribeLayer:function(a,c){this.j["http://www.opengis.net/wms"].Jg.apply(this,arguments)},GetLegendGraphic:function(a,c){this.j["http://www.opengis.net/wms"].Pg.apply(this,arguments)}}}F(Lq,Gq);function Mq(a){a=a||{};a.defaultVersion="1.1.1";this.a={};this.a.v1_1_0=Iq;this.a.v1_1_1=Jq;this.a.v1_1_1_WMSC=Kq;this.a.v1_3_0=Lq;Dq.call(this,a)}F(Mq,Dq);function Nq(){this.j={"http://www.opengis.net/ows":{ServiceIdentification:function(a,b){b.serviceIdentification={};W(this,a,b.serviceIdentification)},Title:function(a,b){b.title=X(a)},Abstract:function(a,b){b["abstract"]=X(a)},Keywords:function(a,b){b.keywords={};W(this,a,b.keywords)},Keyword:function(a,b){b[X(a)]=!0},ServiceType:function(a,b){b.serviceType={codeSpace:a.getAttribute("codeSpace"),value:X(a)}},ServiceTypeVersion:function(a,b){b.serviceTypeVersion=X(a)},Fees:function(a,b){b.fees=X(a)},
AccessConstraints:function(a,b){b.accessConstraints=X(a)},ServiceProvider:function(a,b){b.serviceProvider={};W(this,a,b.serviceProvider)},ProviderName:function(a,b){b.providerName=X(a)},ProviderSite:function(a,b){b.providerSite=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ServiceContact:function(a,b){b.serviceContact={};W(this,a,b.serviceContact)},IndividualName:function(a,b){b.individualName=X(a)},PositionName:function(a,b){b.positionName=X(a)},ContactInfo:function(a,b){b.contactInfo=
{};W(this,a,b.contactInfo)},Phone:function(a,b){b.phone={};W(this,a,b.phone)},Voice:function(a,b){b.voice=X(a)},Address:function(a,b){b.address={};W(this,a,b.address)},DeliveryPoint:function(a,b){b.deliveryPoint=X(a)},City:function(a,b){b.city=X(a)},AdministrativeArea:function(a,b){b.administrativeArea=X(a)},PostalCode:function(a,b){b.postalCode=X(a)},Country:function(a,b){b.country=X(a)},ElectronicMailAddress:function(a,b){b.electronicMailAddress=X(a)},Role:function(a,b){b.role=X(a)},OperationsMetadata:function(a,
b){b.operationsMetadata={};W(this,a,b.operationsMetadata)},Operation:function(a,b){var c=a.getAttribute("name");b[c]={};W(this,a,b[c])},DCP:function(a,b){b.dcp={};W(this,a,b.dcp)},HTTP:function(a,b){b.http={};W(this,a,b.http)},Get:function(a,b){b.get||(b.get=[]);var c={url:this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")};W(this,a,c);b.get.push(c)},Post:function(a,b){b.post||(b.post=[]);var c={url:this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")};W(this,a,c);b.post.push(c)},
Parameter:function(a,b){b.parameters||(b.parameters={});var c=a.getAttribute("name");b.parameters[c]={};W(this,a,b.parameters[c])},Constraint:function(a,b){b.constraints||(b.constraints={});var c=a.getAttribute("name");b.constraints[c]={};W(this,a,b.constraints[c])},Value:function(a,b){b[X(a)]=!0},OutputFormat:function(a,b){b.formats.push({value:X(a)});W(this,a,b)},WGS84BoundingBox:function(a,b){var c={};c.crs=a.getAttribute("crs");b.BoundingBox?b.BoundingBox.push(c):(b.projection=c.crs,c=b);W(this,
a,c)},BoundingBox:function(a,b){this.j[a.namespaceURI].WGS84BoundingBox.apply(this,[a,b])},LowerCorner:function(a,b){var c=X(a).replace(this.S.ya,""),c=c.replace(this.S.Cd,","),c=c.split(this.S.Nb);b.left=c[0];b.bottom=c[1]},UpperCorner:function(a,b){var c=X(a).replace(this.S.ya,""),c=c.replace(this.S.Cd,","),c=c.split(this.S.Nb);b.right=c[0];b.top=c[1];b.bounds=[parseFloat(b.left),parseFloat(b.right),parseFloat(b.bottom),parseFloat(b.top)];delete b.left;delete b.bottom;delete b.right;delete b.top},
Language:function(a,b){b.language=X(a)}}};qp.call(this)}F(Nq,qp);function Oq(){Nq.call(this);this.j["http://www.opengis.net/ows/1.1"]=this.j["http://www.opengis.net/ows"];H(this.j["http://www.opengis.net/ows/1.1"],{AllowedValues:function(a,b){b.allowedValues={};W(this,a,b.allowedValues)},AnyValue:function(a,b){b.anyValue=!0},DataType:function(a,b){b.dataType=X(a)},Range:function(a,b){b.range={};W(this,a,b.range)},MinimumValue:function(a,b){b.minValue=X(a)},MaximumValue:function(a,b){b.maxValue=X(a)},Identifier:function(a,b){b.identifier=X(a)},SupportedCRS:function(a,
b){b.supportedCRS=X(a)}})}F(Oq,Nq);function Pq(){this.A="http://www.opengis.net/wmts/1.0";this.Qd="serviceIdentification";this.j={"http://www.opengis.net/wmts/1.0":{Capabilities:function(a,c){W(this,a,c)},Contents:function(a,c){c.contents={};c.contents.layers=[];c.contents.tileMatrixSets={};W(this,a,c.contents)},Layer:function(a,c){var d={styles:[],formats:[],dimensions:[],tileMatrixSetLinks:[],layers:[]};W(this,a,d);c.layers.push(d)},Style:function(a,c){var d={};d.isDefault="true"===a.getAttribute("isDefault");W(this,a,d);c.styles.push(d)},
Format:function(a,c){c.formats.push(X(a))},TileMatrixSetLink:function(a,c){var d={};W(this,a,d);c.tileMatrixSetLinks.push(d)},TileMatrixSet:function(a,c){if(c.layers){var d={matrixIds:[]};W(this,a,d);c.tileMatrixSets[d.identifier]=d}else c.tileMatrixSet=X(a)},TileMatrix:function(a,c){var d={supportedCRS:c.supportedCRS};W(this,a,d);c.matrixIds.push(d)},ScaleDenominator:function(a,c){c.scaleDenominator=parseFloat(X(a))},TopLeftCorner:function(a,c){var d=X(a).split(" "),e=ke(c.supportedCRS).a;c.topLeftCorner=
od([parseFloat(d[0]),parseFloat(d[1])],e)},TileWidth:function(a,c){c.tileWidth=parseInt(X(a),10)},TileHeight:function(a,c){c.tileHeight=parseInt(X(a),10)},MatrixWidth:function(a,c){c.matrixWidth=parseInt(X(a),10)},MatrixHeight:function(a,c){c.matrixHeight=parseInt(X(a),10)},ResourceURL:function(a,c){var d=a.getAttribute("resourceType"),e=a.getAttribute("format"),f=a.getAttribute("template");c.resourceUrls||(c.resourceUrls={});c.resourceUrls[d]||(c.resourceUrls[d]={});c.resourceUrls[d][e]||(c.resourceUrls[d][e]=
[]);c.resourceUrls[d][e].push(f)},WSDL:function(a,c){c.wsdl={};c.wsdl.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ServiceMetadataURL:function(a,c){c.serviceMetadataUrl={};c.serviceMetadataUrl.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},LegendURL:function(a,c){c.legend={};c.legend.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href");c.legend.format=a.getAttribute("format")},Dimension:function(a,c){var d={values:[]};W(this,a,d);c.dimensions.push(d)},
Default:function(a,c){c["default"]=X(a)},Value:function(a,c){c.values.push(X(a))}}};var a=new Oq;this.j["http://www.opengis.net/ows/1.1"]=a.j["http://www.opengis.net/ows/1.1"];qp.call(this)}F(Pq,qp);Pq.prototype.F=function(a){v(a)&&(a=np(a));a&&9==a.nodeType&&(a=a.documentElement);var b={};this.$a(a,b);return b};function Qq(a){a=a||{};a.defaultVersion="1.0.0";this.a={};this.a.v1_0_0=Pq;Dq.call(this,a)}F(Qq,Dq);function Rq(a,b){var c=b||{},d=c.document||document,e=Jf("SCRIPT"),f={se:e,zb:void 0},g=new Ap(Sq,f),h=null,l=null!=c.timeout?c.timeout:5E3;0<l&&(h=window.setTimeout(function(){Tq(e,!0);g.Db(new Uq(Vq,"Timeout reached for loading script "+a))},l),f.zb=h);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(Tq(e,c.Jd||!1,h),g.aa(null))};e.onerror=function(){Tq(e,!0,h);g.Db(new Uq(Wq,"Error while loading script "+a))};Df(e,{type:"text/javascript",
charset:"UTF-8",src:a});Xq(d).appendChild(e);return g}function Xq(a){var b=a.getElementsByTagName("HEAD");return b&&0!=b.length?b[0]:a.documentElement}function Sq(){if(this&&this.se){var a=this.se;a&&"SCRIPT"==a.tagName&&Tq(a,!0,this.zb)}}function Tq(a,b,c){null!=c&&p.clearTimeout(c);a.onload=da;a.onerror=da;a.onreadystatechange=da;b&&window.setTimeout(function(){Of(a)},0)}var Wq=0,Vq=1;function Uq(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);ta.call(this,c);this.code=a}F(Uq,ta);function Yq(a,b){this.b=new ze(a);this.a=b?b:"callback";this.zb=5E3}var Zq=0;Yq.prototype.cancel=function(a){a&&(a.dd&&a.dd.cancel(),a.P&&$q(a.P,!1))};function ar(a){return function(){$q(a,!1)}}function br(a,b){return function(c){$q(a,!0);b.apply(void 0,arguments)}}function $q(a,b){p._callbacks_[a]&&(b?delete p._callbacks_[a]:p._callbacks_[a]=da)};function cr(a){return function(b){return null===b?void 0:a.replace("{z}",""+b.z).replace("{x}",""+b.x).replace("{y}",""+b.y)}}function dr(a){return er(La(a,cr))}function er(a){return 1===a.length?a[0]:function(b,c){return null===b?void 0:a[ad((b.x<<b.z)+b.y,a.length)].call(this,b,c)}}function fr(a,b){var c=jk,d=qd();return function(e,f){if(null!==e){var g=this.tileGrid;null===g&&(g=uj(f));var h=g.Aa(e.z),g=oj(g,e,d);return c.call(this,a,b,g,h,f)}}}function gr(){}
function hr(a,b){var c=new Ya(0,0,0);return function(d,e){return null===d?void 0:b.call(this,a.call(this,d,e,c),e)}}function ir(a){var b=[],c=/\{(\d)-(\d)\}/.exec(a)||/\{([a-z])-([a-z])\}/.exec(a);if(c){var d=c[2].charCodeAt(0),e;for(e=c[1].charCodeAt(0);e<=d;++e)b.push(a.replace(c[0],String.fromCharCode(e)))}else b.push(a);return b};function jr(a,b,c,d){zh.call(this,a,b);this.f=c;this.b=new Image;null!==d&&(this.b.crossOrigin=d);this.e={};this.d=null}F(jr,zh);jr.prototype.ha=function(a){if(t(a)){var b=x(a);if(b in this.e)return this.e[b];a=oc(this.e)?this.b:this.b.cloneNode(!1);return this.e[b]=a}return this.b};jr.prototype.c=k("f");jr.prototype.g=function(){this.a=3;Ha(this.d,Fc);this.d=null;K(this,"change")};jr.prototype.i=function(){this.a=this.b.naturalWidth&&this.b.naturalHeight?2:4;Ha(this.d,Fc);this.d=null;K(this,"change")};function kr(a){vj.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,opaque:a.opaque,projection:a.projection,tileGrid:a.tileGrid});this.tileUrlFunction=t(a.tileUrlFunction)?a.tileUrlFunction:gr;this.k=t(a.crossOrigin)?a.crossOrigin:null;this.a=new jm}F(kr,vj);m=kr.prototype;m.xd=function(){return this.a.T()>this.a.d};m.Rb=function(a){this.a.Rb(a)};
m.Fb=function(a,b,c,d){var e=this.fb(a,b,c);if(im(this.a,e))return this.a.get(e);a=new Ya(a,b,c);d=this.tileUrlFunction(a,d);d=new jr(a,t(d)?0:4,t(d)?d:"",this.k);this.a.set(e,d);return d};m.jc=function(a){this.a.clear();this.tileUrlFunction=a;Kh(this)};m.we=function(a,b,c){a=this.fb(a,b,c);im(this.a,a)&&this.a.get(a)};function lr(a){var b=Array(a.maxZoom+1),c,d=2*fj/256;for(c=0;c<=a.maxZoom;++c)b[c]=d/Math.pow(2,c);mj.call(this,{minZoom:a.minZoom,origin:[-fj,fj],resolutions:b,tileSize:[256,256]})}F(lr,mj);
function mr(a,b){var c=t(b)?b:{},d=a.minZoom,e=a.maxZoom,f=t(c.rg)?c.rg:!0,g=new Ya(0,0,0),h=null;if(t(c.extent)){var h=Array(e+1),l;for(l=0;l<=e;++l)h[l]=l<d?null:pj(a,c.extent,l)}return function(a,b,c){b=a.z;if(b<d||e<b)return null;var l=Math.pow(2,b),s=a.x;if(f)s=ad(s,l);else if(0>s||l<=s)return null;a=a.y;return a<-l||-1<a||null!==h&&(g.z=b,g.x=s,g.y=a,!h[b].contains(g))?null:t(c)?(c.z=b,c.x=s,c.y=-a-1,c):new Ya(b,s,-a-1)}}
lr.prototype.Dc=function(a,b){return a.z<this.maxZoom?bb(2*a.x,2*(a.x+1),2*a.y,2*(a.y+1),b):null};lr.prototype.zc=function(a,b,c,d){d=bb(0,a.x,0,a.y,d);for(a=a.z-1;a>=this.minZoom;--a)if(d.a=d.d>>=1,d.c=d.b>>=1,b.call(c,a,d))return!0;return!1};function nr(a){kr.call(this,{crossOrigin:"anonymous",opaque:!0,projection:ke("EPSG:3857")});this.e=t(a.culture)?a.culture:"en-us";this.c=!1;var b=new ze("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style),b=new Yq(b,"jsonp"),c={include:"ImageryProviders",key:a.key};a=y(this.i,this);var d=c||null,c="_"+(Zq++).toString(36)+sa().toString(36);p._callbacks_||(p._callbacks_={});var e=b.b.ca();if(d)for(var f in d)d.hasOwnProperty&&!d.hasOwnProperty(f)||Me(e,f,d[f]);a&&(p._callbacks_[c]=br(c,a),Me(e,
b.a,"_callbacks_."+c));f=Rq(e.toString(),{timeout:b.zb,Jd:!0});Hp(f,null,ar(c),void 0)}F(nr,kr);
nr.prototype.i=function(a){var b=a.brandLogoUri,c=a.resourceSets[0].resources[0],d=new lr({minZoom:c.zoomMin,maxZoom:c.zoomMax,tileSize:[c.imageWidth,c.imageHeight]});this.tileGrid=d;var e=this.e;this.tileUrlFunction=hr(mr(d),er(La(c.imageUrlSubdomains,function(a){var b=c.imageUrl.replace("{subdomain}",a).replace("{culture}",e);return function(a){return null===a?void 0:b.replace("{quadkey}",$a(a))}})));var f=Od(ke("EPSG:4326"),this.fa());this.d=La(c.imageryProviders,function(a){var b=a.attribution,
c={};Ha(a.coverageAreas,function(a){var b=a.zoomMin,e=a.zoomMax;a=a.bbox;a=Cd([a[1],a[3],a[0],a[2]],f);var g,h;for(g=b;g<=e;++g)h=g.toString(),b=pj(d,a,g),h in c?c[h].push(b):c[h]=[b]});return new cb({html:b,tileRanges:c})});this.f=b;this.c=!0;++this.b;K(this,"load")};nr.prototype.Ba=k("c");function or(a){var b=pr(a.url),c=a.imageExtent,d=a.imageSize,e=(c[3]-c[2])/d[1],f=ke(a.projection);lk.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,Hb:b,resolutions:[e]});this.a=mk(this,c,e,d,f)}F(or,lk);or.prototype.ha=function(a){return Bd(a,this.a.ba())?this.a:null};function pr(a){return function(){return a}};function jk(a,b,c,d,e){d={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0,WIDTH:Math.round(d[0]),HEIGHT:Math.round(d[1])};H(d,b);d.STYLES=b.STYLES||new String("");b="1.3"<d.VERSION;d[b?"CRS":"SRS"]=e.Sa;e=e.a;d.BBOX=(b&&"ne"==e.substr(0,2)?[c[2],c[0],c[3],c[1]]:[c[0],c[2],c[1],c[3]]).join(",");return we(ye([a],d))}
function qr(a,b,c,d,e){a=a.replace("REQUEST\x3dGetMap","REQUEST\x3dGetFeatureInfo").replace(rr,"LAYERS\x3d$1\x26QUERY_LAYERS\x3d$1");c=t(c)?pc(c):{};var f={method:"iframe",params:{}};H(f,c);c={INFO_FORMAT:"text/html"};var g=parseFloat(a.match(sr)[1]),h=Math.round(b[0]);b=Math.round(b[1]);1.3<=g?H(c,{I:h,J:b}):H(c,{X:h,Y:b});H(c,f.params);a=we(ye([a],c));"iframe"==f.method?p.setTimeout(function(){d('\x3ciframe seamless src\x3d"'+a+'"\x3e\x3c/iframe\x3e')},0):"xhr_get"==f.method&&il(a,function(a){a=
a.target;sl(a)?d(tl(a)):t(e)&&e()})}var rr=/LAYERS=([^&]+)/,sr=/VERSION=([^&]+)/;function tr(a){this.e=a.params;lk.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,resolutions:a.resolutions,Hb:t(a.url)?ik(a.url,this.e):kk});this.k=t(a.kd)?a.kd:{};this.a=null;this.t=t(a.ratio)?a.ratio:1.5}F(tr,lk);tr.prototype.o=k("e");
tr.prototype.ha=function(a,b,c){null===this.c||(b=this.c[bi(this.c,b,0)]);var d=this.a;if(null!==d&&d.C()==b&&ud(d.ba(),a))return d;var d=a=a.slice(),e=this.t,f=(d[1]-d[0])/2*(e-1),e=(d[3]-d[2])/2*(e-1);d[0]-=f;d[1]+=f;d[2]-=e;d[3]+=e;return this.a=mk(this,a,b,[(a[1]-a[0])/b,(a[3]-a[2])/b],c)};tr.prototype.Ta=function(a,b,c,d){var e=b.a().O().fa(),f=b.c(),g=Oh(b,[0,f[1]]);b=Oh(b,[f[0],0]);e=this.Hb([g[0],b[0],g[1],b[1]],f,e);qr(e,a,this.k,c,d)};tr.prototype.s=function(a){H(this.e,a);this.a=null;Kh(this)};function ur(a){var b=a.projection||ke("EPSG:3857"),c=new lr({maxZoom:t(a.maxZoom)?a.maxZoom:18});kr.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,logo:a.logo,projection:b,tileGrid:c,tileUrlFunction:gr});this.e=mr(c,{extent:a.extent});t(a.tileUrlFunction)?this.jc(a.tileUrlFunction):t(a.urls)?this.jc(dr(a.urls)):t(a.url)&&this.c(a.url)}F(ur,kr);ur.prototype.jc=function(a){ur.B.jc.call(this,hr(this.e,a))};ur.prototype.c=function(a){this.jc(dr(ir(a)))};function vr(a){a=t(a)?a:{};ur.call(this,{attributions:t(a.attributions)?a.attributions:t(a.attribution)?[a.attribution]:wr,crossOrigin:"anonymous",opaque:!0,maxZoom:a.maxZoom,url:t(a.url)?a.url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}F(vr,ur);
var xr=new cb({html:'Data \x26copy; \x3ca href\x3d"http://www.openstreetmap.org/"\x3eOpenStreetMap\x3c/a\x3e contributors, \x3ca href\x3d"http://www.openstreetmap.org/copyright"\x3eODbL\x3c/a\x3e'}),yr=new cb({html:'Tiles \x26copy; \x3ca href\x3d"http://www.openstreetmap.org/"\x3eOpenStreetMap\x3c/a\x3e contributors, \x3ca href\x3d"http://creativecommons.org/licenses/by-sa/2.0/"\x3eCC BY-SA\x3c/a\x3e'}),wr=[yr,xr];function zr(){ur.call(this,{attributions:[new cb({html:'Tiles Courtesy of \x3ca href\x3d"http://www.mapquest.com/" target\x3d"_blank"\x3eMapQuest\x3c/a\x3e'}),xr],crossOrigin:"anonymous",logo:"http://developer.mapquest.com/content/osm/mq_logo.png",opaque:!0,maxZoom:28,url:"http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg"})}F(zr,ur);
function Ar(){ur.call(this,{attributions:[new cb({html:'Tiles Courtesy of \x3ca href\x3d"http://www.mapquest.com/" target\x3d"_blank"\x3eMapQuest\x3c/a\x3e'}),new cb({html:"Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency"})],crossOrigin:"anonymous",logo:"http://developer.mapquest.com/content/osm/mq_logo.png",maxZoom:18,opaque:!0,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})}F(Ar,ur);var Or={terrain:{za:"jpg",opaque:!0},"terrain-background":{za:"jpg",opaque:!0},"terrain-labels":{za:"png",opaque:!1},"terrain-lines":{za:"png",opaque:!1},"toner-background":{za:"png",opaque:!0},toner:{za:"png",opaque:!0},"toner-hybrid":{za:"png",opaque:!1},"toner-labels":{za:"png",opaque:!1},"toner-lines":{za:"png",opaque:!1},"toner-lite":{za:"png",opaque:!0},watercolor:{za:"jpg",opaque:!0}},Pr={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:3,maxZoom:16}};
function Qr(a){var b=a.layer.indexOf("-"),b=-1==b?a.layer:a.layer.slice(0,b),c=Or[a.layer];ur.call(this,{attributions:Rr,crossOrigin:"anonymous",maxZoom:Pr[b].maxZoom,opaque:c.opaque,url:t(a.url)?a.url:"http://{a-d}.tile.stamen.com/"+a.layer+"/{z}/{x}/{y}."+c.za})}F(Qr,ur);var Rr=[new cb({html:'Map tiles by \x3ca href\x3d"http://stamen.com/"\x3eStamen Design\x3c/a\x3e, under \x3ca href\x3d"http://creativecommons.org/licenses/by/3.0/"\x3eCC BY 3.0\x3c/a\x3e.'}),xr];function Sr(a,b){zh.call(this,a,2);this.e=a;this.d=b.Aa(a.z);this.b={}}F(Sr,zh);Sr.prototype.ha=function(a){a=t(a)?x(a):-1;if(a in this.b)return this.b[a];var b=this.d,c=Jf("CANVAS");c.width=b[0];c.height=b[1];var d=c.getContext("2d");d.strokeStyle="black";d.strokeRect(0.5,0.5,b[0]+0.5,b[1]+0.5);d.fillStyle="black";d.textAlign="center";d.textBaseline="middle";d.font="24px sans-serif";d.fillText(this.e.toString(),b[0]/2,b[1]/2);return this.b[a]=c};
function Tr(a){vj.call(this,{extent:a.extent,opaque:!1,projection:a.projection,tileGrid:a.tileGrid});this.a=new jm}F(Tr,vj);Tr.prototype.xd=function(){return this.a.T()>this.a.d};Tr.prototype.Rb=function(a){this.a.Rb(a)};Tr.prototype.Fb=function(a,b,c){var d=this.fb(a,b,c);if(im(this.a,d))return this.a.get(d);a=new Sr(new Ya(a,b,c),this.tileGrid);this.a.set(d,a);return a};var Ur=[];C("grid",function(a){Ur.push(a)});function Vr(a){kr.call(this,{crossOrigin:a.crossOrigin,projection:ke("EPSG:3857")});this.c=!1;this.dd=Rq(a.url,{Jd:!0});Gp(this.dd,this.e,this)}F(Vr,kr);
Vr.prototype.e=function(){var a=Ur.pop(),b=ke("EPSG:4326"),c;if(t(a.bounds)){var d=a.bounds,d=[d[0],d[2],d[1],d[3]],e=Od(b,this.fa());this.g=c=Cd(d,e)}var f=a.minzoom||0,d=a.maxzoom||22;this.tileGrid=e=new lr({maxZoom:d,minZoom:f});this.tileUrlFunction=hr(mr(e,{extent:c}),dr(a.tiles));if(t(a.attribution)){b=t(c)?c:b.ba();c={};for(var g;f<=d;++f)g=f.toString(),c[g]=[pj(e,b,f)];this.d=[new cb({html:a.attribution,tileRanges:c})]}this.c=!0;++this.b;K(this,"load")};Vr.prototype.Ba=k("c");function Wr(a){var b=gr,c=a.urls;!t(c)&&t(a.url)&&(c=ir(a.url));this.c=a.params;this.e="";Xr(this);t(c)&&(b=La(c,function(a){return fr(a,this.c)},this),b=er(b));var d=a.extent;kr.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:d,tileGrid:a.tileGrid,opaque:!(t(a.params.TRANSPARENT)?a.params.TRANSPARENT:1),projection:a.projection,tileUrlFunction:hr(function(a,b){var c=this.tileGrid;null===c&&(c=uj(b));if(c.Ub().length<=a.z)return null;var h=a.x,l=oj(c,a),n=b.ba();d=t(d)?d:n;
null!==d&&(b.nd&&d[0]===n[0]&&d[1]===n[1])&&(l=Math.ceil((d[1]-d[0])/(l[1]-l[0])),h=ad(h,l),l=oj(c,new Ya(a.z,h,a.y)));return null===d||Bd(l,d)?new Ya(a.z,h,a.y):null},b)});this.i=t(a.kd)?a.kd:{}}F(Wr,kr);Wr.prototype.fb=function(a,b,c){return this.e+Wr.B.fb.call(this,a,b,c)};Wr.prototype.o=k("c");
Wr.prototype.Ta=function(a,b,c,d){var e=Oh(b,a),f=b.a().O(),g=f.fa(),h=null===this.tileGrid?uj(g):this.tileGrid,f=f.C(),e=rj(h,e[0],e[1],f,!1,void 0),h=oj(h,e);b=Pi(b,Ad(h));g=this.tileUrlFunction(e,g);qr(g,[a[0]-b[0],a[1]-b[1]],this.i,c,d)};function Xr(a){var b=0,c=[],d;for(d in a.c)c[b++]=d+"-"+a.c[d];a.e=c.join("/")}Wr.prototype.s=function(a){H(this.c,a);Xr(this);Kh(this)};function Yr(a){this.c=a.matrixIds;mj.call(this,{origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes})}F(Yr,mj);Yr.prototype.g=k("c");
function Zr(a){var b=[],c=[],d=[],e=[],f=ke(a.supportedCRS).Tb();Va(a.matrixIds,function(a,b){return b.scaleDenominator-a.scaleDenominator});Ha(a.matrixIds,function(a){c.push(a.identifier);d.push(a.topLeftCorner);b.push(2.8E-4*a.scaleDenominator/f);e.push([a.tileWidth,a.tileHeight])});return new Yr({origins:d,resolutions:b,matrixIds:c,tileSizes:e})};var $r="KVP";
function as(a){function b(a){a=e==$r?we(ye([a],g)):a.replace(/\{(\w+?)\}/g,function(a,b){return b in g?g[b]:a});return function(b){if(null!==b){var c={TileMatrix:f.c[b.z],TileCol:b.x,TileRow:b.y};H(c,this.c);b=a;return b=e==$r?we(ye([b],c)):b.replace(/\{(\w+?)\}/g,function(a,b){return c[b]})}}}var c=t(a.version)?a.version:"1.0.0",d=t(a.format)?a.format:"image/jpeg";this.c=a.dimensions||{};this.e="";bs(this);var e=t(a.requestEncoding)?a.requestEncoding:$r,f=a.tileGrid,g={Layer:a.layer,style:a.style,
Style:a.style,TileMatrixSet:a.matrixSet};e==$r&&H(g,{Service:"WMTS",Request:"GetTile",Version:c,Format:d});c=gr;d=a.urls;!t(d)&&t(a.url)&&(d=ir(a.url));t(d)&&(c=er(La(d,b)));var h=qd(),l=new Ya(0,0,0),c=hr(function(b,c){var d=this.tileGrid;if(d.Ub().length<=b.z)return null;var e=b.x,f=-b.y-1,g=oj(d,b),z=c.ba(),u=t(a.extent)?a.extent:z;null!==u&&(c.nd&&u[0]===z[0]&&u[1]===z[1])&&(g=Math.ceil((u[1]-u[0])/(g[1]-g[0])),e=ad(e,g),l.z=b.z,l.x=e,l.y=b.y,g=oj(d,l,h));return Bd(g,u)?new Ya(b.z,e,f):null},
c);kr.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,tileGrid:f,tileUrlFunction:c})}F(as,kr);as.prototype.i=k("c");as.prototype.fb=function(a,b,c){return this.e+as.B.fb.call(this,a,b,c)};function bs(a){var b=0,c=[],d;for(d in a.c)c[b++]=d+"-"+a.c[d];a.e=c.join("/")}as.prototype.o=function(a){H(this.c,a);bs(this);Kh(this)};function cs(a){this.c=t(a.color)?a.color instanceof pk?a.color:new U(a.color):new U(ds);this.a=t(a.fontFamily)?a.fontFamily instanceof pk?a.fontFamily:new U(a.fontFamily):new U(es);this.b=t(a.fontSize)?a.fontSize instanceof pk?a.fontSize:new U(a.fontSize):new U(fs);this.e=a.text instanceof pk?a.text:new U(a.text);this.d=t(a.opacity)?a.opacity instanceof pk?a.opacity:new U(a.opacity):new U(gs)}F(cs,Fl);
cs.prototype.eb=function(a){var b;a instanceof N&&(b=a,b.u());a=Wk(this.c,b);var c=Wk(this.a,b),d=Number(Wk(this.b,b)),e=Wk(this.e,b);b=Number(Wk(this.d,b));return new Yl({color:a,fontFamily:c,fontSize:d,text:e,opacity:b})};var ds="#000",es="sans-serif",fs=10,gs=1;function hs(a){null!=a&&(a.html=a.html,a.tileRanges=a.tileRanges);cb.call(this,a)}F(hs,cb);C("ol.Attribution",hs);C("ol.Collection",M);M.prototype.clear=M.prototype.clear;M.prototype.extend=M.prototype.Of;M.prototype.forEach=M.prototype.forEach;M.prototype.getArray=M.prototype.Pf;M.prototype.getAt=M.prototype.Ne;M.prototype.getLength=M.prototype.Cc;M.prototype.insertAt=M.prototype.Ic;M.prototype.pop=M.prototype.pop;M.prototype.push=M.prototype.push;M.prototype.remove=M.prototype.remove;
M.prototype.removeAt=M.prototype.Ad;M.prototype.setAt=M.prototype.fg;Yc.prototype.getElement=Yc.prototype.b;function is(a){null!=a&&(a.tracking=a.tracking);cd.call(this,a)}F(is,cd);C("ol.DeviceOrientation",is);C("ol.DeviceOrientation.SUPPORTED",hd);C("ol.Feature",N);N.prototype.getAttributes=N.prototype.pb;N.prototype.getFeatureId=N.prototype.Se;N.prototype.getGeometry=N.prototype.u;N.prototype.set=N.prototype.set;N.prototype.setGeometry=N.prototype.ra;
function js(a){null!=a&&(a.projection=a.projection,a.tracking=a.tracking,a.trackingOptions=a.trackingOptions);P.call(this,a)}F(js,P);C("ol.Geolocation",js);C("ol.Geolocation.SUPPORTED",ne);function ks(a){null!=a&&(a.controls=a.controls,a.interactions=a.interactions,a.layers=a.layers,a.overlays=a.overlays,a.renderer=a.renderer,a.renderers=a.renderers,a.target=a.target,a.view=a.view);V.call(this,a)}F(ks,V);C("ol.Map",ks);V.prototype.addControl=V.prototype.Ge;V.prototype.addLayer=V.prototype.he;
V.prototype.addOverlay=V.prototype.He;V.prototype.beforeRender=V.prototype.Ga;V.prototype.getControls=V.prototype.Re;V.prototype.getFeatureInfo=V.prototype.Te;V.prototype.getFeatures=V.prototype.Sd;V.prototype.getInteractions=V.prototype.Ue;V.prototype.getLayers=V.prototype.lb;V.prototype.getOverlays=V.prototype.We;V.prototype.getRenderer=V.prototype.Xe;V.prototype.removeControl=V.prototype.Zf;V.prototype.removeLayer=V.prototype.qe;V.prototype.removeOverlay=V.prototype.ag;V.prototype.updateSize=V.prototype.ma;
Nh.prototype.getCoordinate=Nh.prototype.d;Nh.prototype.getPixel=Nh.prototype.e;Nh.prototype.preventDefault=Nh.prototype.U;Nh.prototype.stopPropagation=Nh.prototype.sb;C("ol.Object",L);L.prototype.bindTo=L.prototype.Ie;L.prototype.get=L.prototype.get;L.prototype.notify=L.prototype.ge;L.prototype.on=L.prototype.Vf;L.prototype.once=L.prototype.Xf;L.prototype.set=L.prototype.set;L.prototype.setValues=L.prototype.dc;L.prototype.un=L.prototype.lg;L.prototype.unByKey=L.prototype.mg;L.prototype.unbind=L.prototype.Dd;
L.prototype.unbindAll=L.prototype.ng;function ls(a){null!=a&&(a.element=a.element,a.position=a.position,a.positioning=a.positioning);Ao.call(this,a)}F(ls,Ao);C("ol.Overlay",ls);C("ol.OverlayPositioning",zo);zo.BOTTOM_LEFT="bottom-left";zo.BOTTOM_RIGHT="bottom-right";zo.TOP_LEFT="top-left";zo.TOP_RIGHT="top-right";function ms(a){null!=a&&(a.axisOrientation=a.axisOrientation,a.code=a.code,a.extent=a.extent,a.global=a.global,a.units=a.units);Md.call(this,a)}F(ms,Md);C("ol.Projection",ms);
Md.prototype.getAxisOrientation=Md.prototype.Oe;Md.prototype.getCode=Md.prototype.Qe;Md.prototype.getExtent=Md.prototype.ba;Md.prototype.getMetersPerUnit=Md.prototype.Tb;Md.prototype.getPointResolution=Md.prototype.b;Md.prototype.getUnits=Md.prototype.Sf;Md.prototype.isGlobal=Md.prototype.If;C("ol.ProjectionUnits",Kd);Kd.DEGREES="degrees";Kd.FEET="ft";Kd.METERS="m";C("ol.RendererHint",wo);wo.CANVAS="canvas";wo.DOM="dom";wo.WEBGL="webgl";C("ol.RendererHints",vo);vo.createFromQueryData=vo.Ke;
function ns(a){null!=a&&(a.center=a.center,a.maxResolution=a.maxResolution,a.maxZoom=a.maxZoom,a.projection=a.projection,a.resolution=a.resolution,a.resolutions=a.resolutions,a.rotation=a.rotation,a.zoom=a.zoom,a.zoomFactor=a.zoomFactor);T.call(this,a)}F(ns,T);C("ol.View2D",ns);T.prototype.calculateExtent=T.prototype.i;T.prototype.constrainResolution=T.prototype.Ha;T.prototype.constrainRotation=T.prototype.qc;T.prototype.fitExtent=T.prototype.jd;T.prototype.getView2D=T.prototype.O;
T.prototype.getZoom=T.prototype.$e;T.prototype.setZoom=T.prototype.o;C("ol.animation.bounce",function(a){null!=a&&(a.duration=a.duration,a.easing=a.easing,a.resolution=a.resolution,a.start=a.start);return si(a)});C("ol.animation.pan",function(a){null!=a&&(a.duration=a.duration,a.easing=a.easing,a.source=a.source,a.start=a.start);return ti(a)});C("ol.animation.rotate",function(a){null!=a&&(a.duration=a.duration,a.easing=a.easing,a.rotation=a.rotation,a.start=a.start);return ui(a)});
C("ol.animation.zoom",function(a){null!=a&&(a.duration=a.duration,a.easing=a.easing,a.resolution=a.resolution,a.start=a.start);return vi(a)});C("ol.canvas.SUPPORTED",Dm);function os(a){null!=a&&(a.className=a.className,a.target=a.target);mi.call(this,a)}F(os,mi);C("ol.control.Attribution",os);mi.prototype.setMap=mi.prototype.setMap;function ps(a){null!=a&&(a.element=a.element,a.target=a.target);li.call(this,a)}F(ps,li);C("ol.control.Control",ps);li.prototype.getMap=li.prototype.W;
li.prototype.setMap=li.prototype.setMap;function qs(a){null!=a&&(a.className=a.className,a.keys=a.keys,a.target=a.target);Io.call(this,a)}F(qs,Io);C("ol.control.FullScreen",qs);function rs(a){null!=a&&(a.className=a.className,a.target=a.target);ni.call(this,a)}F(rs,ni);C("ol.control.Logo",rs);ni.prototype.setMap=ni.prototype.setMap;
function ss(a){null!=a&&(a.className=a.className,a.coordinateFormat=a.coordinateFormat,a.projection=a.projection,a.target=a.target,a.undefinedHTML=a.undefinedHTML);Jo.call(this,a)}F(ss,Jo);C("ol.control.MousePosition",ss);Jo.prototype.setMap=Jo.prototype.setMap;function ts(a){null!=a&&(a.className=a.className,a.minWidth=a.minWidth,a.target=a.target,a.units=a.units);Mo.call(this,a)}F(ts,Mo);C("ol.control.ScaleLine",ts);Mo.prototype.setMap=Mo.prototype.setMap;C("ol.control.ScaleLineUnits",Lo);
Lo.DEGREES="degrees";Lo.IMPERIAL="imperial";Lo.METRIC="metric";Lo.NAUTICAL="nautical";Lo.US="us";function us(a){null!=a&&(a.className=a.className,a.delta=a.delta,a.target=a.target);wi.call(this,a)}F(us,wi);C("ol.control.Zoom",us);wi.prototype.setMap=wi.prototype.setMap;function vs(a){null!=a&&(a.className=a.className,a.maxResolution=a.maxResolution,a.minResolution=a.minResolution);ap.call(this,a)}F(vs,ap);C("ol.control.ZoomSlider",vs);
function ws(a){null!=a&&(a.className=a.className,a.extent=a.extent,a.target=a.target);cp.call(this,a)}F(ws,cp);C("ol.control.ZoomToExtent",ws);
C("ol.control.defaults",function(a){if(null!=a){a.attribution=a.attribution;var b=a.attributionOptions;null!=a.attributionOptions&&(b.className=a.attributionOptions.className,b.target=a.attributionOptions.target);a.attributionOptions=b;a.logo=a.logo;b=a.logoOptions;null!=a.logoOptions&&(b.className=a.logoOptions.className,b.target=a.logoOptions.target);a.logoOptions=b;a.zoom=a.zoom;b=a.zoomOptions;null!=a.zoomOptions&&(b.className=a.zoomOptions.className,b.delta=a.zoomOptions.delta,b.target=a.zoomOptions.target);
a.zoomOptions=b}return xi(a)});C("ol.coordinate.createStringXY",function(a){return function(b){return nd(b,a)}});C("ol.coordinate.fromProjectedArray",od);C("ol.coordinate.toStringHDMS",function(a){return t(a)?jd(a[1],"NS")+" "+jd(a[0],"EW"):""});C("ol.coordinate.toStringXY",nd);C("ol.dom.Input",dp);C("ol.easing.bounce",function(a){a<1/2.75?a*=7.5625*a:a<2/2.75?(a-=1.5/2.75,a=7.5625*a*a+0.75):a<2.5/2.75?(a-=2.25/2.75,a=7.5625*a*a+0.9375):(a-=2.625/2.75,a=7.5625*a*a+0.984375);return a});
C("ol.easing.easeIn",function(a){return a*a*a});C("ol.easing.easeOut",oi);C("ol.easing.elastic",function(a){return Math.pow(2,-10*a)*Math.sin((a-0.075)*2*Math.PI/0.3)+1});C("ol.easing.inAndOut",pi);C("ol.easing.linear",qi);C("ol.easing.upAndDown",ri);C("ol.expr.parse",function(a){return Sk(a)});C("ol.expr.register",function(a,b){Xk[a]=b});C("ol.extent.boundingExtent",pd);C("ol.extent.containsCoordinate",td);C("ol.extent.containsExtent",ud);C("ol.extent.equals",vd);C("ol.extent.extend",wd);
C("ol.extent.getBottomLeft",xd);C("ol.extent.getBottomRight",function(a){return[a[1],a[2]]});C("ol.extent.getCenter",yd);C("ol.extent.getHeight",function(a){return a[3]-a[2]});C("ol.extent.getSize",function(a){return[a[1]-a[0],a[3]-a[2]]});C("ol.extent.getTopLeft",Ad);C("ol.extent.getTopRight",function(a){return[a[1],a[3]]});C("ol.extent.getWidth",function(a){return a[1]-a[0]});C("ol.extent.intersects",Bd);C("ol.extent.isEmpty",function(a){return a[1]<a[0]||a[3]<a[2]});C("ol.extent.transform",Cd);
C("ol.geom.Geometry",Ed);C("ol.geom.GeometryType",Fd);Fd.GEOMETRYCOLLECTION="geometrycollection";Fd.LINEARRING="linearring";Fd.LINESTRING="linestring";Fd.MULTILINESTRING="multilinestring";Fd.MULTIPOINT="multipoint";Fd.MULTIPOLYGON="multipolygon";Fd.POINT="point";Fd.POLYGON="polygon";C("ol.geom.LineString",lm);lm.prototype.getCoordinates=lm.prototype.p;C("ol.geom.MultiLineString",mm);mm.prototype.getCoordinates=mm.prototype.p;C("ol.geom.MultiPoint",om);om.prototype.getCoordinates=om.prototype.p;
C("ol.geom.MultiPolygon",sm);sm.prototype.getCoordinates=sm.prototype.p;C("ol.geom.Point",nm);nm.prototype.getCoordinates=nm.prototype.p;C("ol.geom.Polygon",rm);rm.prototype.getCoordinates=rm.prototype.p;C("ol.geom2.LineStringCollection",Zm);
C("ol.geom2.LineStringCollection.pack",function(a,b,c){var d=a.length;c=t(c)?c:0<d?a[0][0].length:2;var e;if(t(b))e=b;else for(b=e=0;b<d;++b)e+=a[b].length;var f=Array(e*c);e={};var g=0,h;for(b=0;b<d;++b)h=g,g=Qm(f,g,a[b],c),e[h+""]=g;a=new Wm(f,g);return new Zm(a,e,c)});C("ol.geom2.PointCollection",$m);C("ol.geom2.PointCollection.createEmpty",function(a,b){var c=t(b)?b:2,d=new Wm(Array(a*c),0);return new $m(d,c)});
C("ol.geom2.PointCollection.pack",function(a,b,c){var d=a.length;c=t(c)?c:0<d?a[0].length:2;b=Array(t(b)?b:d*c);Qm(b,0,a,c);a=new Wm(b,d*c);return new $m(a,c)});$m.prototype.add=$m.prototype.add;C("ol.inherits",F);function xs(a){null!=a&&(a.condition=a.condition);fp.call(this,a)}F(xs,fp);C("ol.interaction.DragRotateAndZoom",xs);function ys(a){null!=a&&(a.layerFilter=a.layerFilter,a.pixelTolerance=a.pixelTolerance);gp.call(this,a)}F(ys,gp);C("ol.interaction.Modify",ys);
function zs(a){null!=a&&(a.condition=a.condition,a.layerFilter=a.layerFilter);kp.call(this,a)}F(zs,kp);C("ol.interaction.Select",zs);C("ol.interaction.condition.altKeyOnly",function(a){a=a.a;return a.wa&&!a.Jb&&!a.Va});C("ol.interaction.condition.altShiftKeysOnly",Hi);C("ol.interaction.condition.always",Ue);C("ol.interaction.condition.noModifierKeys",Ji);C("ol.interaction.condition.platformModifierKeyOnly",function(a){a=a.a;return!a.wa&&a.Jb&&!a.Va});C("ol.interaction.condition.shiftKeyOnly",Ki);
C("ol.interaction.condition.targetNotEditable",Li);C("ol.interaction.defaults",function(a){null!=a&&(a.altShiftDragRotate=a.altShiftDragRotate,a.doubleClickZoom=a.doubleClickZoom,a.dragPan=a.dragPan,a.keyboard=a.keyboard,a.mouseWheelZoom=a.mouseWheelZoom,a.shiftDragZoom=a.shiftDragZoom,a.touchPan=a.touchPan,a.touchRotate=a.touchRotate,a.touchZoom=a.touchZoom,a.zoomDelta=a.zoomDelta);return aj(a)});
function As(a){null!=a&&(a.brightness=a.brightness,a.contrast=a.contrast,a.hue=a.hue,a.layers=a.layers,a.opacity=a.opacity,a.saturation=a.saturation,a.visible=a.visible);bj.call(this,a)}F(As,bj);C("ol.layer.Group",As);function Bs(a){null!=a&&(a.brightness=a.brightness,a.contrast=a.contrast,a.hue=a.hue,a.opacity=a.opacity,a.saturation=a.saturation,a.source=a.source,a.visible=a.visible);Lh.call(this,a)}F(Bs,nk);C("ol.layer.Image",Bs);C("ol.layer.Layer",Lh);Lh.prototype.getSource=Lh.prototype.ja;
function Cs(a){null!=a&&(a.brightness=a.brightness,a.contrast=a.contrast,a.hue=a.hue,a.opacity=a.opacity,a.preload=a.preload,a.saturation=a.saturation,a.source=a.source,a.visible=a.visible);ok.call(this,a)}F(Cs,ok);C("ol.layer.Tile",Cs);function Ds(a){null!=a&&(a.opacity=a.opacity,a.source=a.source,a.style=a.style,a.transformFeatureInfo=a.transformFeatureInfo,a.visible=a.visible);$l.call(this,a)}F(Ds,$l);C("ol.layer.Vector",Ds);C("ol.layer.Vector2",bn);C("ol.parser.GPX",sp);sp.prototype.read=sp.prototype.F;
sp.prototype.write=sp.prototype.write;C("ol.parser.GeoJSON",up);up.read=function(a){return up.ia().F(a)};up.write=function(a){return up.ia().write(a)};up.prototype.read=up.prototype.F;up.prototype.write=up.prototype.write;C("ol.parser.KML",fq);fq.prototype.read=fq.prototype.F;fq.prototype.write=fq.prototype.write;C("ol.parser.TopoJSON",jq);jq.read=function(a){return jq.ia().F(a)};jq.prototype.read=jq.prototype.F;C("ol.parser.WKT",pq);pq.read=function(a){return pq.ia().F(a)};pq.write=function(a){return pq.ia().write(a)};
pq.prototype.read=pq.prototype.F;pq.prototype.write=pq.prototype.write;C("ol.parser.ogc.GML_v2",Aq);Aq.prototype.read=Aq.prototype.F;Aq.prototype.write=Aq.prototype.write;C("ol.parser.ogc.GML_v3",Bq);Bq.prototype.read=Bq.prototype.F;Bq.prototype.write=Bq.prototype.write;C("ol.parser.ogc.WMSCapabilities",Mq);Mq.prototype.read=Mq.prototype.F;C("ol.parser.ogc.WMTSCapabilities",Qq);Qq.prototype.read=Qq.prototype.F;C("ol.proj.addProjection",ie);C("ol.proj.common.add",ij);
C("ol.proj.configureProj4jsProjection",function(a){return Pd(a)});C("ol.proj.get",ke);C("ol.proj.getTransform",le);C("ol.proj.getTransformFromProjections",Od);C("ol.proj.transform",function(a,b,c){return le(b,c)(a)});C("ol.proj.transformWithProjections",function(a,b,c){return Od(b,c)(a)});Cm.prototype.getCanvas=Cm.prototype.Bc;function Es(a){null!=a&&(a.culture=a.culture,a.key=a.key,a.style=a.style);nr.call(this,a)}F(Es,nr);C("ol.source.BingMaps",Es);
function Fs(a){null!=a&&(a.attributions=a.attributions,a.crossOrigin=a.crossOrigin,a.extent=a.extent,a.imageExtent=a.imageExtent,a.imageSize=a.imageSize,a.projection=a.projection,a.url=a.url);or.call(this,a)}F(Fs,or);C("ol.source.ImageStatic",Fs);function Gs(a){null!=a&&(a.attributions=a.attributions,a.crossOrigin=a.crossOrigin,a.extent=a.extent,a.params=a.params,a.projection=a.projection,a.ratio=a.ratio,a.resolutions=a.resolutions,a.url=a.url);tr.call(this,a)}F(Gs,tr);C("ol.source.ImageWMS",Gs);
tr.prototype.getParams=tr.prototype.o;tr.prototype.updateParams=tr.prototype.s;C("ol.source.MapQuestOSM",zr);C("ol.source.MapQuestOpenAerial",Ar);C("ol.source.OSM",vr);vr.DATA_ATTRIBUTION=xr;vr.TILE_ATTRIBUTION=yr;Jh.prototype.getExtent=Jh.prototype.ba;function Hs(a){null!=a&&(a.layer=a.layer,a.maxZoom=a.maxZoom,a.minZoom=a.minZoom,a.opaque=a.opaque,a.url=a.url);Qr.call(this,a)}F(Hs,Qr);C("ol.source.Stamen",Hs);C("ol.source.Tile",vj);vj.prototype.getTileGrid=vj.prototype.Ye;
function Is(a){null!=a&&(a.extent=a.extent,a.projection=a.projection,a.tileGrid=a.tileGrid);Tr.call(this,a)}F(Is,Tr);C("ol.source.TileDebug",Is);function Js(a){null!=a&&(a.crossOrigin=a.crossOrigin,a.url=a.url);Vr.call(this,a)}F(Js,Vr);C("ol.source.TileJSON",Js);function Ks(a){null!=a&&(a.attributions=a.attributions,a.crossOrigin=a.crossOrigin,a.extent=a.extent,a.maxZoom=a.maxZoom,a.params=a.params,a.projection=a.projection,a.tileGrid=a.tileGrid,a.url=a.url,a.urls=a.urls);Wr.call(this,a)}F(Ks,Wr);
C("ol.source.TileWMS",Ks);Wr.prototype.getParams=Wr.prototype.o;Wr.prototype.updateParams=Wr.prototype.s;function Ls(a){null!=a&&(a.attributions=a.attributions,a.data=a.data,a.extent=a.extent,a.logo=a.logo,a.parser=a.parser,a.projection=a.projection,a.url=a.url);ul.call(this,a)}F(Ls,ul);C("ol.source.Vector",Ls);C("ol.source.Vector2",an);C("ol.source.WMSGetFeatureInfoMethod",{Qg:"iframe",wh:"xhr_get"});
function Ms(a){null!=a&&(a.attributions=a.attributions,a.crossOrigin=a.crossOrigin,a.dimensions=a.dimensions,a.extent=a.extent,a.format=a.format,a.layer=a.layer,a.matrixSet=a.matrixSet,a.maxZoom=a.maxZoom,a.projection=a.projection,a.requestEncoding=a.requestEncoding,a.style=a.style,a.tileGrid=a.tileGrid,a.url=a.url,a.urls=a.urls,a.version=a.version);as.call(this,a)}F(Ms,as);C("ol.source.WMTS",Ms);
C("ol.source.WMTS.optionsFromCapabilities",function(a,b){var c=Na(a.contents.layers,function(a){return a.identifier==b}),d=c.tileMatrixSetLinks[0].tileMatrixSet,e=c.formats[0],f=Oa(c.styles,function(a){return a.isDefault});0>f&&(f=0);var f=c.styles[f].identifier,g={};Ha(c.dimensions,function(a){var b=a.identifier,c=a["default"];t(c)||(c=a.values[0]);g[b]=c});var h=a.contents.tileMatrixSets[d],l=Zr(h),h=ke(h.supportedCRS),n=a.operationsMetadata.GetTile.dcp.http.get,q,r;switch(lc(n[0].constraints.GetEncoding.allowedValues)[0]){case "REST":case "RESTful":r=
"REST";q=c.resourceUrls.tile[e];break;case "KVP":r=$r,q=[],Ha(n,function(a){a.constraints.GetEncoding.allowedValues.hasOwnProperty($r)&&q.push(a.url)})}return{urls:q,layer:b,matrixSet:d,format:e,projection:h,requestEncoding:r,tileGrid:l,style:f,dimensions:g}});as.prototype.getDimensions=as.prototype.i;as.prototype.updateDimensions=as.prototype.o;
function Ns(a){null!=a&&(a.attributions=a.attributions,a.crossOrigin=a.crossOrigin,a.extent=a.extent,a.logo=a.logo,a.maxZoom=a.maxZoom,a.minZoom=a.minZoom,a.projection=a.projection,a.tileUrlFunction=a.tileUrlFunction,a.url=a.url,a.urls=a.urls);ur.call(this,a)}F(Ns,ur);C("ol.source.XYZ",Ns);ur.prototype.setUrl=ur.prototype.c;function Os(a){null!=a&&(a.color=a.color,a.opacity=a.opacity);Gl.call(this,a)}F(Os,Gl);C("ol.style.Fill",Os);
function Ps(a){null!=a&&(a.height=a.height,a.opacity=a.opacity,a.rotation=a.rotation,a.url=a.url,a.width=a.width,a.xOffset=a.xOffset,a.yOffset=a.yOffset);aq.call(this,a)}F(Ps,aq);C("ol.style.Icon",Ps);function Qs(a){null!=a&&(a.filter=a.filter,a.symbolizers=a.symbolizers);Jl.call(this,a)}F(Qs,Jl);C("ol.style.Rule",Qs);function Rs(a){null!=a&&(a.fill=a.fill,a.size=a.size,a.stroke=a.stroke,a.type=a.type);Sl.call(this,a)}F(Rs,Sl);C("ol.style.Shape",Rs);C("ol.style.ShapeType",Ll);Ll.CIRCLE="circle";
function Ss(a){null!=a&&(a.color=a.color,a.opacity=a.opacity,a.width=a.width);Ol.call(this,a)}F(Ss,Ol);C("ol.style.Stroke",Ss);function Ts(a){null!=a&&(a.rules=a.rules,a.symbolizers=a.symbolizers);Vl.call(this,a)}F(Ts,Vl);C("ol.style.Style",Ts);function Us(a){null!=a&&(a.color=a.color,a.fontFamily=a.fontFamily,a.fontSize=a.fontSize,a.opacity=a.opacity,a.text=a.text);cs.call(this,a)}F(Us,cs);C("ol.style.Text",Us);
function Vs(a){null!=a&&(a.minZoom=a.minZoom,a.origin=a.origin,a.origins=a.origins,a.resolutions=a.resolutions,a.tileSize=a.tileSize,a.tileSizes=a.tileSizes);mj.call(this,a)}F(Vs,mj);C("ol.tilegrid.TileGrid",Vs);mj.prototype.getMinZoom=mj.prototype.Ve;mj.prototype.getOrigin=mj.prototype.Ib;mj.prototype.getResolutions=mj.prototype.Ub;mj.prototype.getTileSize=mj.prototype.Aa;
function Ws(a){null!=a&&(a.matrixIds=a.matrixIds,a.origin=a.origin,a.origins=a.origins,a.resolutions=a.resolutions,a.tileSize=a.tileSize,a.tileSizes=a.tileSizes);Yr.call(this,a)}F(Ws,Yr);C("ol.tilegrid.WMTS",Ws);Yr.prototype.getMatrixIds=Yr.prototype.g;function Xs(a){null!=a&&(a.maxZoom=a.maxZoom);lr.call(this,a)}F(Xs,lr);C("ol.tilegrid.XYZ",Xs);C("ol.webgl.SUPPORTED",mn);})();