-
Notifications
You must be signed in to change notification settings - Fork 4
/
ol.js
196 lines (194 loc) · 108 KB
/
ol.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
// OpenLayers 3. See http://ol3.js.org/
// Version: v3.0.0-gamma.3-13-g707648b
(function(){var k,n=this;function aa(){}
function ba(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 ca(a){return"array"==ba(a)}function da(a){var b=ba(a);return"array"==b||"object"==b&&"number"==typeof a.length}function z(a){return"string"==typeof a}function ea(a){return"number"==typeof a}function fa(a){return"function"==ba(a)}function ha(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function ia(a){return a[la]||(a[la]=++ma)}var la="closure_uid_"+(1E9*Math.random()>>>0),ma=0;
function na(a,b,c){return a.call.apply(a.bind,arguments)}function oa(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 pa(a,b,c){pa=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?na:oa;return pa.apply(null,arguments)}
function qa(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}}var ra=Date.now||function(){return+new Date};function sa(a,b){var c=a.split("."),d=n;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d[e]?d=d[e]:d=d[e]={}:d[e]=b}
function C(a,b){function c(){}c.prototype=b.prototype;a.r=b.prototype;a.prototype=new c;a.Dc=function(a,c,f){return b.prototype[c].apply(a,Array.prototype.slice.call(arguments,2))}};var ta;function ua(a){if(!va.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(wa,"&"));-1!=a.indexOf("<")&&(a=a.replace(xa,"<"));-1!=a.indexOf(">")&&(a=a.replace(ya,">"));-1!=a.indexOf('"')&&(a=a.replace(za,"""));-1!=a.indexOf("'")&&(a=a.replace(Aa,"'"));return a}var wa=/&/g,xa=/</g,ya=/>/g,za=/"/g,Aa=/'/g,va=/[&<>"']/;
function Ba(a,b){for(var c=0,d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=String(b).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),f=Math.max(d.length,e.length),g=0;0==c&&g<f;g++){var h=d[g]||"",l=e[g]||"",m=RegExp("(\\d*)(\\D*)","g"),p=RegExp("(\\d*)(\\D*)","g");do{var r=m.exec(h)||["","",""],q=p.exec(l)||["","",""];if(0==r[0].length&&0==q[0].length)break;c=Ca(0==r[1].length?0:parseInt(r[1],10),0==q[1].length?0:parseInt(q[1],10))||Ca(0==r[2].length,0==q[2].length)||Ca(r[2],q[2])}while(0==
c)}return c}function Ca(a,b){return a<b?-1:a>b?1:0};var Da=Array.prototype,Ea=Da.indexOf?function(a,b,c){return Da.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(z(a))return z(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},Fa=Da.forEach?function(a,b,c){Da.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=z(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Ga=Da.filter?function(a,b,c){return Da.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=
0,g=z(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},Ha=Da.map?function(a,b,c){return Da.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=z(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e};function Ia(a,b){var c=Ea(a,b),d;(d=0<=c)&&Da.splice.call(a,c,1);return d}function Ja(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 Ka(a,b,c,d){Da.splice.apply(a,La(arguments,1))}
function La(a,b,c){return 2>=arguments.length?Da.slice.call(a,b):Da.slice.call(a,b,c)}function Ma(a,b){if(!da(a)||!da(b)||a.length!=b.length)return!1;for(var c=a.length,d=Oa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0}function Pa(a,b){return a>b?1:a<b?-1:0}function Oa(a,b){return a===b};var Qa,Ra,Sa,Ta,Ua,Va;function Wa(){return n.navigator?n.navigator.userAgent:null}Ta=Sa=Ra=Qa=!1;var Xa;if(Xa=Wa()){var Ya=n.navigator;Qa=0==Xa.lastIndexOf("Opera",0);Ra=!Qa&&(-1!=Xa.indexOf("MSIE")||-1!=Xa.indexOf("Trident"));Sa=!Qa&&-1!=Xa.indexOf("WebKit");Ta=!Qa&&!Sa&&!Ra&&"Gecko"==Ya.product}var Za=Qa,F=Ra,$a=Ta,G=Sa,ab,bb=n.navigator;ab=bb&&bb.platform||"";Ua=-1!=ab.indexOf("Mac");Va=-1!=ab.indexOf("Win");var cb=-1!=ab.indexOf("Linux");
function db(){var a=n.document;return a?a.documentMode:void 0}var eb;a:{var fb="",gb;if(Za&&n.opera)var hb=n.opera.version,fb="function"==typeof hb?hb():hb;else if($a?gb=/rv\:([^\);]+)(\)|;)/:F?gb=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:G&&(gb=/WebKit\/(\S+)/),gb)var ib=gb.exec(Wa()),fb=ib?ib[1]:"";if(F){var jb=db();if(jb>parseFloat(fb)){eb=String(jb);break a}}eb=fb}var kb={};function lb(a){return kb[a]||(kb[a]=0<=Ba(eb,a))}
var mb=n.document,nb=mb&&F?db()||("CSS1Compat"==mb.compatMode?parseInt(eb,10):5):void 0;F&&lb("9.0");function ob(a,b,c){return Math.min(Math.max(a,b),c)};function pb(a){return function(b){if(t(b))return[ob(b[0],a[0],a[2]),ob(b[1],a[1],a[3])]}}function qb(a){return a};function rb(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 tb(a){return function(b,c,d){if(t(b))return b=rb(a,b,d),b=ob(b+c,0,a.length-1),a[b]}}function ub(a,b,c){return function(d,e,f){if(t(d))return f=0<f?0:0>f?1:.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 vb(a){if(t(a))return 0}function wb(a,b){if(t(a))return a+b}function xb(a){var b=2*Math.PI/a;return function(a,d){if(t(a))return a=Math.floor((a+d)/b+.5)*b}}function yb(){var a=5*Math.PI/180;return function(b,c){if(t(b))return Math.abs(b+c)<=a?0:b+c}};function zb(a,b,c){this.center=a;this.resolution=b;this.rotation=c};var Ab=!F||F&&9<=nb,Bb=!F||F&&9<=nb,Cb=F&&!lb("9");!G||lb("528");$a&&lb("1.9b")||F&&lb("8")||Za&&lb("9.5")||G&&lb("528");$a&&!lb("8")||F&&lb("9");function Db(){0!=Eb&&(Fb[ia(this)]=this)}var Eb=0,Fb={};Db.prototype.xa=!1;Db.prototype.qa=function(){if(!this.xa&&(this.xa=!0,this.p(),0!=Eb)){var a=ia(this);delete Fb[a]}};function Gb(a,b){var c=qa(Hb,b);a.t||(a.t=[]);a.t.push(pa(c,void 0))}Db.prototype.p=function(){if(this.t)for(;this.t.length;)this.t.shift()()};function Hb(a){a&&"function"==typeof a.qa&&a.qa()};function I(a,b){this.type=a;this.d=this.target=b;this.e=!1;this.Ra=!0}I.prototype.qa=function(){};I.prototype.f=function(){this.e=!0};I.prototype.preventDefault=function(){this.Ra=!1};function Ib(a){a.f()};var Jb=F?"focusout":"DOMFocusOut";function Mb(a){Mb[" "](a);return a}Mb[" "]=aa;function Nb(a,b){I.call(this,a?a.type:"");this.relatedTarget=this.d=this.target=null;this.i=this.c=this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.t=this.g=this.b=this.h=!1;this.state=null;this.j=!1;this.a=null;if(a){var c=this.type=a.type;this.target=a.target||a.srcElement;this.d=b;var d=a.relatedTarget;if(d){if($a){var e;a:{try{Mb(d.nodeName);e=!0;break a}catch(f){}e=!1}e||(d=null)}}else"mouseover"==c?d=a.fromElement:"mouseout"==c&&(d=a.toElement);
this.relatedTarget=d;this.offsetX=G||void 0!==a.offsetX?a.offsetX:a.layerX;this.offsetY=G||void 0!==a.offsetY?a.offsetY:a.layerY;this.clientX=void 0!==a.clientX?a.clientX:a.pageX;this.clientY=void 0!==a.clientY?a.clientY:a.pageY;this.screenX=a.screenX||0;this.screenY=a.screenY||0;this.button=a.button;this.c=a.keyCode||0;this.i=a.charCode||("keypress"==c?a.keyCode:0);this.h=a.ctrlKey;this.b=a.altKey;this.g=a.shiftKey;this.t=a.metaKey;this.j=Ua?a.metaKey:a.ctrlKey;this.state=a.state;this.a=a;a.defaultPrevented&&
this.preventDefault()}}C(Nb,I);var Ob=[1,4,2];function Pb(a){return(Ab?0==a.a.button:"click"==a.type?!0:!!(a.a.button&Ob[0]))&&!(G&&Ua&&a.h)}Nb.prototype.f=function(){Nb.r.f.call(this);this.a.stopPropagation?this.a.stopPropagation():this.a.cancelBubble=!0};Nb.prototype.preventDefault=function(){Nb.r.preventDefault.call(this);var a=this.a;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Cb)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};Nb.prototype.n=function(){return this.a};var Qb="closure_listenable_"+(1E6*Math.random()|0);function Rb(a){try{return!(!a||!a[Qb])}catch(b){return!1}}var Sb=0;function Tb(a,b,c,d,e){this.G=a;this.a=null;this.src=b;this.type=c;this.T=!!d;this.fa=e;this.key=++Sb;this.P=this.ca=!1}function Ub(a){a.P=!0;a.G=null;a.a=null;a.src=null;a.fa=null};function Vb(a,b){for(var c in a)b.call(void 0,a[c],c,a)}function Wb(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1}function Xb(a){var b=0,c;for(c in a)b++;return b}function Yb(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Zb(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function $b(a){for(var b in a)return!1;return!0}function ac(a,b){b in a&&delete a[b]}function L(a,b,c){return b in a?a[b]:c}function bc(a){var b={},c;for(c in a)b[c]=a[c];return b}var cc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function dc(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<cc.length;f++)c=cc[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};function ec(a){this.src=a;this.a={};this.b=0}ec.prototype.add=function(a,b,c,d,e){var f=this.a[a];f||(f=this.a[a]=[],this.b++);var g=fc(f,b,d,e);-1<g?(a=f[g],c||(a.ca=!1)):(a=new Tb(b,this.src,a,!!d,e),a.ca=c,f.push(a));return a};ec.prototype.remove=function(a,b,c,d){if(!(a in this.a))return!1;var e=this.a[a];b=fc(e,b,c,d);return-1<b?(Ub(e[b]),Da.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=Ia(a.a[c],b);d&&(Ub(b),0==a.a[c].length&&(delete a.a[c],a.b--));return d}function hc(a,b){var c=t(b),d=t(void 0);return Wb(a.a,function(a){for(var f=0;f<a.length;++f)if(!(c&&a[f].type!=b||d&&void 0!=a[f].T))return!0;return!1})}function fc(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.P&&f.G==b&&f.T==!!c&&f.fa==d)return e}return-1};var ic="closure_lm_"+(1E6*Math.random()|0),jc={},kc=0;function N(a,b,c,d,e){if(ca(b)){for(var f=0;f<b.length;f++)N(a,b[f],c,d,e);return null}c=lc(c);return Rb(a)?a.B.add(String(b),c,!1,d,e):mc(a,b,c,!1,d,e)}function mc(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var g=!!e,h=oc(a);h||(a[ic]=h=new ec(a));c=h.add(b,c,d,e,f);if(c.a)return c;d=pc();c.a=d;d.src=a;d.G=c;a.addEventListener?a.addEventListener(b,d,g):a.attachEvent(b in jc?jc[b]:jc[b]="on"+b,d);kc++;return c}
function pc(){var a=qc,b=Bb?function(c){return a.call(b.src,b.G,c)}:function(c){c=a.call(b.src,b.G,c);if(!c)return c};return b}function rc(a,b,c,d,e){if(ca(b)){for(var f=0;f<b.length;f++)rc(a,b[f],c,d,e);return null}c=lc(c);return Rb(a)?a.B.add(String(b),c,!0,d,e):mc(a,b,c,!0,d,e)}function sc(a,b,c,d,e){if(ca(b))for(var f=0;f<b.length;f++)sc(a,b[f],c,d,e);else(c=lc(c),Rb(a))?a.B.remove(String(b),c,d,e):a&&(a=oc(a))&&(b=a.a[b],a=-1,b&&(a=fc(b,c,!!d,e)),(c=-1<a?b[a]:null)&&P(c))}
function P(a){if(ea(a)||!a||a.P)return!1;var b=a.src;if(Rb(b))return gc(b.B,a);var c=a.type,d=a.a;b.removeEventListener?b.removeEventListener(c,d,a.T):b.detachEvent&&b.detachEvent(c in jc?jc[c]:jc[c]="on"+c,d);kc--;(c=oc(b))?(gc(c,a),0==c.b&&(c.src=null,b[ic]=null)):Ub(a);return!0}function tc(a,b,c,d){var e=1;if(a=oc(a))if(b=a.a[b])for(b=Ja(b),a=0;a<b.length;a++){var f=b[a];f&&f.T==c&&!f.P&&(e&=!1!==uc(f,d))}return Boolean(e)}
function uc(a,b){var c=a.G,d=a.fa||a.src;a.ca&&P(a);return c.call(d,b)}
function qc(a,b){if(a.P)return!0;if(!Bb){var c;if(!(c=b))a:{c=["window","event"];for(var d=n,e;e=c.shift();)if(null!=d[e])d=d[e];else{c=null;break a}c=d}e=c;c=new Nb(e,this);d=!0;if(!(0>e.keyCode||void 0!=e.returnValue)){a:{var f=!1;if(0==e.keyCode)try{e.keyCode=-1;break a}catch(g){f=!0}if(f||void 0==e.returnValue)e.returnValue=!0}e=[];for(f=c.d;f;f=f.parentNode)e.push(f);for(var f=a.type,h=e.length-1;!c.e&&0<=h;h--)c.d=e[h],d&=tc(e[h],f,!0,c);for(h=0;!c.e&&h<e.length;h++)c.d=e[h],d&=tc(e[h],f,!1,
c)}return d}return uc(a,new Nb(b,this))}function oc(a){a=a[ic];return a instanceof ec?a:null}var vc="__closure_events_fn_"+(1E9*Math.random()>>>0);function lc(a){return fa(a)?a:a[vc]||(a[vc]=function(b){return a.handleEvent(b)})};function wc(a){return function(){return a}}var xc=wc(!1),yc=wc(!0);function zc(a){var b;b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}}function Ac(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 Q(){Db.call(this);this.B=new ec(this);this.Ua=this}C(Q,Db);Q.prototype[Qb]=!0;k=Q.prototype;k.ua=null;k.addEventListener=function(a,b,c,d){N(this,a,b,c,d)};k.removeEventListener=function(a,b,c,d){sc(this,a,b,c,d)};
k.dispatchEvent=function(a){var b,c=this.ua;if(c)for(b=[];c;c=c.ua)b.push(c);var c=this.Ua,d=a.type||a;if(z(a))a=new I(a,c);else if(a instanceof I)a.target=a.target||c;else{var e=a;a=new I(d,c);dc(a,e)}var e=!0,f;if(b)for(var g=b.length-1;!a.e&&0<=g;g--)f=a.d=b[g],e=Bc(f,d,!0,a)&&e;a.e||(f=a.d=c,e=Bc(f,d,!0,a)&&e,a.e||(e=Bc(f,d,!1,a)&&e));if(b)for(g=0;!a.e&&g<b.length;g++)f=a.d=b[g],e=Bc(f,d,!1,a)&&e;return e};
k.p=function(){Q.r.p.call(this);if(this.B){var a=this.B,b=0,c;for(c in a.a){for(var d=a.a[c],e=0;e<d.length;e++)++b,Ub(d[e]);delete a.a[c];a.b--}}this.ua=null};function Bc(a,b,c,d){b=a.B.a[String(b)];if(!b)return!0;b=Ja(b);for(var e=!0,f=0;f<b.length;++f){var g=b[f];if(g&&!g.P&&g.T==c){var h=g.G,l=g.fa||g.src;g.ca&&gc(a.B,g);e=!1!==h.call(l,d)&&e}}return e&&!1!=d.Ra};function Cc(){Q.call(this);this.g=0}C(Cc,Q);function Dc(a){++a.g;a.dispatchEvent("change")}Cc.prototype.ya=function(a,b,c){return N(this,a,b,!1,c)};function Ec(a,b){I.call(this,a);this.key=b}C(Ec,I);function Fc(a){Cc.call(this);ia(this);this.ma={};this.wa={};t(a)&&Gc(this,a)}C(Fc,Cc);var Hc={},Ic={},Jc={};function Kc(a){return Hc.hasOwnProperty(a)?Hc[a]:Hc[a]="change:"+a.toLowerCase()}
Fc.prototype.b=function(a){var b,c=this.wa;if(c.hasOwnProperty(a)){a=c[a];b=a.target;var c=a.a,d=Ic.hasOwnProperty(c)?Ic[c]:Ic[c]="get"+(c.substr(0,1).toUpperCase()+c.substr(1)),d=L(b,d);b=t(d)?d.call(b):b.b(c);b=a.c(b)}else this.ma.hasOwnProperty(a)&&(b=this.ma[a]);return b};
Fc.prototype.a=function(a,b){this.dispatchEvent(new Ec("beforepropertychange",a));var c=this.wa;if(c.hasOwnProperty(a)){var d=c[a],c=d.target,e=d.a;b=d.b(b);d=Jc.hasOwnProperty(e)?Jc[e]:Jc[e]="set"+(e.substr(0,1).toUpperCase()+e.substr(1));d=L(c,d);t(d)?d.call(c,b):c.a(e,b)}else this.ma[a]=b,c=Kc(a),this.dispatchEvent(c),this.dispatchEvent(new Ec("propertychange",a))};function Gc(a,b){for(var c in b)a.a(c,b[c])};function Lc(a,b){a[0]+=b[0];a[1]+=b[1]}function Mc(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 Nc(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}Nc.prototype.a=4;Nc.prototype.b=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};Nc.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(Nc.BYTES_PER_ELEMENT=4,Nc.prototype.BYTES_PER_ELEMENT=Nc.prototype.a,Nc.prototype.set=Nc.prototype.b,Nc.prototype.toString=Nc.prototype.toString,sa("Float32Array",Nc));function Oc(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}Oc.prototype.a=8;Oc.prototype.b=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};Oc.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{Oc.BYTES_PER_ELEMENT=8}catch(Pc){}Oc.prototype.BYTES_PER_ELEMENT=Oc.prototype.a;Oc.prototype.set=Oc.prototype.b;Oc.prototype.toString=Oc.prototype.toString;sa("Float64Array",Oc)};function Qc(){var a=Array(16);a[0]=0;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=0;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=0;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=0;return a}function Rc(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}new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);function Sc(a,b,c){return t(c)?(c[0]=a[0]-b,c[1]=a[1]-b,c[2]=a[2]+b,c[3]=a[3]+b,c):[a[0]-b,a[1]-b,a[2]+b,a[3]+b]}function Tc(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 Uc(a){return[(a[0]+a[2])/2,(a[1]+a[3])/2]}
function Vc(a,b,c,d){var e=b*d[0]/2,f=b*d[1]/2;b=Math.cos(c);d=Math.sin(c);e=[-e,-e,e,e];c=[-f,f,-f,f];for(var g,h,f=0;4>f;++f)g=e[f],h=c[f],e[f]=a[0]+g*b-h*d,c[f]=a[1]+g*d+h*b;a=Math.min.apply(null,e);b=Math.min.apply(null,c);e=Math.max.apply(null,e);c=Math.max.apply(null,c);return Tc(a,b,e,c,void 0)}
function Wc(a,b){var c=t(void 0)?void 0:[Infinity,Infinity,-Infinity,-Infinity];Xc(a,b)&&(c[0]=a[0]>b[0]?a[0]:b[0],c[1]=a[1]>b[1]?a[1]:b[1],c[2]=a[2]<b[2]?a[2]:b[2],c[3]=a[3]<b[3]?a[3]:b[3]);return c}function Yc(a){return[a[0],a[3]]}function Xc(a,b){return a[0]<=b[2]&&a[2]>=b[0]&&a[1]<=b[3]&&a[3]>=b[1]};/*
Latitude/longitude spherical geodesy formulae taken from
http://www.movable-type.co.uk/scripts/latlong.html
Licenced under CC-BY-3.0.
*/
var Zc={};Zc.degrees=2*Math.PI*(new function(a){this.radius=a}(6370997)).radius/360;Zc.ft=.3048;Zc.m=1;function $c(a){this.a=a.code;this.b=a.units;this.f=t(a.extent)?a.extent:null;this.d=t(a.axisOrientation)?a.axisOrientation:"enu";this.g=null}$c.prototype.c=function(){return this.f};$c.prototype.e=function(){return this.b};var ad={},bd={};function cd(a){dd(a);Fa(a,function(b){Fa(a,function(a){b!==a&&ed(b,a,fd)})})}function gd(a){ad[a.a]=a;ed(a,a,fd)}
function dd(a){var b=[];Fa(a,function(a){b.push(gd(a))})}function hd(a){return null!=a?z(a)?id(a):a:id("EPSG:3857")}function ed(a,b,c){a=a.a;b=b.a;a in bd||(bd[a]={});bd[a][b]=c}function id(a){var b;a instanceof $c?b=a:z(a)?b=ad[a]:b=null;return b}function jd(a,b){var c=a.a,d=b.a,e;c in bd&&d in bd[c]&&(e=bd[c][d]);t(e)||(e=kd);return e}function kd(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 fd(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 U(a){Fc.call(this);a=t(a)?a:{};this.j=[0,0];var b={};b.center=t(a.center)?a.center:null;b.projection=hd(a.projection);var c,d,e,f=t(a.minZoom)?a.minZoom:0;c=t(a.maxZoom)?a.maxZoom:28;var g=t(a.zoomFactor)?a.zoomFactor:2;if(t(a.resolutions))c=a.resolutions,d=c[0],c=tb(c);else{d=hd(a.projection);e=d.c();var h=(null===e?360*Zc.degrees/Zc[d.b]:Math.max(e[2]-e[0],e[3]-e[1]))/256/Math.pow(2,0),l=h/Math.pow(2,28);d=a.maxResolution;t(d)?f=0:d=h/Math.pow(g,f);e=a.minResolution;t(e)||(e=t(a.maxZoom)?
t(a.maxResolution)?d/Math.pow(g,c):h/Math.pow(g,c):l);c=f+Math.floor(Math.log(d/e)/Math.log(g));c=ub(g,d,c-f)}this.l=d;this.o=f;f=t(a.extent)?pb(a.extent):qb;(t(a.enableRotation)?a.enableRotation:1)?(d=a.constrainRotation,d=t(d)&&!0!==d?!1===d?wb:ea(d)?xb(d):wb:yb()):d=vb;this.f=new zb(f,c,d);t(a.resolution)?b.resolution=a.resolution:t(a.zoom)&&(b.resolution=this.constrainResolution(this.l,a.zoom-this.o));b.rotation=t(a.rotation)?a.rotation:0;Gc(this,b)}C(U,Fc);
U.prototype.constrainResolution=function(a,b,c){return this.f.resolution(a,b||0,c||0)};U.prototype.constrainRotation=function(a,b){return this.f.rotation(a,b||0)};U.prototype.c=function(){return this.b("center")};U.prototype.getCenter=U.prototype.c;U.prototype.k=function(){return this.b("projection")};U.prototype.getProjection=U.prototype.k;U.prototype.e=function(){return this.b("resolution")};U.prototype.getResolution=U.prototype.e;U.prototype.J=function(){return this.b("rotation")};
U.prototype.getRotation=U.prototype.J;function ld(a){var b=a.c(),c=a.k(),d=a.e();a=a.J();return{center:b.slice(),projection:t(c)?c:null,resolution:d,rotation:t(a)?a:0}}U.prototype.n=function(a,b){if(!(a[2]<a[0]||a[3]<a[1])){this.d(Uc(a));var c=Math.max((a[2]-a[0])/b[0],(a[3]-a[1])/b[1]),d=this.constrainResolution(c,0,0);d<c&&(d=this.constrainResolution(d,-1,0));this.h(d)}};U.prototype.rotate=function(a,b){if(t(b)){var c,d=this.c();t(d)&&(c=[d[0]-b[0],d[1]-b[1]],Mc(c,a-this.J()),Lc(c,b));this.d(c)}this.i(a)};
U.prototype.d=function(a){this.a("center",a)};U.prototype.setCenter=U.prototype.d;function md(a,b){a.j[1]+=b}U.prototype.q=function(a){this.a("projection",a)};U.prototype.setProjection=U.prototype.q;U.prototype.h=function(a){this.a("resolution",a)};U.prototype.setResolution=U.prototype.h;U.prototype.i=function(a){this.a("rotation",a)};U.prototype.setRotation=U.prototype.i;function nd(a){return 1-Math.pow(1-a,3)};function od(a){return 3*a*a-2*a*a*a}function pd(a){return a};function qd(a){var b=a.source,c=t(a.start)?a.start:ra(),d=b[0],e=b[1],f=t(a.duration)?a.duration:1E3,g=t(a.easing)?a.easing:od;return function(a,b){if(b.time<c)return b.animate=!0,b.viewHints[0]+=1,!0;if(b.time<c+f){var m=1-g((b.time-c)/f),p=d-b.viewState.center[0],r=e-b.viewState.center[1];b.animate=!0;b.viewState.center[0]+=m*p;b.viewState.center[1]+=m*r;b.viewHints[0]+=1;return!0}return!1}}
function rd(a){var b=t(a.rotation)?a.rotation:0,c=t(a.start)?a.start:ra(),d=t(a.duration)?a.duration:1E3,e=t(a.easing)?a.easing:od,f=t(a.anchor)?a.anchor:null;return function(a,h){if(h.time<c)return h.animate=!0,h.viewHints[0]+=1,!0;if(h.time<c+d){var l=1-e((h.time-c)/d),l=(b-h.viewState.rotation)*l;h.animate=!0;h.viewState.rotation+=l;if(null!==f){var m=h.viewState.center;m[0]-=f[0];m[1]-=f[1];Mc(m,l);Lc(m,f)}h.viewHints[0]+=1;return!0}return!1}}
function sd(a){var b=a.resolution,c=t(a.start)?a.start:ra(),d=t(a.duration)?a.duration:1E3,e=t(a.easing)?a.easing:od;return function(a,g){if(g.time<c)return g.animate=!0,g.viewHints[0]+=1,!0;if(g.time<c+d){var h=1-e((g.time-c)/d),l=b-g.viewState.resolution;g.animate=!0;g.viewState.resolution+=h*l;g.viewHints[0]+=1;return!0}return!1}};function td(a,b,c){this.a=a;this.x=b;this.y=c}function ud(a,b,c){return a+"/"+b+"/"+c}td.prototype.toString=function(){return ud(this.a,this.x,this.y)};function vd(a,b,c,d){this.a=a;this.d=b;this.c=c;this.b=d}vd.prototype.contains=function(a){return this.a<=a.x&&a.x<=this.d&&this.c<=a.y&&a.y<=this.b};function wd(a,b){return a.a<=b.a&&b.d<=a.d&&a.c<=b.c&&b.b<=a.b}vd.prototype.K=function(){return this.d-this.a+1};var xd=!F||F&&9<=nb;!$a&&!F||F&&F&&9<=nb||$a&&lb("1.9.1");F&&lb("9");function yd(a,b){var c;c=a.className;c=z(c)&&c.match(/\S+/g)||[];for(var d=La(arguments,1),e=c.length+d.length,f=c,g=0;g<d.length;g++)0<=Ea(f,d[g])||f.push(d[g]);a.className=c.join(" ");return c.length==e};function zd(a,b){this.x=t(a)?a:0;this.y=t(b)?b:0}zd.prototype.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};zd.prototype.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};zd.prototype.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};function Ad(a,b){this.width=a;this.height=b}Ad.prototype.d=function(){return!(this.width*this.height)};Ad.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};Ad.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};Ad.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Bd(a){return a?new Cd(Dd(a)):ta||(ta=new Cd)}function Ed(a){var b=document;return z(a)?b.getElementById(a):a}function Fd(a,b){Vb(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in Gd?a.setAttribute(Gd[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}
var Gd={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 Hd(a){a=a.document.documentElement;return new Ad(a.clientWidth,a.clientHeight)}
function Id(a,b,c){var d=arguments,e=document,f=d[0],g=d[1];if(!xd&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',ua(g.name),'"');if(g.type){f.push(' type="',ua(g.type),'"');var h={};dc(h,g);delete h.type;g=h}f.push(">");f=f.join("")}f=e.createElement(f);g&&(z(g)?f.className=g:ca(g)?yd.apply(null,[f].concat(g)):Fd(f,g));2<d.length&&Jd(e,f,d);return f}
function Jd(a,b,c){function d(c){c&&b.appendChild(z(c)?a.createTextNode(c):c)}for(var e=2;e<c.length;e++){var f=c[e];!da(f)||ha(f)&&0<f.nodeType?d(f):Fa(Kd(f)?Ja(f):f,d)}}function Ld(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function Dd(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function Kd(a){if(a&&"number"==typeof a.length){if(ha(a))return"function"==typeof a.item||"string"==typeof a.item;if(fa(a))return"function"==typeof a.item}return!1}
function Cd(a){this.a=a||n.document||document}function Md(a){var b=a.a;a=G?b.body||b.documentElement:b.documentElement;b=b.parentWindow||b.defaultView;return F&&lb("10")&&b.pageYOffset!=a.scrollTop?new zd(a.scrollLeft,a.scrollTop):new zd(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}
Cd.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 Nd(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}Nd.prototype.contains=function(a){return this&&a?a instanceof Nd?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};Nd.prototype.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};
Nd.prototype.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};Nd.prototype.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};function Od(a,b){var c=Dd(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function Pd(a,b){return Od(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}
function Qd(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}F&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
function Rd(a){if(F&&!(F&&8<=nb))return a.offsetParent;var b=Dd(a),c=Pd(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Pd(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 Sd(a,b){var c=Td(a),d=Td(b);return new zd(c.x-d.x,c.y-d.y)}
function Td(a){if(1==a.nodeType){var b;if(a.getBoundingClientRect)b=Qd(a),b=new zd(b.left,b.top);else{b=Md(Bd(a));var c,d=Dd(a),e=Pd(a,"position"),f=$a&&d.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==e&&(c=d.getBoxObjectFor(a))&&(0>c.screenX||0>c.screenY),g=new zd(0,0),h;c=d?Dd(d):document;(h=!F||F&&9<=nb)||(Bd(c),h=!0);h=h?c.documentElement:c.body;if(a!=h)if(a.getBoundingClientRect)c=Qd(a),d=Md(Bd(d)),g.x=c.left+d.x,g.y=c.top+d.y;else if(d.getBoxObjectFor&&!f)c=d.getBoxObjectFor(a),d=d.getBoxObjectFor(h),
g.x=c.screenX-d.screenX,g.y=c.screenY-d.screenY;else{c=a;do{g.x+=c.offsetLeft;g.y+=c.offsetTop;c!=a&&(g.x+=c.clientLeft||0,g.y+=c.clientTop||0);if(G&&"fixed"==Pd(c,"position")){g.x+=d.body.scrollLeft;g.y+=d.body.scrollTop;break}c=c.offsetParent}while(c&&c!=a);if(Za||G&&"absolute"==e)g.y-=d.body.offsetTop;for(c=a;(c=Rd(c))&&c!=d.body&&c!=h;)g.x-=c.scrollLeft,Za&&"TR"==c.tagName||(g.y-=c.scrollTop)}b=new zd(g.x-b.x,g.y-b.y)}if($a&&!lb(12)){var l;F?l="-ms-transform":G?l="-webkit-transform":Za?l="-o-transform":
$a&&(l="-moz-transform");var m;l&&(m=Pd(a,l));m||(m=Pd(a,"transform"));a=m?(a=m.match(Ud))?new zd(parseFloat(a[1]),parseFloat(a[2])):new zd(0,0):new zd(0,0);a=new zd(b.x+a.x,b.y+a.y)}else a=b;return a}l=fa(a.n);m=a;a.targetTouches?m=a.targetTouches[0]:l&&a.a.targetTouches&&(m=a.a.targetTouches[0]);return new zd(m.clientX,m.clientY)}function Vd(a,b){a.style.display=b?"":"none"}
function Wd(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 Xd(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?Wd(a,c,"left","pixelLeft"):0}var Yd={thin:2,medium:4,thick:6};
function Zd(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 Yd?Yd[c]:Wd(a,c,"left","pixelLeft")}var Ud=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function $d(a,b){var c=document.createElement("CANVAS");t(a)&&(c.width=a);t(b)&&(c.height=b);return c.getContext("2d")};var ae=n.devicePixelRatio||1,be=!1,ce=function(){if(!("HTMLCanvasElement"in n))return!1;try{var a=$d();if(null===a)return!1;t(a.setLineDash)&&(be=!0);return!0}catch(b){return!1}}(),de="ontouchstart"in n,ee="PointerEvent"in n,fe=!!n.navigator.msPointerEnabled;function ge(a,b,c){I.call(this,a,c);this.element=b}C(ge,I);function he(a){Fc.call(this);this.c=a||[];ie(this)}C(he,Fc);k=he.prototype;k.Ub=function(a){var b,c;b=0;for(c=a.length;b<c;++b)this.push(a[b]);return this};k.forEach=function(a,b){Fa(this.c,a,b)};k.item=function(a){return this.c[a]};k.push=function(a){var b=this.c.length;Ka(this.c,b,0,a);ie(this);this.dispatchEvent(new ge("add",a,this));return b};
k.remove=function(a){var b=this.c,c,d;c=0;for(d=b.length;c<d;++c)if(b[c]===a)return a=this.c[c],Da.splice.call(this.c,c,1),ie(this),this.dispatchEvent(new ge("remove",a,this)),a};function ie(a){a.a("length",a.c.length)};function je(a){if(!z(a)){var b=a[0];b!=(b|0)&&(b=b+.5|0);var c=a[1];c!=(c|0)&&(c=c+.5|0);var d=a[2];d!=(d|0)&&(d=d+.5|0);a="rgba("+b+","+c+","+d+","+a[3]+")"}return a};var ke=!!n.DOMTokenList,le=ke?function(a){return a.classList}:function(a){a=a.className;return z(a)&&a.match(/\S+/g)||[]},me=ke?function(a,b){return a.classList.contains(b)}:function(a,b){var c=le(a);return 0<=Ea(c,b)},ne=ke?function(a,b){a.classList.add(b)}:function(a,b){me(a,b)||(a.className+=0<a.className.length?" "+b:b)},oe=ke?function(a,b){a.classList.remove(b)}:function(a,b){me(a,b)&&(a.className=Ga(le(a),function(a){return a!=b}).join(" "))};function pe(a,b,c){I.call(this,a);this.map=b;this.frameState=t(c)?c:null}C(pe,I);function qe(a){Fc.call(this);this.element=t(a.element)?a.element:null;this.u=t(a.target)?Ed(a.target):null;this.e=null;this.j=[]}C(qe,Fc);qe.prototype.p=function(){Ld(this.element);qe.r.p.call(this)};qe.prototype.h=aa;qe.prototype.setMap=function(a){null===this.e||Ld(this.element);0!=this.j.length&&(Fa(this.j,P),this.j.length=0);this.e=a;null!==this.e&&((null===this.u?a.I:this.u).appendChild(this.element),this.h!==aa&&this.j.push(N(a,"postrender",this.h,!1,this)),V(a))};function re(a,b){this.a=a;this.g=b};function se(a){re.call(this,a,{mousedown:this.Gb,mousemove:this.Hb,mouseup:this.Kb,mouseover:this.Jb,mouseout:this.Ib});this.b=a.b;this.c=[]}C(se,re);function te(a,b){for(var c=a.c,d=b.clientX,e=b.clientY,f=0,g=c.length,h;f<g&&(h=c[f]);f++){var l=Math.abs(e-h[1]);if(25>=Math.abs(d-h[0])&&25>=l)return!0}return!1}function ue(a){var b=ve(a,a.a),c=b.preventDefault;b.preventDefault=function(){a.preventDefault();c()};b.pointerId=1;b.isPrimary=!0;b.pointerType="mouse";return b}k=se.prototype;
k.Gb=function(a){if(!te(this,a)){if((1).toString()in this.b){var b=ue(a);W(this.a,we,b,a);ac(this.b,(1).toString())}b=ue(a);this.b[(1).toString()]=a;W(this.a,xe,b,a)}};k.Hb=function(a){if(!te(this,a)){var b=ue(a);W(this.a,ye,b,a)}};k.Kb=function(a){if(!te(this,a)){var b=L(this.b,(1).toString());b&&b.button===a.button&&(b=ue(a),W(this.a,ze,b,a),ac(this.b,(1).toString()))}};k.Jb=function(a){if(!te(this,a)){var b=ue(a);Ae(this.a,b,a)}};k.Ib=function(a){if(!te(this,a)){var b=ue(a);Be(this.a,b,a)}};function Ce(a){re.call(this,a,{MSPointerDown:this.Pb,MSPointerMove:this.Qb,MSPointerUp:this.Tb,MSPointerOut:this.Rb,MSPointerOver:this.Sb,MSPointerCancel:this.Ob,MSGotPointerCapture:this.Mb,MSLostPointerCapture:this.Nb});this.b=a.b;this.c=["","unavailable","touch","pen","mouse"]}C(Ce,re);function De(a,b){var c=b;ea(b.a.pointerType)&&(c=ve(b,b.a),c.pointerType=a.c[b.a.pointerType]);return c}k=Ce.prototype;k.Pb=function(a){this.b[a.a.pointerId]=a;var b=De(this,a);W(this.a,xe,b,a)};
k.Qb=function(a){var b=De(this,a);W(this.a,ye,b,a)};k.Tb=function(a){var b=De(this,a);W(this.a,ze,b,a);ac(this.b,a.a.pointerId)};k.Rb=function(a){var b=De(this,a);Be(this.a,b,a)};k.Sb=function(a){var b=De(this,a);Ae(this.a,b,a)};k.Ob=function(a){var b=De(this,a);W(this.a,we,b,a);ac(this.b,a.a.pointerId)};k.Nb=function(a){this.a.dispatchEvent(new Ee("lostpointercapture",a,a.a))};k.Mb=function(a){this.a.dispatchEvent(new Ee("gotpointercapture",a,a.a))};function Fe(a){re.call(this,a,{pointerdown:this.Zb,pointermove:this.$b,pointerup:this.cc,pointerout:this.ac,pointerover:this.bc,pointercancel:this.Yb,gotpointercapture:this.pb,lostpointercapture:this.Fb})}C(Fe,re);k=Fe.prototype;k.Zb=function(a){Ge(this.a,a)};k.$b=function(a){Ge(this.a,a)};k.cc=function(a){Ge(this.a,a)};k.ac=function(a){Ge(this.a,a)};k.bc=function(a){Ge(this.a,a)};k.Yb=function(a){Ge(this.a,a)};k.Fb=function(a){Ge(this.a,a)};k.pb=function(a){Ge(this.a,a)};function Ee(a,b,c){I.call(this,a);this.b=b;a=t(c)?c:{};this.buttons=He(a);this.pressure=Ie(a,this.buttons);this.bubbles=L(a,"bubbles",!1);this.cancelable=L(a,"cancelable",!1);this.view=L(a,"view",null);this.detail=L(a,"detail",null);this.screenX=L(a,"screenX",0);this.screenY=L(a,"screenY",0);this.clientX=L(a,"clientX",0);this.clientY=L(a,"clientY",0);this.button=L(a,"button",0);this.relatedTarget=L(a,"relatedTarget",null);this.pointerId=L(a,"pointerId",0);this.width=L(a,"width",0);this.height=L(a,
"height",0);this.pointerType=L(a,"pointerType","");this.isPrimary=L(a,"isPrimary",!1);b.preventDefault&&(this.preventDefault=function(){b.preventDefault()})}C(Ee,I);function He(a){if(a.buttons||Je)a=a.buttons;else switch(a.which){case 1:a=1;break;case 2:a=4;break;case 3:a=2;break;default:a=0}return a}function Ie(a,b){var c=0;a.pressure?c=a.pressure:c=b?.5:0;return c}var Je=!1;try{Je=1===(new MouseEvent("click",{buttons:1})).buttons}catch(Ke){};function Le(a,b){re.call(this,a,{touchstart:this.oc,touchmove:this.nc,touchend:this.mc,touchcancel:this.lc});this.b=a.b;this.f=b;this.c=void 0;this.e=0;this.d=void 0}C(Le,re);k=Le.prototype;k.Qa=function(){this.e=0;this.d=void 0};
function Me(a,b,c){b=ve(b,c);b.pointerId=c.identifier+2;b.bubbles=!0;b.cancelable=!0;b.detail=a.e;b.button=0;b.buttons=1;b.width=c.g||c.b||0;b.height=c.e||c.c||0;b.pressure=c.d||c.a||.5;b.isPrimary=a.c===c.identifier;b.pointerType="touch";b.clientX=c.clientX;b.clientY=c.clientY;b.screenX=c.screenX;b.screenY=c.screenY;return b}
function Ne(a,b,c){function d(){b.preventDefault()}var e=Array.prototype.slice.call(b.a.changedTouches),f=e.length,g,h;for(g=0;g<f;++g)h=Me(a,b,e[g]),h.preventDefault=d,c.call(a,b,h)}
k.oc=function(a){var b=a.a.touches,c=Zb(this.b),d=c.length;if(d>=b.length){var e=[],f,g,h;for(f=0;f<d;++f){g=c[f];h=this.b[g];var l;if(!(l=1==g))a:{l=b.length;for(var m=void 0,p=0;p<l;p++)if(m=b[p],m.identifier===g-2){l=!0;break a}l=!1}l||e.push(h.H)}for(f=0;f<e.length;++f)this.pa(a,e[f])}b=Xb(this.b);if(!(c=0===b)){if(b=1===b)b=(1).toString()in this.b;c=b}c&&(this.c=a.a.changedTouches[0].identifier,t(this.d)&&n.clearTimeout(this.d));Oe(this,a);this.e++;Ne(this,a,this.Xb)};
k.Xb=function(a,b){this.b[b.pointerId]={target:b.target,H:b,Pa:b.target};var c=this.a;b.bubbles=!0;W(c,Pe,b,a);c=this.a;b.bubbles=!1;W(c,Qe,b,a);W(this.a,xe,b,a)};k.nc=function(a){a.preventDefault();Ne(this,a,this.Lb)};k.Lb=function(a,b){var c=L(this.b,b.pointerId);if(c){var d=c.H,e=c.Pa;W(this.a,ye,b,a);d&&e!==b.target&&(d.relatedTarget=b.target,b.relatedTarget=e,d.target=e,b.target?(Be(this.a,d,a),Ae(this.a,b,a)):(b.target=e,b.relatedTarget=null,this.pa(a,b)));c.H=b;c.Pa=b.target}};
k.mc=function(a){Oe(this,a);Ne(this,a,this.pc)};k.pc=function(a,b){W(this.a,ze,b,a);this.a.H(b,a);var c=this.a;b.bubbles=!1;W(c,Re,b,a);ac(this.b,b.pointerId);b.isPrimary&&(this.c=void 0,this.d=n.setTimeout(pa(this.Qa,this),200))};k.lc=function(a){Ne(this,a,this.pa)};k.pa=function(a,b){W(this.a,we,b,a);this.a.H(b,a);var c=this.a;b.bubbles=!1;W(c,Re,b,a);ac(this.b,b.pointerId);b.isPrimary&&(this.c=void 0,this.d=n.setTimeout(pa(this.Qa,this),200))};
function Oe(a,b){var c=a.f.c,d=b.a.changedTouches[0];if(a.c===d.identifier){var e=[d.clientX,d.clientY];c.push(e);n.setTimeout(function(){Ia(c,e)},2500)}};function Se(a){Q.call(this);this.g=a;this.b={};this.d={};this.a=[];ee?Te(this,new Fe(this)):fe?Te(this,new Ce(this)):(a=new se(this),Te(this,a),de&&Te(this,new Le(this,a)));a=this.a.length;for(var b,c=0;c<a;c++)b=this.a[c],Ue(this,Zb(b.g))}C(Se,Q);function Te(a,b){var c=Zb(b.g);c&&(Fa(c,function(a){var c=b.g[a];c&&(this.d[a]=pa(c,b))},a),a.a.push(b))}Se.prototype.c=function(a){var b=this.d[a.type];b&&b(a)};function Ue(a,b){Fa(b,function(a){N(this.g,a,this.c,!1,this)},a)}
function Ve(a,b){Fa(b,function(a){sc(this.g,a,this.c,!1,this)},a)}function ve(a,b){for(var c={},d,e=0,f=We.length;e<f;e++)d=We[e][0],c[d]=a[d]||b[d]||We[e][1];return c}Se.prototype.H=function(a,b){a.bubbles=!0;W(this,Xe,a,b)};function Be(a,b,c){a.H(b,c);b.target.contains(b.relatedTarget)||(b.bubbles=!1,W(a,Re,b,c))}function Ae(a,b,c){b.bubbles=!0;W(a,Pe,b,c);b.target.contains(b.relatedTarget)||(b.bubbles=!1,W(a,Qe,b,c))}function W(a,b,c,d){a.dispatchEvent(new Ee(b,d,c))}
function Ge(a,b){a.dispatchEvent(new Ee(b.type,b,b.a))}Se.prototype.p=function(){for(var a=this.a.length,b,c=0;c<a;c++)b=this.a[c],Ve(this,Zb(b.g));Se.r.p.call(this)};
var ye="pointermove",xe="pointerdown",ze="pointerup",Pe="pointerover",Xe="pointerout",Qe="pointerenter",Re="pointerleave",we="pointercancel",We=[["bubbles",!1],["cancelable",!1],["view",null],["detail",null],["screenX",0],["screenY",0],["clientX",0],["clientY",0],["ctrlKey",!1],["altKey",!1],["shiftKey",!1],["metaKey",!1],["button",0],["relatedTarget",null],["buttons",0],["pointerId",0],["width",0],["height",0],["pressure",0],["tiltX",0],["tiltY",0],["pointerType",""],["hwTimestamp",0],["isPrimary",
!1],["type",""],["target",null],["currentTarget",null],["which",0]];function Ye(a){a=t(a)?a:{};this.l=document.createElement("UL");this.k=document.createElement("LI");this.l.appendChild(this.k);Vd(this.k,!1);this.f=t(a.collapsed)?a.collapsed:!0;this.i=t(a.collapsible)?a.collapsible:!0;this.i||(this.f=!1);var b=t(a.className)?a.className:"ol-attribution",c=Id("SPAN",{role:"tooltip"},t(a.tipLabel)?a.tipLabel:"Attributions");this.o=t(a.collapseLabel)?a.collapseLabel:"\u00bb";this.s=t(a.label)?a.label:"i";this.q=Id("SPAN",{},this.i&&!this.f?this.o:this.s);var d=Id("BUTTON",
{"class":"ol-has-tooltip",type:"button"},this.q);d.appendChild(c);c=new Se(d);Gb(this,c);N(c,ze,this.I,!1,this);N(d,"click",this.w,!1,this);N(d,["mouseout",Jb],function(){this.blur()},!1);b=Id("DIV",{"class":b+" ol-unselectable ol-control"+(this.f&&this.i?" ol-collapsed":"")+(this.i?"":" ol-uncollapsible")},this.l,d);qe.call(this,{element:b,target:a.target});this.n=!0;this.d={};this.c={};this.v={}}C(Ye,qe);
Ye.prototype.h=function(a){a=a.frameState;if(null===a)this.n&&(Vd(this.element,!1),this.n=!1);else{var b,c,d,e,f,g,h,l,m,p=a.layerStatesArray,r=bc(a.attributions),q={};c=0;for(b=p.length;c<b;c++)if(d=p[c].layer.d,m=ia(d).toString(),l=d.n,null!==l)for(d=0,e=l.length;d<e;d++)g=l[d],h=ia(g).toString(),h in r||(f=a.usedTiles[m],t(f)&&g.b(f)?(h in q&&delete q[h],r[h]=g):q[h]=g);b=[r,q];c=b[0];b=b[1];for(var u in this.d)u in c?(this.c[u]||(Vd(this.d[u],!0),this.c[u]=!0),delete c[u]):u in b?(this.c[u]&&
(Vd(this.d[u],!1),delete this.c[u]),delete b[u]):(Ld(this.d[u]),delete this.d[u],delete this.c[u]);for(u in c)m=document.createElement("LI"),m.innerHTML=c[u].a(),this.l.appendChild(m),this.d[u]=m,this.c[u]=!0;for(u in b)m=document.createElement("LI"),m.innerHTML=b[u].a(),Vd(m,!1),this.l.appendChild(m),this.d[u]=m;u=!$b(this.c)||!$b(a.logos);this.n!=u&&(Vd(this.element,u),this.n=u);u&&$b(this.c)?ne(this.element,"ol-logo-only"):oe(this.element,"ol-logo-only");var v;a=a.logos;u=this.v;for(v in u)v in
a||(Ld(u[v]),delete u[v]);for(var s in a)s in u||(v=new Image,v.src=s,c=a[s],""===c?c=v:(c=Id("A",{href:c,target:"_blank"}),c.appendChild(v)),this.k.appendChild(c),u[s]=c);Vd(this.k,!$b(a))}};Ye.prototype.w=function(a){0!==a.screenX&&0!==a.screenY||Ze(this)};Ye.prototype.I=function(a){a.b.preventDefault();Ze(this)};
function Ze(a){var b=a.element;me(b,"ol-collapsed")?oe(b,"ol-collapsed"):ne(b,"ol-collapsed");var b=a.q,c=a.f?a.o:a.s;if("textContent"in b)b.textContent=c;else if(3==b.nodeType)b.data=c;else if(b.firstChild&&3==b.firstChild.nodeType){for(;b.lastChild!=b.firstChild;)b.removeChild(b.lastChild);b.firstChild.data=c}else{for(var d;d=b.firstChild;)b.removeChild(d);b.appendChild(Dd(b).createTextNode(String(c)))}a.f=!a.f};function $e(a){a=t(a)?a:{};var b=t(a.className)?a.className:"ol-rotate",c=Id("SPAN",{"class":"ol-compass"},t(a.label)?a.label:"\u21e7");this.c=c;var d=Id("SPAN",{role:"tooltip"},t(a.tipLabel)?a.tipLabel:"Reset rotation"),c=Id("BUTTON",{"class":b+"-reset ol-has-tooltip",name:"ResetRotation",type:"button"},d,c),d=new Se(c);Gb(this,d);N(d,ze,$e.prototype.k,!1,this);N(c,"click",$e.prototype.i,!1,this);N(c,["mouseout",Jb],function(){this.blur()},!1);b=Id("DIV",b+" ol-unselectable ol-control",c);qe.call(this,
{element:b,target:a.target});this.f=t(a.duration)?a.duration:250;this.d=t(a.autoHide)?a.autoHide:!0;b.style.opacity=this.d?0:1}C($e,qe);$e.prototype.i=function(a){0!==a.screenX&&0!==a.screenY||af(this)};$e.prototype.k=function(a){a.b.preventDefault();af(this)};function af(a){for(var b=a.e,c=b.c(),d=c.J();d<-Math.PI;)d+=2*Math.PI;for(;d>Math.PI;)d-=2*Math.PI;t(d)&&(0<a.f&&b.e(rd({rotation:d,duration:a.f,easing:nd})),c.i(0))}
$e.prototype.h=function(a){a=a.frameState;if(null!==a){a=a.viewState.rotation;var b="rotate("+360*a/(2*Math.PI)+"deg)";this.d&&(this.element.style.opacity=0===a?0:1);this.c.style.msTransform=b;this.c.style.webkitTransform=b;this.c.style.transform=b}};function bf(a){a=t(a)?a:{};var b=t(a.className)?a.className:"ol-zoom",c=t(a.delta)?a.delta:1,d=t(a.zoomInLabel)?a.zoomInLabel:"+",e=t(a.zoomOutLabel)?a.zoomOutLabel:"\u2212",f=t(a.zoomOutTipLabel)?a.zoomOutTipLabel:"Zoom out",g=Id("SPAN",{role:"tooltip"},t(a.zoomInTipLabel)?a.zoomInTipLabel:"Zoom in"),d=Id("BUTTON",{"class":b+"-in ol-has-tooltip",type:"button"},g,d),g=new Se(d);Gb(this,g);N(g,ze,qa(bf.prototype.f,c),!1,this);N(d,"click",qa(bf.prototype.d,c),!1,this);N(d,["mouseout",Jb],function(){this.blur()},
!1);f=Id("SPAN",{role:"tooltip"},f);e=Id("BUTTON",{"class":b+"-out ol-has-tooltip",type:"button"},f,e);f=new Se(e);Gb(this,f);N(f,ze,qa(bf.prototype.f,-c),!1,this);N(e,"click",qa(bf.prototype.d,-c),!1,this);N(e,["mouseout",Jb],function(){this.blur()},!1);b=Id("DIV",b+" ol-unselectable ol-control",d,e);qe.call(this,{element:b,target:a.target});this.c=t(a.duration)?a.duration:250}C(bf,qe);bf.prototype.d=function(a,b){0!==b.screenX&&0!==b.screenY||cf(this,a)};
bf.prototype.f=function(a,b){b.b.preventDefault();cf(this,a)};function cf(a,b){var c=a.e,d=c.c(),e=d.e();t(e)&&(0<a.c&&c.e(sd({resolution:e,duration:a.c,easing:nd})),c=d.constrainResolution(e,b),d.h(c))};function df(a){a=t(a)?a:{};var b=new he;(t(a.zoom)?a.zoom:1)&&b.push(new bf(a.zoomOptions));(t(a.rotate)?a.rotate:1)&&b.push(new $e(a.rotateOptions));(t(a.attribution)?a.attribution:1)&&b.push(new Ye(a.attributionOptions));return b};function X(a){a=t(a)?a:{};var b=Id("DIV",{"class":t(a.className)?a.className:"ol-mouse-position"});qe.call(this,{element:b,target:a.target});N(this,Kc("projection"),this.v,!1,this);t(a.coordinateFormat)&&this.o(a.coordinateFormat);t(a.projection)&&this.l(id(a.projection));this.w=t(a.undefinedHTML)?a.undefinedHTML:"";this.i=b.innerHTML;this.f=this.d=this.c=null}C(X,qe);
X.prototype.h=function(a){a=a.frameState;null===a?this.c=null:this.c!=a.viewState.projection&&(this.c=a.viewState.projection,this.d=null);ef(this,this.f)};X.prototype.v=function(){this.d=null};X.prototype.k=function(){return this.b("coordinateFormat")};X.prototype.getCoordinateFormat=X.prototype.k;X.prototype.n=function(){return this.b("projection")};X.prototype.getProjection=X.prototype.n;X.prototype.q=function(a){a=Sd(a,this.e.d);this.f=[a.x,a.y];ef(this,this.f)};
X.prototype.s=function(){ef(this,null);this.f=null};X.prototype.setMap=function(a){X.r.setMap.call(this,a);null!==a&&(a=a.d,this.j.push(N(a,"mousemove",this.q,!1,this),N(a,"mouseout",this.s,!1,this)))};X.prototype.o=function(a){this.a("coordinateFormat",a)};X.prototype.setCoordinateFormat=X.prototype.o;X.prototype.l=function(a){this.a("projection",a)};X.prototype.setProjection=X.prototype.l;
function ef(a,b){var c=a.w;if(null!==b&&null!==a.c){if(null===a.d){var d=a.n();a.d=t(d)?jd(a.c,d):kd}d=a.e.h(b);null!==d&&(a.d(d,d),c=a.k(),c=t(c)?c(d):d.toString())}t(a.i)&&c==a.i||(a.element.innerHTML=c,a.i=c)};function ff(a,b,c,d){pe.call(this,a,b,d);this.b=c;this.originalEvent=c.a;a=this.originalEvent;t(a.changedTouches)?(a=a.changedTouches.item(0),c=Td(b.d),a=[a.clientX-c.x,a.clientY-c.y]):(a=Sd(a,b.d),a=[a.x,a.y]);this.pixel=a;this.coordinate=b.h(this.pixel)}C(ff,pe);ff.prototype.preventDefault=function(){ff.r.preventDefault.call(this);this.b.preventDefault()};ff.prototype.f=function(){ff.r.f.call(this);this.b.f()};function gf(a,b,c,d){ff.call(this,a,b,c.b,d);this.c=c}C(gf,ff);
function hf(a){Q.call(this);this.b=a;this.g=0;this.h=!1;this.e=this.f=this.c=null;a=this.b.d;this.k=0;this.i={};this.d=new Se(a);this.a=null;this.f=N(this.d,xe,this.wb,!1,this);this.j=N(this.d,ye,this.dc,!1,this)}C(hf,Q);function jf(a,b){var c;c=new gf(kf,a.b,b);a.dispatchEvent(c);0!==a.g?(n.clearTimeout(a.g),a.g=0,c=new gf(lf,a.b,b),a.dispatchEvent(c)):a.g=n.setTimeout(pa(function(){this.g=0;var a=new gf(mf,this.b,b);this.dispatchEvent(a)},a),250)}
function nf(a,b){b.type==of||b.type==pf?delete a.i[b.pointerId]:b.type==qf&&(a.i[b.pointerId]=!0);a.k=Xb(a.i)}k=hf.prototype;k.Ia=function(a){nf(this,a);var b=new gf(of,this.b,a);this.dispatchEvent(b);0===this.k&&(Fa(this.c,P),this.c=null,Hb(this.a),this.a=null);!this.h&&0===a.button&&jf(this,this.e)};
k.wb=function(a){nf(this,a);var b=new gf(qf,this.b,a);this.dispatchEvent(b);this.e=a;this.h=!1;null===this.c&&(this.a=new Se(document),this.c=[N(this.a,rf,this.xb,!1,this),N(this.a,of,this.Ia,!1,this),N(this.d,pf,this.Ia,!1,this)]);a.preventDefault()};k.xb=function(a){if(a.clientX!=this.e.clientX||a.clientY!=this.e.clientY){this.h=!0;var b=new gf(sf,this.b,a);this.dispatchEvent(b)}a.preventDefault()};k.dc=function(a){this.dispatchEvent(new gf(a.type,this.b,a))};
k.p=function(){null!==this.j&&(P(this.j),this.j=null);null!==this.f&&(P(this.f),this.f=null);null!==this.c&&(Fa(this.c,P),this.c=null);null!==this.a&&(Hb(this.a),this.a=null);null!==this.d&&(Hb(this.d),this.d=null);hf.r.p.call(this)};var mf="singleclick",kf="click",lf="dblclick",sf="pointerdrag",rf="pointermove",qf="pointerdown",of="pointerup",pf="pointercancel",tf={Cc:mf,rc:kf,sc:lf,vc:sf,yc:rf,uc:qf,Bc:of,Ac:"pointerover",zc:"pointerout",wc:"pointerenter",xc:"pointerleave",tc:pf};function uf(a){a=a.b;return a.b&&!a.j&&a.g}function vf(a){a=a.b;return!a.b&&!a.j&&!a.g}function wf(a){a=a.b;return!a.b&&!a.j&&a.g}function xf(a){a=a.b.target.tagName;return"INPUT"!==a&&"SELECT"!==a&&"TEXTAREA"!==a};function yf(){Cc.call(this);this.extent=void 0;this.f=-1}C(yf,Cc);var zf=[0,0,0,1],Af=[],Bf=[0,0,0,1];function Cf(a){a=t(a)?a:{};this.ka=t(a.color)?a.color:null;this.Fa=a.lineCap;this.a=t(a.lineDash)?a.lineDash:null;this.Ga=a.lineJoin;this.Ha=a.miterLimit;this.b=a.width}Cf.prototype.getLineDash=function(){return this.a};Cf.prototype.K=function(){return this.b};function Df(){var a={stroke:new Cf({color:[0,0,255,1]})},a=t(a)?a:{};this.La=t(a.fill)?a.fill:null;this.Ma=t(a.stroke)?a.stroke:null;this.Na=t(a.text)?a.text:null};function Ef(a,b,c,d,e,f,g){I.call(this,a,b);this.vectorContext=c;this.frameState=e;this.context=f;this.glContext=g}C(Ef,I);function Ff(a,b,c,d,e,f){var g=e[0],h=e[1],l=e[4],m=e[5],p=e[12];e=e[13];for(var r=t(f)?f:[],q=0;b<c;b+=d){var u=a[b],v=a[b+1];r[q++]=g*u+l*v+p;r[q++]=h*u+m*v+e}t(f)&&r.length!=q&&(r.length=q);return r};function Gf(){yf.call(this);this.a=2;this.b=null}C(Gf,yf);function Hf(a){if("XY"==a)return 2;if("XYZ"==a||"XYM"==a)return 3;if("XYZM"==a)return 4;throw Error("unsupported layout: "+a);}
Gf.prototype.c=function(a){if(this.f!=this.g){for(var b=this.b,c=this.b.length,d=this.a,e=Tc(Infinity,Infinity,-Infinity,-Infinity,this.extent),f=0;f<c;f+=d){var g=e,h=b[f],l=b[f+1];g[0]=Math.min(g[0],h);g[1]=Math.min(g[1],l);g[2]=Math.max(g[2],h);g[3]=Math.max(g[3],l)}this.extent=e;this.f=this.g}b=this.extent;t(a)?(a[0]=b[0],a[1]=b[1],a[2]=b[2],a[3]=b[3]):a=b;return a};function If(a,b,c,d,e,f){for(var g=!1,h=a[c-d],l=a[c-d+1];b<c;b+=d){var m=a[b],p=a[b+1];l>f!=p>f&&e<(m-h)*(f-l)/(p-l)+h&&(g=!g);h=m;l=p}return g};function Jf(a,b,c,d){for(var e=0,f=a[c-d],g=a[c-d+1];b<c;b+=d)var h=a[b],l=a[b+1],e=e+(h-f)*(l+g),f=h,g=l;return 0<e};function Kf(a,b){Gf.call(this);this.d=[];this.h=-1;this.j=null;this.k=-1;this.e=null;if(null===a){var c=this.d;this.a=Hf("XY");this.b=null;this.d=c}else{a:{c=a;if(t(b))c=Hf(b);else{var d;for(d=0;2>d;++d){if(0===c.length){this.a=2;break a}c=c[0]}c=c.length;if(2!=c&&3!=c&&4!=c)throw Error("unsupported stride: "+c);}this.a=c}null===this.b&&(this.b=[]);c=this.b;d=this.a;var e=this.d,f=0,e=t(e)?e:[],g=0,h,l;h=0;for(l=a.length;h<l;++h){var m;m=c;for(var p=a[h],r=d,q=void 0,u=void 0,q=0,u=p.length;q<u;++q){var v=
p[q],s;for(s=0;s<r;++s)m[f++]=v[s]}m=f;f=e[g++]=m}e.length=g;this.b.length=0===e.length?0:e[e.length-1]}Dc(this)}C(Kf,Gf);
function Lf(a){if(a.k!=a.g){var b=a.b,c;a:{c=a.d;var d=0,e,f;e=0;for(f=c.length;e<f;++e){var g=c[e],d=Jf(b,d,g,a.a);if(0===e?!d:d){c=!1;break a}d=g}c=!0}if(c)a.e=b;else{a.e=b.slice();c=b=a.e;e=a.d;f=a.a;for(var h=0,g=0,d=e.length;g<d;++g){var l=e[g],m=Jf(c,h,l,f);if(0===g?!m:m)for(var m=c,p=l,r=f;h<p-r;){var q;for(q=0;q<r;++q){var u=m[h+q];m[h+q]=m[p-r+q];m[p-r+q]=u}h+=r;p-=r}h=l}b.length=h}a.k=a.g}return a.e}Kf.prototype.i=function(){return"Polygon"};var Mf=["Polygon","LineString","Image","Text"];function Nf(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 Of(a,b,c){if(ca(b))for(var d=0;d<b.length;d++)Of(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",encodeURIComponent(String(b)))}function Pf(a,b){for(var c in b)Of(c,b[c],a);return a};function Qf(){this.a={};this.b=0}Qf.b=function(){return Qf.a?Qf.a:Qf.a=new Qf};function Rf(a,b,c,d,e){Q.call(this);this.h=e;this.j=a;this.g=c;this.e=b;this.state=d}C(Rf,Q);Rf.prototype.c=function(){return this.j};function Sf(a,b,c,d,e,f){Rf.call(this,a,b,c,0,d);this.f=e;this.a=new Image;null!==f&&(this.a.crossOrigin=f);this.d={};this.b=null;this.state=0}C(Sf,Rf);Sf.prototype.i=function(){this.state=3;Fa(this.b,P);this.b=null;this.dispatchEvent("change")};Sf.prototype.k=function(){this.state=2;Fa(this.b,P);this.b=null;this.dispatchEvent("change")};function Tf(a,b){Q.call(this);this.a=a;this.state=b}C(Tf,Q);Tf.prototype.getKey=function(){return ia(this).toString()};function Uf(a,b,c,d,e){Tf.call(this,a,b);this.g=c;this.b=new Image;null!==d&&(this.b.crossOrigin=d);this.d={};this.c=null;this.h=e}C(Uf,Tf);function Vf(a){if(t(void 0)){var b,c=ia(void 0);if(c in a.d)return a.d[c];b=$b(a.d)?a.b:a.b.cloneNode(!1);return a.d[c]=b}return a.b}Uf.prototype.getKey=function(){return this.g};Uf.prototype.e=function(){this.state=3;Fa(this.c,P);this.c=null;this.dispatchEvent("change")};
Uf.prototype.f=function(){t(this.b.naturalWidth)||(this.b.naturalWidth=this.b.width,this.b.naturalHeight=this.b.height);this.state=this.b.naturalWidth&&this.b.naturalHeight?2:4;Fa(this.c,P);this.c=null;this.dispatchEvent("change")};function Wf(){Cc.call(this);this.j=null}C(Wf,Cc);Wf.prototype.setMap=function(a){this.j=a};function Xf(a,b,c,d,e){if(null!=c){var f=b.J(),g=b.c();t(f)&&t(g)&&t(e)&&0<e&&(a.e(rd({rotation:f,duration:e,easing:nd})),t(d)&&a.e(qd({source:g,duration:e,easing:nd})));b.rotate(c,d)}}function Yf(a,b,c,d,e){var f=b.e();c=b.constrainResolution(f,c,0);Zf(a,b,c,d,e)}
function Zf(a,b,c,d,e){if(null!=c){var f=b.e(),g=b.c();t(f)&&t(g)&&t(e)&&0<e&&(a.e(sd({resolution:f,duration:e,easing:nd})),t(d)&&a.e(qd({source:g,duration:e,easing:nd})));if(null!=d){var h;a=b.c();e=b.e();t(a)&&t(e)&&(h=[d[0]-c*(d[0]-a[0])/e,d[1]-c*(d[1]-a[1])/e]);b.d(h)}b.h(c)}};function $f(a){a=t(a)?a:{};this.a=t(a.delta)?a.delta:1;Wf.call(this);this.b=t(a.duration)?a.duration:250}C($f,Wf);$f.prototype.W=function(a){var b=!1,c=a.b;if(a.type==lf){var b=a.map,d=a.coordinate,c=c.g?-this.a:this.a,e=b.c();Yf(b,e,c,d,this.b);a.preventDefault();b=!0}return!b};var ag;
function bg(){var a=n.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&(a=function(){var a=document.createElement("iframe");a.style.display="none";a.src="";document.documentElement.appendChild(a);var b=a.contentWindow,a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d=b.location.protocol+"//"+b.location.host,a=pa(function(a){if(a.origin==d||a.data==c)this.port1.onmessage()},this);b.addEventListener("message",a,
!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});if("undefined"!==typeof a){var b=new a,c={},d=c;b.port1.onmessage=function(){c=c.next;var a=c.za;c.za=null;a()};return function(a){d.next={za:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("script")?function(a){var b=document.createElement("script");b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};
document.documentElement.appendChild(b)}:function(a){n.setTimeout(a,0)}};function cg(){Wf.call(this);this.c=!1;this.f={};this.a=[]}C(cg,Wf);function dg(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]}k=cg.prototype;k.M=aa;k.N=xc;k.L=xc;
k.W=function(a){if(!(a instanceof gf))return!0;var b=!1,c=a.type;if(c===qf||c===sf||c===of)c=a.c,a.type==of?delete this.f[c.pointerId]:a.type==qf?this.f[c.pointerId]=c:c.pointerId in this.f&&(this.f[c.pointerId]=c),this.a=Yb(this.f);this.c&&(a.type==sf?this.M(a):a.type==of&&(this.c=this.N(a)));a.type==qf&&(this.c=a=this.L(a),b=this.Sa(a));return!b};k.Sa=xc;function eg(a){this.c=this.b=this.d=this.g=this.a=null;this.f=a}C(eg,Db);function fg(a){var b=a.d,c=a.b;a=Ha([b,[b[0],c[1]],c,[c[0],b[1]]],a.a.h,a.a);a[4]=a[0].slice();return new Kf([a])}eg.prototype.p=function(){this.setMap(null)};eg.prototype.e=function(a){var b=this.c,c=this.f;gg(a.vectorContext,function(a){a.gc(c.La,c.Ma);a.ic(c.Na);a.Aa(b)})};eg.prototype.ra=function(){return this.c};function hg(a){null===a.a||null===a.d||null===a.b||V(a.a)}
eg.prototype.setMap=function(a){null!==this.g&&(P(this.g),this.g=null,V(this.a),this.a=null);this.a=a;null!==this.a&&(this.g=N(a,"postcompose",this.e,!1,this),hg(this))};function ig(a,b){I.call(this,a);this.coordinate=b}C(ig,I);function jg(a){cg.call(this);a=t(a)?a:{};this.d=new eg(t(a.style)?a.style:null);this.b=null;this.e=t(a.condition)?a.condition:yc}C(jg,cg);k=jg.prototype;k.M=function(a){if(1==a.c.pointerId){var b=this.d;a=a.pixel;b.d=this.b;b.b=a;b.c=fg(b);hg(b)}};k.ra=function(){return this.d.ra()};k.Oa=aa;
k.N=function(a){if(1!=a.c.pointerId)return!0;this.d.setMap(null);var b=a.pixel[0]-this.b[0],c=a.pixel[1]-this.b[1];64<=b*b+c*c&&(this.Oa(a),this.dispatchEvent(new ig("boxend",a.coordinate)));return!1};k.L=function(a){if(1==a.c.pointerId&&Pb(a.b)&&this.e(a)){this.b=a.pixel;this.d.setMap(a.map);var b=this.d,c=this.b;b.d=this.b;b.b=c;b.c=fg(b);hg(b);this.dispatchEvent(new ig("boxstart",a.coordinate));return!0}return!1};k.Sa=function(a){return a};function kg(){this.a=[];this.b=this.c=0}function lg(a,b){var c=a.b,d=Math.log(.05/a.b)/-.005;return qd({source:b,duration:d,easing:function(a){return c*(Math.exp(-.005*a*d)-1)/(.05-c)}})};function mg(a){cg.call(this);this.b=(t(a)?a:{}).kinetic;this.d=this.e=null;this.i=t(a.condition)?a.condition:vf;this.h=!1}C(mg,cg);mg.prototype.M=function(a){var b=dg(this.a);this.b&&this.b.a.push(b[0],b[1],ra());if(null!==this.d){var c=this.d[0]-b[0],d=b[1]-this.d[1];a=a.map;var e=a.c(),f=ld(e),d=c=[c,d],g=f.resolution;d[0]*=g;d[1]*=g;Mc(c,f.rotation);Lc(c,f.center);c=e.f.center(c);V(a);e.d(c)}this.d=b};
mg.prototype.N=function(a){a=a.map;var b=a.c();if(0===this.a.length){var c;if(c=!this.h&&this.b)if(c=this.b,6>c.a.length)c=!1;else{var d=ra()-100,e=c.a.length-3;if(c.a[e+2]<d)c=!1;else{for(var f=e-3;0<f&&c.a[f+2]>d;)f-=3;var d=c.a[e+2]-c.a[f+2],g=c.a[e]-c.a[f],e=c.a[e+1]-c.a[f+1];c.c=Math.atan2(e,g);c.b=Math.sqrt(g*g+e*e)/d;c=.05<c.b}}c&&(c=(.05-this.b.b)/-.005,e=this.b.c,d=b.c(),this.e=lg(this.b,d),a.e(this.e),f=a.f,null===f?f=null:(d=d.slice(0,2),f=ng(f.coordinateToPixelMatrix,d,d)),c=a.h([f[0]-
c*Math.cos(e),f[1]-c*Math.sin(e)]),c=b.f.center(c),b.d(c));md(b,-1);V(a);return!1}this.d=null;return!0};mg.prototype.L=function(a){if(0<this.a.length&&this.i(a)){var b=a.map,c=b.c();this.d=null;this.c||md(c,1);V(b);null!==this.e&&Ia(b.o,this.e)&&(c.d(a.frameState.viewState.center),this.e=null);this.b&&(a=this.b,a.a.length=0,a.c=0,a.b=0);this.h=1<this.a.length;return!0}return!1};function og(a){a=t(a)?a:{};cg.call(this);this.d=t(a.condition)?a.condition:uf;this.b=void 0}C(og,cg);og.prototype.M=function(a){if(1==a.c.pointerId){var b=a.map,c=b.i();a=a.pixel;c=Math.atan2(c[1]/2-a[1],a[0]-c[0]/2);if(t(this.b)){a=c-this.b;var d=b.c(),e=ld(d);V(b);Xf(b,d,e.rotation-a)}this.b=c}};og.prototype.N=function(a){if(1!=a.c.pointerId)return!0;a=a.map;var b=a.c();md(b,-1);var c=ld(b).rotation,c=b.constrainRotation(c,0);Xf(a,b,c,void 0,250);return!1};
og.prototype.L=function(a){return 1==a.c.pointerId&&Pb(a.b)&&this.d(a)?(a=a.map,md(a.c(),1),V(a),this.b=void 0,!0):!1};function pg(a){a=t(a)?a:{};jg.call(this,{condition:t(a.condition)?a.condition:wf,style:t(a.style)?a.style:new Df})}C(pg,jg);pg.prototype.Oa=function(){var a=this.j,b=a.c(),c=this.ra().c(),d=Uc(c),e=a.i(),c=Math.max((c[2]-c[0])/e[0],(c[3]-c[1])/e[1]),c=b.constrainResolution(c,0,void 0);Zf(a,b,c,d,200)};function qg(a,b,c){Db.call(this);this.d=a;this.c=c;this.a=b||window;this.b=pa(this.fb,this)}C(qg,Db);k=qg.prototype;k.C=null;k.va=!1;k.start=function(){rg(this);this.va=!1;var a=sg(this),b=tg(this);a&&!b&&this.a.mozRequestAnimationFrame?(this.C=N(this.a,"MozBeforePaint",this.b),this.a.mozRequestAnimationFrame(null),this.va=!0):this.C=a&&b?a.call(this.a,this.b):this.a.setTimeout(zc(this.b),20)};
function rg(a){if(null!=a.C){var b=sg(a),c=tg(a);b&&!c&&a.a.mozRequestAnimationFrame?P(a.C):b&&c?c.call(a.a,a.C):a.a.clearTimeout(a.C)}a.C=null}k.fb=function(){this.va&&this.C&&P(this.C);this.C=null;this.d.call(this.c,ra())};k.p=function(){rg(this);qg.r.p.call(this)};function sg(a){a=a.a;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null}
function tg(a){a=a.a;return a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};new function(){ra()};function vg(a){Q.call(this);this.Y=a||window;this.ia=N(this.Y,"resize",this.zb,!1,this);this.ea=Hd(this.Y||window)}C(vg,Q);k=vg.prototype;k.ia=null;k.Y=null;k.ea=null;k.p=function(){vg.r.p.call(this);this.ia&&(P(this.ia),this.ia=null);this.ea=this.Y=null};k.zb=function(){var a=Hd(this.Y||window),b=this.ea;a==b||a&&b&&a.width==b.width&&a.height==b.height||(this.ea=a,this.dispatchEvent("resize"))};function wg(a,b,c,d,e){if(!(F||G&&lb("525")))return!0;if(Ua&&e)return xg(a);if(e&&!d)return!1;ea(b)&&(b=yg(b));if(!c&&(17==b||18==b||Ua&&91==b))return!1;if(G&&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(F&&d&&b==a)return!1;switch(a){case 13:return!(F&&F&&9<=nb);case 27:return!G}return xg(a)}
function xg(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||G&&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 yg(a){if($a)a=zg(a);else if(Ua&&G)a:switch(a){case 93:a=91;break a}return a}
function zg(a){switch(a){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return a}};function Ag(a,b){Q.call(this);a&&Bg(this,a,b)}C(Ag,Q);k=Ag.prototype;k.V=null;k.ga=null;k.ta=null;k.ha=null;k.A=-1;k.F=-1;k.oa=!1;
var Cg={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},Dg={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},Eg=F||G&&lb("525"),Fg=Ua&&$a;
Ag.prototype.a=function(a){G&&(17==this.A&&!a.h||18==this.A&&!a.b||Ua&&91==this.A&&!a.t)&&(this.F=this.A=-1);-1==this.A&&(a.h&&17!=a.c?this.A=17:a.b&&18!=a.c?this.A=18:a.t&&91!=a.c&&(this.A=91));Eg&&!wg(a.c,this.A,a.g,a.h,a.b)?this.handleEvent(a):(this.F=yg(a.c),Fg&&(this.oa=a.b))};Ag.prototype.b=function(a){this.F=this.A=-1;this.oa=a.b};
Ag.prototype.handleEvent=function(a){var b=a.a,c,d,e=b.altKey;F&&"keypress"==a.type?(c=this.F,d=13!=c&&27!=c?b.keyCode:0):G&&"keypress"==a.type?(c=this.F,d=0<=b.charCode&&63232>b.charCode&&xg(c)?b.charCode:0):Za?(c=this.F,d=xg(c)?b.keyCode:0):(c=b.keyCode||this.F,d=b.charCode||0,Fg&&(e=this.oa),Ua&&63==d&&224==c&&(c=191));var f=c=yg(c),g=b.keyIdentifier;c?63232<=c&&c in Cg?f=Cg[c]:25==c&&a.g&&(f=9):g&&g in Dg&&(f=Dg[g]);this.A=f;a=new Gg(f,d,0,b);a.b=e;this.dispatchEvent(a)};
function Bg(a,b,c){a.ha&&Hg(a);a.V=b;a.ga=N(a.V,"keypress",a,c);a.ta=N(a.V,"keydown",a.a,c,a);a.ha=N(a.V,"keyup",a.b,c,a)}function Hg(a){a.ga&&(P(a.ga),P(a.ta),P(a.ha),a.ga=null,a.ta=null,a.ha=null);a.V=null;a.A=-1;a.F=-1}Ag.prototype.p=function(){Ag.r.p.call(this);Hg(this)};function Gg(a,b,c,d){Nb.call(this,d);this.type="key";this.c=a;this.i=b}C(Gg,Nb);function Ig(a,b){Q.call(this);var c=this.a=a;(c=ha(c)&&1==c.nodeType?this.a:this.a?this.a.body:null)&&Pd(c,"direction");this.b=N(this.a,$a?"DOMMouseScroll":"mousewheel",this,b)}C(Ig,Q);
Ig.prototype.handleEvent=function(a){var b=0,c=0,d=0;a=a.a;if("mousewheel"==a.type){c=1;if(F||G&&(Va||lb("532.0")))c=40;d=Jg(-a.wheelDelta,c);t(a.wheelDeltaX)?(b=Jg(-a.wheelDeltaX,c),c=Jg(-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;ea(this.c)&&ob(b,-this.c,this.c);ea(this.d)&&(c=ob(c,-this.d,this.d));b=new Kg(d,a,0,c);this.dispatchEvent(b)};function Jg(a,b){return G&&(Ua||cb)&&0!=a%b?a:a/b}
Ig.prototype.p=function(){Ig.r.p.call(this);P(this.b);this.b=null};function Kg(a,b,c,d){Nb.call(this,b);this.type="mousewheel";this.detail=a;this.k=d}C(Kg,Nb);function Lg(a){Cc.call(this);id(a.projection);this.n=t(a.attributions)?a.attributions:null;this.q=a.logo;this.w=t(a.state)?a.state:"ready"}C(Lg,Cc);function Y(a){Fc.call(this);a=bc(a);a.brightness=t(a.brightness)?a.brightness:0;a.contrast=t(a.contrast)?a.contrast:1;a.hue=t(a.hue)?a.hue:0;a.opacity=t(a.opacity)?a.opacity:1;a.saturation=t(a.saturation)?a.saturation:1;a.visible=t(a.visible)?a.visible:!0;a.maxResolution=t(a.maxResolution)?a.maxResolution:Infinity;a.minResolution=t(a.minResolution)?a.minResolution:0;Gc(this,a)}C(Y,Fc);Y.prototype.h=function(){return this.b("brightness")};Y.prototype.getBrightness=Y.prototype.h;Y.prototype.j=function(){return this.b("contrast")};
Y.prototype.getContrast=Y.prototype.j;Y.prototype.i=function(){return this.b("hue")};Y.prototype.getHue=Y.prototype.i;function Mg(a){var b=a.h(),c=a.j(),d=a.i(),e=a.s(),f=a.o(),g=a.f(),h=a.e(),l=a.c(),m=a.k(),p=a.n();return{layer:a,brightness:t(b)?ob(b,-1,1):0,contrast:t(c)?Math.max(c,0):1,hue:t(d)?d:0,opacity:t(e)?ob(e,0,1):1,saturation:t(f)?Math.max(f,0):1,jc:g,visible:t(h)?!!h:!0,extent:l,maxResolution:t(m)?m:Infinity,minResolution:t(p)?Math.max(p,0):0}}Y.prototype.c=function(){return this.b("extent")};
Y.prototype.getExtent=Y.prototype.c;Y.prototype.k=function(){return this.b("maxResolution")};Y.prototype.getMaxResolution=Y.prototype.k;Y.prototype.n=function(){return this.b("minResolution")};Y.prototype.getMinResolution=Y.prototype.n;Y.prototype.s=function(){return this.b("opacity")};Y.prototype.getOpacity=Y.prototype.s;Y.prototype.o=function(){return this.b("saturation")};Y.prototype.getSaturation=Y.prototype.o;Y.prototype.e=function(){return this.b("visible")};Y.prototype.getVisible=Y.prototype.e;
Y.prototype.I=function(a){this.a("brightness",a)};Y.prototype.setBrightness=Y.prototype.I;Y.prototype.X=function(a){this.a("contrast",a)};Y.prototype.setContrast=Y.prototype.X;Y.prototype.Q=function(a){this.a("hue",a)};Y.prototype.setHue=Y.prototype.Q;Y.prototype.w=function(a){this.a("extent",a)};Y.prototype.setExtent=Y.prototype.w;Y.prototype.R=function(a){this.a("maxResolution",a)};Y.prototype.setMaxResolution=Y.prototype.R;Y.prototype.S=function(a){this.a("minResolution",a)};
Y.prototype.setMinResolution=Y.prototype.S;Y.prototype.Z=function(a){this.a("opacity",a)};Y.prototype.setOpacity=Y.prototype.Z;Y.prototype.aa=function(a){this.a("saturation",a)};Y.prototype.setSaturation=Y.prototype.aa;Y.prototype.na=function(a){this.a("visible",a)};Y.prototype.setVisible=Y.prototype.na;function Ng(a){var b=bc(a);delete b.source;Y.call(this,b);this.d=a.source;N(this.d,"change",this.v,!1,this)}C(Ng,Y);Ng.prototype.sa=function(a){a=t(a)?a:[];a.push(Mg(this));return a};Ng.prototype.u=function(){return this.d};Ng.prototype.f=function(){return this.d.w};Ng.prototype.v=function(){Dc(this)};function Og(a){this.minZoom=t(a.minZoom)?a.minZoom:0;this.a=a.resolutions;this.maxZoom=this.a.length-1;this.b=t(a.origin)?a.origin:null;this.c=null;t(a.origins)&&(this.c=a.origins);this.d=null;t(a.tileSizes)&&(this.d=a.tileSizes);this.g=t(a.tileSize)?a.tileSize:null===this.d?256:void 0}var Pg=new td(0,0,0);function Qg(a,b,c,d,e){e=Rg(a,b,e);for(b=b.a-1;b>=a.minZoom;){if(c.call(null,b,Sg(a,e,a.a[b],d)))return!0;--b}return!1}
function Tg(a,b,c,d){return b.a<a.maxZoom?(d=Rg(a,b,d),Sg(a,d,a.a[b.a+1],c)):null}function Sg(a,b,c,d){Ug(a,b[0],b[1],c,!1,Pg);var e=Pg.x,f=Pg.y;Ug(a,b[2],b[3],c,!0,Pg);a=Pg.x;b=Pg.y;t(d)?(d.a=e,d.d=a,d.c=f,d.b=b):d=new vd(e,a,f,b);return d}function Rg(a,b,c){var d=null===a.b?a.c[b.a]:a.b,e=a.a[b.a];a=Vg(a,b.a);var f=d[0]+b.x*a*e;b=d[1]+b.y*a*e;return Tc(f,b,f+a*e,b+a*e,c)}
function Ug(a,b,c,d,e,f){var g=rb(a.a,d,0),h=d/a.a[g],l=null===a.b?a.c[g]:a.b;a=Vg(a,g);b=h*(b-l[0])/(d*a);c=h*(c-l[1])/(d*a);e?(b=Math.ceil(b)-1,c=Math.ceil(c)-1):(b=Math.floor(b),c=Math.floor(c));e=b;t(f)?(f.a=g,f.x=e,f.y=c):f=new td(g,e,c);return f}function Vg(a,b){return t(a.g)?a.g:a.d[b]};function Wg(a){Lg.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection});this.l=t(a.opaque)?a.opaque:!1;this.o=t(a.tilePixelRatio)?a.tilePixelRatio:1;this.tileGrid=t(a.tileGrid)?a.tileGrid:null}C(Wg,Lg);k=Wg.prototype;k.Ka=xc;k.nb=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.U(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};k.Ba=function(){return 0};k.U=ud;
function Xg(a,b){var c;if(null===a.tileGrid){if(c=b.g,null===c){c=b.c();for(var d=null===c?360*Zc.degrees/Zc[b.b]:Math.max(c[2]-c[0],c[3]-c[1]),e=t(void 0)?void 0:256,f=Array((t(void 0)?NaN:42)+1),d=d/e,g=0,h=f.length;g<h;++g)f[g]=d/Math.pow(2,g);c=new Og({origin:null===c?[0,0]:[c[0],c[1]],resolutions:f,tileSize:e});b.g=c}}else c=a.tileGrid;return c}k.da=function(a,b,c){return Vg(Xg(this,c),a)*this.o};k.Ta=aa;function Yg(a,b){Db.call(this);this.o=a;this.c=b}C(Yg,Db);Yg.prototype.l=function(a){2===a.target.state&&(a=this.c,a.e()&&"ready"==a.f()&&V(this.o.f))};function Zg(a,b){b.Ka()&&a.postRenderFunctions.push(qa(function(a,b,e){b=ia(a).toString();a=a.b;e=e.usedTiles[b];for(var f;$g(a)&&!(b=a.a.la,f=b.a.a.toString(),f in e&&e[f].contains(b.a));)b=a,f=b.a,delete b.c[f.Ea],null!==f.D&&(f.D.O=null),b.a=f.D,null===b.a&&(b.b=null),--b.d},b))}
function ah(a,b){var c=b.q;t(c)&&(z(c)?a.logos[c]="":ha(c)&&(a.logos[c.src]=c.href))}function bh(a,b,c,d){b=ia(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 ch(a,b,c,d){return function(e,f,g){e=dh(b,e,f,g,c,d);return a(e)?e:null}}function eh(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 fh(a,b,c,d,e,f,g,h){var l=ia(b).toString();l in a.wantedTiles||(a.wantedTiles[l]={});var m=a.wantedTiles[l];a=a.tileQueue;var p=c.minZoom,r,q,u,v,s,y;t(h)||(h=0);for(y=g;y>=p;--y)for(q=Sg(c,f,c.a[y],void 0),u=c.a[y],v=q.a;v<=q.d;++v)for(s=q.c;s<=q.b;++s)if(g-y<=h){r=dh(b,y,v,s,d,e);if(0==r.state&&(m[r.a.toString()]=!0,!(r.getKey()in a.g))){var A=r.a,w=null===c.b?c.c[A.a]:c.b,R=c.a[A.a],M=Vg(c,A.a),D=a,A=[r,l,[w[0]+(A.x+.5)*M*R,w[1]+(A.y+.5)*M*R],u],w=D.h(A);Infinity!=w&&(D.a.push(A),D.b.push(w),
D.g[D.f(A)]=!0,gh(D,0,D.a.length-1))}t(void 0)&&(void 0).call(void 0,r)}else b.Ta(y,v,s)};function hh(a,b,c,d,e,f,g,h){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;0===b&&0===c||Rc(a,b,c);if(1!=d||1!=e){b=a[1]*d;c=a[2]*d;var l=a[3]*d,m=a[4]*e,p=a[5]*e,r=a[6]*e;e=a[7]*e;var q=1*a[8],u=1*a[9],v=1*a[10],s=1*a[11],y=a[12],A=a[13],w=a[14],R=a[15];a[0]*=d;a[1]=b;a[2]=c;a[3]=l;a[4]=m;a[5]=p;a[6]=r;a[7]=e;a[8]=q;a[9]=u;a[10]=v;a[11]=s;a[12]=y;a[13]=A;a[14]=w;a[15]=R}0!==f&&(d=a[0],b=a[1],c=a[2],l=a[3],m=a[4],p=a[5],r=a[6],
e=a[7],q=Math.cos(f),f=Math.sin(f),a[0]=d*q+m*f,a[1]=b*q+p*f,a[2]=c*q+r*f,a[3]=l*q+e*f,a[4]=d*-f+m*q,a[5]=b*-f+p*q,a[6]=c*-f+r*q,a[7]=l*-f+e*q);0===g&&0===h||Rc(a,g,h);return a}function ng(a,b,c){var d=a[1],e=a[5],f=a[13],g=b[0];b=b[1];c[0]=a[0]*g+a[4]*b+a[12];c[1]=d*g+e*b+f;return c};function ih(a,b){Db.call(this);this.f=b;this.b={}}C(ih,Db);ih.prototype.e=function(a){return new Yg(this,a)};ih.prototype.p=function(){Vb(this.b,function(a){Hb(a)});ih.r.p.call(this)};ih.prototype.h=aa;ih.prototype.j=function(a,b){for(var c in this.b)if(!(null!==b&&c in b.layerStates)){var d=this.b[c];delete this.b[c];Hb(d)}};
function jh(a){a.postRenderFunctions.push(function(){var a=Qf.b();if(32<a.b){var c=0,d,e;for(d in a.a){e=a.a[d];var f;if(f=0===(c++&3))Rb(e)?e=hc(e.B,t(void 0)?"undefined":void 0):(e=oc(e),e=!!e&&hc(e,void 0)),f=!e;f&&(delete a.a[d],--a.b)}}})};function kh(a,b){this.h=a;this.f=b;this.a=[];this.b=[];this.g={}}kh.prototype.e=function(){return this.a.length};kh.prototype.d=function(){return 0===this.a.length};function lh(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,m=2*b+2,l=m<e&&d[m]<d[l]?m:l;c[b]=c[l];d[b]=d[l];b=l}c[b]=f;d[b]=g;gh(a,h,b)}function gh(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 mh(a,b){kh.call(this,function(b){return a.apply(null,b)},function(a){return a[0].getKey()});this.i=b;this.c=0}C(mh,kh);mh.prototype.j=function(){--this.c;this.i()};function nh(a){Wf.call(this);a=t(a)?a:{};this.a=t(a.condition)?a.condition:Ac(vf,xf);this.b=t(a.pixelDelta)?a.pixelDelta:128}C(nh,Wf);nh.prototype.W=function(a){var b=!1;if("key"==a.type){var c=a.b.c;if(this.a(a)&&(40==c||37==c||39==c||38==c)){var d=a.map,b=d.c(),e=ld(b),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];Mc(c,e.rotation);e=b.c();t(e)&&(t(100)&&d.e(qd({source:e,duration:100,easing:pd})),d=b.f.center([e[0]+c[0],e[1]+c[1]]),b.d(d));a.preventDefault();b=!0}}return!b};function oh(a){Wf.call(this);a=t(a)?a:{};this.b=t(a.condition)?a.condition:xf;this.a=t(a.delta)?a.delta:1;this.c=t(a.duration)?a.duration:100}C(oh,Wf);oh.prototype.W=function(a){var b=!1;if("key"==a.type){var c=a.b.i;if(this.b(a)&&(43==c||45==c)){b=a.map;c=43==c?this.a:-this.a;V(b);var d=b.c();Yf(b,d,c,void 0,this.c);a.preventDefault();b=!0}}return!b};function ph(a){a=t(a)?a:{};Wf.call(this);this.a=0;this.f=t(a.duration)?a.duration:250;this.c=null;this.d=this.b=void 0}C(ph,Wf);ph.prototype.W=function(a){var b=!1;if("mousewheel"==a.type){var b=a.map,c=a.b;this.c=a.coordinate;this.a+=c.k;t(this.b)||(this.b=ra());c=Math.max(80-(ra()-this.b),0);n.clearTimeout(this.d);this.d=n.setTimeout(pa(this.e,this,b),c);a.preventDefault();b=!0}return!b};
ph.prototype.e=function(a){var b=ob(this.a,-1,1),c=a.c();V(a);Yf(a,c,-b,this.c,this.f);this.a=0;this.c=null;this.d=this.b=void 0};function qh(a){cg.call(this);a=t(a)?a:{};this.d=null;this.e=void 0;this.b=!1;this.h=0;this.i=t(a.threshold)?a.threshold:.3}C(qh,cg);qh.prototype.M=function(a){var b=0,c=this.a[0],d=this.a[1],c=Math.atan2(d.clientY-c.clientY,d.clientX-c.clientX);t(this.e)&&(b=c-this.e,this.h+=b,!this.b&&Math.abs(this.h)>this.i&&(this.b=!0));this.e=c;a=a.map;c=Td(a.d);d=dg(this.a);d[0]-=c.x;d[1]-=c.y;this.d=a.h(d);this.b&&(c=a.c(),d=ld(c),V(a),Xf(a,c,d.rotation+b,this.d))};
qh.prototype.N=function(a){if(2>this.a.length){a=a.map;var b=a.c();md(b,-1);if(this.b){var c=ld(b).rotation,d=this.d,c=b.constrainRotation(c,0);Xf(a,b,c,d,250)}return!1}return!0};qh.prototype.L=function(a){return 2<=this.a.length?(a=a.map,this.d=null,this.e=void 0,this.b=!1,this.h=0,this.c||md(a.c(),1),V(a),!0):!1};function rh(a){a=t(a)?a:{};cg.call(this);this.d=null;this.h=t(a.duration)?a.duration:400;this.b=void 0;this.e=1}C(rh,cg);rh.prototype.M=function(a){var b=1,c=this.a[0],d=this.a[1],e=c.clientX-d.clientX,c=c.clientY-d.clientY,e=Math.sqrt(e*e+c*c);t(this.b)&&(b=this.b/e);this.b=e;1!=b&&(this.e=b);a=a.map;var e=a.c(),c=ld(e),d=Td(a.d),f=dg(this.a);f[0]-=d.x;f[1]-=d.y;this.d=a.h(f);V(a);Zf(a,e,c.resolution*b,this.d)};
rh.prototype.N=function(a){if(2>this.a.length){a=a.map;var b=a.c();md(b,-1);var c=ld(b).resolution,d=this.d,e=this.h,c=b.constrainResolution(c,0,this.e-1);Zf(a,b,c,d,e);return!1}return!0};rh.prototype.L=function(a){return 2<=this.a.length?(a=a.map,this.d=null,this.b=void 0,this.e=1,this.c||md(a.c(),1),V(a),!0):!1};function sh(a){var b=t(a)?a:{};a=bc(b);delete a.layers;b=b.layers;Y.call(this,a);this.d=null;N(this,Kc("layers"),this.ub,!1,this);t(b)?ca(b)&&(b=new he(Ja(b))):b=new he;this.l(b)}C(sh,Y);k=sh.prototype;k.Da=function(){this.e()&&Dc(this)};
k.ub=function(){null!==this.d&&(Fa(Yb(this.d),P),this.d=null);var a=this.ja();if(null!=a){this.d={add:N(a,"add",this.tb,!1,this),remove:N(a,"remove",this.vb,!1,this)};var a=a.c,b,c,d;b=0;for(c=a.length;b<c;b++)d=a[b],this.d[ia(d).toString()]=N(d,["propertychange","change"],this.Da,!1,this)}Dc(this)};k.tb=function(a){a=a.element;this.d[ia(a).toString()]=N(a,["propertychange","change"],this.Da,!1,this);Dc(this)};k.vb=function(a){a=ia(a.element).toString();P(this.d[a]);delete this.d[a];Dc(this)};
k.ja=function(){return this.b("layers")};sh.prototype.getLayers=sh.prototype.ja;sh.prototype.l=function(a){this.a("layers",a)};sh.prototype.setLayers=sh.prototype.l;
sh.prototype.sa=function(a){var b=t(a)?a:[],c=b.length;this.ja().forEach(function(a){a.sa(b)});a=Mg(this);var d,e;for(d=b.length;c<d;c++)e=b[c],e.brightness=ob(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,e.maxResolution=Math.min(e.maxResolution,a.maxResolution),e.minResolution=Math.max(e.minResolution,a.minResolution),t(a.extent)&&t(e.extent)&&(e.extent=Wc(e.extent,a.extent));return b};
sh.prototype.f=function(){return"ready"};function th(a){$c.call(this,{code:a,units:"m",extent:uh,global:!0,worldExtent:vh})}C(th,$c);var wh=6378137*Math.PI,uh=[-wh,-wh,wh,wh],vh=[-180,-85,180,85],xh=Ha("EPSG:3857 EPSG:102100 EPSG:102113 EPSG:900913 urn:ogc:def:crs:EPSG:6.18:3:3857 http://www.opengis.net/gml/srs/epsg.xml#3857".split(" "),function(a){return new th(a)});
function yh(a,b,c){var d=a.length;c=1<c?c:2;t(b)||(2<c?b=a.slice():b=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 zh(a,b,c){var d=a.length;c=1<c?c:2;t(b)||(2<c?b=a.slice():b=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};function Ah(a,b){$c.call(this,{code:a,units:"degrees",extent:Bh,axisOrientation:b,global:!0,worldExtent:Bh})}C(Ah,$c);var Bh=[-180,-90,180,90],Ch=[new Ah("CRS:84"),new Ah("EPSG:4326","neu"),new Ah("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new Ah("urn:ogc:def:crs:OGC:1.3:CRS84"),new Ah("urn:ogc:def:crs:OGC:2:84"),new Ah("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new Ah("urn:x-ogc:def:crs:EPSG:4326","neu")];function Dh(a){Ng.call(this,a)}C(Dh,Ng);function Z(a){Ng.call(this,a)}C(Z,Ng);Z.prototype.l=function(){return this.b("preload")};Z.prototype.getPreload=Z.prototype.l;Z.prototype.$=function(a){this.a("preload",a)};Z.prototype.setPreload=Z.prototype.$;Z.prototype.q=function(){return this.b("useInterimTilesOnError")};Z.prototype.getUseInterimTilesOnError=Z.prototype.q;Z.prototype.ba=function(a){this.a("useInterimTilesOnError",a)};Z.prototype.setUseInterimTilesOnError=Z.prototype.ba;function Eh(a,b,c,d){this.j={};this.d=a;this.i=b;this.g=c;this.l=d;this.a=this.b=this.s=this.q=this.o=null;this.c="";this.f=this.t=this.v=this.u=0;this.n=this.h=this.e=null;this.k=[];this.w=Qc()}
function Fh(a,b,c,d){var e=0;if(null!==a.n&&""!==a.c){null===a.e||Gh(a,a.e);null===a.h||Hh(a,a.h);var f=a.n,g=a.d,h=a.s;null===h?(g.font=f.font,g.textAlign=f.textAlign,g.textBaseline=f.textBaseline,a.s={font:f.font,textAlign:f.textAlign,textBaseline:f.textBaseline}):(h.font!=f.font&&(h.font=g.font=f.font),h.textAlign!=f.textAlign&&(h.textAlign=g.textAlign=f.textAlign),h.textBaseline!=f.textBaseline&&(h.textBaseline=g.textBaseline=f.textBaseline));b=Ff(b,e,c,d,a.l,a.k);for(f=a.d;e<c;e+=d){g=b[e]+a.u;
h=b[e+1]+a.v;if(0!==a.t||1!=a.f){var l=hh(a.w,g,h,a.f,a.f,a.t,-g,-h);f.setTransform(l[0],l[1],l[4],l[5],l[12],l[13])}null===a.h||f.strokeText(a.c,g,h);null===a.e||f.fillText(a.c,g,h)}0===a.t&&1==a.f||f.setTransform(1,0,0,1,0,0)}}function Ih(a,b,c,d,e,f){var g=a.d;a=Ff(b,c,d,e,a.l,a.k);g.moveTo(a[0],a[1]);for(b=2;b<a.length;b+=2)g.lineTo(a[b],a[b+1]);f&&g.lineTo(a[0],a[1]);return d}function Jh(a,b,c,d,e){var f=a.d,g,h;g=0;for(h=d.length;g<h;++g)c=Ih(a,b,c,d[g],e,!0),f.closePath();return c}
function gg(a,b){var c=Infinity.toString(),d=a.j[c];t(d)?d.push(b):a.j[c]=[b]}k=Eh.prototype;k.gb=function(a){if(Xc(this.g,a.c())){if(null!==this.b||null!==this.a){null===this.b||Gh(this,this.b);null===this.a||Hh(this,this.a);var b;b=a.b;b=null===b?null:Ff(b,0,b.length,a.a,this.l,this.k);var c=b[2]-b[0],d=b[3]-b[1],c=Math.sqrt(c*c+d*d),d=this.d;d.beginPath();d.arc(b[0],b[1],c,0,2*Math.PI);null===this.b||d.fill();null===this.a||d.stroke()}""!==this.c&&Fh(this,a.d(),2,2)}};
k.hb=function(a,b){var c=a.a(),d,e;d=0;for(e=c.length;d<e;++d){var f=c[d];Kh[f.i()].call(this,f,b)}};k.mb=function(a){var b=a.b;a=a.a;""!==this.c&&Fh(this,b,b.length,a)};k.kb=function(a){var b=a.b;a=a.a;""!==this.c&&Fh(this,b,b.length,a)};k.ib=function(a){if(Xc(this.g,a.c())){if(null!==this.a){Hh(this,this.a);var b=this.d,c=a.b;b.beginPath();Ih(this,c,0,c.length,a.a,!1);b.stroke()}""!==this.c&&(a=a.d(),Fh(this,a,2,2))}};
k.jb=function(a){var b=a.c();if(Xc(this.g,b)){if(null!==this.a){Hh(this,this.a);var b=this.d,c=a.b,d=0,e=a.e(),f=a.a;b.beginPath();var g,h;g=0;for(h=e.length;g<h;++g)d=Ih(this,c,d,e[g],f,!1);b.stroke()}""!==this.c&&(a=a.d(),Fh(this,a,a.length,2))}};
k.Aa=function(a){if(Xc(this.g,a.c())){if(null!==this.a||null!==this.b){null===this.b||Gh(this,this.b);null===this.a||Hh(this,this.a);var b=this.d;b.beginPath();Jh(this,Lf(a),0,a.d,a.a);null===this.b||b.fill();null===this.a||b.stroke()}if(""!==this.c){if(a.h!=a.g){b=Uc(a.c());var c=Lf(a),d=a.d,e=a.a,f,g,h,l,m,p=b[1],r=[],q=d[0];h=c[q-e];m=c[q-e+1];for(f=0;f<q;f+=e){l=c[f];g=c[f+1];if(p<=m&&g<=p||m<=p&&p<=g)h=(p-m)/(g-m)*(l-h)+h,r.push(h);h=l;m=g}q=NaN;m=-Infinity;r.sort();h=r[0];f=1;for(g=r.length;f<
g;++f){l=r[f];var u=Math.abs(l-h);if(u>m){h=(h+l)/2;var v;b:if(0!==d.length&&If(c,0,d[0],e,h,p)){var s=v=void 0;v=1;for(s=d.length;v<s;++v)if(If(c,d[v-1],d[v],e,h,p)){v=!1;break b}v=!0}else v=!1;v&&(q=h,m=u)}h=l}isNaN(q)&&(q=b[0]);t(void 0)?((void 0).push(q,p),b=void 0):b=[q,p];a.j=b;a.h=a.g}Fh(this,a.j,2,2)}}};
k.lb=function(a){if(Xc(this.g,a.c())){if(null!==this.a||null!==this.b){null===this.b||Gh(this,this.b);null===this.a||Hh(this,this.a);var b=this.d,c=a.h(),d=0,e=a.d(),f=a.a,g,h;g=0;for(h=e.length;g<h;++g){var l=e[g];b.beginPath();d=Jh(this,c,d,l,f);null===this.b||b.fill();null===this.a||b.stroke()}}""!==this.c&&(a=a.e(),Fh(this,a,a.length,2))}};
function Lh(a){var b=Ha(Zb(a.j),Number);Da.sort.call(b,Pa);var c,d,e,f,g;c=0;for(d=b.length;c<d;++c)for(e=a.j[b[c].toString()],f=0,g=e.length;f<g;++f)e[f](a)}function Gh(a,b){var c=a.d,d=a.o;null===d?(c.fillStyle=b.fillStyle,a.o={fillStyle:b.fillStyle}):d.fillStyle!=b.fillStyle&&(d.fillStyle=c.fillStyle=b.fillStyle)}
function Hh(a,b){var c=a.d,d=a.q;null===d?(c.lineCap=b.lineCap,be&&c.setLineDash(b.lineDash),c.lineJoin=b.lineJoin,c.lineWidth=b.lineWidth,c.miterLimit=b.miterLimit,c.strokeStyle=b.strokeStyle,a.q={lineCap:b.lineCap,lineDash:b.lineDash,lineJoin:b.lineJoin,lineWidth:b.lineWidth,miterLimit:b.miterLimit,strokeStyle:b.strokeStyle}):(d.lineCap!=b.lineCap&&(d.lineCap=c.lineCap=b.lineCap),be&&!Ma(d.lineDash,b.lineDash)&&c.setLineDash(d.lineDash=b.lineDash),d.lineJoin!=b.lineJoin&&(d.lineJoin=c.lineJoin=
b.lineJoin),d.lineWidth!=b.lineWidth&&(d.lineWidth=c.lineWidth=b.lineWidth),d.miterLimit!=b.miterLimit&&(d.miterLimit=c.miterLimit=b.miterLimit),d.strokeStyle!=b.strokeStyle&&(d.strokeStyle=c.strokeStyle=b.strokeStyle))}
k.gc=function(a,b){if(null===a)this.b=null;else{var c=a.ka;this.b={fillStyle:je(null===c?zf:c)}}if(null===b)this.a=null;else{var c=b.ka,d=b.Fa,e=b.getLineDash(),f=b.Ga,g=b.K(),h=b.Ha;this.a={lineCap:t(d)?d:"round",lineDash:null!=e?e:Af,lineJoin:t(f)?f:"round",lineWidth:this.i*(t(g)?g:1),miterLimit:t(h)?h:10,strokeStyle:je(null===c?Bf:c)}}};
k.ic=function(a){if(null===a)this.c="";else{var b=a.La;null===b?this.e=null:(b=b.ka,this.e={fillStyle:je(null===b?zf:b)});var c=a.Ma;if(null===c)this.h=null;else{var b=c.ka,d=c.Fa,e=c.getLineDash(),f=c.Ga,g=c.K(),c=c.Ha;this.h={lineCap:t(d)?d:"round",lineDash:null!=e?e:Af,lineJoin:t(f)?f:"round",lineWidth:t(g)?g:1,miterLimit:t(c)?c:10,strokeStyle:je(null===b?Bf:b)}}var b=a.Ec(),d=a.Fc(),e=a.Gc(),f=a.J(),g=a.Hc(),c=a.Na,h=a.Ic();a=a.Jc();this.n={font:t(b)?b:"10px sans-serif",textAlign:t(h)?h:"center",
textBaseline:t(a)?a:"middle"};this.c=t(c)?c:"";this.u=t(d)?this.i*d:0;this.v=t(e)?this.i*e:0;this.t=t(f)?f:0;this.f=this.i*(t(g)?g:1)}};var Kh={Point:Eh.prototype.mb,LineString:Eh.prototype.ib,Polygon:Eh.prototype.Aa,MultiPoint:Eh.prototype.kb,MultiLineString:Eh.prototype.jb,MultiPolygon:Eh.prototype.lb,GeometryCollection:Eh.prototype.hb,Circle:Eh.prototype.gb};function Mh(a,b){this.b=b;this.a={};$d(1,1);Qc()}Mh.prototype.d=function(){return $b(this.a)};function Nh(a,b){Yg.call(this,a,b);this.q=Qc()}C(Nh,Yg);function Oh(a,b,c,d){var e=a.c;if(hc(e.B,t(b)?String(b):void 0)){if(t(void 0))a=void 0;else{var f=d.viewState,g=d.pixelRatio;a=hh(a.q,g*d.size[0]/2,g*d.size[1]/2,g/f.resolution,-g/f.resolution,-f.rotation,-f.center[0],-f.center[1])}a=new Eh(c,d.pixelRatio,d.extent,a);e.dispatchEvent(new Ef(b,e,a,0,d,c,null));Lh(a)}}
var Ph=function(){var a=null,b=null;return function(c){if(null===a){a=$d(1,1);b=a.createImageData(1,1);var d=b.data;d[0]=42;d[1]=84;d[2]=126;d[3]=255}var d=a.canvas,e=c[0]<=d.width&&c[1]<=d.height;e||(d.width=c[0],d.height=c[1],d=c[0]-1,c=c[1]-1,a.putImageData(b,d,c),c=a.getImageData(d,c,1,1),e=Ma(b.data,c.data));return e}}();function Qh(a){Lg.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,state:a.state});this.e=t(a.resolutions)?a.resolutions:null}C(Qh,Lg);function Rh(a,b){Nh.call(this,a,b);this.a=null;this.b=Qc()}C(Rh,Nh);Rh.prototype.i=function(){var a;if(null===this.a)a=null;else if(a=this.a,t(void 0)){var b,c=ia(void 0);c in a.d?a=a.d[c]:(b=$b(a.d)?a.a:a.a.cloneNode(!1),a=a.d[c]=b)}else a=a.a;return a};Rh.prototype.j=function(){return this.b};
Rh.prototype.n=function(a,b){var c=a.pixelRatio,d=a.viewState,e=d.center,f=d.resolution,g=d.rotation,h,l=this.c.d;h=a.viewHints;var m=a.extent;t(b.extent)&&(m=Wc(m,b.extent));if(!(h[0]||h[1]||m[2]<m[0]||m[3]<m[1])){h=m;var p=f,m=c,d=d.projection;if(t(l.h)){null!==l.e&&(p=rb(l.e,p,0),p=l.e[p]);1==m||l.s&&t(l.k)||(m=1);var r=l.a,q;if(q=null!==r&&l.i==l.g&&r.e==p&&r.g==m)q=r.c(),q=q[0]<=h[0]&&h[2]<=q[2]&&q[1]<=h[1]&&h[3]<=q[3];if(q)h=r;else{r={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",
TRANSPARENT:!0};dc(r,l.b);h=h.slice();q=(h[0]+h[2])/2;var u=(h[1]+h[3])/2;if(1!=l.f){var v=l.f*(h[2]-h[0])/2,s=l.f*(h[3]-h[1])/2;h[0]=q-v;h[1]=u-s;h[2]=q+v;h[3]=u+s}var v=p/m,s=Math.ceil((h[2]-h[0])/v),y=Math.ceil((h[3]-h[1])/v);h[0]=q-v*s/2;h[2]=q+v*s/2;h[1]=u-v*y/2;h[3]=u+v*y/2;l.d[0]=s;l.d[1]=y;r=Sh(l,h,l.d,m,d,r);l.a=new Sf(h,p,m,l.n,r,l.o);l.l=d;l.j=p;l.i=l.g;h=l.a}}else h=null;null!==h&&(m=h.state,0==m?(rc(h,"change",this.l,!1,this),0==h.state&&(h.state=1,h.b=[rc(h.a,"error",h.i,!1,h),rc(h.a,
"load",h.k,!1,h)],h.a.src=h.f)):2==m&&(this.a=h))}if(null!==this.a){h=this.a;m=h.c();d=h.e;p=h.g;f=c*d/(f*p);hh(this.b,c*a.size[0]/2,c*a.size[1]/2,f,f,g,p*(m[0]-e[0])/d,p*(e[1]-m[3])/d);c=a.attributions;e=h.h;if(null!=e)for(f=0,h=e.length;f<h;++f)g=e[f],c[ia(g).toString()]=g;ah(a,l)}};function Th(a,b){Nh.call(this,a,b);this.a=this.d=null;this.e=!1;this.f=null;this.k=Qc();this.h=NaN;this.g=this.b=null}C(Th,Nh);Th.prototype.i=function(){return this.d};Th.prototype.j=function(){return this.k};
Th.prototype.n=function(a,b){var c=a.pixelRatio,d=a.viewState,e=d.projection,f=this.c,g=f.d,h=Xg(g,e),l=g.Ba(),m=rb(h.a,d.resolution,0),p=g.da(m,a.pixelRatio,e),r=h.a[m],q=r/(p/Vg(h,m)),u=d.center,v;r==d.resolution?(u=eh(u,r,a.size),v=Vc(u,r,d.rotation,a.size)):v=a.extent;t(b.extent)&&(v=Wc(v,b.extent));var s=Sg(h,v,r),y=p*s.K(),A=p*(s.b-s.c+1),w,R;null===this.d?(R=$d(y,A),this.d=R.canvas,this.a=[y,A],this.f=R,this.e=!Ph(this.a)):(w=this.d,R=this.f,this.a[0]<y||this.a[1]<A||this.e&&(this.a[0]>y||
this.a[1]>A)?(w.width=y,w.height=A,this.a=[y,A],this.e=!Ph(this.a),this.b=null):(y=this.a[0],A=this.a[1],m==this.h&&wd(this.b,s)||(this.b=null,m<this.h&&this.f.clearRect(0,0,y,A))));var M,D;null===this.b?(y/=p,A/=p,M=s.a-Math.floor((y-s.K())/2),D=s.c-Math.floor((A-(s.b-s.c+1))/2),this.h=m,this.b=new vd(M,M+y-1,D,D+A-1),this.g=Array(y*A),A=this.b):(A=this.b,y=A.K());w={};w[m]={};var J=[],B=pa(g.nb,g,w,ch(function(a){return null!==a&&2==a.state},g,c,e)),O=f.q();t(O)||(O=!0);var x=[Infinity,Infinity,
-Infinity,-Infinity],ja=new vd(0,0,0,0),S,E,K;for(D=s.a;D<=s.d;++D)for(K=s.c;K<=s.b;++K)E=dh(g,m,D,K,c,e),M=E.state,2==M||4==M||3==M&&!O?w[m][E.a.toString()]=E:(S=Qg(h,E.a,B,ja,x),S||(J.push(E),S=Tg(h,E.a,ja,x),null===S||B(m+1,S)));B=0;for(S=J.length;B<S;++B)E=J[B],D=p*(E.a.x-A.a),K=p*(A.b-E.a.y),R.clearRect(D,K,p,p);J=Ha(Zb(w),Number);Da.sort.call(J,Pa);var T=g.l,H=Yc(Rg(h,new td(m,A.a,A.b),x)),ga,ka,Kb,sb,Na,Lb,B=0;for(S=J.length;B<S;++B)if(ga=J[B],p=g.da(ga,c,e),sb=w[ga],ga==m)for(Kb in sb)E=sb[Kb],
ka=(E.a.y-A.c)*y+(E.a.x-A.a),this.g[ka]!=E&&(D=p*(E.a.x-A.a),K=p*(A.b-E.a.y),M=E.state,4!=M&&(3!=M||O)&&T||R.clearRect(D,K,p,p),2==M&&R.drawImage(Vf(E),l,l,p,p,D,K,p,p),this.g[ka]=E);else for(Kb in ga=h.a[ga]/r,sb)for(E=sb[Kb],ka=Rg(h,E.a,x),D=(ka[0]-H[0])/q,K=(H[1]-ka[3])/q,Lb=ga*p,Na=ga*p,M=E.state,4!=M&&T||R.clearRect(D,K,Lb,Na),2==M&&R.drawImage(Vf(E),l,l,p,p,D,K,Lb,Na),E=Sg(h,ka,h.a[m],ja),M=Math.max(E.a,A.a),K=Math.min(E.d,A.d),D=Math.max(E.c,A.c),E=Math.min(E.b,A.b);M<=K;++M)for(Na=D;Na<=E;++Na)ka=
(Na-A.c)*y+(M-A.a),this.g[ka]=void 0;bh(a.usedTiles,g,m,s);fh(a,g,h,c,e,v,m,f.l());Zg(a,g);ah(a,g);hh(this.k,c*a.size[0]/2,c*a.size[1]/2,c*q/d.resolution,c*q/d.resolution,d.rotation,(H[0]-u[0])/q,(u[1]-H[1])/q)};function Uh(a,b){ih.call(this,0,b);this.d=$d();this.a=this.d.canvas;this.a.style.width="100%";this.a.style.height="100%";this.a.className="ol-unselectable";a.insertBefore(this.a,a.childNodes[0]||null);this.c=!0;this.g=Qc()}C(Uh,ih);Uh.prototype.e=function(a){return a instanceof Dh?new Rh(this,a):a instanceof Z?new Th(this,a):null};
function Vh(a,b,c){var d=a.f,e=a.d;if(hc(d.B,t(b)?String(b):void 0)){var f=c.extent,g=c.pixelRatio,h=c.viewState,l=h.rotation;hh(a.g,a.a.width/2,a.a.height/2,g/h.resolution,-g/h.resolution,-h.rotation,-h.center[0],-h.center[1]);var h=new Eh(e,g,f,a.g),m=new Mh(0,f);d.dispatchEvent(new Ef(b,d,h,0,c,e,null));for(var p in m.a){b=m.a[p];for(var r in b)b[r].f()}if(!m.d())a:{a=a.g,p=Ha(Zb(m.a),Number),Da.sort.call(p,Pa),r={};var q=m.b;b=q[0];c=q[1];d=q[2];q=q[3];b=Ff([b,c,b,q,d,q,d,c],0,8,2,a);e.save();
e.beginPath();e.moveTo(b[0],b[1]);e.lineTo(b[2],b[3]);e.lineTo(b[4],b[5]);e.lineTo(b[6],b[7]);e.closePath();e.clip();var u,v,s;b=0;for(c=p.length;b<c;++b)for(u=m.a[p[b].toString()],d=0,q=Mf.length;d<q;++d)if(v=u[Mf[d]],t(v)&&Xc(f,v.c())){b:{var y=v;s=e;var A=g,w=a,R=l,M=r;v=v.g;var D=void 0,D=y.d;if(w[0]==D[0]&&w[1]==D[1]&&w[4]==D[4]&&w[5]==D[5]&&w[12]==D[12]&&w[13]==D[13])D=y.b;else{var D=Ff(y.a,0,y.a.length,2,w,y.b),J=y.d;J[0]=w[0];J[1]=w[1];J[2]=w[2];J[3]=w[3];J[4]=w[4];J[5]=w[5];J[6]=w[6];J[7]=
w[7];J[8]=w[8];J[9]=w[9];J[10]=w[10];J[11]=w[11];J[12]=w[12];J[13]=w[13];J[14]=w[14];J[15]=w[15]}for(var w=0,J=v.length,B=0,O=void 0,y=y.e;w<J;){var x=v[w],ja,S,E,K;switch(x[0]){case 0:B=x[2];B=ia(B).toString();t(L(M,B))?w=x[3]:++w;break;case 1:s.beginPath();++w;break;case 2:var B=x[1],O=D[B],T=D[B+1],H=D[B+2]-O,B=D[B+3]-T;s.arc(O,T,Math.sqrt(H*H+B*B),0,2*Math.PI,!0);++w;break;case 3:s.closePath();++w;break;case 4:B=x[1];O=x[2];ja=x[3];E=x[4]*A;var ga=x[5]*A,ka=x[6];S=x[7];var Kb=x[8],sb=x[9],T=x[11],
H=x[12],Na=x[13],Lb=x[14];for(x[10]&&(T+=R);B<O;B+=2){x=D[B]-E;K=D[B+1]-ga;Na&&(x=x+.5|0,K=K+.5|0);if(1!=H||0!==T){var nc=x+E,ug=K+ga;hh(y,nc,ug,H,H,T,-nc,-ug);s.setTransform(y[0],y[1],y[4],y[5],y[12],y[13])}nc=s.globalAlpha;1!=S&&(s.globalAlpha=nc*S);s.drawImage(ja,Kb,sb,Lb,ka,x,K,Lb*A,ka*A);1!=S&&(s.globalAlpha=nc);1==H&&0===T||s.setTransform(1,0,0,1,0,0)}++w;break;case 5:B=x[1];O=x[2];E=x[3];ga=x[4]*A;ka=x[5]*A;T=x[6];H=x[7]*A;ja=x[8];for(S=x[9];B<O;B+=2){x=D[B]+ga;K=D[B+1]+ka;if(1!=H||0!==T)hh(y,
x,K,H,H,T,-x,-K),s.setTransform(y[0],y[1],y[4],y[5],y[12],y[13]);S&&s.strokeText(E,x,K);ja&&s.fillText(E,x,K);1==H&&0===T||s.setTransform(1,0,0,1,0,0)}++w;break;case 6:if(t(void 0)&&(O=x[1],B=x[2],B=(void 0)(O,B))){s=B;break b}++w;break;case 7:s.fill();++w;break;case 8:B=x[1];O=x[2];s.moveTo(D[B],D[B+1]);for(B+=2;B<O;B+=2)s.lineTo(D[B],D[B+1]);++w;break;case 9:s.fillStyle=x[1];++w;break;case 10:B=t(x[7])?x[7]:!0;O=x[2];s.strokeStyle=x[1];s.lineWidth=B?O*A:O;s.lineCap=x[3];s.lineJoin=x[4];s.miterLimit=
x[5];be&&s.setLineDash(x[6]);++w;break;case 11:s.font=x[1];s.textAlign=x[2];s.textBaseline=x[3];++w;break;case 12:s.stroke();++w;break;default:++w}}s=void 0}if(s)break a}e.restore()}Lh(h)}}Uh.prototype.i=function(){return"canvas"};
Uh.prototype.h=function(a){if(null===a)this.c&&(Vd(this.a,!1),this.c=!1);else{var b=this.d,c=a.size[0]*a.pixelRatio,d=a.size[1]*a.pixelRatio;this.a.width!=c||this.a.height!=d?(this.a.width=c,this.a.height=d):b.clearRect(0,0,this.a.width,this.a.height);var c=a.viewState,e=a.coordinateToPixelMatrix;hh(e,a.size[0]/2,a.size[1]/2,1/c.resolution,-1/c.resolution,-c.rotation,-c.center[0],-c.center[1]);var c=a.pixelToCoordinateMatrix,d=e[0],f=e[1],g=e[2],h=e[3],l=e[4],m=e[5],p=e[6],r=e[7],q=e[8],u=e[9],v=
e[10],s=e[11],y=e[12],A=e[13],w=e[14],e=e[15],R=d*m-f*l,M=d*p-g*l,D=d*r-h*l,J=f*p-g*m,B=f*r-h*m,O=g*r-h*p,x=q*A-u*y,ja=q*w-v*y,S=q*e-s*y,E=u*w-v*A,K=u*e-s*A,T=v*e-s*w,H=R*T-M*K+D*E+J*S-B*ja+O*x;0!=H&&(H=1/H,c[0]=(m*T-p*K+r*E)*H,c[1]=(-f*T+g*K-h*E)*H,c[2]=(A*O-w*B+e*J)*H,c[3]=(-u*O+v*B-s*J)*H,c[4]=(-l*T+p*S-r*ja)*H,c[5]=(d*T-g*S+h*ja)*H,c[6]=(-y*O+w*D-e*M)*H,c[7]=(q*O-v*D+s*M)*H,c[8]=(l*K-m*S+r*x)*H,c[9]=(-d*K+f*S-h*x)*H,c[10]=(y*B-A*D+e*R)*H,c[11]=(-q*B+u*D-s*R)*H,c[12]=(-l*E+m*ja-p*x)*H,c[13]=(d*
E-f*ja+g*x)*H,c[14]=(-y*J+A*M-w*R)*H,c[15]=(q*J-u*M+v*R)*H);Vh(this,"precompose",a);c=a.layerStatesArray;d=a.viewState.resolution;f=0;for(g=c.length;f<g;++f)m=c[f],h=m.layer,l=h,h=ia(l).toString(),h in this.b?h=this.b[h]:(l=this.e(l),h=this.b[h]=l),m.visible&&d>=m.minResolution&&d<m.maxResolution&&"ready"==m.jc&&(h.n(a,m),l=a,q=m,m=b,Oh(h,"precompose",m,l),p=h.i(),null!==p&&(r=h.j(),m.globalAlpha=q.opacity,0===l.viewState.rotation?(q=r[13],u=p.width*r[0],v=p.height*r[5],m.drawImage(p,0,0,+p.width,
+p.height,Math.round(r[12]),Math.round(q),Math.round(u),Math.round(v))):(m.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),m.drawImage(p,0,0),m.setTransform(1,0,0,1,0,0))),Oh(h,"postcompose",m,l));Vh(this,"postcompose",a);this.c||(Vd(this.a,!0),this.c=!0);for(var ga in this.b)if(!(ga in a.layerStates)){a.postRenderFunctions.push(pa(this.j,this));break}jh(a)}};function Wh(){this.d=0;this.c={};this.b=this.a=null}Wh.prototype.forEach=function(a,b){for(var c=this.a;null!==c;)a.call(b,c.la,c.Ea,this),c=c.D};function Xh(a,b){var c=a.c[b];if(c===a.b)return c.la;c===a.a?(a.a=a.a.D,a.a.O=null):(c.D.O=c.O,c.O.D=c.D);c.D=null;c.O=a.b;a.b.D=c;a.b=c;return c.la}Wh.prototype.e=function(){return this.d};var Yh=["canvas","webgl","dom"];
function $(a){Fc.call(this);var b=Zh(a);this.Ya=t(a.pixelRatio)?a.pixelRatio:ae;this.Xa=b.logos;this.s=new qg(this.ec,void 0,this);Gb(this,this.s);this.na=Qc();this.ab=Qc();this.Wa=0;this.j=this.q=this.Q=this.f=null;this.d=Id("DIV","ol-viewport");this.d.style.position="relative";this.d.style.overflow="hidden";this.d.style.width="100%";this.d.style.height="100%";this.d.style.msTouchAction="none";de&&(this.d.className="ol-touch");this.$a=Id("DIV","ol-overlaycontainer");this.d.appendChild(this.$a);this.I=
Id("DIV","ol-overlaycontainer-stopevent");N(this.I,["click","dblclick","mousedown","touchstart","MSPointerDown",qf,"mousewheel"],Ib);this.d.appendChild(this.I);a=new hf(this);N(a,Yb(tf),this.Ja,!1,this);Gb(this,a);this.Z=b.keyboardEventTarget;this.l=new Ag;N(this.l,"key",this.Ca,!1,this);Gb(this,this.l);a=new Ig(this.d);N(a,"mousewheel",this.Ca,!1,this);Gb(this,a);this.u=b.controls;this.Va=b.deviceOptions;this.n=b.interactions;this.X=b.overlays;this.aa=new b.fc(this.d,this);Gb(this,this.aa);this.eb=
new vg;N(this.eb,"resize",this.S,!1,this);this.v=null;this.o=[];this.$=[];this.ba=new mh(pa(this.ob,this),pa(this.Cb,this));this.skippedFeatureUids_={};N(this,Kc("layergroup"),this.qb,!1,this);N(this,Kc("view"),this.Db,!1,this);N(this,Kc("size"),this.Ab,!1,this);N(this,Kc("target"),this.Bb,!1,this);Gc(this,b.qc);this.u.forEach(function(a){a.setMap(this)},this);N(this.u,"add",function(a){a.element.setMap(this)},!1,this);N(this.u,"remove",function(a){a.element.setMap(null)},!1,this);this.n.forEach(function(a){a.setMap(this)},
this);N(this.n,"add",function(a){a.element.setMap(this)},!1,this);N(this.n,"remove",function(a){a.element.setMap(null)},!1,this);this.X.forEach(function(a){a.setMap(this)},this);N(this.X,"add",function(a){a.element.setMap(this)},!1,this);N(this.X,"remove",function(a){a.element.setMap(null)},!1,this)}C($,Fc);$.prototype.e=function(a){V(this);Array.prototype.push.apply(this.o,arguments)};$.prototype.p=function(){Ld(this.d);$.r.p.call(this)};$.prototype.w=function(){return this.b("target")};
$.prototype.getTarget=$.prototype.w;$.prototype.h=function(a){var b=this.f;if(null===b)return null;a=a.slice();return ng(b.pixelToCoordinateMatrix,a,a)};$.prototype.k=function(){return this.b("layergroup")};$.prototype.getLayerGroup=$.prototype.k;$.prototype.Za=function(){var a=this.k();if(t(a))return a.ja()};$.prototype.i=function(){return this.b("size")};$.prototype.getSize=$.prototype.i;$.prototype.c=function(){return this.b("view")};$.prototype.getView=$.prototype.c;k=$.prototype;
k.ob=function(a,b,c,d){var e=this.f;if(!(null!==e&&b in e.wantedTiles&&e.wantedTiles[b][a.a.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};k.Ca=function(a,b){var c=new ff(b||a.type,this,a);this.Ja(c)};k.Ja=function(a){if(null!==this.f){this.v=a.coordinate;a.frameState=this.f;var b=this.n.c,c;if(!1!==this.dispatchEvent(a))for(c=b.length-1;0<=c&&b[c].W(a);c--);}};
k.yb=function(){var a=this.f,b=this.ba;if(!b.d()){var c=16,d=c,e=0;if(null!==a){var e=a.viewHints,f=this.Va;e[0]&&(c=!1===f.loadTilesWhileAnimating?0:8,d=2);e[1]&&(c=!1===f.loadTilesWhileInteracting?0:8,d=2);e=Xb(a.wantedTiles)}c*=e;d*=e;if(b.c<c){var e=b.h,f=b.a,g=b.b,h=0,l=f.length,m,p,r;for(p=0;p<l;++p)m=f[p],r=e(m),Infinity==r?delete b.g[b.f(m)]:(g[h]=r,f[h++]=m);f.length=h;g.length=h;for(e=(b.a.length>>1)-1;0<=e;e--)lh(b,e);c=Math.min(c-b.c,d,b.e());for(d=0;d<c;++d)e=b,g=e.a,h=e.b,f=g[0],1==
g.length?(g.length=0,h.length=0):(g[0]=g.pop(),h[0]=h.pop(),lh(e,0)),g=e.f(f),delete e.g[g],e=f[0],rc(e,"change",b.j,!1,b),0==e.state&&(e.state=1,e.c=[rc(e.b,"error",e.e,!1,e),rc(e.b,"load",e.f,!1,e)],e.h(e,e.g));b.c+=c}}b=this.$;c=0;for(d=b.length;c<d;++c)b[c](this,a);b.length=0};k.Ab=function(){V(this)};k.Bb=function(){var a=this.w(),a=t(a)?Ed(a):null;Hg(this.l);null===a?Ld(this.d):(a.appendChild(this.d),Bg(this.l,null===this.Z?a:this.Z));this.S()};k.Cb=function(){V(this)};k.Eb=function(){V(this)};
k.Db=function(){null!==this.q&&(P(this.q),this.q=null);var a=this.c();null!=a&&(this.q=N(a,"propertychange",this.Eb,!1,this));V(this)};k.rb=function(){V(this)};k.sb=function(){V(this)};k.qb=function(){if(null!==this.j){for(var a=this.j.length,b=0;b<a;++b)P(this.j[b]);this.j=null}a=this.k();null!=a&&(this.j=[N(a,"propertychange",this.sb,!1,this),N(a,"change",this.rb,!1,this)]);V(this)};function V(a){null!=a.s.C||a.s.start()}
k.ec=function(a){var b,c,d,e=this.i(),f=this.c(),g=null;if(b=t(e)&&0<e[0]&&0<e[1]&&t(f))b=null!=f.c()&&t(f.e());if(b){var g=Ja(f.j),h=this.k().sa(),l={};b=0;for(c=h.length;b<c;++b)l[ia(h[b].layer)]=h[b];d=ld(f);g={animate:!1,attributions:{},coordinateToPixelMatrix:this.na,extent:null,focus:null===this.v?d.center:this.v,index:this.Wa++,layerStates:l,layerStatesArray:h,logos:this.Xa,pixelRatio:this.Ya,pixelToCoordinateMatrix:this.ab,postRenderFunctions:[],size:e,skippedFeatureUids_:this.skippedFeatureUids_,
tileQueue:this.ba,time:a,usedTiles:{},viewState:d,viewHints:g,wantedTiles:{}}}a=this.o;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=Vc(d.center,d.resolution,d.rotation,g.size));this.f=g;this.aa.h(g);null!==g&&(g.animate&&V(this),Array.prototype.push.apply(this.$,g.postRenderFunctions),!(d=0!==this.o.length||g.viewHints[0]||g.viewHints[1])&&(d=this.Q)&&(d=g.extent,b=this.Q,d=d[0]==b[0]&&d[2]==b[2]&&d[1]==b[1]&&d[3]==b[3]),d||(this.dispatchEvent(new pe("moveend",
this,g)),this.Q=t(void 0)?void 0:g.extent.slice()));this.dispatchEvent(new pe("postrender",this,g));d=g=this.yb;this&&(d=pa(g,this));fa(n.setImmediate)?n.setImmediate(d):(ag||(ag=bg()),ag(d))};k.hc=function(a){this.a("layergroup",a)};$.prototype.setLayerGroup=$.prototype.hc;$.prototype.R=function(a){this.a("size",a)};$.prototype.setSize=$.prototype.R;$.prototype.bb=function(a){this.a("target",a)};$.prototype.setTarget=$.prototype.bb;$.prototype.cb=function(a){this.a("view",a)};
$.prototype.setView=$.prototype.cb;
$.prototype.S=function(){var a=this.w(),a=t(a)?Ed(a):null;if(null===a)this.R(void 0);else{var b=Dd(a),c=F&&a.currentStyle,d;if(d=c)Bd(b),d=!0;if(d&&"auto"!=c.width&&"auto"!=c.height&&!c.boxSizing)b=Wd(a,c.width,"width","pixelWidth"),a=Wd(a,c.height,"height","pixelHeight"),a=new Ad(b,a);else{c=new Ad(a.offsetWidth,a.offsetHeight);if(F){b=Xd(a,"paddingLeft");d=Xd(a,"paddingRight");var e=Xd(a,"paddingTop"),f=Xd(a,"paddingBottom"),b=new Nd(e,d,f,b)}else b=Od(a,"paddingLeft"),d=Od(a,"paddingRight"),e=
Od(a,"paddingTop"),f=Od(a,"paddingBottom"),b=new Nd(parseFloat(e),parseFloat(d),parseFloat(f),parseFloat(b));!F||F&&9<=nb?(d=Od(a,"borderLeftWidth"),e=Od(a,"borderRightWidth"),f=Od(a,"borderTopWidth"),a=Od(a,"borderBottomWidth"),a=new Nd(parseFloat(f),parseFloat(e),parseFloat(a),parseFloat(d))):(d=Zd(a,"borderLeft"),e=Zd(a,"borderRight"),f=Zd(a,"borderTop"),a=Zd(a,"borderBottom"),a=new Nd(f,e,a,d));a=new Ad(c.width-a.left-b.left-b.right-a.right,c.height-a.top-b.top-b.bottom-a.bottom)}this.R([a.width,
a.height])}};
function Zh(a){var b=null;t(a.keyboardEventTarget)&&(b=z(a.keyboardEventTarget)?document.getElementById(a.keyboardEventTarget):a.keyboardEventTarget);var c={},d={};if(!t(a.logo)||"boolean"==typeof a.logo&&a.logo)d["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAAHGAAABxgEXwfpGAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAhNQTFRF////AP//AICAgP//AFVVQECA////K1VVSbbbYL/fJ05idsTYJFtbbcjbJllmZszWWMTOIFhoHlNiZszTa9DdUcHNHlNlV8XRIVdiasrUHlZjIVZjaMnVH1RlIFRkH1RkH1ZlasvYasvXVsPQH1VkacnVa8vWIVZjIFRjVMPQa8rXIVVkXsXRsNveIFVkIFZlIVVj3eDeh6GmbMvXH1ZkIFRka8rWbMvXIFVkIFVjIFVkbMvWH1VjbMvWIFVlbcvWIFVla8vVIFVkbMvWbMvVH1VkbMvWIFVlbcvWIFVkbcvVbMvWjNPbIFVkU8LPwMzNIFVkbczWIFVkbsvWbMvXIFVkRnB8bcvW2+TkW8XRIFVkIlZlJVloJlpoKlxrLl9tMmJwOWd0Omh1RXF8TneCT3iDUHiDU8LPVMLPVcLPVcPQVsPPVsPQV8PQWMTQWsTQW8TQXMXSXsXRX4SNX8bSYMfTYcfTYsfTY8jUZcfSZsnUaIqTacrVasrVa8jTa8rWbI2VbMvWbcvWdJObdcvUdszUd8vVeJaee87Yfc3WgJyjhqGnitDYjaarldPZnrK2oNbborW5o9bbo9fbpLa6q9ndrL3ArtndscDDutzfu8fJwN7gwt7gxc/QyuHhy+HizeHi0NfX0+Pj19zb1+Tj2uXk29/e3uLg3+Lh3+bl4uXj4ufl4+fl5Ofl5ufl5ujm5+jmySDnBAAAAFp0Uk5TAAECAgMEBAYHCA0NDg4UGRogIiMmKSssLzU7PkJJT1JTVFliY2hrdHZ3foSFhYeJjY2QkpugqbG1tre5w8zQ09XY3uXn6+zx8vT09vf4+Pj5+fr6/P39/f3+gz7SsAAAAVVJREFUOMtjYKA7EBDnwCPLrObS1BRiLoJLnte6CQy8FLHLCzs2QUG4FjZ5GbcmBDDjxJBXDWxCBrb8aM4zbkIDzpLYnAcE9VXlJSWlZRU13koIeW57mGx5XjoMZEUqwxWYQaQbSzLSkYGfKFSe0QMsX5WbjgY0YS4MBplemI4BdGBW+DQ11eZiymfqQuXZIjqwyadPNoSZ4L+0FVM6e+oGI6g8a9iKNT3o8kVzNkzRg5lgl7p4wyRUL9Yt2jAxVh6mQCogae6GmflI8p0r13VFWTHBQ0rWPW7ahgWVcPm+9cuLoyy4kCJDzCm6d8PSFoh0zvQNC5OjDJhQopPPJqph1doJBUD5tnkbZiUEqaCnB3bTqLTFG1bPn71kw4b+GFdpLElKIzRxxgYgWNYc5SCENVHKeUaltHdXx0dZ8uBI1hJ2UUDgq82CM2MwKeibqAvSO7MCABq0wXEPiqWEAAAAAElFTkSuQmCC"]="http://ol3js.org/";
else{var e=a.logo;z(e)?d[e]="":ha(e)&&(d[e.src]=e.href)}e=a.layers instanceof sh?a.layers:new sh({layers:a.layers});c.layergroup=e;c.target=a.target;c.view=t(a.view)?a.view:new U;var e=ih,f;t(a.renderer)?ca(a.renderer)?f=a.renderer:z(a.renderer)&&(f=[a.renderer]):f=Yh;var g,h;g=0;for(h=f.length;g<h;++g)if("canvas"==f[g]&&ce){e=Uh;break}var l;t(a.controls)?l=ca(a.controls)?new he(Ja(a.controls)):a.controls:l=df();f=t(a.deviceOptions)?a.deviceOptions:{};if(t(a.interactions))g=ca(a.interactions)?new he(Ja(a.interactions)):
a.interactions;else{g=t(void 0)?void 0:{};h=new he;var m=new kg;(t(g.altShiftDragRotate)?g.altShiftDragRotate:1)&&h.push(new og);(t(g.doubleClickZoom)?g.doubleClickZoom:1)&&h.push(new $f({delta:g.zoomDelta,duration:g.zoomDuration}));(t(g.dragPan)?g.dragPan:1)&&h.push(new mg({kinetic:m}));(t(g.pinchRotate)?g.pinchRotate:1)&&h.push(new qh);(t(g.pinchZoom)?g.pinchZoom:1)&&h.push(new rh({duration:g.zoomDuration}));if(t(g.keyboard)?g.keyboard:1)h.push(new nh),h.push(new oh({delta:g.zoomDelta,duration:g.zoomDuration}));
(t(g.mouseWheelZoom)?g.mouseWheelZoom:1)&&h.push(new ph({duration:g.zoomDuration}));(t(g.shiftDragZoom)?g.shiftDragZoom:1)&&h.push(new pg);g=h}a=t(a.overlays)?ca(a.overlays)?new he(Ja(a.overlays)):a.overlays:new he;return{controls:l,deviceOptions:f,interactions:g,keyboardEventTarget:b,logos:d,overlays:a,fc:e,qc:c}}cd(xh);cd(Ch);Fa(Ch,function(a){Fa(xh,function(b){ed(a,b,yh);ed(b,a,zh)})});function $h(){};function ai(a){Wh.call(this);this.g=t(a)?a:2048}C(ai,Wh);function $g(a){return a.e()>a.g};function bi(a){Wg.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,opaque:a.opaque,projection:a.projection,tileGrid:a.tileGrid,tilePixelRatio:a.tilePixelRatio});this.tileUrlFunction=t(a.tileUrlFunction)?a.tileUrlFunction:$h;this.crossOrigin=t(a.crossOrigin)?a.crossOrigin:null;this.b=new ai;this.tileLoadFunction=t(a.tileLoadFunction)?a.tileLoadFunction:ci;this.tileClass=t(a.tileClass)?a.tileClass:Uf}C(bi,Wg);function ci(a,b){Vf(a).src=b}bi.prototype.Ka=function(){return $g(this.b)};
function dh(a,b,c,d,e,f){var g=a.U(b,c,d);if(a.b.c.hasOwnProperty(g))return Xh(a.b,g);b=new td(b,c,d);e=a.tileUrlFunction(b,e,f);e=new a.tileClass(b,t(e)?0:4,t(e)?e:"",a.crossOrigin,a.tileLoadFunction);a=a.b;f={Ea:g,D:null,O:a.b,la:e};null===a.b?a.a=f:a.b.D=f;a.b=f;a.c[g]=f;++a.d;return e}bi.prototype.Ta=function(a,b,c){a=this.U(a,b,c);this.b.c.hasOwnProperty(a)&&Xh(this.b,a)};function di(a){a=t(a)?a:{};Qh.call(this,{attributions:a.attributions,logo:a.logo,projection:a.projection,resolutions:a.resolutions});this.o=t(a.crossOrigin)?a.crossOrigin:null;this.h=a.url;this.b=a.params;this.c=!0;ei(this);this.k=a.serverType;this.s=t(a.hidpi)?a.hidpi:!0;this.a=null;this.d=[0,0];this.l=null;this.j=NaN;this.i=0;this.f=t(a.ratio)?a.ratio:1.5}C(di,Qh);
di.prototype.u=function(a,b,c,d){var e;if(e=t(this.h)&&null!==this.a)if(e=b==this.j)e=this.l,e=c===e?!0:c.b!=e.b?!1:jd(c,e)===fd;if(e){e=this.a.c();var f=this.a.g,g={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:L(this.b,"LAYERS")};dc(g,this.b,d);b/=f;d=Math.floor((e[3]-a[1])/b);g[this.c?"I":"X"]=Math.floor((a[0]-e[0])/b);g[this.c?"J":"Y"]=d;return Sh(this,e,this.d,f,c,g)}};
function Sh(a,b,c,d,e,f){f[a.c?"CRS":"SRS"]=e.a;"STYLES"in a.b||(f.STYLES=new String(""));if(1!=d)switch(a.k){case "geoserver":f.FORMAT_OPTIONS="dpi:"+(90*d+.5|0);break;case "mapserver":f.MAP_RESOLUTION=90*d;break;case "carmentaserver":case "qgis":f.DPI=90*d}f.WIDTH=c[0];f.HEIGHT=c[1];c=e.d;var g;a.c&&"ne"==c.substr(0,2)?g=[b[1],b[0],b[3],b[2]]:g=b;f.BBOX=g.join(",");return Nf(Pf([a.h],f))}di.prototype.v=function(a){dc(this.b,a);ei(this);this.a=null;Dc(this)};
function ei(a){a.c=0<=Ba(L(a.b,"VERSION","1.3.0"),"1.3")};function fi(a){a=t(a)?a:{};var b=t(a.params)?a.params:{};bi.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,logo:a.logo,opaque:!L(b,"TRANSPARENT",!0),projection:a.projection,tileGrid:a.tileGrid,tileLoadFunction:a.tileLoadFunction,tileUrlFunction:pa(this.kc,this)});var c=a.urls;if(!t(c)&&t(a.url)){var c=a.url,d=[],e=/\{(\d)-(\d)\}/.exec(c)||/\{([a-z])-([a-z])\}/.exec(c);if(e){var f=e[2].charCodeAt(0),g;for(g=e[1].charCodeAt(0);g<=f;++g)d.push(c.replace(e[0],String.fromCharCode(g)))}else d.push(c);
c=d}this.h=null!=c?c:[];this.d=t(a.gutter)?a.gutter:0;this.a=b;this.e=NaN;this.c=!0;this.f=a.serverType;this.i=t(a.hidpi)?a.hidpi:!0;this.j="";gi(this);this.k=[Infinity,Infinity,-Infinity,-Infinity];hi(this)}C(fi,bi);k=fi.prototype;
k.Vb=function(a,b,c,d){var e=this.e;if(!isNaN(this.e)){var f=this.tileGrid;null===f&&(f=Xg(this,c));b=Ug(f,a[0],a[1],b,!1,void 0);if(!(f.a.length<=b.a)){var g=f.a[b.a],h=Rg(f,b,this.k),f=Vg(f,b.a),l=this.d;0!==l&&(f+=2*l,h=Sc(h,g*l,h));1!=e&&(f=f*e+.5|0);l={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:L(this.a,"LAYERS")};dc(l,this.a,d);d=Math.floor((h[3]-a[1])/(g/e));l[this.c?"I":"X"]=Math.floor((a[0]-h[0])/(g/e));l[this.c?"J":"Y"]=d;return ii(this,
b,f,h,e,c,l)}}};k.Ba=function(){return this.d};k.U=function(a,b,c){return this.j+fi.r.U.call(this,a,b,c)};
function ii(a,b,c,d,e,f,g){var h=a.h;if(0!=h.length){g.WIDTH=c;g.HEIGHT=c;g[a.c?"CRS":"SRS"]=f.a;"STYLES"in a.a||(g.STYLES=new String(""));if(1!=e)switch(a.f){case "geoserver":g.FORMAT_OPTIONS="dpi:"+(90*e+.5|0);break;case "mapserver":g.MAP_RESOLUTION=90*e;break;case "carmentaserver":case "qgis":g.DPI=90*e}c=f.d;a.c&&"ne"==c.substr(0,2)&&(a=d[0],d[0]=d[1],d[1]=a,a=d[2],d[2]=d[3],d[3]=a);g.BBOX=d.join(",");1==h.length?h=h[0]:(d=h.length,b=((b.x<<b.a)+b.y)%d,h=h[0>b*d?b+d:b]);return Nf(Pf([h],g))}}
k.da=function(a,b,c){a=fi.r.da.call(this,a,b,c);return 1!=b&&this.i&&t(this.f)?a*b+.5|0:a};function gi(a){var b=0,c=[],d,e;d=0;for(e=a.h.length;d<e;++d)c[b++]=a.h[d];for(var f in a.a)c[b++]=f+"-"+a.a[f];a.j=c.join("#")}
k.kc=function(a,b,c){var d=this.tileGrid;null===d&&(d=Xg(this,c));if(!(d.a.length<=a.a)){1==b||this.i&&t(this.f)||(b=1);var e=d.a[a.a],f=Rg(d,a,this.k),d=Vg(d,a.a),g=this.d;0!==g&&(d+=2*g,f=Sc(f,e*g,f));1!=b&&(d=d*b+.5|0);e={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};dc(e,this.a);this.e=b;return ii(this,a,d,f,b,c,e)}};k.Wb=function(a){dc(this.a,a);gi(this);hi(this);Dc(this)};function hi(a){a.c=0<=Ba(L(a.a,"VERSION","1.3.0"),"1.3")};sa("ol.Map",$);sa("ol.control.MousePosition",X);sa("ol.coordinate.createStringXY",function(a){return function(b){return t(b)?"{x}, {y}".replace("{x}",b[0].toFixed(a)).replace("{y}",b[1].toFixed(a)):""}});sa("ol.layer.Image",Dh);Dh.prototype.set=Dh.prototype.a;Dh.prototype.getSource=Dh.prototype.u;sa("ol.source.ImageWMS",di);di.prototype.updateParams=di.prototype.v;di.prototype.getGetFeatureInfoUrl=di.prototype.u;sa("ol.source.TileWMS",fi);fi.prototype.updateParams=fi.prototype.Wb;
fi.prototype.getGetFeatureInfoUrl=fi.prototype.Vb;sa("ol.layer.Tile",Z);Z.prototype.set=Z.prototype.a;Z.prototype.getSource=Z.prototype.u;sa("ol.proj.Projection",$c);sa("ol.control.defaults",df);he.prototype.extend=he.prototype.Ub;sa("ol.View",U);$.prototype.getView=$.prototype.c;U.prototype.on=U.prototype.ya;U.prototype.fitExtent=U.prototype.n;$.prototype.getSize=$.prototype.i;U.prototype.get=U.prototype.b;$c.prototype.getUnits=$c.prototype.e;sa("ol.proj.METERS_PER_UNIT",Zc);$.prototype.on=$.prototype.ya;
Dh.prototype.get=Dh.prototype.b;$.prototype.updateSize=$.prototype.S;$.prototype.getLayers=$.prototype.Za;he.prototype.forEach=he.prototype.forEach;})();