-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathol.js
530 lines (529 loc) · 272 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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
// OpenLayers 3. see http://ol3js.org/
(function(){function ca(){return function(){}}function k(a){return function(){return this[a]}}function ea(a){return function(){return a}}var l,fa=fa||{},s=this;function ga(){}function ha(a){a.Na=function(){return a.Xd?a.Xd:a.Xd=new a}}
function ia(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 ja(a){return"array"==ia(a)}function ka(a){var b=ia(a);return"array"==b||"object"==b&&"number"==typeof a.length}function z(a){return"string"==typeof a}function la(a){return"number"==typeof a}function ma(a){return"function"==ia(a)}function na(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function B(a){return a[oa]||(a[oa]=++pa)}
var oa="closure_uid_"+(1E9*Math.random()>>>0),pa=0;function qa(a,b,c){return a.call.apply(a.bind,arguments)}function ra(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 D(a,b,c){D=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?qa:ra;return D.apply(null,arguments)}function sa(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=Array.prototype.slice.call(arguments);b.unshift.apply(b,c);return a.apply(this,b)}}var ta=Date.now||function(){return+new Date};
function G(a,b){var c=a.split("."),d=s;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d=d[e]?d[e]:d[e]={}:d[e]=b}function H(a,b){function c(){}c.prototype=b.prototype;a.D=b.prototype;a.prototype=new c};function ua(a){Error.captureStackTrace?Error.captureStackTrace(this,ua):this.stack=Error().stack||"";a&&(this.message=String(a))}H(ua,Error);ua.prototype.name="CustomError";function va(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")}function wa(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}function xa(a){if(!ya.test(a))return a;-1!=a.indexOf("\x26")&&(a=a.replace(za,"\x26amp;"));-1!=a.indexOf("\x3c")&&(a=a.replace(Aa,"\x26lt;"));-1!=a.indexOf("\x3e")&&(a=a.replace(Ba,"\x26gt;"));-1!=a.indexOf('"')&&(a=a.replace(Ca,"\x26quot;"));return a}
var za=/&/g,Aa=/</g,Ba=/>/g,Ca=/\"/g,ya=/[&<>\"]/;
function Da(a,b){for(var c=0,d=wa(String(a)).split("."),e=wa(String(b)).split("."),f=Math.max(d.length,e.length),g=0;0==c&&g<f;g++){var h=d[g]||"",m=e[g]||"",n=RegExp("(\\d*)(\\D*)","g"),p=RegExp("(\\d*)(\\D*)","g");do{var q=n.exec(h)||["","",""],r=p.exec(m)||["","",""];if(0==q[0].length&&0==r[0].length)break;c=((0==q[1].length?0:parseInt(q[1],10))<(0==r[1].length?0:parseInt(r[1],10))?-1:(0==q[1].length?0:parseInt(q[1],10))>(0==r[1].length?0:parseInt(r[1],10))?1:0)||((0==q[2].length)<(0==r[2].length)?
-1:(0==q[2].length)>(0==r[2].length)?1:0)||(q[2]<r[2]?-1:q[2]>r[2]?1:0)}while(0==c)}return c};var Ea=Array.prototype,Fa=Ea.indexOf?function(a,b,c){return Ea.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(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},Ga=Ea.forEach?function(a,b,c){Ea.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)},Ha=Ea.map?function(a,b,c){return Ea.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=
z(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e},Ia=Ea.some?function(a,b,c){return Ea.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=z(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;return!1};function Ja(a,b){var c=Ka(a,b,void 0);return 0>c?null:z(a)?a.charAt(c):a[c]}function Ka(a,b,c){for(var d=a.length,e=z(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1}
function La(a,b){var c=Fa(a,b),d;(d=0<=c)&&Ea.splice.call(a,c,1);return d}function Ma(a){return Ea.concat.apply(Ea,arguments)}function Na(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 Oa(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c],e;if(ja(d)||(e=ka(d))&&Object.prototype.hasOwnProperty.call(d,"callee"))a.push.apply(a,d);else if(e)for(var f=a.length,g=d.length,h=0;h<g;h++)a[f+h]=d[h];else a.push(d)}}
function Pa(a,b,c,d){Ea.splice.apply(a,Qa(arguments,1))}function Qa(a,b,c){return 2>=arguments.length?Ea.slice.call(a,b):Ea.slice.call(a,b,c)}function Ra(a,b){Ea.sort.call(a,b||Sa)}function Ta(a,b){if(!ka(a)||!ka(b)||a.length!=b.length)return!1;for(var c=a.length,d=Ua,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0}function Sa(a,b){return a>b?1:a<b?-1:0}function Ua(a,b){return a===b}
function Va(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];ja(d)?b.push.apply(b,Va.apply(null,d)):b.push(d)}return b};function Wa(a,b,c){this.a=a;this.x=b;this.y=c}function Xa(a,b,c,d){return t(d)?(d.a=a,d.x=b,d.y=c,d):new Wa(a,b,c)}function Za(a,b,c){return a+"/"+b+"/"+c}Wa.prototype.c=function(a){return t(a)?(a[0]=this.a,a[1]=this.x,a[2]=this.y,a):[this.a,this.x,this.y]};function $a(a){var b=Array(a.a),c=1<<a.a-1,d,e;for(d=0;d<a.a;++d)e=48,a.x&c&&(e+=1),a.y&c&&(e+=2),b[d]=String.fromCharCode(e),c>>=1;return b.join("")}Wa.prototype.toString=function(){return Za(this.a,this.x,this.y)};function ab(a,b,c,d){this.a=a;this.d=b;this.b=c;this.c=d}function bb(a,b,c,d,e){return t(e)?(e.a=a,e.d=b,e.b=c,e.c=d,e):new ab(a,b,c,d)}ab.prototype.contains=function(a){return this.a<=a.x&&a.x<=this.d&&this.b<=a.y&&a.y<=this.c};function cb(a){this.c=a.html;this.a=t(a.tileRanges)?a.tileRanges:null};var fb,gb,hb,ib,jb,kb,lb;function mb(){return s.navigator?s.navigator.userAgent:null}function nb(){return s.navigator}ib=hb=gb=fb=!1;var ob;if(ob=mb()){var pb=nb();fb=0==ob.lastIndexOf("Opera",0);gb=!fb&&(-1!=ob.indexOf("MSIE")||-1!=ob.indexOf("Trident"));hb=!fb&&-1!=ob.indexOf("WebKit");ib=!fb&&!hb&&!gb&&"Gecko"==pb.product}var qb=fb,I=gb,rb=ib,sb=hb,tb,ub=nb();tb=ub&&ub.platform||"";jb=-1!=tb.indexOf("Mac");kb=-1!=tb.indexOf("Win");lb=-1!=tb.indexOf("Linux");
var vb=!!nb()&&-1!=(nb().appVersion||"").indexOf("X11");function wb(){var a=s.document;return a?a.documentMode:void 0}var xb;a:{var yb="",zb;if(qb&&s.opera)var Ab=s.opera.version,yb="function"==typeof Ab?Ab():Ab;else if(rb?zb=/rv\:([^\);]+)(\)|;)/:I?zb=/\b(?:MSIE|rv)\s+([^\);]+)(\)|;)/:sb&&(zb=/WebKit\/(\S+)/),zb)var Bb=zb.exec(mb()),yb=Bb?Bb[1]:"";if(I){var Cb=wb();if(Cb>parseFloat(yb)){xb=String(Cb);break a}}xb=yb}var Db={};function Eb(a){return Db[a]||(Db[a]=0<=Da(xb,a))}
var Fb=s.document,Gb=Fb&&I?wb()||("CSS1Compat"==Fb.compatMode?parseInt(xb,10):5):void 0;var Hb,Ib=!I||I&&9<=Gb;!rb&&!I||I&&I&&9<=Gb||rb&&Eb("1.9.1");I&&Eb("9");function Jb(a){a=a.className;return z(a)&&a.match(/\S+/g)||[]}function Kb(a,b){for(var c=Jb(a),d=Qa(arguments,1),e=c.length+d.length,f=c,g=0;g<d.length;g++)0<=Fa(f,d[g])||f.push(d[g]);a.className=c.join(" ");return c.length==e}function Lb(a,b,c){for(var d=Jb(a),e=!1,f=0;f<d.length;f++)d[f]==b&&(Pa(d,f--,1),e=!0);e&&(d.push(c),a.className=d.join(" "))};function Mb(a,b,c){return Math.min(Math.max(a,b),c)}function Nb(a,b){var c=a%b;return 0>c*b?c+b:c}function Ob(a){return a*Math.PI/180};function Pb(a,b){this.x=t(a)?a:0;this.y=t(b)?b:0}l=Pb.prototype;l.H=function(){return new Pb(this.x,this.y)};l.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};l.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};l.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};l.scale=function(a,b){var c=la(b)?b:a;this.x*=a;this.y*=c;return this};function Qb(a,b){this.width=a;this.height=b}l=Qb.prototype;l.H=function(){return new Qb(this.width,this.height)};l.$=function(){return!(this.width*this.height)};l.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};l.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};l.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
l.scale=function(a,b){var c=la(b)?b:a;this.width*=a;this.height*=c;return this};function Rb(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Sb(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1}function Tb(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Ub(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function Vb(a){for(var b in a)return!1;return!0}function Wb(a){for(var b in a)delete a[b]}function Xb(a,b){b in a&&delete a[b]}function J(a,b,c){return b in a?a[b]:c}function Yb(a){var b={},c;for(c in a)b[c]=a[c];return b}var Zb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function $b(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<Zb.length;f++)c=Zb[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};function ac(a){return a?new bc(cc(a)):Hb||(Hb=new bc)}function dc(a){return z(a)?document.getElementById(a):a}function ec(a,b){Rb(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in fc?a.setAttribute(fc[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}
var fc={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 gc(a){a=a.document.documentElement;return new Qb(a.clientWidth,a.clientHeight)}
function hc(a,b,c){var d=arguments,e=document,f=d[0],g=d[1];if(!Ib&&g&&(g.name||g.type)){f=["\x3c",f];g.name&&f.push(' name\x3d"',xa(g.name),'"');if(g.type){f.push(' type\x3d"',xa(g.type),'"');var h={};$b(h,g);delete h.type;g=h}f.push("\x3e");f=f.join("")}f=e.createElement(f);g&&(z(g)?f.className=g:ja(g)?Kb.apply(null,[f].concat(g)):ec(f,g));2<d.length&&ic(e,f,d,2);return f}
function ic(a,b,c,d){function e(c){c&&b.appendChild(z(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];!ka(f)||na(f)&&0<f.nodeType?e(f):Ga(jc(f)?Na(f):f,e)}}function kc(a){return document.createElement(a)}function lc(a,b){ic(cc(a),a,arguments,1)}function mc(a){for(var b;b=a.firstChild;)a.removeChild(b)}function nc(a,b){b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling)}function oc(a,b,c){a.insertBefore(b,a.childNodes[c]||null)}
function pc(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function qc(a){if(void 0!=a.firstElementChild)a=a.firstElementChild;else for(a=a.firstChild;a&&1!=a.nodeType;)a=a.nextSibling;return a}function rc(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 cc(a){return 9==a.nodeType?a:a.ownerDocument||a.document}
function jc(a){if(a&&"number"==typeof a.length){if(na(a))return"function"==typeof a.item||"string"==typeof a.item;if(ma(a))return"function"==typeof a.item}return!1}function bc(a){this.a=a||s.document||document}bc.prototype.createTextNode=function(a){return this.a.createTextNode(String(a))};
function sc(a){var b=a.a;a=sb?b.body:b.documentElement;b=b.parentWindow||b.defaultView;return I&&Eb("10")&&b.pageYOffset!=a.scrollTop?new Pb(a.scrollLeft,a.scrollTop):new Pb(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}bc.prototype.contains=rc;var tc=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function uc(a,b){var c,d,e=tc.length;for(d=0;d<e;++d)try{if(c=a.getContext(tc[d],b),null!==c)return c}catch(f){}return null};var vc={},wc=I&&!Eb("9.0")&&""!==xb;vc.vd=s.devicePixelRatio||1;vc.ac=!1;vc.wd=function(){if(!("HTMLCanvasElement"in s))return!1;try{var a=kc("CANVAS").getContext("2d");if(null===a)return!1;t(a.setLineDash)&&(vc.ac=!0);return!0}catch(b){return!1}}();vc.xd="DeviceOrientationEvent"in s;vc.De=!0;vc.yd="geolocation"in s.navigator;vc.zd=s.document&&"ontouchstart"in s.document.documentElement||!!s.navigator.msPointerEnabled;
vc.Ad=function(){if(!("WebGLRenderingContext"in s))return!1;try{var a=kc("CANVAS");return null!==uc(a,{Ze:!0})}catch(b){return!1}}();function yc(){0!=zc&&(this.mi=Error().stack,Ac[B(this)]=this)}var zc=0,Ac={};yc.prototype.pa=!1;yc.prototype.kb=function(){if(!this.pa&&(this.pa=!0,this.v(),0!=zc)){var a=B(this);delete Ac[a]}};function Bc(a,b){var c=sa(Cc,b);a.T||(a.T=[]);a.T.push(D(c,void 0))}yc.prototype.v=function(){if(this.T)for(;this.T.length;)this.T.shift()()};function Cc(a){a&&"function"==typeof a.kb&&a.kb()};function Dc(a,b){this.type=a;this.c=this.target=b}l=Dc.prototype;l.kb=ca();l.Ta=!1;l.Gf=!1;l.pe=!0;l.Ha=function(){this.Ta=!0};l.J=function(){this.Gf=!0;this.pe=!1};function Ec(a){a.Ha()}function Fc(a){a.J()};var Gc=!I||I&&9<=Gb,Hc=!I||I&&9<=Gb,Ic=I&&!Eb("9");!sb||Eb("528");rb&&Eb("1.9b")||I&&Eb("8")||qb&&Eb("9.5")||sb&&Eb("528");rb&&!Eb("8")||I&&Eb("9");function Jc(a){Jc[" "](a);return a}Jc[" "]=ga;function Kc(a,b){a&&Lc(this,a,b)}H(Kc,Dc);var Mc=[1,4,2];l=Kc.prototype;l.target=null;l.Ff=null;l.Nd=0;l.Od=0;l.clientX=0;l.clientY=0;l.Vc=0;l.Wc=0;l.Ef=0;l.Fa=0;l.Tc=0;l.Nb=!1;l.ea=!1;l.Ga=!1;l.Uc=!1;l.vb=!1;l.O=null;
function Lc(a,b,c){var d=a.type=b.type;Dc.call(a,d);a.target=b.target||b.srcElement;a.c=c;if(c=b.relatedTarget){if(rb){var e;a:{try{Jc(c.nodeName);e=!0;break a}catch(f){}e=!1}e||(c=null)}}else"mouseover"==d?c=b.fromElement:"mouseout"==d&&(c=b.toElement);a.Ff=c;a.Nd=sb||void 0!==b.offsetX?b.offsetX:b.layerX;a.Od=sb||void 0!==b.offsetY?b.offsetY:b.layerY;a.clientX=void 0!==b.clientX?b.clientX:b.pageX;a.clientY=void 0!==b.clientY?b.clientY:b.pageY;a.Vc=b.screenX||0;a.Wc=b.screenY||0;a.Ef=b.button;a.Fa=
b.keyCode||0;a.Tc=b.charCode||("keypress"==d?b.keyCode:0);a.Nb=b.ctrlKey;a.ea=b.altKey;a.Ga=b.shiftKey;a.Uc=b.metaKey;a.vb=jb?b.metaKey:b.ctrlKey;a.state=b.state;a.O=b;b.defaultPrevented&&a.J();delete a.Ta}function Nc(a){return(Gc?0==a.O.button:"click"==a.type?!0:!!(a.O.button&Mc[0]))&&!(sb&&jb&&a.Nb)}l.Ha=function(){Kc.D.Ha.call(this);this.O.stopPropagation?this.O.stopPropagation():this.O.cancelBubble=!0};
l.J=function(){Kc.D.J.call(this);var a=this.O;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Ic)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};l.df=k("O");var Oc="closure_listenable_"+(1E6*Math.random()|0);function Pc(a){return!(!a||!a[Oc])}var Qc=0;function Rc(a,b,c,d,e,f){this.ya=a;this.a=b;this.src=c;this.type=d;this.capture=!!e;this.cb=f;this.key=++Qc;this.Ja=this.jb=!1}function Sc(a){a.Ja=!0;a.ya=null;a.a=null;a.src=null;a.cb=null};var Tc={},Uc={},Vc={},Wc={};function K(a,b,c,d,e){if(ja(b)){for(var f=0;f<b.length;f++)K(a,b[f],c,d,e);return null}c=Xc(c);return Pc(a)?a.W(b,c,d,e):Yc(a,b,c,!1,d,e)}
function Yc(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");e=!!e;var g=Uc;b in g||(g[b]={F:0});g=g[b];e in g||(g[e]={F:0},g.F++);var g=g[e],h=B(a),m;if(g[h]){m=g[h];for(var n=0;n<m.length;n++)if(g=m[n],g.ya==c&&g.cb==f){if(g.Ja)break;d||(m[n].jb=!1);return m[n]}}else m=g[h]=[],g.F++;n=Zc();g=new Rc(c,n,a,b,e,f);g.jb=d;n.src=a;n.ya=g;m.push(g);Vc[h]||(Vc[h]=[]);Vc[h].push(g);a.addEventListener?a.addEventListener(b,n,e):a.attachEvent(b in Wc?Wc[b]:Wc[b]="on"+b,n);return Tc[g.key]=g}
function Zc(){var a=$c,b=Hc?function(c){return a.call(b.src,b.ya,c)}:function(c){c=a.call(b.src,b.ya,c);if(!c)return c};return b}function ad(a,b,c,d,e){if(ja(b)){for(var f=0;f<b.length;f++)ad(a,b[f],c,d,e);return null}c=Xc(c);return Pc(a)?a.V.add(b,c,!0,d,e):Yc(a,b,c,!0,d,e)}function bd(a,b,c,d,e){if(ja(b))for(var f=0;f<b.length;f++)bd(a,b[f],c,d,e);else if(c=Xc(c),Pc(a))a.od(b,c,d,e);else if(d=!!d,a=cd(a,b,d))for(f=0;f<a.length;f++)if(a[f].ya==c&&a[f].capture==d&&a[f].cb==e){M(a[f]);break}}
function M(a){if(la(a)||!a||a.Ja)return!1;var b=a.src;if(Pc(b))return dd(b.V,a);var c=a.type,d=a.a,e=a.capture;b.removeEventListener?b.removeEventListener(c,d,e):b.detachEvent&&b.detachEvent(c in Wc?Wc[c]:Wc[c]="on"+c,d);b=B(b);Vc[b]&&(d=Vc[b],La(d,a),0==d.length&&delete Vc[b]);Sc(a);if(d=Uc[c][e][b])La(d,a),0==d.length&&(delete Uc[c][e][b],Uc[c][e].F--),0==Uc[c][e].F&&(delete Uc[c][e],Uc[c].F--),0==Uc[c].F&&delete Uc[c];delete Tc[a.key];return!0}
function cd(a,b,c){var d=Uc;return b in d&&(d=d[b],c in d&&(d=d[c],a=B(a),d[a]))?d[a]:null}function ed(a){if(Pc(a))return fd(a.V,void 0);a=B(a);var b=Vc[a];if(b){var c=t(void 0),d=t(void 0);return c&&d?(b=Uc[void 0],!!b&&!!b[void 0]&&a in b[void 0]):c||d?Ia(b,function(a){return c&&void 0==a.type||d&&void 0==a.capture}):!0}return!1}function gd(a,b,c){var d=1;b=B(b);if(a[b])for(a=Na(a[b]),b=0;b<a.length;b++){var e=a[b];e&&!e.Ja&&(d&=!1!==hd(e,c))}return Boolean(d)}
function hd(a,b){var c=a.ya,d=a.cb||a.src;a.jb&&M(a);return c.call(d,b)}
function $c(a,b){if(a.Ja)return!0;var c=a.type,d=Uc;if(!(c in d))return!0;var d=d[c],e,f;if(!Hc){if(!(c=b))a:{for(var c=["window","event"],g=s;e=c.shift();)if(null!=g[e])g=g[e];else{c=null;break a}c=g}e=c;c=!0 in d;g=!1 in d;if(c){if(0>e.keyCode||void 0!=e.returnValue)return!0;a:{var h=!1;if(0==e.keyCode)try{e.keyCode=-1;break a}catch(m){h=!0}if(h||void 0==e.returnValue)e.returnValue=!0}}h=new Kc;Lc(h,e,this);e=!0;try{if(c){for(var n=[],p=h.c;p;p=p.parentNode)n.push(p);f=d[!0];for(var q=n.length-
1;!h.Ta&&0<=q;q--)h.c=n[q],e&=gd(f,n[q],h);if(g)for(f=d[!1],q=0;!h.Ta&&q<n.length;q++)h.c=n[q],e&=gd(f,n[q],h)}else e=hd(a,h)}finally{n&&(n.length=0)}return e}d=new Kc(b,this);return e=hd(a,d)}var id="__closure_events_fn_"+(1E9*Math.random()>>>0);function Xc(a){return ma(a)?a:a[id]||(a[id]=function(b){return a.handleEvent(b)})};function jd(a){return function(){return a}}var kd=jd(!1),ld=jd(!0);function md(a){return a}function nd(a){return function(){throw a;}}function od(a){var b;b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}}function pd(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 qd(a){this.src=a;this.a={};this.c=0}qd.prototype.add=function(a,b,c,d,e){var f=this.a[a];f||(f=this.a[a]=[],this.c++);var g=rd(f,b,d,e);-1<g?(a=f[g],c||(a.jb=!1)):(a=new Rc(b,null,this.src,a,!!d,e),a.jb=c,f.push(a));return a};qd.prototype.remove=function(a,b,c,d){if(!(a in this.a))return!1;var e=this.a[a];b=rd(e,b,c,d);return-1<b?(Sc(e[b]),Ea.splice.call(e,b,1),0==e.length&&(delete this.a[a],this.c--),!0):!1};
function dd(a,b){var c=b.type;if(!(c in a.a))return!1;var d=La(a.a[c],b);d&&(Sc(b),0==a.a[c].length&&(delete a.a[c],a.c--));return d}function fd(a,b){var c=t(b),d=t(void 0);return Sb(a.a,function(a){for(var f=0;f<a.length;++f)if(!(c&&a[f].type!=b||d&&void 0!=a[f].capture))return!0;return!1})}function rd(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.Ja&&f.ya==b&&f.capture==!!c&&f.cb==d)return e}return-1};function sd(){yc.call(this);this.V=new qd(this);this.Ee=this}H(sd,yc);sd.prototype[Oc]=!0;l=sd.prototype;l.gd=null;l.addEventListener=function(a,b,c,d){K(this,a,b,c,d)};l.removeEventListener=function(a,b,c,d){bd(this,a,b,c,d)};
function N(a,b){var c,d=a.gd;if(d)for(c=[];d;d=d.gd)c.push(d);var d=a.Ee,e=b,f=e.type||e;if(z(e))e=new Dc(e,d);else if(e instanceof Dc)e.target=e.target||d;else{var g=e,e=new Dc(f,d);$b(e,g)}var g=!0,h;if(c)for(var m=c.length-1;!e.Ta&&0<=m;m--)h=e.c=c[m],g=td(h,f,!0,e)&&g;e.Ta||(h=e.c=d,g=td(h,f,!0,e)&&g,e.Ta||(g=td(h,f,!1,e)&&g));if(c)for(m=0;!e.Ta&&m<c.length;m++)h=e.c=c[m],g=td(h,f,!1,e)&&g;return g}
l.v=function(){sd.D.v.call(this);if(this.V){var a=this.V,b=0,c;for(c in a.a){for(var d=a.a[c],e=0;e<d.length;e++)++b,d[e].Ja=!0;delete a.a[c];a.c--}}this.gd=null};l.W=function(a,b,c,d){return this.V.add(a,b,!1,c,d)};l.od=function(a,b,c,d){return this.V.remove(a,b,c,d)};function td(a,b,c,d){b=a.V.a[b];if(!b)return!0;b=Na(b);for(var e=!0,f=0;f<b.length;++f){var g=b[f];if(g&&!g.Ja&&g.capture==c){var h=g.ya,m=g.cb||g.src;g.jb&&dd(a.V,g);e=!1!==h.call(m,d)&&e}}return e&&!1!=d.pe};function ud(){sd.call(this);this.c=0}H(ud,sd);l=ud.prototype;l.s=function(){++this.c;N(this,"change")};l.ph=function(a,b,c){return K(this,a,b,!1,c)};l.vh=function(a,b,c){return ad(this,a,b,!1,c)};l.Nh=function(a,b,c){bd(this,a,b,!1,c)};l.Oh=function(a){M(a)};function vd(a,b){Dc.call(this,a);this.key=b}H(vd,Dc);function wd(a,b){this.target=a;this.key=b;this.c=this.a=md}wd.prototype.transform=function(a,b){this.a=a;this.c=b;this.target.$c(this.key)};function P(a){ud.call(this);this.g={};this.h={};this.Z={};this.ta={};t(a)&&this.ba(a)}H(P,ud);var xd={},zd={},Ad={};function Bd(a){return a.substr(0,1).toUpperCase()+a.substr(1)}function Cd(a){return xd.hasOwnProperty(a)?xd[a]:xd[a]="change:"+a.toLowerCase()}l=P.prototype;
l.Ue=function(a,b,c){c=c||a;this.nd(a);var d=Cd(c);this.ta[a]=K(b,d,function(){Dd(this,a)},void 0,this);this.Z[a]=K(b,"beforepropertychange",Ed(a,c),void 0,this);b=new wd(b,c);this.h[a]=b;Dd(this,a);return b};function Ed(a,b){return function(c){c.key===b&&N(this,new vd("beforepropertychange",a))}}
l.t=function(a){var b,c=this.h;if(c.hasOwnProperty(a)){a=c[a];b=a.target;var c=a.key,d=zd.hasOwnProperty(c)?zd[c]:zd[c]="get"+Bd(c),d=J(b,d);b=t(d)?d.call(b):b.t(c);b=a.c(b)}else this.g.hasOwnProperty(a)&&(b=this.g[a]);return b};l.Da=function(){var a=this.h,b;if(Vb(this.g)){if(Vb(a))return[];b=a}else if(Vb(a))b=this.g;else{b={};for(var c in this.g)b[c]=!0;for(c in a)b[c]=!0}return Ub(b)};l.Md=function(){var a={},b;for(b in this.g)a[b]=this.g[b];for(b in this.h)a[b]=this.t(b);return a};
l.$c=function(a){var b=this.h;b.hasOwnProperty(a)?(a=b[a],a.target.$c(a.key)):Dd(this,a)};function Dd(a,b){var c=Cd(b);N(a,c);N(a,new vd("propertychange",b))}l.u=function(a,b){N(this,new vd("beforepropertychange",a));var c=this.h;if(c.hasOwnProperty(a)){var d=c[a],c=d.target,e=d.key;b=d.a(b);d=Ad.hasOwnProperty(e)?Ad[e]:Ad[e]="set"+Bd(e);d=J(c,d);t(d)?d.call(c,b):c.u(e,b)}else this.g[a]=b,Dd(this,a)};
l.ba=function(a){for(var b in a){var c=a[b],d=Ad.hasOwnProperty(b)?Ad[b]:Ad[b]="set"+Bd(b),d=J(this,d);t(d)?d.call(this,c):this.u(b,c)}};l.nd=function(a){var b=this.ta,c=b[a];c&&(delete b[a],M(c),b=this.t(a),delete this.h[a],this.g[a]=b);if(b=this.Z[a])M(b),delete this.Z[a]};l.Ph=function(){for(var a in this.ta)this.nd(a)};function Fd(a,b,c){Dc.call(this,a,c);this.element=b}H(Fd,Dc);function Q(a){P.call(this);this.a=a||[];Gd(this)}H(Q,P);l=Q.prototype;l.clear=function(){for(;0<this.Qa();)this.pop()};l.pg=function(a){var b,c;b=0;for(c=a.length;b<c;++b)this.push(a[b]);return this};l.forEach=function(a,b){Ga(this.a,a,b)};l.qg=k("a");l.Pc=function(a){return this.a[a]};l.Qa=function(){return this.t("length")};l.tc=function(a,b){Pa(this.a,a,0,b);Gd(this);N(this,new Fd("add",b,this))};
l.pop=function(){return this.kd(this.Qa()-1)};l.push=function(a){var b=this.a.length;this.tc(b,a);return b};l.remove=function(a){var b=this.a,c,d;c=0;for(d=b.length;c<d;++c)if(b[c]===a)return this.kd(c)};l.kd=function(a){var b=this.a[a];Ea.splice.call(this.a,a,1);Gd(this);N(this,new Fd("remove",b,this));return b};l.re=function(a,b){var c=this.Qa();if(a<c)c=this.a[a],this.a[a]=b,N(this,new Fd("remove",c,this)),N(this,new Fd("add",b,this));else{for(;c<a;++c)this.tc(c,void 0);this.tc(a,b)}};
function Gd(a){a.u("length",a.a.length)};function Hd(a){P.call(this);a=t(a)?a:{};this.a=null;K(this,Cd("tracking"),this.l,!1,this);this.b(t(a.tracking)?a.tracking:!1)}H(Hd,P);Hd.prototype.v=function(){this.b(!1);Hd.D.v.call(this)};
Hd.prototype.n=function(a){a=a.O;if(null!=a.alpha){var b=Ob(a.alpha);this.u("alpha",b);"boolean"==typeof a.absolute&&a.absolute?this.u("heading",b):null!=a.webkitCompassHeading&&(null!=a.webkitCompassAccuracy&&-1!=a.webkitCompassAccuracy)&&this.u("heading",Ob(a.webkitCompassHeading))}null!=a.beta&&this.u("beta",Ob(a.beta));null!=a.gamma&&this.u("gamma",Ob(a.gamma))};Hd.prototype.e=function(){return this.t("alpha")};Hd.prototype.getAlpha=Hd.prototype.e;Hd.prototype.f=function(){return this.t("beta")};
Hd.prototype.getBeta=Hd.prototype.f;Hd.prototype.i=function(){return this.t("gamma")};Hd.prototype.getGamma=Hd.prototype.i;Hd.prototype.k=function(){return this.t("heading")};Hd.prototype.getHeading=Hd.prototype.k;Hd.prototype.d=function(){return this.t("tracking")};Hd.prototype.getTracking=Hd.prototype.d;Hd.prototype.l=function(){if(vc.xd){var a=this.d();a&&null===this.a?this.a=K(s,"deviceorientation",this.n,!1,this):a||null===this.a||(M(this.a),this.a=null)}};
Hd.prototype.b=function(a){this.u("tracking",a)};Hd.prototype.setTracking=Hd.prototype.b;function Id(a,b){a[0]+=b[0];a[1]+=b[1]}function Jd(a,b){var c=a[0],d=a[1],e=b[0],f=b[1],g=e[0],e=e[1],h=f[0],f=f[1],m=h-g,n=f-e,c=0==m&&0==n?0:(m*(c-g)+n*(d-e))/(m*m+n*n||0);0>=c||(1<=c?(g=h,e=f):(g+=c*m,e+=c*n));return[g,e]}function Kd(a,b){var c=Nb(a+180,360)-180,d=Math.abs(Math.round(3600*c));return Math.floor(d/3600)+"\u00b0 "+Math.floor(d/60%60)+"\u2032 "+Math.floor(d%60)+"\u2033 "+b.charAt(0>c?1:0)}
function Ld(a,b,c){return t(a)?b.replace("{x}",a[0].toFixed(c)).replace("{y}",a[1].toFixed(c)):""}function Md(a,b){for(var c=!0,d=a.length-1;0<=d;--d)if(a[d]!=b[d]){c=!1;break}return c}function Nd(a,b){var c=Math.cos(b),d=Math.sin(b),e=a[1]*c+a[0]*d;a[0]=a[0]*c-a[1]*d;a[1]=e;return a}function Od(a,b){var c=a[0]-b[0],d=a[1]-b[1];return c*c+d*d}function Pd(a,b){return Ld(a,"{x}, {y}",b)};function Qd(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}Qd.prototype.a=4;Qd.prototype.c=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};Qd.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(Qd.BYTES_PER_ELEMENT=4,Qd.prototype.BYTES_PER_ELEMENT=Qd.prototype.a,Qd.prototype.set=Qd.prototype.c,Qd.prototype.toString=Qd.prototype.toString,G("Float32Array",Qd));function Rd(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}Rd.prototype.a=8;Rd.prototype.c=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};Rd.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{Rd.BYTES_PER_ELEMENT=8}catch(Sd){}Rd.prototype.BYTES_PER_ELEMENT=Rd.prototype.a;Rd.prototype.set=Rd.prototype.c;Rd.prototype.toString=Rd.prototype.toString;G("Float64Array",Rd)};function Td(a,b,c,d,e){a[0]=b;a[1]=c;a[2]=d;a[3]=e};function Ud(){var a=Array(16);Vd(a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);return a}function Wd(){var a=Array(16);Vd(a,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);return a}function Vd(a,b,c,d,e,f,g,h,m,n,p,q,r,u,y,v,x){a[0]=b;a[1]=c;a[2]=d;a[3]=e;a[4]=f;a[5]=g;a[6]=h;a[7]=m;a[8]=n;a[9]=p;a[10]=q;a[11]=r;a[12]=u;a[13]=y;a[14]=v;a[15]=x}
function Xd(a,b){a[0]=b[0];a[1]=b[1];a[2]=b[2];a[3]=b[3];a[4]=b[4];a[5]=b[5];a[6]=b[6];a[7]=b[7];a[8]=b[8];a[9]=b[9];a[10]=b[10];a[11]=b[11];a[12]=b[12];a[13]=b[13];a[14]=b[14];a[15]=b[15]}function Yd(a){a[0]=1;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=1;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=1;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1}
function Zd(a,b,c){var d=a[0],e=a[1],f=a[2],g=a[3],h=a[4],m=a[5],n=a[6],p=a[7],q=a[8],r=a[9],u=a[10],y=a[11],v=a[12],x=a[13],w=a[14];a=a[15];var A=b[0],C=b[1],E=b[2],F=b[3],L=b[4],X=b[5],aa=b[6],da=b[7],O=b[8],Z=b[9],db=b[10],ba=b[11],eb=b[12],Ya=b[13],xc=b[14];b=b[15];c[0]=d*A+h*C+q*E+v*F;c[1]=e*A+m*C+r*E+x*F;c[2]=f*A+n*C+u*E+w*F;c[3]=g*A+p*C+y*E+a*F;c[4]=d*L+h*X+q*aa+v*da;c[5]=e*L+m*X+r*aa+x*da;c[6]=f*L+n*X+u*aa+w*da;c[7]=g*L+p*X+y*aa+a*da;c[8]=d*O+h*Z+q*db+v*ba;c[9]=e*O+m*Z+r*db+x*ba;c[10]=f*O+
n*Z+u*db+w*ba;c[11]=g*O+p*Z+y*db+a*ba;c[12]=d*eb+h*Ya+q*xc+v*b;c[13]=e*eb+m*Ya+r*xc+x*b;c[14]=f*eb+n*Ya+u*xc+w*b;c[15]=g*eb+p*Ya+y*xc+a*b}function $d(a,b,c){var d=a[1]*b+a[5]*c+0*a[9]+a[13],e=a[2]*b+a[6]*c+0*a[10]+a[14],f=a[3]*b+a[7]*c+0*a[11]+a[15];a[12]=a[0]*b+a[4]*c+0*a[8]+a[12];a[13]=d;a[14]=e;a[15]=f}function ae(a,b,c){Vd(a,a[0]*b,a[1]*b,a[2]*b,a[3]*b,a[4]*c,a[5]*c,a[6]*c,a[7]*c,1*a[8],1*a[9],1*a[10],1*a[11],a[12],a[13],a[14],a[15])}
function be(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],h=a[5],m=a[6],n=a[7],p=Math.cos(b),q=Math.sin(b);a[0]=c*p+g*q;a[1]=d*p+h*q;a[2]=e*p+m*q;a[3]=f*p+n*q;a[4]=c*-q+g*p;a[5]=d*-q+h*p;a[6]=e*-q+m*p;a[7]=f*-q+n*p}new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);function ce(a){for(var b=de(),c=0,d=a.length;c<d;++c){var e=b,f=a[c];f[0]<e[0]&&(e[0]=f[0]);f[0]>e[2]&&(e[2]=f[0]);f[1]<e[1]&&(e[1]=f[1]);f[1]>e[3]&&(e[3]=f[1])}return b}function ee(a,b,c){var d=Math.min.apply(null,a),e=Math.min.apply(null,b);a=Math.max.apply(null,a);b=Math.max.apply(null,b);return fe(d,e,a,b,c)}function ge(a,b,c){return t(c)?(c[0]=a[0]-b,c[1]=a[1]-b,c[2]=a[2]+b,c[3]=a[3]+b,c):[a[0]-b,a[1]-b,a[2]+b,a[3]+b]}
function he(a,b){return t(b)?(b[0]=a[0],b[1]=a[1],b[2]=a[2],b[3]=a[3],b):a.slice()}function ie(a,b,c){b=b<a[0]?a[0]-b:a[2]<b?b-a[2]:0;a=c<a[1]?a[1]-c:a[3]<c?c-a[3]:0;return b*b+a*a}function je(a,b){return a[0]<=b[0]&&b[2]<=a[2]&&a[1]<=b[1]&&b[3]<=a[3]}function de(){return[Infinity,Infinity,-Infinity,-Infinity]}function fe(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 ke(a){return fe(Infinity,Infinity,-Infinity,-Infinity,a)}
function le(a,b){return a[0]==b[0]&&a[2]==b[2]&&a[1]==b[1]&&a[3]==b[3]}function me(a,b){b[0]<a[0]&&(a[0]=b[0]);b[2]>a[2]&&(a[2]=b[2]);b[1]<a[1]&&(a[1]=b[1]);b[3]>a[3]&&(a[3]=b[3]);return a}function ne(a,b,c,d,e){for(;c<d;c+=e){var f=a,g=b[c],h=b[c+1];f[0]=Math.min(f[0],g);f[1]=Math.min(f[1],h);f[2]=Math.max(f[2],g);f[3]=Math.max(f[3],h)}return a}function oe(a){return[a[0],a[1]]}function pe(a){return[(a[0]+a[2])/2,(a[1]+a[3])/2]}
function qe(a,b,c,d){var e=b*d[0]/2;d=b*d[1]/2;b=Math.cos(c);c=Math.sin(c);e=[-e,-e,e,e];d=[-d,d,-d,d];var f,g,h;for(f=0;4>f;++f)g=e[f],h=d[f],e[f]=a[0]+g*b-h*c,d[f]=a[1]+g*c+h*b;return ee(e,d,void 0)}function re(a){return a[3]-a[1]}function se(a){return[a[0],a[3]]}function te(a){return a[2]-a[0]}function ue(a,b){return a[0]<=b[2]&&a[2]>=b[0]&&a[1]<=b[3]&&a[3]>=b[1]}function ve(a){return a[2]<a[0]||a[3]<a[1]}function we(a,b){return t(b)?(b[0]=a[0],b[1]=a[1],b[2]=a[2],b[3]=a[3],b):a}
function xe(a,b){var c=(a[2]-a[0])/2*(b-1),d=(a[3]-a[1])/2*(b-1);a[0]-=c;a[2]+=c;a[1]-=d;a[3]+=d}function ye(a,b){return ue(a,b)&&(a[0]==b[2]||a[2]==b[0]||a[1]==b[3]||a[3]==b[1])}function ze(a,b,c){a=[a[0],a[1],a[0],a[3],a[2],a[1],a[2],a[3]];b(a,a,2);return ee([a[0],a[2],a[4],a[6]],[a[1],a[3],a[5],a[7]],c)};function Ae(a,b){sd.call(this);this.a=a;this.state=b}H(Ae,sd);Ae.prototype.d=function(){return B(this).toString()};Ae.prototype.i=k("a");function Be(a,b){this.g=a;this.e=b;this.a=[];this.c=[];this.b={}}Be.prototype.clear=function(){this.a.length=0;this.c.length=0;Wb(this.b)};function Ce(a){var b=a.a,c=a.c,d=b[0];1==b.length?(b.length=0,c.length=0):(b[0]=b.pop(),c[0]=c.pop(),De(a,0));b=a.e(d);delete a.b[b];return d}function Ee(a,b){var c=a.g(b);Infinity!=c&&(a.a.push(b),a.c.push(c),a.b[a.e(b)]=!0,Fe(a,0,a.a.length-1))}Be.prototype.xa=function(){return this.a.length};Be.prototype.$=function(){return 0===this.a.length};
function De(a,b){for(var c=a.a,d=a.c,e=c.length,f=c[b],g=d[b],h=b;b<e>>1;){var m=2*b+1,n=2*b+2,m=n<e&&d[n]<d[m]?n:m;c[b]=c[m];d[b]=d[m];b=m}c[b]=f;d[b]=g;Fe(a,h,b)}function Fe(a,b,c){var d=a.a;a=a.c;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 Ge(a){var b=a.g,c=a.a,d=a.c,e=0,f=c.length,g,h,m;for(h=0;h<f;++h)g=c[h],m=b(g),Infinity==m?delete a.b[a.e(g)]:(d[e]=m,c[e++]=g);c.length=e;d.length=e;for(b=(a.a.length>>1)-1;0<=b;b--)De(a,b)};function He(a,b){Be.call(this,function(b){return a.apply(null,b)},function(a){return a[0].d()});this.h=b;this.d=0}H(He,Be);He.prototype.f=function(){--this.d;this.h()};/*
Latitude/longitude spherical geodesy formulae taken from
http://www.movable-type.co.uk/scripts/latlong.html
Licenced under CC-BY-3.0.
*/
function Ie(a,b,c){var d=Ob(b[1]),e=Ob(c[1]),f=(e-d)/2;b=Ob(c[0]-b[0])/2;d=Math.sin(f)*Math.sin(f)+Math.sin(b)*Math.sin(b)*Math.cos(d)*Math.cos(e);return 2*a.radius*Math.atan2(Math.sqrt(d),Math.sqrt(1-d))};var Je=new function(){this.radius=6370997};var Ke={},Le="object"==typeof Proj4js;Ke.degrees=2*Math.PI*Je.radius/360;Ke.ft=0.3048;Ke.m=1;function Me(a){this.a=a.code;this.sa=a.units;this.k=t(a.extent)?a.extent:null;this.e=t(a.axisOrientation)?a.axisOrientation:"enu";this.i=t(a.global)?a.global:!1;this.g=null}Me.prototype.h=k("a");Me.prototype.p=k("k");Me.prototype.l=k("sa");Me.prototype.c=function(){return Ke[this.sa]};function Ne(a,b){var c={units:a.units,axisOrientation:a.axis};$b(c,b);Me.call(this,c);this.f=a;this.d=null}H(Ne,Me);
Ne.prototype.c=function(){var a=this.f.to_meter;t(a)||(a=Ke[this.sa]);return a};Ne.prototype.b=function(a,b){if("degrees"==this.sa)return a;null===this.d&&(this.d=Oe(this,Pe({code:"EPSG:4326",extent:null})));var c=[b[0]-a/2,b[1],b[0]+a/2,b[1],b[0],b[1]-a/2,b[0],b[1]+a/2],c=this.d(c,c,2),d=Ie(Je,c.slice(0,2),c.slice(2,4)),c=Ie(Je,c.slice(4,6),c.slice(6,8)),d=(d+c)/2;"ft"==this.sa&&(d/=0.3048);return d};function Qe(a){return a.f}var Re={},Se={},Te={};
function Ue(a){Ve(a);Ga(a,function(b){Ga(a,function(a){b!==a&&We(b,a,Xe)})})}function Ye(){var a=Ze,b=$e,c=af;Ga(bf,function(d){Ga(a,function(a){We(d,a,b);We(a,d,c)})})}function cf(a){Se[a.a]=a;We(a,a,Xe)}function Ve(a){Ga(a,function(a){cf(a)})}function df(a){return null!=a?z(a)?ef(a):a:ef("EPSG:3857")}function We(a,b,c){a=a.a;b=b.a;a in Te||(Te[a]={});Te[a][b]=c}function ef(a){var b;a instanceof Me?b=a:z(a)?(b=Se[a],Le&&!t(b)&&(b=Pe({code:a,extent:null})),t(b)||(b=null)):b=null;return b}
function Pe(a){var b=a.code,c=Re[b];if(!t(c)){var d=new Proj4js.Proj(b),e=d.srsCode,c=Re[e];t(c)||(a=Yb(a),a.code=e,c=new Ne(d,a),Re[e]=c);Re[b]=c}return c}function ff(a,b){var c=ef(a),d=ef(b);return Oe(c,d)}
function Oe(a,b){var c=a.a,d=b.a,e;c in Te&&d in Te[c]&&(e=Te[c][d]);if(Le&&!t(e)){var f=Qe(a instanceof Ne?a:Pe({code:c,extent:null})),g=Qe(b instanceof Ne?b:Pe({code:d,extent:null}));e=function(a,b,c){var d=a.length;c=1<c?c:2;t(b)||(b=2<c?a.slice():Array(d));for(var e,r=0;r<d;r+=c)e=new Proj4js.Point(a[r],a[r+1]),e=Proj4js.transform(f,g,e),b[r]=e.x,b[r+1]=e.y;return b};We(a,b,e)}t(e)||(e=gf);return e}function gf(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 Xe(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 hf(a){ud.call(this);this.l=ef(a.projection);this.Q=t(a.extent)?a.extent:t(a.projection)?this.l.p():null;this.d=t(a.attributions)?a.attributions:null;this.r=a.logo;this.g=t(a.state)?a.state:1}H(hf,ud);hf.prototype.k=ga;hf.prototype.p=k("Q");hf.prototype.ta=k("g");function jf(a,b){a.g=b;a.s()};function R(a){P.call(this);a=Yb(a);a.brightness=t(a.brightness)?a.brightness:0;a.contrast=t(a.contrast)?a.contrast:1;a.hue=t(a.hue)?a.hue:0;a.opacity=t(a.opacity)?a.opacity:1;a.saturation=t(a.saturation)?a.saturation:1;a.visible=t(a.visible)?a.visible:!0;a.maxResolution=t(a.maxResolution)?a.maxResolution:Infinity;a.minResolution=t(a.minResolution)?a.minResolution:0;this.ba(a)}H(R,P);R.prototype.e=function(){return this.t("brightness")};R.prototype.getBrightness=R.prototype.e;R.prototype.f=function(){return this.t("contrast")};
R.prototype.getContrast=R.prototype.f;R.prototype.i=function(){return this.t("hue")};R.prototype.getHue=R.prototype.i;function kf(a){var b=a.e(),c=a.f(),d=a.i(),e=a.n(),f=a.r(),g=a.Sc(),h=a.b(),m=a.k();a=a.l();return{brightness:t(b)?Mb(b,-1,1):0,contrast:t(c)?Math.max(c,0):1,hue:t(d)?d:0,opacity:t(e)?Mb(e,0,1):1,saturation:t(f)?Math.max(f,0):1,md:g,visible:t(h)?!!h:!0,maxResolution:t(m)?m:Infinity,minResolution:t(a)?Math.max(a,0):0}}R.prototype.k=function(){return this.t("maxResolution")};
R.prototype.getMaxResolution=R.prototype.k;R.prototype.l=function(){return this.t("minResolution")};R.prototype.getMinResolution=R.prototype.l;R.prototype.n=function(){return this.t("opacity")};R.prototype.getOpacity=R.prototype.n;R.prototype.r=function(){return this.t("saturation")};R.prototype.getSaturation=R.prototype.r;R.prototype.b=function(){return this.t("visible")};R.prototype.getVisible=R.prototype.b;R.prototype.R=function(a){this.u("brightness",a)};R.prototype.setBrightness=R.prototype.R;
R.prototype.ua=function(a){this.u("contrast",a)};R.prototype.setContrast=R.prototype.ua;R.prototype.Ka=function(a){this.u("hue",a)};R.prototype.setHue=R.prototype.Ka;R.prototype.La=function(a){this.u("maxResolution",a)};R.prototype.setMaxResolution=R.prototype.La;R.prototype.Yb=function(a){this.u("minResolution",a)};R.prototype.setMinResolution=R.prototype.Yb;R.prototype.Zb=function(a){this.u("opacity",a)};R.prototype.setOpacity=R.prototype.Zb;R.prototype.bc=function(a){this.u("saturation",a)};
R.prototype.setSaturation=R.prototype.bc;R.prototype.Ic=function(a){this.u("visible",a)};R.prototype.setVisible=R.prototype.Ic;function lf(a){var b=Yb(a);delete b.source;R.call(this,b);this.a=a.source;K(this.a,"change",this.Hg,!1,this)}H(lf,R);l=lf.prototype;l.Rc=function(a){a=t(a)?a:[];a.push(this);return a};l.Qc=function(a){a=t(a)?a:{layers:[],Y:[]};a.layers.push(this);a.Y.push(kf(this));return a};l.Gg=k("a");l.Sc=function(){return this.a.g};l.Hg=function(){this.s()};function mf(a,b,c){Dc.call(this,a);this.map=b;this.b=t(c)?c:null}H(mf,Dc);function nf(a,b,c,d){mf.call(this,a,b,d);this.a=c;this.originalEvent=c.O;this.coordinate=b.Ld(this.originalEvent);this.pixel=b.oc(this.originalEvent)}H(nf,mf);nf.prototype.J=function(){nf.D.J.call(this);this.a.J()};nf.prototype.Ha=function(){nf.D.Ha.call(this);this.a.Ha()};
function of(a){sd.call(this);this.a=a;this.f=0;this.b=!1;this.wa=this.g=this.e=this.d=this.c=null;a=this.a.b;this.h=[K(a,"mousemove",this.oe,!1,this),K(a,"click",this.oe,!1,this)];this.d=K(a,"mousedown",this.Uf,!1,this);this.e=K(a,"MSPointerDown",this.Wf,!1,this);this.g=K(a,"touchstart",this.ig,!1,this)}H(of,sd);function pf(a,b){if(0!==a.f){s.clearTimeout(a.f);a.f=0;var c=new nf(qf,a.a,b);N(a,c)}else a.f=s.setTimeout(D(function(){this.f=0;var a=new nf(rf,this.a,b);N(this,a)},a),250)}l=of.prototype;
l.Vf=function(a){this.wa&&(Ga(this.c,M),this.c=null,this.b?(a=new nf(sf,this.a,a),N(this,a)):Nc(a)&&pf(this,a))};l.Uf=function(a){null!==this.e&&(M(this.e),this.e=null,M(this.g),this.g=null);var b=new nf(tf,this.a,a);N(this,b);this.wa=a;this.b=!1;this.c=[K(s.document,"mousemove",this.zg,!1,this),K(s.document,"mouseup",this.Vf,!1,this)];a.J()};l.zg=function(a){var b;this.b||(this.b=!0,b=new nf(uf,this.a,this.wa),N(this,b));b=new nf(vf,this.a,a);N(this,b)};
l.Wf=function(a){null!==this.d&&(M(this.d),this.d=null,M(this.g),this.g=null);var b=new nf(wf,this.a,a);N(this,b);this.wa=a;this.b=!1;this.c=[K(s.document,"MSPointerMove",this.Xf,!1,this),K(s.document,"MSPointerUp",this.Yf,!1,this)];a.J()};l.Xf=function(a){if(a.clientX!=this.wa.clientX||a.clientY!=this.wa.clientY)this.b=!0,a=new nf(yf,this.a,a),N(this,a)};l.Yf=function(a){var b=new nf(zf,this.a,a);N(this,b);Ga(this.c,M);!this.b&&Nc(a)&&pf(this,this.wa)};
l.ig=function(a){null!==this.d&&(M(this.d),this.d=null,M(this.e),this.e=null);var b=new nf(wf,this.a,a);N(this,b);this.wa=a;this.b=!1;null===this.c&&(this.c=[K(s.document,"touchmove",this.hg,!1,this),K(s.document,"touchend",this.gg,!1,this)]);a.J()};l.hg=function(a){this.b=!0;var b=new nf(yf,this.a,a);N(this,b);a.J()};l.gg=function(a){var b=new nf(zf,this.a,a);N(this,b);0===a.O.targetTouches.length&&(Ga(this.c,M),this.c=null);this.b||pf(this,this.wa)};
l.v=function(){null!==this.h&&(Ga(this.h,M),this.h=null);null!==this.d&&(M(this.d),this.d=null);null!==this.e&&(M(this.e),this.e=null);null!==this.g&&(M(this.g),this.g=null);null!==this.c&&(Ga(this.c,M),this.c=null);of.D.v.call(this)};l.oe=function(a){N(this,new nf(a.type,this.a,a))};var qf="dblclick",tf="down",uf="dragstart",vf="drag",sf="dragend",rf="singleclick",wf="touchstart",yf="touchmove",zf="touchend",Af={$h:"click",ai:qf,hi:"mousemove",bi:tf,ei:uf,ci:vf,di:sf,ii:rf,li:wf,ki:yf,ji:zf};function Bf(a){a=a.a;return a.ea&&!a.vb&&a.Ga}function Cf(a){return a.type==rf}function Df(a){a=a.a;return!a.ea&&!a.vb&&!a.Ga}function Ef(a){a=a.a;return!a.ea&&!a.vb&&a.Ga}function Ff(a){a=a.a.target.tagName;return"INPUT"!==a&&"SELECT"!==a&&"TEXTAREA"!==a};function Gf(a){return function(b){if(t(b))return[Mb(b[0],a[0],a[2]),Mb(b[1],a[1],a[3])]}}function Hf(a){return a};function If(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 Jf(a){return function(b,c,d){if(t(b))return b=If(a,b,d),b=Mb(b+c,0,a.length-1),a[b]}}function Kf(a,b,c){return function(d,e,f){if(t(d))return f=0<f?0:0>f?1:0.5,d=Math.floor(Math.log(b/d)/Math.log(a)+f),e=Math.max(d+e,0),t(c)&&(e=Math.min(e,c)),b/Math.pow(a,e)}};function Lf(a){if(t(a))return 0}function Mf(a,b){if(t(a))return a+b}function Nf(a){var b=2*Math.PI/a;return function(a,d){if(t(a))return a=Math.floor((a+d)/b+0.5)*b}}function Of(){var a=Ob(5);return function(b,c){if(t(b))return Math.abs(b+c)<=a?0:b+c}};function Pf(a,b,c){this.center=a;this.resolution=b;this.rotation=c};function Qf(){P.call(this);this.k=[0,0]}H(Qf,P);Qf.prototype.L=ea(null);Qf.prototype.bd=ea(!1);function Rf(a,b){a.k[1]+=b};function S(a){Qf.call(this);a=a||{};var b={};b.center=t(a.center)?a.center:null;b.projection=df(a.projection);var c,d,e;if(t(a.resolutions))c=a.resolutions,d=c[0],e=c[c.length-1],c=Jf(c);else{d=a.maxResolution;t(d)||(d=a.projection,e=df(d).p(),d=(null===e?360*Ke.degrees/Ke[d.sa]:Math.max(e[2]-e[0],e[3]-e[1]))/256);c=a.maxZoom;t(c)||(c=28);var f=a.zoomFactor;t(f)||(f=2);e=d/Math.pow(f,c);c=Kf(f,d,c)}this.i=d;this.o=e;(t(a.enableRotation)?a.enableRotation:1)?(d=a.constrainRotation,d=t(d)&&!0!==d?!1===
d?Mf:la(d)?Nf(d):Mf:Of()):d=Lf;this.f=new Pf(t(a.extent)?Gf(a.extent):Hf,c,d);t(a.resolution)?b.resolution=a.resolution:t(a.zoom)&&(b.resolution=this.a(this.i,a.zoom));b.rotation=t(a.rotation)?a.rotation:0;this.ba(b)}H(S,Qf);function Sf(a,b,c){var d,e=a.b();t(e)&&(d=[e[0]-c[0],e[1]-c[1]],Nd(d,b-a.n()),Id(d,c));return d}function Tf(a,b,c){var d,e=a.b();a=a.d();t(e)&&t(a)&&(d=[c[0]-b*(c[0]-e[0])/a,c[1]-b*(c[1]-e[1])/a]);return d}S.prototype.a=function(a,b,c){return this.f.resolution(a,b||0,c||0)};
S.prototype.constrainRotation=function(a,b){return this.f.rotation(a,b||0)};S.prototype.b=function(){return this.t("center")};S.prototype.getCenter=S.prototype.b;S.prototype.q=function(a){var b=this.b(),c=this.d();return[b[0]-c*a[0]/2,b[1]-c*a[1]/2,b[0]+c*a[0]/2,b[1]+c*a[1]/2]};S.prototype.l=function(){return this.t("projection")};S.prototype.getProjection=S.prototype.l;S.prototype.d=function(){return this.t("resolution")};S.prototype.getResolution=S.prototype.d;
function Uf(a,b){return Math.max((a[2]-a[0])/b[0],(a[3]-a[1])/b[1])}function Vf(a){var b=a.i,c=Math.log(b/a.o)/Math.log(2);return function(a){return b/Math.pow(2,a*c)}}S.prototype.n=function(){return this.t("rotation")};S.prototype.getRotation=S.prototype.n;function Wf(a){var b=a.i,c=Math.log(b/a.o)/Math.log(2);return function(a){return Math.log(b/a)/Math.log(2)/c}}l=S.prototype;l.L=function(){return this};
function Xf(a){var b=a.b(),c=a.l(),d=a.d();a=a.n();return{center:b.slice(),projection:t(c)?c:null,resolution:d,rotation:t(a)?a:0}}l.Df=function(){var a,b=this.d();if(t(b)){var c,d=0;do{c=this.a(this.i,d);if(c==b){a=d;break}++d}while(c>this.o)}return a};l.Kd=function(a,b){if(!ve(a)){this.na(pe(a));var c=Uf(a,b),d=this.a(c,0,0);d<c&&(d=this.a(d,-1,0));this.e(d)}};l.bd=function(){return null!=this.b()&&t(this.d())};l.na=function(a){this.u("center",a)};S.prototype.setCenter=S.prototype.na;
S.prototype.w=function(a){this.u("projection",a)};S.prototype.setProjection=S.prototype.w;S.prototype.e=function(a){this.u("resolution",a)};S.prototype.setResolution=S.prototype.e;S.prototype.r=function(a){this.u("rotation",a)};S.prototype.setRotation=S.prototype.r;S.prototype.G=function(a){a=this.a(this.i,a,0);this.e(a)};function Yf(a){return 1-Math.pow(1-a,3)};function Zf(a){return 3*a*a-2*a*a*a}function $f(a){return a}function ag(a){return 0.5>a?Zf(2*a):1-Zf(2*(a-0.5))};function bg(a){var b=a.source,c=t(a.start)?a.start:ta(),d=b[0],e=b[1],f=t(a.duration)?a.duration:1E3,g=t(a.easing)?a.easing:Zf;return function(a,b){if(b.time<c)return b.ca=!0,b.M[0]+=1,!0;if(b.time<c+f){var n=1-g((b.time-c)/f),p=d-b.A.center[0],q=e-b.A.center[1];b.ca=!0;b.A.center[0]+=n*p;b.A.center[1]+=n*q;b.M[0]+=1;return!0}return!1}}
function cg(a){var b=a.rotation,c=t(a.start)?a.start:ta(),d=t(a.duration)?a.duration:1E3,e=t(a.easing)?a.easing:Zf;return function(a,g){if(g.time<c)return g.ca=!0,g.M[0]+=1,!0;if(g.time<c+d){var h=1-e((g.time-c)/d),m=b-g.A.rotation;g.ca=!0;g.A.rotation+=h*m;g.M[0]+=1;return!0}return!1}}
function dg(a){var b=a.resolution,c=t(a.start)?a.start:ta(),d=t(a.duration)?a.duration:1E3,e=t(a.easing)?a.easing:Zf;return function(a,g){if(g.time<c)return g.ca=!0,g.M[0]+=1,!0;if(g.time<c+d){var h=1-e((g.time-c)/d),m=b-g.A.resolution;g.ca=!0;g.A.resolution+=h*m;g.M[0]+=1;return!0}return!1}};function eg(){ud.call(this);this.l=null}H(eg,ud);eg.prototype.fa=function(a){this.l=a};function fg(a,b,c,d,e){if(null!=c){var f=b.n(),g=b.b();t(f)&&(t(g)&&t(e)&&0<e)&&(a.ha(cg({rotation:f,duration:e,easing:Yf})),t(d)&&a.ha(bg({source:g,duration:e,easing:Yf})));if(null!=d){var h=Sf(b,c,d);gg(a,function(){b.na(h);b.r(c)})}else b.r(c)}}function hg(a,b,c,d,e){var f=b.d();c=b.a(f,c,0);ig(a,b,c,d,e)}
function ig(a,b,c,d,e){if(null!=c){var f=b.d(),g=b.b();t(f)&&(t(g)&&t(e)&&0<e)&&(a.ha(dg({resolution:f,duration:e,easing:Yf})),t(d)&&a.ha(bg({source:g,duration:e,easing:Yf})));if(null!=d){var h=Tf(b,c,d);gg(a,function(){b.na(h);b.e(c)})}else b.e(c)}};function jg(){eg.call(this);this.k=!1;this.f=this.g=this.r=this.o=0;this.G=this.w=null}H(jg,eg);l=jg.prototype;l.qb=ga;l.rb=ga;l.sb=kd;l.Ud=ga;
l.oa=function(a){var b=a.map;if(!kg(b))return!0;var c=!1,d=b.a(),b=a.a;a.type==tf&&this.Ud(a);this.k?a.type==vf?(this.g=b.clientX-this.o,this.f=b.clientY-this.r,this.qb(a)):a.type==sf&&(this.g=b.clientX-this.o,this.f=b.clientY-this.r,this.k=!1,this.rb(a)):a.type==uf&&(d=Xf(d.L()),this.o=b.clientX,this.r=b.clientY,this.f=this.g=0,this.w=d.center,this.G=a.coordinate,this.sb(a)&&(this.k=!0,a.J(),c=!0));return!c};function lg(){ud.call(this);this.extent=void 0;this.e=-1;this.g={};this.i=this.f=0}H(lg,ud);lg.prototype.q=function(a,b){var c=t(b)?b:[NaN,NaN];this.ia(a[0],a[1],c,Infinity);return c};lg.prototype.Va=kd;function mg(a,b,c,d,e,f,g){var h=a[b],m=a[b+1],n=a[c]-h,p=a[c+1]-m;if(0!==n||0!==p)if(f=((e-h)*n+(f-m)*p)/(n*n+p*p),1<f)b=c;else if(0<f){for(e=0;e<d;++e)g[e]=a[b+e]+f*(a[c+e]-a[b+e]);g.length=d;return}for(e=0;e<d;++e)g[e]=a[b+e];g.length=d}function ng(a,b){var c=0,d,e;d=0;for(e=b.length;d<e;++d)a[c++]=b[d];return c}function og(a,b,c,d){var e,f;e=0;for(f=c.length;e<f;++e){var g=c[e],h;for(h=0;h<d;++h)a[b++]=g[h]}return b}
function pg(a,b,c,d,e){e=t(e)?e:[];var f=0,g,h;g=0;for(h=c.length;g<h;++g)b=og(a,b,c[g],d),e[f++]=b;e.length=f;return e}function qg(a,b,c,d,e){e=t(e)?e:[];for(var f=0;b<c;b+=d)e[f++]=a.slice(b,b+d);e.length=f;return e}function rg(a,b,c,d,e){e=t(e)?e:[];var f=0,g,h;g=0;for(h=c.length;g<h;++g){var m=c[g];e[f++]=qg(a,b,m,d,e[f]);b=m}e.length=f;return e}
function sg(a,b,c,d,e){var f=NaN,g=NaN,h=(c-b)/d;if(0!==h)if(1==h)f=a[b],g=a[b+1];else if(2==h)f=0.5*a[b]+0.5*a[b+d],g=0.5*a[b+1]+0.5*a[b+d+1];else{var g=a[b],h=a[b+1],m=0,f=[0],n;for(n=b+d;n<c;n+=d){var p=a[n],q=a[n+1],m=m+Math.sqrt((p-g)*(p-g)+(q-h)*(q-h));f.push(m);g=p;h=q}c=0.5*m;for(var r,g=Sa,h=0,m=f.length;h<m;)n=h+m>>1,p=g(c,f[n]),0<p?h=n+1:(m=n,r=!p);r=r?h:~h;0>r?(c=(c-f[-r-2])/(f[-r-1]-f[-r-2]),b+=(-r-2)*d,f=(1-c)*a[b]+c*a[b+d],g=(1-c)*a[b+1]+c*a[b+d+1]):(f=a[b+r*d],g=a[b+r*d+1])}return null!=
e?(e.push(f,g),e):[f,g]}function tg(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],m=a[b+1],e=e+(g*h-f*m),f=h,g=m;return e/2}function ug(a,b,c,d,e,f){for(var g=!1,h=a[c-d],m=a[c-d+1];b<c;b+=d){var n=a[b],p=a[b+1];m>f!=p>f&&e<(n-h)*(f-m)/(p-m)+h&&(g=!g);h=n;m=p}return g}function vg(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],m=a[b+1],e=e+(h-f)*(m+g),f=h,g=m;return 0<e}
function wg(a,b,c,d){var e=0,f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],e=e+tg(a,b,h,d);b=h}return e}function xg(a,b,c,d,e,f){if(0===c.length||!ug(a,b,c[0],d,e,f))return!1;var g;b=1;for(g=c.length;b<g;++b)if(ug(a,c[b-1],c[b],d,e,f))return!1;return!0}
function yg(a,b,c,d,e,f,g){var h,m,n,p,q,r=e[f+1],u=[],y=c[0];n=a[y-d];q=a[y-d+1];for(h=b;h<y;h+=d){p=a[h];m=a[h+1];if(r<=q&&m<=r||q<=r&&r<=m)n=(r-q)/(m-q)*(p-n)+n,u.push(n);n=p;q=m}y=NaN;q=-Infinity;u.sort();n=u[0];h=1;for(m=u.length;h<m;++h){p=u[h];var v=Math.abs(p-n);v>q&&(n=(n+p)/2,xg(a,b,c,d,n,r)&&(y=n,q=v));n=p}isNaN(y)&&(y=e[f]);return t(g)?(g.push(y,r),g):[y,r]}function zg(a,b,c){var d=0,e,f;e=0;for(f=b.length;e<f;++e){var g=b[e],d=vg(a,d,g,c);if(0===e?!d:d)return!1;d=g}return!0}
function Ag(a,b,c,d){var e,f;e=0;for(f=c.length;e<f;++e){var g=c[e],h=vg(a,b,g,d);if(0===e?!h:h)for(var h=a,m=g,n=d;b<m-n;){var p;for(p=0;p<n;++p){var q=h[b+p];h[b+p]=h[m-n+p];h[m-n+p]=q}b+=n;m-=n}b=g}return b}function Bg(a,b,c,d){a=c-a;b=d-b;return a*a+b*b}function Cg(a,b,c,d){var e=c[0],f=c[1],g=c[4],h=c[5],m=c[12];c=c[13];var n=t(d)?d:[],p=0,q,r;q=0;for(r=a.length;q<r;q+=b){var u=a[q],y=a[q+1];n[p++]=e*u+g*y+m;n[p++]=f*u+h*y+c}t(d)&&n.length!=p&&(n.length=p);return n};function Dg(){lg.call(this);this.b="XY";this.a=2;this.j=null}H(Dg,lg);function Eg(a){if("XY"==a)return 2;if("XYZ"==a||"XYM"==a)return 3;if("XYZM"==a)return 4;throw Error("unsupported layout: "+a);}l=Dg.prototype;l.Va=kd;l.p=function(a){if(this.e!=this.c){var b=this.j,c=this.j.length,d=this.a,e=ke(this.extent);this.extent=ne(e,b,0,c,d);this.e=this.c}return we(this.extent,a)};l.nf=k("b");
l.Za=function(a){this.i!=this.c&&(Wb(this.g),this.f=0,this.i=this.c);if(0>a||0!==this.f&&a<=this.f)return this;var b=a.toString();if(this.g.hasOwnProperty(b))return this.g[b];var c=this.mb(a);if(c.j.length<this.j.length)return this.g[b]=c;this.f=a;return this};l.mb=function(){return this};function Fg(a,b,c){a.a=Eg(b);a.b=b;a.j=c}
function Gg(a,b,c,d){if(t(b))c=Eg(b);else{for(b=0;b<d;++b){if(0===c.length){a.b="XY";a.a=2;return}c=c[0]}c=c.length;if(2==c)b="XY";else if(3==c)b="XYZ";else if(4==c)b="XYZM";else throw Error("unsupported stride: "+c);}a.b=b;a.a=c}l.transform=function(a){null!==this.j&&(a(this.j,this.j,this.a),this.s())};function Hg(a,b,c){var d=a.j;return null===d?null:Cg(d,a.a,b,c)};function Ig(a,b,c,d,e){var f=a[b],g=a[b+1];for(b+=d;b<c;b+=d){var h=a[b],m=a[b+1],f=Bg(f,g,h,m);f>e&&(e=f);f=h;g=m}return e}function Jg(a,b,c,d,e){var f,g;f=0;for(g=c.length;f<g;++f){var h=c[f];e=Ig(a,b,h,d,e);b=h}return e}
function Kg(a,b,c,d,e,f,g,h,m,n,p){if(b==c)return n;var q;if(0===e){q=Bg(g,h,a[b],a[b+1]);if(q<n){for(p=0;p<d;++p)m[p]=a[b+p];m.length=d;return q}return n}for(var r=t(p)?p:[NaN,NaN],u=b+d;u<c;)if(mg(a,u-d,u,d,g,h,r),q=Bg(g,h,r[0],r[1]),q<n){n=q;for(p=0;p<d;++p)m[p]=r[p];m.length=d;u+=d}else u+=d*Math.max((Math.sqrt(q)-Math.sqrt(n))/e|0,1);if(f&&(mg(a,c-d,b,d,g,h,r),q=Bg(g,h,r[0],r[1]),q<n)){n=q;for(p=0;p<d;++p)m[p]=r[p];m.length=d}return n}
function Lg(a,b,c,d,e,f,g,h,m,n,p){p=t(p)?p:[NaN,NaN];var q,r;q=0;for(r=c.length;q<r;++q){var u=c[q];n=Kg(a,b,u,d,e,f,g,h,m,n,p);b=u}return n};function Mg(a,b,c,d,e,f,g){var h=(c-b)/d;if(3>h){for(;b<c;b+=d)f[g++]=a[b],f[g++]=a[b+1];return g}var m=Array(h);m[0]=1;m[h-1]=1;c=[b,c-d];for(var n=0,p;0<c.length;){var q=c.pop(),r=c.pop(),u=0,y=a[r],v=a[r+1],x=a[q],w=a[q+1];for(p=r+d;p<q;p+=d){var A;A=a[p];var C=a[p+1],E=y,F=v,L=x-E,X=w-F;if(0!==L||0!==X){var aa=((A-E)*L+(C-F)*X)/(L*L+X*X);1<aa?(E=x,F=w):0<aa&&(E+=L*aa,F+=X*aa)}A=Bg(A,C,E,F);A>u&&(n=p,u=A)}u>e&&(m[(n-b)/d]=1,r+d<n&&c.push(r,n),n+d<q&&c.push(n,q))}for(p=0;p<h;++p)m[p]&&(f[g++]=a[b+
p*d],f[g++]=a[b+p*d+1]);return g}
function Ng(a,b,c,d,e,f,g,h){var m,n;m=0;for(n=c.length;m<n;++m){var p=c[m];a:{var q=a,r=p,u=d,y=e,v=f;if(b!=r){var x=y*Math.round(q[b]/y),w=y*Math.round(q[b+1]/y);b+=u;v[g++]=x;v[g++]=w;var A=void 0,C=void 0;do if(A=y*Math.round(q[b]/y),C=y*Math.round(q[b+1]/y),b+=u,b==r){v[g++]=A;v[g++]=C;break a}while(A==x&&C==w);for(;b<r;){var E,F;E=y*Math.round(q[b]/y);F=y*Math.round(q[b+1]/y);b+=u;if(E!=A||F!=C){var L=A-x,X=C-w,aa=E-x,da=F-w;L*da==X*aa&&(0>L&&aa<L||L==aa||0<L&&aa>L)&&(0>X&&da<X||X==da||0<X&&
da>X)||(v[g++]=A,v[g++]=C,x=A,w=C);A=E;C=F}}v[g++]=A;v[g++]=C}}h.push(g);b=p}return g};function Og(a,b){Dg.call(this);this.d=this.h=-1;this.I(a,b)}H(Og,Dg);l=Og.prototype;l.H=function(){var a=new Og(null),b=this.j.slice();Fg(a,this.b,b);a.s();return a};l.ia=function(a,b,c,d){if(d<ie(this.p(),a,b))return d;this.d!=this.c&&(this.h=Math.sqrt(Ig(this.j,0,this.j.length,this.a,0)),this.d=this.c);return Kg(this.j,0,this.j.length,this.a,this.h,!0,a,b,c,d)};l.Dg=function(){return tg(this.j,0,this.j.length,this.a)};l.B=function(){return qg(this.j,0,this.j.length,this.a)};
l.mb=function(a){var b=[];b.length=Mg(this.j,0,this.j.length,this.a,a,b,0);a=new Og(null);Fg(a,"XY",b);a.s();return a};l.C=ea("LinearRing");l.I=function(a,b){null===a?Fg(this,"XY",null):(Gg(this,b,a,1),null===this.j&&(this.j=[]),this.j.length=og(this.j,0,a,this.a));this.s()};function Pg(a,b){Dg.call(this);this.d=[];this.k=-1;this.l=null;this.r=this.n=this.o=-1;this.h=null;this.I(a,b)}H(Pg,Dg);l=Pg.prototype;l.H=function(){var a=new Pg(null);Qg(a,this.b,this.j.slice(),this.d.slice());return a};l.ia=function(a,b,c,d){if(d<ie(this.p(),a,b))return d;this.n!=this.c&&(this.o=Math.sqrt(Jg(this.j,0,this.d,this.a,0)),this.n=this.c);return Lg(this.j,0,this.d,this.a,this.o,!0,a,b,c,d)};l.Va=function(a,b){return xg(Rg(this),0,this.d,this.a,a,b)};
l.Fg=function(){return wg(Rg(this),0,this.d,this.a)};l.B=function(){return rg(this.j,0,this.d,this.a)};function Sg(a){if(a.k!=a.c){var b=pe(a.p());a.l=yg(Rg(a),0,a.d,a.a,b,0);a.k=a.c}return a.l}l.rf=function(){var a=this.b,b=this.j,c=this.d,d=[],e=0,f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],m=new Og(null),n=m,e=b.slice(e,h);Fg(n,a,e);n.s();d.push(m);e=h}return d};function Rg(a){if(a.r!=a.c){var b=a.j;zg(b,a.d,a.a)?a.h=b:(a.h=b.slice(),a.h.length=Ag(a.h,0,a.d,a.a));a.r=a.c}return a.h}
l.mb=function(a){var b=[],c=[];b.length=Ng(this.j,0,this.d,this.a,Math.sqrt(a),b,0,c);a=new Pg(null);Qg(a,"XY",b,c);return a};l.C=ea("Polygon");l.I=function(a,b){if(null===a)Qg(this,"XY",null,this.d);else{Gg(this,b,a,2);null===this.j&&(this.j=[]);var c=pg(this.j,0,a,this.a,this.d);this.j.length=0===c.length?0:c[c.length-1];this.s()}};function Qg(a,b,c,d){Fg(a,b,c);a.d=d;a.s()};function Tg(a,b,c,d,e,f){Dc.call(this,a,b);this.vectorContext=c;this.frameState=d;this.context=e;this.glContext=f}H(Tg,Dc);function Ug(a){this.b=this.c=this.e=this.d=this.a=null;this.g=a}H(Ug,yc);function Vg(a){var b=a.e,c=a.c;a=Ha([b,[b[0],c[1]],c,[c[0],b[1]]],a.a.da,a.a);a[4]=a[0].slice();return new Pg([a])}Ug.prototype.v=function(){Wg(this,null)};Ug.prototype.f=function(a){var b=this.b,c=this.g;a.vectorContext.hc(Infinity,function(a){a.ra(c.d,c.b);a.lb(b,null)})};Ug.prototype.K=k("b");function Xg(a){null===a.a||(null===a.e||null===a.c)||a.a.N()}
function Wg(a,b){null!==a.d&&(M(a.d),a.d=null,a.a.N(),a.a=null);a.a=b;null!==a.a&&(a.d=K(b,"postcompose",a.f,!1,a),Xg(a))};function Yg(a,b){Dc.call(this,a);this.a=b}H(Yg,Dc);Yg.prototype.b=k("a");function Zg(a){jg.call(this);a=t(a)?a:{};this.a=new Ug(t(a.style)?a.style:null);this.b=null;this.d=t(a.condition)?a.condition:ld}H(Zg,jg);l=Zg.prototype;l.qb=function(a){var b=this.a;a=a.pixel;b.e=this.b;b.c=a;b.b=Vg(b);Xg(b)};l.K=function(){return this.a.K()};l.je=ga;l.rb=function(a){Wg(this.a,null);64<=this.g*this.g+this.f*this.f&&(this.je(a),N(this,new Yg("boxend",a.coordinate)))};
l.sb=function(a){if(Nc(a.a)&&this.d(a)){this.b=a.pixel;Wg(this.a,a.map);var b=this.a,c=this.b;b.e=this.b;b.c=c;b.b=Vg(b);Xg(b);N(this,new Yg("boxstart",a.coordinate));return!0}return!1};var $g={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",
darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",
ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",
lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",
moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",
seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var ah=/^#(?:[0-9a-f]{3}){1,2}$/i,bh=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,ch=/^(?:rgba)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|1|0\.\d{0,10})\)$/i;function dh(a){if(!z(a)){var b=a[0];b!=(b|0)&&(b=b+0.5|0);var c=a[1];c!=(c|0)&&(c=c+0.5|0);var d=a[2];d!=(d|0)&&(d=d+0.5|0);a="rgba("+b+","+c+","+d+","+a[3]+")"}return a}
var fh=function(){var a={},b=0;return function(c,d){var e;if(a.hasOwnProperty(c))e=a[c];else{if(1024<=b){e=0;for(var f in a)e++&0&&(delete a[f],--b)}e=eh(c);a[c]=e;++b}t(d)&&(d[0]=e[0],d[1]=e[1],d[2]=e[2],d[3]=e[3],e=d);return e}}();
function eh(a){var b=!1;$g.hasOwnProperty(a)&&(a=$g[a],b=!0);var c,d;if(b||ah.exec(a))return d=3==a.length-1?1:2,b=parseInt(a.substr(1+0*d,d),16),c=parseInt(a.substr(1+1*d,d),16),a=parseInt(a.substr(1+2*d,d),16),1==d&&(b=(b<<4)+b,c=(c<<4)+c,a=(a<<4)+a),b=[b,c,a,1];if(d=ch.exec(a))return b=Number(d[1]),c=Number(d[2]),a=Number(d[3]),d=Number(d[4]),b=[b,c,a,d],gh(b,b);if(d=bh.exec(a))return b=Number(d[1]),c=Number(d[2]),a=Number(d[3]),b=[b,c,a,1],gh(b,b);throw Error(a+" is not a valid color");}
function gh(a,b){var c=t(b)?b:[];c[0]=Mb(a[0]+0.5|0,0,255);c[1]=Mb(a[1]+0.5|0,0,255);c[2]=Mb(a[2]+0.5|0,0,255);c[3]=Mb(a[3],0,1);return c};function hh(a){a=t(a)?a:{};this.a=t(a.color)?a.color:null}hh.prototype.c=k("a");function ih(a){this.e=a.rotation;this.g=a.scale;this.h=a.we;this.T=a.ye}ih.prototype.l=k("e");ih.prototype.n=k("g");function jh(a){a=t(a)?a:{};this.d=t(a.fill)?a.fill:null;this.e=t(a.image)?a.image:null;this.b=t(a.stroke)?a.stroke:null;this.c=t(a.text)?a.text:null;this.a=a.zIndex}l=jh.prototype;l.dh=k("d");l.eh=k("e");l.fh=k("b");l.gh=k("c");l.Cf=k("a");function T(a){P.call(this);this.S=void 0;this.a="geometry";this.b=this.f=null;K(this,Cd(this.a),this.sc,!1,this);null!=a?a instanceof lg?this.fb(a):this.ba(a):this.fb(null)}H(T,P);T.prototype.K=function(){return this.t(this.a)};T.prototype.getGeometry=T.prototype.K;l=T.prototype;l.lf=k("S");l.kf=k("a");l.vg=k("f");l.wg=k("e");l.Mf=function(){this.s()};l.sc=function(){null!==this.b&&(M(this.b),this.b=null);var a=this.K();null!=a&&(this.b=K(a,"change",this.Mf,!1,this));this.s()};
l.fb=function(a){this.u(this.a,a)};T.prototype.setGeometry=T.prototype.fb;T.prototype.i=function(a){this.f=a;ma(a)||(a=ja(a)?a:[a],a=jd(a));this.e=a;this.s()};T.prototype.d=function(a){this.S=a};T.prototype.k=function(a){bd(this,Cd(this.a),this.sc,!1,this);this.a=a;K(this,Cd(this.a),this.sc,!1,this);this.sc()};var kh=jd([]);function lh(a,b){var c=a.e;t(c)||(c=kh);return c.call(a,b)}function mh(a){ma(a)||(a=ja(a)?a:[a],a=jd(a));return a};function nh(a){a=t(a)?a:{};this.f=this.d=this.g=this.c=this.b=this.a=null;this.e=t(a.style)?mh(a.style):void 0;t(a.features)?ja(a.features)?this.Ub(new Q(Na(a.features))):this.Ub(a.features):this.Ub(new Q);t(a.map)&&this.Qb(a.map)}l=nh.prototype;l.ae=function(a){this.a.push(a)};l.gf=k("a");l.be=function(){oh(this)};l.Kf=function(a){a=a.element;this.c[B(a).toString()]=K(a,"change",this.be,!1,this);oh(this)};l.Lf=function(a){a=B(a.element).toString();M(this.c[a]);delete this.c[a];oh(this)};
l.tg=function(a){if(null!==this.a&&t(this.e)){var b=a.frameState.A.resolution,c=a.vectorContext,d,e,f;this.a.forEach(function(a){f=this.e(a,b);if(null!=f)for(e=f.length,d=0;d<e;++d)c.Mc(a,f[d])},this)}};l.ad=function(a){this.a.remove(a)};function oh(a){null===a.g||a.g.N()}
l.Ub=function(a){null!==this.b&&(Ga(this.b,M),this.b=null);null!==this.c&&(Ga(Tb(this.c),M),this.c=null);this.a=a;if(null!==a){this.b=[K(a,"add",this.Kf,!1,this),K(a,"remove",this.Lf,!1,this)];this.c={};a=a.a;var b,c=a.length,d;for(b=0;b<c;++b)d=a[b],this.c[B(d).toString()]=K(d,"change",this.be,!1,this)}oh(this)};l.Qb=function(a){null!==this.d&&(M(this.d),this.d=null);oh(this);this.g=a;null!==a&&(this.d=K(a,"postcompose",this.tg,!1,this),a.N())};l.ug=function(a){this.f=a;this.e=mh(a);oh(this)};
l.rg=k("f");l.sg=k("e");function U(a){P.call(this);a=t(a)?a:{};this.a=null;this.d=gf;this.b=void 0;K(this,Cd("projection"),this.xg,!1,this);K(this,Cd("tracking"),this.yg,!1,this);t(a.projection)&&this.l(ef(a.projection));t(a.trackingOptions)&&this.n(a.trackingOptions);this.e(t(a.tracking)?a.tracking:!1)}H(U,P);l=U.prototype;l.v=function(){this.e(!1);U.D.v.call(this)};l.xg=function(){var a=this.i();null!=a&&(this.d=Oe(ef("EPSG:4326"),a),null===this.a||this.u("position",this.d(this.a)))};
l.yg=function(){if(vc.yd){var a=this.k();a&&!t(this.b)?this.b=s.navigator.geolocation.watchPosition(D(this.wh,this),D(this.xh,this),this.f()):!a&&t(this.b)&&(s.navigator.geolocation.clearWatch(this.b),this.b=void 0)}};
l.wh=function(a){a=a.coords;this.u("accuracy",a.accuracy);this.u("altitude",null===a.altitude?void 0:a.altitude);this.u("altitudeAccuracy",null===a.altitudeAccuracy?void 0:a.altitudeAccuracy);this.u("heading",null===a.heading?void 0:Ob(a.heading));null===this.a?this.a=[a.longitude,a.latitude]:(this.a[0]=a.longitude,this.a[1]=a.latitude);this.u("position",this.d(this.a));this.u("speed",null===a.speed?void 0:a.speed)};l.xh=function(a){a.type="error";N(this,a)};l.af=function(){return this.t("accuracy")};
U.prototype.getAccuracy=U.prototype.af;U.prototype.o=function(){return this.t("altitude")};U.prototype.getAltitude=U.prototype.o;U.prototype.r=function(){return this.t("altitudeAccuracy")};U.prototype.getAltitudeAccuracy=U.prototype.r;U.prototype.w=function(){return this.t("heading")};U.prototype.getHeading=U.prototype.w;U.prototype.G=function(){return this.t("position")};U.prototype.getPosition=U.prototype.G;U.prototype.i=function(){return this.t("projection")};U.prototype.getProjection=U.prototype.i;
U.prototype.q=function(){return this.t("speed")};U.prototype.getSpeed=U.prototype.q;U.prototype.k=function(){return this.t("tracking")};U.prototype.getTracking=U.prototype.k;U.prototype.f=function(){return this.t("trackingOptions")};U.prototype.getTrackingOptions=U.prototype.f;U.prototype.l=function(a){this.u("projection",a)};U.prototype.setProjection=U.prototype.l;U.prototype.e=function(a){this.u("tracking",a)};U.prototype.setTracking=U.prototype.e;
U.prototype.n=function(a){this.u("trackingOptions",a)};U.prototype.setTrackingOptions=U.prototype.n;function ph(a,b,c,d,e){Ae.call(this,a,b);this.h=c;this.c=new Image;null!==d&&(this.c.crossOrigin=d);this.g={};this.e=null;this.n=e}H(ph,Ae);ph.prototype.b=function(a){if(t(a)){var b=B(a);if(b in this.g)return this.g[b];a=Vb(this.g)?this.c:this.c.cloneNode(!1);return this.g[b]=a}return this.c};ph.prototype.d=k("h");ph.prototype.k=function(){this.state=3;Ga(this.e,M);this.e=null;N(this,"change")};
ph.prototype.l=function(){t(this.c.naturalWidth)||(this.c.naturalWidth=this.c.width,this.c.naturalHeight=this.c.height);this.state=this.c.naturalWidth&&this.c.naturalHeight?2:4;Ga(this.e,M);this.e=null;N(this,"change")};function qh(a,b,c){this.e=a;this.d=b;this.g=c;this.a=[];this.c=this.b=0}qh.prototype.update=function(a,b){this.a.push(a,b,ta())};function rh(a){var b=ta()-a.g,c=a.a.length-3;if(a.a[c+2]<b)return!1;for(var d=c-3;0<=d&&a.a[d+2]>b;)d-=3;if(0<=d){var b=a.a[c+2]-a.a[d+2],e=a.a[c]-a.a[d],c=a.a[c+1]-a.a[d+1];a.b=Math.atan2(c,e);a.c=Math.sqrt(e*e+c*c)/b;return a.c>a.d}return!1}
function sh(a,b){var c=a.e,d=a.c,e=a.d,f=Math.log(a.d/a.c)/a.e;return bg({source:b,duration:f,easing:function(a){return d*(Math.exp(c*a*f)-1)/(e-d)}})};function th(a){if("function"==typeof a.Ea)return a.Ea();if(z(a))return a.split("");if(ka(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Tb(a)}function uh(a,b,c){if("function"==typeof a.forEach)a.forEach(b,c);else if(ka(a)||z(a))Ga(a,b,c);else{var d;if("function"==typeof a.Da)d=a.Da();else if("function"!=typeof a.Ea)if(ka(a)||z(a)){d=[];for(var e=a.length,f=0;f<e;f++)d.push(f)}else d=Ub(a);else d=void 0;for(var e=th(a),f=e.length,g=0;g<f;g++)b.call(c,e[g],d&&d[g],a)}};function vh(a,b){this.c={};this.a=[];var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)wh(this,arguments[d],arguments[d+1])}else if(a){a instanceof vh?(c=a.Da(),d=a.Ea()):(c=Ub(a),d=Tb(a));for(var e=0;e<c.length;e++)wh(this,c[e],d[e])}}l=vh.prototype;l.F=0;l.rd=0;l.xa=k("F");l.Ea=function(){xh(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.c[this.a[b]]);return a};l.Da=function(){xh(this);return this.a.concat()};l.$=function(){return 0==this.F};
l.clear=function(){this.c={};this.rd=this.F=this.a.length=0};l.remove=function(a){return yh(this.c,a)?(delete this.c[a],this.F--,this.rd++,this.a.length>2*this.F&&xh(this),!0):!1};function xh(a){if(a.F!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];yh(a.c,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.F!=a.a.length){for(var e={},c=b=0;b<a.a.length;)d=a.a[b],yh(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}}function zh(a,b){return yh(a.c,b)?a.c[b]:void 0}
function wh(a,b,c){yh(a.c,b)||(a.F++,a.a.push(b),a.rd++);a.c[b]=c}l.H=function(){return new vh(this)};function yh(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Ah=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?\x3d[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function Bh(a){if(Ch){Ch=!1;var b=s.location;if(b){var c=b.href;if(c&&(c=(c=Bh(c)[3]||null)&&decodeURIComponent(c))&&c!=b.hostname)throw Ch=!0,Error();}}return a.match(Ah)}var Ch=sb;function Dh(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 Eh(a,b,c){if(ja(b))for(var d=0;d<b.length;d++)Eh(a,String(b[d]),c);else null!=b&&c.push("\x26",a,""===b?"":"\x3d",encodeURIComponent(String(b)))}function Fh(a,b){for(var c in b)Eh(c,b[c],a);return a};function Gh(a,b){var c;if(a instanceof Gh)this.$a=t(b)?b:a.$a,Hh(this,a.Ua),c=a.hb,Ih(this),this.hb=c,c=a.Ca,Ih(this),this.Ca=c,Jh(this,a.wb),c=a.za,Ih(this),this.za=c,Kh(this,a.a.H()),c=a.Wa,Ih(this),this.Wa=c;else if(a&&(c=Bh(String(a)))){this.$a=!!b;Hh(this,c[1]||"",!0);var d=c[2]||"";Ih(this);this.hb=d?decodeURIComponent(d):"";d=c[3]||"";Ih(this);this.Ca=d?decodeURIComponent(d):"";Jh(this,c[4]);d=c[5]||"";Ih(this);this.za=d?decodeURIComponent(d):"";Kh(this,c[6]||"",!0);c=c[7]||"";Ih(this);this.Wa=
c?decodeURIComponent(c):""}else this.$a=!!b,this.a=new Lh(null,0,this.$a)}l=Gh.prototype;l.Ua="";l.hb="";l.Ca="";l.wb=null;l.za="";l.Wa="";l.ng=!1;l.$a=!1;
l.toString=function(){var a=[],b=this.Ua;b&&a.push(Mh(b,Nh),":");if(b=this.Ca){a.push("//");var c=this.hb;c&&a.push(Mh(c,Nh),"@");a.push(encodeURIComponent(String(b)));b=this.wb;null!=b&&a.push(":",String(b))}if(b=this.za)this.Ca&&"/"!=b.charAt(0)&&a.push("/"),a.push(Mh(b,"/"==b.charAt(0)?Oh:Ph));(b=this.a.toString())&&a.push("?",b);(b=this.Wa)&&a.push("#",Mh(b,Qh));return a.join("")};l.H=function(){return new Gh(this)};
function Hh(a,b,c){Ih(a);a.Ua=c?b?decodeURIComponent(b):"":b;a.Ua&&(a.Ua=a.Ua.replace(/:$/,""))}function Jh(a,b){Ih(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.wb=b}else a.wb=null}function Kh(a,b,c){Ih(a);b instanceof Lh?(a.a=b,Rh(a.a,a.$a)):(c||(b=Mh(b,Sh)),a.a=new Lh(b,0,a.$a))}function Th(a,b,c){Ih(a);ja(c)||(c=[String(c)]);Uh(a.a,b,c)}function Ih(a){if(a.ng)throw Error("Tried to modify a read-only Uri");}
function Vh(a){return a instanceof Gh?a.H():new Gh(a,void 0)}
function Wh(a,b){a instanceof Gh||(a=Vh(a));b instanceof Gh||(b=Vh(b));var c=a,d=b,e=c.H(),f=!!d.Ua;f?Hh(e,d.Ua):f=!!d.hb;if(f){var g=d.hb;Ih(e);e.hb=g}else f=!!d.Ca;f?(g=d.Ca,Ih(e),e.Ca=g):f=null!=d.wb;g=d.za;if(f)Jh(e,d.wb);else if(f=!!d.za)if("/"!=g.charAt(0)&&(c.Ca&&!c.za?g="/"+g:(c=e.za.lastIndexOf("/"),-1!=c&&(g=e.za.substr(0,c+1)+g))),".."==g||"."==g)g="";else if(-1!=g.indexOf("./")||-1!=g.indexOf("/.")){for(var c=0==g.lastIndexOf("/",0),g=g.split("/"),h=[],m=0;m<g.length;){var n=g[m++];"."==
n?c&&m==g.length&&h.push(""):".."==n?((1<h.length||1==h.length&&""!=h[0])&&h.pop(),c&&m==g.length&&h.push("")):(h.push(n),c=!0)}g=h.join("/")}f?(c=g,Ih(e),e.za=c):f=""!==d.a.toString();f?Kh(e,d.a.toString()?decodeURIComponent(d.a.toString()):""):f=!!d.Wa;f&&(d=d.Wa,Ih(e),e.Wa=d);return e}function Mh(a,b){return z(a)?encodeURI(a).replace(b,Xh):null}function Xh(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var Nh=/[#\/\?@]/g,Ph=/[\#\?:]/g,Oh=/[\#\?]/g,Sh=/[\#\?@]/g,Qh=/#/g;
function Lh(a,b,c){this.a=a||null;this.c=!!c}function Yh(a){if(!a.P&&(a.P=new vh,a.F=0,a.a))for(var b=a.a.split("\x26"),c=0;c<b.length;c++){var d=b[c].indexOf("\x3d"),e=null,f=null;0<=d?(e=b[c].substring(0,d),f=b[c].substring(d+1)):e=b[c];e=decodeURIComponent(e.replace(/\+/g," "));e=Zh(a,e);a.add(e,f?decodeURIComponent(f.replace(/\+/g," ")):"")}}l=Lh.prototype;l.P=null;l.F=null;l.xa=function(){Yh(this);return this.F};
l.add=function(a,b){Yh(this);this.a=null;a=Zh(this,a);var c=zh(this.P,a);c||wh(this.P,a,c=[]);c.push(b);this.F++;return this};l.remove=function(a){Yh(this);a=Zh(this,a);return yh(this.P.c,a)?(this.a=null,this.F-=zh(this.P,a).length,this.P.remove(a)):!1};l.clear=function(){this.P=this.a=null;this.F=0};l.$=function(){Yh(this);return 0==this.F};l.Da=function(){Yh(this);for(var a=this.P.Ea(),b=this.P.Da(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
l.Ea=function(a){Yh(this);var b=[];if(a){var c=a;Yh(this);c=Zh(this,c);yh(this.P.c,c)&&(b=Ma(b,zh(this.P,Zh(this,a))))}else for(a=this.P.Ea(),c=0;c<a.length;c++)b=Ma(b,a[c]);return b};function Uh(a,b,c){a.remove(b);0<c.length&&(a.a=null,wh(a.P,Zh(a,b),Na(c)),a.F+=c.length)}
l.toString=function(){if(this.a)return this.a;if(!this.P)return"";for(var a=[],b=this.P.Da(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.Ea(d),f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="\x3d"+encodeURIComponent(String(d[f])));a.push(g)}return this.a=a.join("\x26")};l.H=function(){var a=new Lh;a.a=this.a;this.P&&(a.P=this.P.H(),a.F=this.F);return a};function Zh(a,b){var c=String(b);a.c&&(c=c.toLowerCase());return c}
function Rh(a,b){b&&!a.c&&(Yh(a),a.a=null,uh(a.P,function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),Uh(this,e,a))},a));a.c=b};function $h(a,b,c){yc.call(this);this.d=a;this.b=c;this.a=b||window;this.c=D(this.Lc,this)}H($h,yc);l=$h.prototype;l.S=null;l.qd=!1;l.start=function(){ai(this);this.qd=!1;var a=bi(this),b=ci(this);a&&!b&&this.a.mozRequestAnimationFrame?(this.S=K(this.a,"MozBeforePaint",this.c),this.a.mozRequestAnimationFrame(null),this.qd=!0):this.S=a&&b?a.call(this.a,this.c):this.a.setTimeout(od(this.c),20)};
function ai(a){if(null!=a.S){var b=bi(a),c=ci(a);b&&!c&&a.a.mozRequestAnimationFrame?M(a.S):b&&c?c.call(a.a,a.S):a.a.clearTimeout(a.S)}a.S=null}l.Lc=function(){this.qd&&this.S&&M(this.S);this.S=null;this.d.call(this.b,ta())};l.v=function(){ai(this);$h.D.v.call(this)};function bi(a){a=a.a;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null}
function ci(a){a=a.a;return a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};var di;
function ei(){var a=s.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.body.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=D(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.Cd;c.Cd=null;a()};return function(a){d.next={Cd: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){s.setTimeout(a,0)}};function fi(a){sd.call(this);this.Xb=a||window;this.rc=K(this.Xb,"resize",this.bg,!1,this);this.ab=gc(this.Xb||window)}H(fi,sd);l=fi.prototype;l.rc=null;l.Xb=null;l.ab=null;l.v=function(){fi.D.v.call(this);this.rc&&(M(this.rc),this.rc=null);this.ab=this.Xb=null};l.bg=function(){var a=gc(this.Xb||window);a==this.ab||a&&this.ab&&a.width==this.ab.width&&a.height==this.ab.height||(this.ab=a,N(this,"resize"))};function gi(a,b,c,d,e){if(!(I||sb&&Eb("525")))return!0;if(jb&&e)return hi(a);if(e&&!d||!c&&(17==b||18==b||jb&&91==b))return!1;if(sb&&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(I&&d&&b==a)return!1;switch(a){case 13:return!(I&&I&&9<=Gb);case 27:return!sb}return hi(a)}
function hi(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||sb&&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 ii(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function ji(a,b){sd.call(this);a&&ki(this,a,b)}H(ji,sd);l=ji.prototype;l.Ob=null;l.uc=null;l.Xc=null;l.vc=null;l.aa=-1;l.Pa=-1;l.Jc=!1;
var li={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},mi={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},ni=I||sb&&Eb("525"),oi=jb&&rb;
ji.prototype.a=function(a){sb&&(17==this.aa&&!a.Nb||18==this.aa&&!a.ea||jb&&91==this.aa&&!a.Uc)&&(this.Pa=this.aa=-1);-1==this.aa&&(a.Nb&&17!=a.Fa?this.aa=17:a.ea&&18!=a.Fa?this.aa=18:a.Uc&&91!=a.Fa&&(this.aa=91));ni&&!gi(a.Fa,this.aa,a.Ga,a.Nb,a.ea)?this.handleEvent(a):(this.Pa=rb?ii(a.Fa):a.Fa,oi&&(this.Jc=a.ea))};ji.prototype.c=function(a){this.Pa=this.aa=-1;this.Jc=a.ea};
ji.prototype.handleEvent=function(a){var b=a.O,c,d,e=b.altKey;I&&"keypress"==a.type?(c=this.Pa,d=13!=c&&27!=c?b.keyCode:0):sb&&"keypress"==a.type?(c=this.Pa,d=0<=b.charCode&&63232>b.charCode&&hi(c)?b.charCode:0):qb?(c=this.Pa,d=hi(c)?b.keyCode:0):(c=b.keyCode||this.Pa,d=b.charCode||0,oi&&(e=this.Jc),jb&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in li?f=li[c]:25==c&&a.Ga&&(f=9):g&&g in mi&&(f=mi[g]);a=f==this.aa;this.aa=f;b=new pi(f,d,a,b);b.ea=e;N(this,b)};
function ki(a,b,c){a.vc&&qi(a);a.Ob=b;a.uc=K(a.Ob,"keypress",a,c);a.Xc=K(a.Ob,"keydown",a.a,c,a);a.vc=K(a.Ob,"keyup",a.c,c,a)}function qi(a){a.uc&&(M(a.uc),M(a.Xc),M(a.vc),a.uc=null,a.Xc=null,a.vc=null);a.Ob=null;a.aa=-1;a.Pa=-1}ji.prototype.v=function(){ji.D.v.call(this);qi(this)};function pi(a,b,c,d){d&&Lc(this,d,void 0);this.type="key";this.Fa=a;this.Tc=b;this.a=c}H(pi,Kc);function ri(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}l=ri.prototype;l.H=function(){return new ri(this.top,this.right,this.bottom,this.left)};l.contains=function(a){return this&&a?a instanceof ri?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
l.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};l.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};l.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
l.scale=function(a,b){var c=la(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};function si(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}l=si.prototype;l.H=function(){return new si(this.left,this.top,this.width,this.height)};l.contains=function(a){return a instanceof si?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};
l.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};l.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};l.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
l.scale=function(a,b){var c=la(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};function ti(a,b){var c=cc(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function ui(a,b){return ti(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}function vi(a,b,c){var d,e=rb&&(jb||vb)&&Eb("1.9");b instanceof Pb?(d=b.x,b=b.y):(d=b,b=c);a.style.left=wi(d,e);a.style.top=wi(b,e)}
function xi(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}I&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
function yi(a){if(I&&!(I&&8<=Gb))return a.offsetParent;var b=cc(a),c=ui(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=ui(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 zi(a){var b,c=cc(a),d=ui(a,"position"),e=rb&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),f=new Pb(0,0),g;b=c?cc(c):document;(g=!I)||(g=I&&9<=Gb)||(ac(b),g=!0);g=g?b.documentElement:b.body;if(a==g)return f;if(a.getBoundingClientRect)b=xi(a),a=sc(ac(c)),f.x=b.left+a.x,f.y=b.top+a.y;else if(c.getBoxObjectFor&&!e)b=c.getBoxObjectFor(a),a=c.getBoxObjectFor(g),f.x=b.screenX-a.screenX,f.y=b.screenY-a.screenY;else{e=a;do{f.x+=e.offsetLeft;
f.y+=e.offsetTop;e!=a&&(f.x+=e.clientLeft||0,f.y+=e.clientTop||0);if(sb&&"fixed"==ui(e,"position")){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}e=e.offsetParent}while(e&&e!=a);if(qb||sb&&"absolute"==d)f.y-=c.body.offsetTop;for(e=a;(e=yi(e))&&e!=c.body&&e!=g;)f.x-=e.scrollLeft,qb&&"TR"==e.tagName||(f.y-=e.scrollTop)}return f}function Ai(a,b){var c=Bi(a),d=Bi(b);return new Pb(c.x-d.x,c.y-d.y)}
function Bi(a){if(1==a.nodeType){var b;if(a.getBoundingClientRect)b=xi(a),b=new Pb(b.left,b.top);else{b=sc(ac(a));var c=zi(a);b=new Pb(c.x-b.x,c.y-b.y)}if(rb&&!Eb(12)){var d;I?d="-ms-transform":sb?d="-webkit-transform":qb?d="-o-transform":rb&&(d="-moz-transform");var e;d&&(e=ui(a,d));e||(e=ui(a,"transform"));a=e?(a=e.match(Ci))?new Pb(parseFloat(a[1]),parseFloat(a[2])):new Pb(0,0):new Pb(0,0);a=new Pb(b.x+a.x,b.y+a.y)}else a=b;return a}d=ma(a.df);e=a;a.targetTouches?e=a.targetTouches[0]:d&&a.O.targetTouches&&
(e=a.O.targetTouches[0]);return new Pb(e.clientX,e.clientY)}function wi(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Di(a){var b=Ei;if("none"!=ui(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a}
function Ei(a){var b=a.offsetWidth,c=a.offsetHeight,d=sb&&!b&&!c;return t(b)&&!d||!a.getBoundingClientRect?new Qb(b,c):(a=xi(a),new Qb(a.right-a.left,a.bottom-a.top))}function Fi(a,b){var c=a.style;"opacity"in c?c.opacity=b:"MozOpacity"in c?c.MozOpacity=b:"filter"in c&&(c.filter=""===b?"":"alpha(opacity\x3d"+100*b+")")}function Gi(a,b){a.style.display=b?"":"none"}function Hi(a){return"rtl"==ui(a,"direction")}
function Ii(a){var b=cc(a),c=I&&a.currentStyle,d;if(d=c)ac(b),d="auto"!=c.width&&"auto"!=c.height&&!c.boxSizing;if(d)return b=Ji(a,c.width,"width","pixelWidth"),a=Ji(a,c.height,"height","pixelHeight"),new Qb(b,a);c=new Qb(a.offsetWidth,a.offsetHeight);b=Ki(a,"padding");a=Li(a);return new Qb(c.width-a.left-b.left-b.right-a.right,c.height-a.top-b.top-b.bottom-a.bottom)}
function Ji(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 Mi(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?Ji(a,c,"left","pixelLeft"):0}
function Ki(a,b){if(I){var c=Mi(a,b+"Left"),d=Mi(a,b+"Right"),e=Mi(a,b+"Top"),f=Mi(a,b+"Bottom");return new ri(e,d,f,c)}c=ti(a,b+"Left");d=ti(a,b+"Right");e=ti(a,b+"Top");f=ti(a,b+"Bottom");return new ri(parseFloat(e),parseFloat(d),parseFloat(f),parseFloat(c))}var Ni={thin:2,medium:4,thick:6};function Oi(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 Ni?Ni[c]:Ji(a,c,"left","pixelLeft")}
function Li(a){if(I){var b=Oi(a,"borderLeft"),c=Oi(a,"borderRight"),d=Oi(a,"borderTop");a=Oi(a,"borderBottom");return new ri(d,c,a,b)}b=ti(a,"borderLeftWidth");c=ti(a,"borderRightWidth");d=ti(a,"borderTopWidth");a=ti(a,"borderBottomWidth");return new ri(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}var Ci=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function Pi(a,b){sd.call(this);this.a=a;var c=na(this.a)&&1==this.a.nodeType?this.a:this.a?this.a.body:null;this.e=!!c&&Hi(c);this.c=K(this.a,rb?"DOMMouseScroll":"mousewheel",this,b)}H(Pi,sd);
Pi.prototype.handleEvent=function(a){var b=0,c=0,d=0;a=a.O;if("mousewheel"==a.type){c=1;if(I||sb&&(kb||Eb("532.0")))c=40;d=Qi(-a.wheelDelta,c);t(a.wheelDeltaX)?(b=Qi(-a.wheelDeltaX,c),c=Qi(-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;la(this.b)&&(b=Mb(b,-this.b,this.b));la(this.d)&&(c=Mb(c,-this.d,this.d));this.e&&(b=-b);b=new Ri(d,a,b,c);N(this,b)};function Qi(a,b){return sb&&(jb||lb)&&0!=a%b?a:a/b}
Pi.prototype.v=function(){Pi.D.v.call(this);M(this.c);this.c=null};function Ri(a,b,c,d){b&&Lc(this,b,void 0);this.type="mousewheel";this.d=a;this.b=c;this.a=d}H(Ri,Kc);function Si(a){P.call(this);this.element=t(a.element)?a.element:null;this.o=t(a.target)?dc(a.target):null;this.a=null;this.f=[]}H(Si,P);Si.prototype.v=function(){pc(this.element);Si.D.v.call(this)};Si.prototype.R=k("a");Si.prototype.e=ga;Si.prototype.setMap=function(a){null===this.a||pc(this.element);0!=this.f.length&&(Ga(this.f,M),this.f.length=0);this.a=a;null!==this.a&&((null===this.o?a.w:this.o).appendChild(this.element),this.e!==ga&&this.f.push(K(a,"postrender",this.e,!1,this)),a.ma())};function Ti(a){a=t(a)?a:{};this.k=kc("UL");var b=hc("DIV",{"class":(t(a.className)?a.className:"ol-attribution")+" ol-unselectable"},this.k);Si.call(this,{element:b,target:a.target});this.i=!0;this.d={};this.b={}}H(Ti,Si);
Ti.prototype.e=function(a){a=a.b;if(null===a)this.i&&(Gi(this.element,!1),this.i=!1);else{var b,c,d,e,f,g,h,m,n,p=a.xc,q=Yb(a.attributions),r={};b=0;for(c=p.length;b<c;b++)if(d=p[b].a,n=B(d).toString(),m=d.d,null!==m)for(d=0,e=m.length;d<e;d++)if(g=m[d],h=B(g).toString(),!(h in q)){f=a.Wb[n];var u;if(u=t(f))a:if(null===g.a)u=!0;else{var y=u=void 0,v=void 0,x=void 0;for(x in f)if(x in g.a)for(v=f[x],u=0,y=g.a[x].length;u<y;++u)if(g.a[x][u].a<=v.d&&g.a[x][u].d>=v.a&&g.a[x][u].b<=v.c&&g.a[x][u].c>=v.b){u=
!0;break a}u=!1}u?(h in r&&delete r[h],q[h]=g):r[h]=g}b=[q,r];a=b[0];b=b[1];for(var w in this.d)w in a?(this.b[w]||(Gi(this.d[w],!0),this.b[w]=!0),delete a[w]):w in b?(this.b[w]&&(Gi(this.d[w],!1),delete this.b[w]),delete b[w]):(pc(this.d[w]),delete this.d[w],delete this.b[w]);for(w in a)c=kc("LI"),c.innerHTML=a[w].c,this.k.appendChild(c),this.d[w]=c,this.b[w]=!0;for(w in b)c=kc("LI"),c.innerHTML=b[w].c,Gi(c,!1),this.k.appendChild(c),this.d[w]=c;w=!Vb(this.b);this.i!=w&&(Gi(this.element,w),this.i=
w)}};function Ui(a){a=t(a)?a:{};this.d=kc("UL");var b=hc("DIV",{"class":(t(a.className)?a.className:"ol-logo")+" ol-unselectable"},this.d);Si.call(this,{element:b,target:a.target});this.b=!0;this.i={}}H(Ui,Si);
Ui.prototype.e=function(a){a=a.b;if(null===a)this.b&&(Gi(this.element,!1),this.b=!1);else{var b;a=a.Zc;var c=this.i;for(b in c)b in a||(pc(c[b]),delete c[b]);for(var d in a)if(!(d in c)){b=new Image;b.src=d;var e=a[d];""===e?e=b:(e=hc("A",{href:e,target:"_blank"}),e.appendChild(b));b=hc("LI",void 0,e);this.d.appendChild(b);c[d]=b}d=!Vb(a);this.b!=d&&(Gi(this.element,d),this.b=d)}};function Wi(a){a=t(a)?a:{};var b=t(a.className)?a.className:"ol-zoom",c=t(a.delta)?a.delta:1,d=t(a.zoomOutLabel)?a.zoomOutLabel:"\u2212",e=hc("A",{href:"#zoomIn","class":b+"-in"},t(a.zoomInLabel)?a.zoomInLabel:"+");K(e,["touchend","click"],sa(Wi.prototype.d,c),!1,this);d=hc("A",{href:"#zoomOut","class":b+"-out"},d);K(d,["touchend","click"],sa(Wi.prototype.d,-c),!1,this);b=hc("DIV",b+" ol-unselectable",e,d);Si.call(this,{element:b,target:a.target});this.b=t(a.duration)?a.duration:250}H(Wi,Si);
Wi.prototype.d=function(a,b){b.J();var c=this.a,d=c.a().L(),e=d.d();t(e)&&(0<this.b&&c.ha(dg({resolution:e,duration:this.b,easing:Yf})),c=d.a(e,a),d.e(c))};function Xi(a){a=t(a)?a:{};var b=new Q;(t(a.attribution)?a.attribution:1)&&b.push(new Ti(t(a.attributionOptions)?a.attributionOptions:void 0));(t(a.logo)?a.logo:1)&&b.push(new Ui(t(a.logoOptions)?a.logoOptions:void 0));(t(a.zoom)?a.zoom:1)&&b.push(new Wi(t(a.zoomOptions)?a.zoomOptions:void 0));return b};function Yi(a){a=t(a)?a:{};this.a=t(a.delta)?a.delta:1;eg.call(this);this.b=t(a.duration)?a.duration:250}H(Yi,eg);Yi.prototype.oa=function(a){var b=!1,c=a.a;if(a.type==qf){var b=a.map,d=a.coordinate,c=c.Ga?-this.a:this.a,e=b.a().L();hg(b,e,c,d,this.b);a.J();b=!0}return!b};function Zi(a){jg.call(this);a=t(a)?a:{};this.d=t(a.condition)?a.condition:Df;this.a=a.kinetic;this.b=null}H(Zi,jg);Zi.prototype.qb=function(a){this.a&&this.a.update(a.a.clientX,a.a.clientY);a=a.map;var b=a.a(),c=Xf(b),d=[-c.resolution*this.g,c.resolution*this.f];Nd(d,c.rotation);Id(d,this.w);d=b.f.center(d);a.N();b.na(d)};
Zi.prototype.rb=function(a){a=a.map;var b=a.a();Rf(b,-1);if(this.a&&rh(this.a)){var b=b.L(),c=Xf(b),d=(this.a.d-this.a.c)/this.a.e,e=this.a.b;this.b=sh(this.a,c.center);a.ha(this.b);c=a.e(c.center);d=a.da([c[0]-d*Math.cos(e),c[1]-d*Math.sin(e)]);d=b.f.center(d);b.na(d)}a.N()};Zi.prototype.sb=function(a){var b=a.a;if(Nc(b)&&this.d(a)){if(this.a){var c=this.a;c.a.length=0;c.b=0;c.c=0;this.a.update(b.clientX,b.clientY)}a=a.map;Rf(a.a(),1);a.N();return!0}return!1};
Zi.prototype.Ud=function(a){var b=a.map,c=b.a();null!==this.b&&La(b.o,this.b)&&(b.N(),c.na(a.b.A.center),this.b=null)};function $i(a){a=t(a)?a:{};jg.call(this);this.b=t(a.condition)?a.condition:Bf;this.a=void 0}H($i,jg);$i.prototype.qb=function(a){var b=a.map,c=b.f();a=a.pixel;c=Math.atan2(c[1]/2-a[1],a[0]-c[0]/2);if(t(this.a)){a=c-this.a;var d=b.a().L(),e=Xf(d);b.N();fg(b,d,e.rotation-a)}this.a=c};$i.prototype.rb=function(a){a=a.map;var b=a.a();Rf(b,-1);var b=b.L(),c=Xf(b).rotation,c=b.constrainRotation(c,0);fg(a,b,c,void 0,250)};
$i.prototype.sb=function(a){return Nc(a.a)&&this.b(a)?(a=a.map,Rf(a.a(),1),a.N(),this.a=void 0,!0):!1};function aj(a){a=t(a)?a:{};this.a=t(a.color)?a.color:null;this.b=a.lineCap;this.d=t(a.lineDash)?a.lineDash:null;this.e=a.lineJoin;this.g=a.miterLimit;this.c=a.width}l=aj.prototype;l.$g=k("a");l.of=k("b");l.ah=k("d");l.pf=k("e");l.tf=k("g");l.bh=k("c");function bj(a){a=t(a)?a:{};Zg.call(this,{condition:t(a.condition)?a.condition:Ef,style:t(a.style)?a.style:new jh({stroke:new aj({color:[0,0,255,1]})})})}H(bj,Zg);bj.prototype.je=function(){var a=this.l,b=a.a().L(),c=this.K().p(),d=pe(c),c=Uf(c,a.f()),c=b.a(c,0,void 0);ig(a,b,c,d,200)};function cj(a){eg.call(this);a=t(a)?a:{};this.a=t(a.condition)?a.condition:pd(Df,Ff);this.b=t(a.pixelDelta)?a.pixelDelta:128}H(cj,eg);cj.prototype.oa=function(a){var b=!1;if("key"==a.type){var c=a.a.Fa;if(this.a(a)&&(40==c||37==c||39==c||38==c)){var d=a.map,b=d.a(),e=Xf(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];Nd(c,e.rotation);e=b.b();t(e)&&(t(100)&&d.ha(bg({source:e,duration:100,easing:$f})),d=b.f.center([e[0]+c[0],e[1]+c[1]]),b.na(d));a.J();b=!0}}return!b};function dj(a){eg.call(this);a=t(a)?a:{};this.b=t(a.condition)?a.condition:Ff;this.a=t(a.delta)?a.delta:1;this.d=t(a.duration)?a.duration:100}H(dj,eg);dj.prototype.oa=function(a){var b=!1;if("key"==a.type){var c=a.a.Tc;if(this.b(a)&&(43==c||45==c)){b=a.map;c=43==c?this.a:-this.a;b.N();var d=b.a().L();hg(b,d,c,void 0,this.d);a.J();b=!0}}return!b};function ej(a){a=t(a)?a:{};eg.call(this);this.a=0;this.f=t(a.duration)?a.duration:250;this.d=null;this.e=this.b=void 0}H(ej,eg);ej.prototype.oa=function(a){var b=!1;if("mousewheel"==a.type){var b=a.map,c=a.a;this.d=a.coordinate;this.a+=c.a/3;t(this.b)||(this.b=ta());c=Math.max(80-(ta()-this.b),0);s.clearTimeout(this.e);this.e=s.setTimeout(D(this.g,this,b),c);a.J();b=!0}return!b};
ej.prototype.g=function(a){var b=Mb(this.a,-1,1),c=a.a().L();a.N();hg(a,c,-b,this.d,this.f);this.a=0;this.d=null;this.e=this.b=void 0};function fj(){eg.call(this);this.d=!1;this.k={};this.targetTouches=[]}H(fj,eg);function gj(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]}fj.prototype.f=ga;fj.prototype.g=kd;fj.prototype.h=kd;
fj.prototype.oa=function(a){var b=a.map.a(),c=a.type;if(c===wf||c===yf||c===zf)c=a.originalEvent,t(c.targetTouches)?this.targetTouches=c.targetTouches:t(c.pointerId)&&(a.type==zf?delete this.k[c.pointerId]:this.k[c.pointerId]=c,this.targetTouches=Tb(this.k));this.d&&(a.type==yf?this.f(a):a.type==zf&&((this.d=this.g(a))||Rf(b,-1)));a.type==wf&&(a=this.h(a),!this.d&&a&&Rf(b,1),this.d=a);return!0};function hj(a){fj.call(this);this.a=(t(a)?a:{}).kinetic;this.b=this.e=null;this.i=!1}H(hj,fj);hj.prototype.f=function(a){var b=gj(this.targetTouches);if(null!==this.b){this.a&&this.a.update(b[0],b[1]);var c=this.b[0]-b[0],d=b[1]-this.b[1];a=a.map;var e=a.a().L(),f=Xf(e),d=c=[c,d],g=f.resolution;d[0]*=g;d[1]*=g;Nd(c,f.rotation);Id(c,f.center);c=e.f.center(c);a.N();e.na(c)}this.b=b};
hj.prototype.g=function(a){a=a.map;var b=a.a().L();if(0===this.targetTouches.length){if(!this.i&&this.a&&rh(this.a)){var c=(this.a.d-this.a.c)/this.a.e,d=this.a.b,e=b.b();this.e=sh(this.a,e);a.ha(this.e);e=a.e(e);c=a.da([e[0]-c*Math.cos(d),e[1]-c*Math.sin(d)]);c=b.f.center(c);b.na(c)}a.N();return!1}this.b=null;return!0};
hj.prototype.h=function(a){if(0<this.targetTouches.length){var b=a.map,c=b.a().L();this.b=null;b.N();null!==this.e&&La(b.o,this.e)&&(c.na(a.b.A.center),this.e=null);this.a&&(a=this.a,a.a.length=0,a.b=0,a.c=0);this.i=1<this.targetTouches.length;return!0}return!1};function ij(a){fj.call(this);a=t(a)?a:{};this.b=null;this.e=void 0;this.a=!1;this.i=0;this.n=t(a.threshold)?a.threshold:0.3}H(ij,fj);ij.prototype.f=function(a){var b=0,c=this.targetTouches[0],d=this.targetTouches[1],c=Math.atan2(d.clientY-c.clientY,d.clientX-c.clientX);t(this.e)&&(b=c-this.e,this.i+=b,!this.a&&Math.abs(this.i)>this.n&&(this.a=!0));this.e=c;a=a.map;c=Bi(a.b);d=gj(this.targetTouches);d[0]-=c.x;d[1]-=c.y;this.b=a.da(d);this.a&&(c=a.a().L(),d=Xf(c),a.N(),fg(a,c,d.rotation+b,this.b))};
ij.prototype.g=function(a){if(2>this.targetTouches.length){a=a.map;var b=a.a().L(),c=Xf(b);if(this.a){var c=c.rotation,d=this.b,c=b.constrainRotation(c,0);fg(a,b,c,d,250)}return!1}return!0};ij.prototype.h=function(a){return 2<=this.targetTouches.length?(a=a.map,this.b=null,this.e=void 0,this.a=!1,this.i=0,a.N(),!0):!1};function jj(a){a=t(a)?a:{};fj.call(this);this.b=null;this.i=t(a.duration)?a.duration:400;this.a=void 0;this.e=1}H(jj,fj);jj.prototype.f=function(a){var b=1,c=this.targetTouches[0],d=this.targetTouches[1],e=c.clientX-d.clientX,c=c.clientY-d.clientY,e=Math.sqrt(e*e+c*c);t(this.a)&&(b=this.a/e);this.a=e;1!=b&&(this.e=b);a=a.map;var e=a.a().L(),c=Xf(e),d=Bi(a.b),f=gj(this.targetTouches);f[0]-=d.x;f[1]-=d.y;this.b=a.da(f);a.N();ig(a,e,c.resolution*b,this.b)};
jj.prototype.g=function(a){if(2>this.targetTouches.length){a=a.map;var b=a.a().L(),c=Xf(b).resolution,d=this.b,e=this.i,c=b.a(c,0,this.e-1);ig(a,b,c,d,e);return!1}return!0};jj.prototype.h=function(a){return 2<=this.targetTouches.length?(a=a.map,this.b=null,this.a=void 0,this.e=1,a.N(),!0):!1};function kj(a){a=t(a)?a:{};var b=new Q,c=new qh(-0.005,0.05,100);(t(a.altShiftDragRotate)?a.altShiftDragRotate:1)&&b.push(new $i);(t(a.doubleClickZoom)?a.doubleClickZoom:1)&&b.push(new Yi({delta:a.zoomDelta,duration:a.zoomDuration}));(t(a.touchPan)?a.touchPan:1)&&b.push(new hj({kinetic:c}));(t(a.touchRotate)?a.touchRotate:1)&&b.push(new ij);(t(a.touchZoom)?a.touchZoom:1)&&b.push(new jj({duration:a.zoomDuration}));(t(a.dragPan)?a.dragPan:1)&&b.push(new Zi({kinetic:c}));if(t(a.keyboard)?a.keyboard:
1)b.push(new cj),b.push(new dj({delta:a.zoomDelta,duration:a.zoomDuration}));(t(a.mouseWheelZoom)?a.mouseWheelZoom:1)&&b.push(new ej({duration:a.zoomDuration}));(t(a.shiftDragZoom)?a.shiftDragZoom:1)&&b.push(new bj);return b};function lj(a){var b=t(a)?a:{};a=Yb(b);delete a.layers;b=b.layers;R.call(this,a);this.a=null;K(this,Cd("layers"),this.Rf,!1,this);t(b)?ja(b)&&(b=new Q(Na(b))):b=new Q;this.d(b)}H(lj,R);l=lj.prototype;l.Vd=function(){this.b()&&this.s()};
l.Rf=function(){null!==this.a&&(Ga(Tb(this.a),M),this.a=null);var a=this.eb();if(null!=a){this.a={add:K(a,"add",this.Qf,!1,this),remove:K(a,"remove",this.Sf,!1,this)};var a=a.a,b,c,d;b=0;for(c=a.length;b<c;b++)d=a[b],this.a[B(d).toString()]=K(d,["propertychange","change"],this.Vd,!1,this)}this.s()};l.Qf=function(a){a=a.element;this.a[B(a).toString()]=K(a,["propertychange","change"],this.Vd,!1,this);this.s()};l.Sf=function(a){a=B(a.element).toString();M(this.a[a]);delete this.a[a];this.s()};l.eb=function(){return this.t("layers")};
lj.prototype.getLayers=lj.prototype.eb;lj.prototype.d=function(a){this.u("layers",a)};lj.prototype.setLayers=lj.prototype.d;lj.prototype.Rc=function(a){var b=t(a)?a:[];this.eb().forEach(function(a){a.Rc(b)});return b};
lj.prototype.Qc=function(a){var b=t(a)?a:{layers:[],Y:[]},c=b.layers.length;this.eb().forEach(function(a){a.Qc(b)});a=kf(this);var d,e;for(d=b.Y.length;c<d;c++)e=b.Y[c],e.brightness=Mb(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);return b};lj.prototype.Sc=ea(1);function mj(a){Me.call(this,{code:a,units:"m",extent:nj,global:!0})}H(mj,Me);var oj=6378137*Math.PI,nj=[-oj,-oj,oj,oj],Ze=Ha(["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913","urn:ogc:def:crs:EPSG:6.18:3:3857"],function(a){return new mj(a)});function $e(a,b,c){var d=a.length;c=1<c?c:2;t(b)||(b=2<c?a.slice():Array(d));for(var e=0;e<d;e+=c)b[e]=6378137*Math.PI*a[e]/180,b[e+1]=6378137*Math.log(Math.tan(Math.PI*(a[e+1]+90)/360));return b}
function af(a,b,c){var d=a.length;c=1<c?c:2;t(b)||(b=2<c?a.slice():Array(d));for(var e=0;e<d;e+=c)b[e]=180*a[e]/(6378137*Math.PI),b[e+1]=360*Math.atan(Math.exp(a[e+1]/6378137))/Math.PI-90;return b}mj.prototype.b=function(a,b){return a/((Math.exp(b[1]/6378137)+Math.exp(-(b[1]/6378137)))/2)};function pj(a,b){Me.call(this,{code:a,units:"degrees",extent:qj,axisOrientation:b,global:!0})}H(pj,Me);var qj=[-180,-90,180,90],bf=[new pj("CRS:84"),new pj("EPSG:4326","neu"),new pj("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new pj("urn:ogc:def:crs:OGC:1.3:CRS84"),new pj("urn:ogc:def:crs:OGC:2:84"),new pj("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new pj("urn:x-ogc:def:crs:EPSG:4326","neu")];pj.prototype.b=function(a){return a};function rj(){Ue(Ze);Ue(bf);Ye()};function sj(a,b,c,d,e){sd.call(this);this.f=e;this.i=a;this.b=c;this.d=b;this.state=d}H(sj,sd);sj.prototype.p=k("i");function tj(a,b,c,d,e,f){sj.call(this,a,b,c,0,d);this.h=e;this.a=new Image;null!==f&&(this.a.crossOrigin=f);this.g={};this.c=null;this.state=0}H(tj,sj);tj.prototype.e=function(a){if(t(a)){var b=B(a);if(b in this.g)return this.g[b];a=Vb(this.g)?this.a:this.a.cloneNode(!1);return this.g[b]=a}return this.a};tj.prototype.k=function(){this.state=3;Ga(this.c,M);this.c=null;N(this,"change")};tj.prototype.l=function(){this.state=2;Ga(this.c,M);this.c=null;N(this,"change")};
function uj(a){0==a.state&&(a.state=1,a.c=[ad(a.a,"error",a.k,!1,a),ad(a.a,"load",a.l,!1,a)],a.a.src=a.h)};function vj(a){this.minZoom=t(a.minZoom)?a.minZoom:0;this.a=a.resolutions;this.maxZoom=this.a.length-1;this.d=t(a.origin)?a.origin:null;this.g=null;t(a.origins)&&(this.g=a.origins);this.b=null;t(a.tileSizes)&&(this.b=a.tileSizes);this.e=t(a.tileSize)?a.tileSize:null===this.b?256:void 0}var wj=new Wa(0,0,0);l=vj.prototype;l.nc=function(a,b,c,d,e){e=xj(this,a,e);for(a=a.a-1;a>=this.minZoom;){if(b.call(c,a,yj(this,e,a,d)))return!0;--a}return!1};l.sf=k("minZoom");
l.Sb=function(a){return null===this.d?this.g[a]:this.d};l.Ya=k("a");l.qc=function(a,b,c){return a.a<this.maxZoom?(c=xj(this,a,c),yj(this,c,a.a+1,b)):null};function zj(a,b,c,d){Aj(a,b[0],b[1],c,!1,wj);var e=wj.x,f=wj.y;Aj(a,b[2],b[3],c,!0,wj);return bb(e,wj.x,f,wj.y,d)}function yj(a,b,c,d){return zj(a,b,a.a[c],d)}function Bj(a,b){var c=a.Sb(b.a),d=a.a[b.a],e=a.ka(b.a);return[c[0]+(b.x+0.5)*e*d,c[1]+(b.y+0.5)*e*d]}
function xj(a,b,c){var d=a.Sb(b.a),e=a.a[b.a];a=a.ka(b.a);var f=d[0]+b.x*a*e;b=d[1]+b.y*a*e;return fe(f,b,f+a*e,b+a*e,c)}function Aj(a,b,c,d,e,f){var g=If(a.a,d,0),h=d/a.a[g],m=a.Sb(g);a=a.ka(g);b=h*(b-m[0])/(d*a);c=h*(c-m[1])/(d*a);e?(b=Math.ceil(b)-1,c=Math.ceil(c)-1):(b=Math.floor(b),c=Math.floor(c));return Xa(g,b,c,f)}l.ka=function(a){return t(this.e)?this.e:this.b[a]};function Cj(a){hf.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection});this.G=t(a.opaque)?a.opaque:!1;this.tileGrid=t(a.tileGrid)?a.tileGrid:null}H(Cj,hf);l=Cj.prototype;l.ed=kd;l.Oc=function(a,b,c,d){var e=!0,f,g,h,m;for(h=d.a;h<=d.d;++h)for(m=d.b;m<=d.c;++m)g=this.Oa(c,h,m),a[c]&&a[c][g]||(f=b(c,h,m),null===f?e=!1:(a[c]||(a[c]={}),a[c][g]=f));return e};l.pc=ea(0);l.Oa=Za;l.Ya=function(){return this.tileGrid.Ya()};l.zf=k("tileGrid");
function Dj(a,b){var c;if(null===a.tileGrid){if(c=b.g,null===c){c=b.p();for(var d=null===c?360*Ke.degrees/b.c():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 vj({origin:null===c?[0,0]:oe(c),resolutions:f,tileSize:e});b.g=c}}else c=a.tileGrid;return c}l.Mb=function(a,b,c){return Dj(this,c).ka(a)};l.Ae=ga;function Ej(a,b){yc.call(this);this.d=a;this.a=b}H(Ej,yc);Ej.prototype.g=ga;Ej.prototype.l=function(a){2===a.target.state&&Fj(this)};function Fj(a){var b=a.a;b.b()&&1==b.Sc()&&a.d.g.ma()}function Gj(a,b){b.ed()&&a.Sa.push(sa(function(a,b,e){b=B(a).toString();a.ee(e.Wb[b])},b))}function Hj(a,b){if(null!=b){var c,d,e;d=0;for(e=b.length;d<e;++d)c=b[d],a[B(c).toString()]=c}}function Ij(a,b){var c=b.r;t(c)&&(a.Zc[c]="")}
function Jj(a,b,c,d){b=B(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.b<a.b&&(a.b=d.b),d.c>a.c&&(a.c=d.c)):a[b][c]=d:(a[b]={},a[b][c]=d)}function Kj(a,b,c,d){return function(e,f,g){e=b.nb(e,f,g,c,d);return a(e)?e:null}}function Lj(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 Mj(a,b,c,d,e,f,g,h,m,n){var p=B(b).toString();p in a.zb||(a.zb[p]={});var q=a.zb[p];a=a.Lh;var r=c.minZoom,u,y,v,x,w,A;for(A=g;A>=r;--A)for(y=yj(c,f,A),v=c.a[A],x=y.a;x<=y.d;++x)for(w=y.b;w<=y.c;++w)g-A<=h?(u=b.nb(A,x,w,d,e),0==u.state&&(q[u.a.toString()]=!0,u.d()in a.b||Ee(a,[u,p,Bj(c,u.a),v])),t(m)&&m.call(n,u)):b.Ae(A,x,w)};function Nj(a){a=t(a)?a:{};this.c=t(a.anchor)?a.anchor:[0.5,0.5];this.b=t(a.anchorXUnits)?a.anchorXUnits:"fraction";this.d=t(a.anchorYUnits)?a.anchorYUnits:"fraction";var b=a.src,c=t(a.crossOrigin)?a.crossOrigin:null,d=Oj.Na(),e;e=c+":"+b;e=e in d.a?d.a[e]:null;null===e&&(e=new Pj(b,c),d.a[c+":"+b]=e,++d.c);this.a=e;this.f=t(a.size)?a.size:null;ih.call(this,{rotation:t(a.rotation)?a.rotation:0,scale:t(a.scale)?a.scale:1,we:void 0,ye:!1})}H(Nj,ih);l=Nj.prototype;
l.Lb=function(){var a=this.c;if("fraction"==this.b||"fraction"==this.d){var b=this.ub();if(null===b)return null;a=[this.c[0],this.c[1]];"fraction"==this.b&&(a[0]*=b[0]);"fraction"==this.d&&(a[1]*=b[1])}return a};l.Rb=function(){return this.a.a};l.he=function(){return this.a.c};l.ge=function(){var a=this.a;if(null===a.d)if(a.f){var b=kc("CANVAS"),c=a.e[0],d=a.e[1];b.width=c;b.height=d;b.getContext("2d").fillRect(0,0,c,d);a.d=b}else a.d=a.a;return a.d};l.Zg=function(){return this.a.g};
l.ub=function(){return null===this.f?this.a.e:this.f};l.Yd=function(a,b){return K(this.a,"change",a,!1,b)};l.ie=function(){var a=this.a;0==a.c&&(a.c=1,a.b=[ad(a.a,"error",a.h,!1,a),ad(a.a,"load",a.i,!1,a)],a.a.src=a.g)};l.ze=function(a,b){bd(this.a,"change",a,!1,b)};function Pj(a,b){sd.call(this);this.d=null;this.a=new Image;null!==b&&(this.a.crossOrigin=b);this.b=null;this.c=0;this.e=null;this.g=a;this.f=!1}H(Pj,sd);Pj.prototype.h=function(){this.c=3;Ga(this.b,M);this.b=null;N(this,"change")};
Pj.prototype.i=function(){this.c=2;this.e=[this.a.width,this.a.height];Ga(this.b,M);this.b=null;var a=kc("CANVAS");a.width=1;a.height=1;a=a.getContext("2d");a.drawImage(this.a,0,0);try{a.getImageData(0,0,1,1)}catch(b){this.f=!0}N(this,"change")};function Oj(){this.a={};this.c=0;this.b=32}ha(Oj);Oj.prototype.clear=function(){this.a={};this.c=0};function Qj(a,b,c,d,e,f,g,h){Yd(a);0===b&&0===c||$d(a,b,c);1==d&&1==e||ae(a,d,e);0!==f&&be(a,f);0===g&&0===h||$d(a,g,h);return a}function Rj(a,b){return a[0]==b[0]&&a[1]==b[1]&&a[4]==b[4]&&a[5]==b[5]&&a[12]==b[12]&&a[13]==b[13]}function Sj(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 Tj(a,b){yc.call(this);this.g=b;this.b={}}H(Tj,yc);
function Uj(a){var b=a.A,c=a.Fd;Qj(c,a.size[0]/2,a.size[1]/2,1/b.resolution,-1/b.resolution,-b.rotation,-b.center[0],-b.center[1]);a=a.ke;var b=c[0],d=c[1],e=c[2],f=c[3],g=c[4],h=c[5],m=c[6],n=c[7],p=c[8],q=c[9],r=c[10],u=c[11],y=c[12],v=c[13],x=c[14],c=c[15],w=b*h-d*g,A=b*m-e*g,C=b*n-f*g,E=d*m-e*h,F=d*n-f*h,L=e*n-f*m,X=p*v-q*y,aa=p*x-r*y,da=p*c-u*y,O=q*x-r*v,Z=q*c-u*v,db=r*c-u*x,ba=w*db-A*Z+C*O+E*da-F*aa+L*X;0!=ba&&(ba=1/ba,a[0]=(h*db-m*Z+n*O)*ba,a[1]=(-d*db+e*Z-f*O)*ba,a[2]=(v*L-x*F+c*E)*ba,a[3]=
(-q*L+r*F-u*E)*ba,a[4]=(-g*db+m*da-n*aa)*ba,a[5]=(b*db-e*da+f*aa)*ba,a[6]=(-y*L+x*C-c*A)*ba,a[7]=(p*L-r*C+u*A)*ba,a[8]=(g*Z-h*da+n*X)*ba,a[9]=(-b*Z+d*da-f*X)*ba,a[10]=(y*F-v*C+c*w)*ba,a[11]=(-p*F+q*C-u*w)*ba,a[12]=(-g*O+h*aa-m*X)*ba,a[13]=(b*O-d*aa+e*X)*ba,a[14]=(-y*E+v*A-x*w)*ba,a[15]=(p*E-q*A+r*w)*ba)}Tj.prototype.ec=function(a){return new Ej(this,a)};Tj.prototype.v=function(){Rb(this.b,function(a){Cc(a)});Tj.D.v.call(this)};
function Vj(a,b){var c=B(b).toString();if(c in a.b)return a.b[c];var d=a.ec(b);return a.b[c]=d}Tj.prototype.Dc=ga;Tj.prototype.q=function(a,b){for(var c in this.b)if(!(null!==b&&c in b.Y)){var d=this.b[c];delete this.b[c];Cc(d)}};function Wj(a){a.Sa.push(function(){var a=Oj.Na();if(a.c>a.b){var c=0,d,e;for(d in a.a)e=a.a[d],0!==(c++&3)||ed(e)||(delete a.a[d],--a.c)}})}function Xj(a,b){for(var c in a.b)if(!(c in b.Y)){b.Sa.push(D(a.q,a));break}};function Yj(a){lf.call(this,a)}H(Yj,lf);function Zj(a){lf.call(this,a);this.q(t(a.preload)?a.preload:0)}H(Zj,lf);Zj.prototype.d=function(){return this.t("preload")};Zj.prototype.getPreload=Zj.prototype.d;Zj.prototype.q=function(a){this.u("preload",a)};Zj.prototype.setPreload=Zj.prototype.q;function ak(a){a=t(a)?a:{};var b=Yb(a);delete b.style;lf.call(this,b);this.q=null;t(a.style)&&this.w(a.style)}H(ak,lf);ak.prototype.o=function(){return this.t("renderGeometryFunctions")};ak.prototype.getRenderGeometryFunctions=ak.prototype.o;ak.prototype.G=k("q");ak.prototype.Q=k("d");ak.prototype.$b=function(a){this.u("renderGeometryFunctions",a)};ak.prototype.setRenderGeometryFunctions=ak.prototype.$b;ak.prototype.w=function(a){this.q=a;this.d=mh(a);this.s()};var bk=fh("black"),ck=[],dk=[0,0,0,1];function ek(a,b,c,d){this.T={};this.b=a;this.w=b;this.f=c;this.g=d;this.h=this.a=this.c=this.Z=this.R=this.Q=null;this.i=this.o=this.ta=this.q=this.pa=0;this.ua=!1;this.Ka=0;this.d="";this.l=this.r=0;this.G=this.n=this.k=null;this.e=[];this.La=Ud()}
function fk(a,b){if(null!==a.h){var c=Cg(b,2,a.g,a.e),d=a.b,e=a.La,f,g;f=0;for(g=c.length;f<g;f+=2){var h=c[f]-a.pa,m=c[f+1]-a.q;a.ua&&(h=h+0.5|0,m=m+0.5|0);if(0!==a.o||1!=a.i){var n=h+a.pa,p=m+a.q;Qj(e,n,p,a.i,a.i,a.o,-n,-p);d.setTransform(e[0],e[1],e[4],e[5],e[12],e[13])}d.drawImage(a.h,h,m,a.Ka,a.ta)}0===a.o&&1==a.i||d.setTransform(1,0,0,1,0,0)}}
function gk(a,b,c,d){var e=0;if(null!==a.G&&""!==a.d){null===a.k||hk(a,a.k);null===a.n||ik(a,a.n);var f=a.G,g=a.b,h=a.Z;null===h?(g.font=f.font,g.textAlign=f.textAlign,g.textBaseline=f.textBaseline,a.Z={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=Cg(b,d,a.g,a.e);for(f=a.b;e<c;e+=d){g=b[e];h=b[e+
1];if(0!==a.r||1!=a.l){var m=Qj(a.La,g,h,a.l,a.l,a.r,-g,-h);f.setTransform(m[0],m[1],m[4],m[5],m[12],m[13])}null===a.n||f.strokeText(a.d,g,h);null===a.k||f.fillText(a.d,g,h)}0===a.r&&1==a.l||f.setTransform(1,0,0,1,0,0)}}function jk(a,b,c,d,e){a=a.b;a.moveTo(b[c],b[c+1]);var f;for(f=c+2;f<d;f+=2)a.lineTo(b[f],b[f+1]);e&&a.lineTo(b[c],b[c+1]);return d}function kk(a,b,c,d){var e=a.b,f,g;f=0;for(g=d.length;f<g;++f)c=jk(a,b,c,d[f],!0),e.closePath();return c}l=ek.prototype;
l.hc=function(a,b){var c=a.toString(),d=this.T[c];t(d)?d.push(b):this.T[c]=[b]};l.ic=function(a){if(ue(this.f,a.p())){if(null!==this.c||null!==this.a){null===this.c||hk(this,this.c);null===this.a||ik(this,this.a);var b=Hg(a,this.g,this.e),c=b[2]-b[0],d=b[3]-b[1],c=Math.sqrt(c*c+d*d),d=this.b;d.beginPath();d.arc(b[0],b[1],c,0,2*Math.PI);null===this.c||d.fill();null===this.a||d.stroke()}""!==this.d&&gk(this,a.dd(),2,2)}};
l.Mc=function(a,b){var c=a.K();if(null!==c&&ue(this.f,c.p())){var d=b.a;t(d)||(d=0);this.hc(d,function(a){a.ra(b.d,b.b);a.yb(b.e);a.Ba(b.c);lk[c.C()].call(a,c,null)})}};l.Hd=function(a,b){var c=a.a,d,e;d=0;for(e=c.length;d<e;++d){var f=c[d];lk[f.C()].call(this,f,b)}};l.Kb=function(a){var b=a.j;a=a.a;null===this.h||fk(this,b);""!==this.d&&gk(this,b,b.length,a)};l.Jb=function(a){var b=a.j;a=a.a;null===this.h||fk(this,b);""!==this.d&&gk(this,b,b.length,a)};
l.Hb=function(a){if(ue(this.f,a.p())){if(null!==this.a){ik(this,this.a);var b=Hg(a,this.g,this.e),c=this.b;c.beginPath();jk(this,b,0,b.length,!1);c.stroke()}""!==this.d&&(a=mk(a),gk(this,a,2,2))}};l.Ib=function(a){var b=a.p();if(ue(this.f,b)){if(null!==this.a){ik(this,this.a);var b=Hg(a,this.g,this.e),c=this.b;c.beginPath();var d=a.d,e=0,f,g;f=0;for(g=d.length;f<g;++f)e=jk(this,b,e,d[f],!1);c.stroke()}""!==this.d&&(a=nk(a),gk(this,a,a.length,2))}};
l.lb=function(a){if(ue(this.f,a.p())){var b;if(null!==this.a||null!==this.c){null===this.c||hk(this,this.c);null===this.a||ik(this,this.a);b=Hg(a,this.g,this.e);var c=this.b;c.beginPath();kk(this,b,0,a.d);null===this.c||c.fill();null===this.a||c.stroke()}""!==this.d&&(a=Sg(a),gk(this,a,2,2))}};
l.jc=function(a){if(ue(this.f,a.p())){var b;if(null!==this.a||null!==this.c){null===this.c||hk(this,this.c);null===this.a||ik(this,this.a);b=Hg(a,this.g,this.e);var c=this.b,d=a.d,e=0,f,g;f=0;for(g=d.length;f<g;++f){var h=d[f];c.beginPath();e=kk(this,b,e,h);null===this.c||c.fill();null===this.a||c.stroke()}}""!==this.d&&(a=ok(a),gk(this,a,a.length,2))}};
function pk(a){var b=Ha(Ub(a.T),Number);Ra(b);var c,d,e,f,g;c=0;for(d=b.length;c<d;++c)for(e=a.T[b[c].toString()],f=0,g=e.length;f<g;++f)e[f](a)}function hk(a,b){var c=a.b,d=a.Q;null===d?(c.fillStyle=b.fillStyle,a.Q={fillStyle:b.fillStyle}):d.fillStyle!=b.fillStyle&&(d.fillStyle=c.fillStyle=b.fillStyle)}
function ik(a,b){var c=a.b,d=a.R;null===d?(c.lineCap=b.lineCap,vc.ac&&c.setLineDash(b.lineDash),c.lineJoin=b.lineJoin,c.lineWidth=b.lineWidth,c.miterLimit=b.miterLimit,c.strokeStyle=b.strokeStyle,a.R={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),vc.ac&&!Ta(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))}
l.ra=function(a,b){if(null===a)this.c=null;else{var c=a.a;this.c={fillStyle:dh(null===c?bk:c)}}if(null===b)this.a=null;else{var c=b.a,d=b.b,e=b.d,f=b.e,g=b.c,h=b.g;this.a={lineCap:t(d)?d:"round",lineDash:null!=e?e:ck,lineJoin:t(f)?f:"round",lineWidth:this.w*(t(g)?g:1),miterLimit:t(h)?h:10,strokeStyle:dh(null===c?dk:c)}}};
l.yb=function(a){if(null===a)this.h=null;else{var b=a.Lb(),c=a.Rb(1),d=a.e,e=a.g,f=a.ub();a=a.h;this.pa=b[0];this.q=b[1];this.ta=f[1];this.h=c;this.o=t(d)?d:0;this.i=t(e)?e:1;this.ua=t(a)?a:!1;this.Ka=f[0]}};
l.Ba=function(a){if(null===a)this.d="";else{var b=a.c;null===b?this.k=null:(b=b.a,this.k={fillStyle:dh(null===b?bk:b)});var c=a.e;if(null===c)this.n=null;else{var b=c.a,d=c.b,e=c.d,f=c.e,g=c.c,c=c.g;this.n={lineCap:t(d)?d:"round",lineDash:null!=e?e:ck,lineJoin:t(f)?f:"round",lineWidth:this.w*(t(g)?g:1),miterLimit:t(c)?c:10,strokeStyle:dh(null===b?dk:b)}}b=a.a;d=a.b;e=a.d;f=a.g;g=a.f;a=a.h;this.G={font:t(b)?b:"10px sans-serif",textAlign:t(g)?g:"center",textBaseline:t(a)?a:"middle"};this.d=t(f)?f:"";
this.r=t(d)?d:0;this.l=this.w*(t(e)?e:1)}};var lk={Point:ek.prototype.Kb,LineString:ek.prototype.Hb,Polygon:ek.prototype.lb,MultiPoint:ek.prototype.Jb,MultiLineString:ek.prototype.Ib,MultiPolygon:ek.prototype.jc,GeometryCollection:ek.prototype.Hd,Circle:ek.prototype.ic};function qk(a,b){Ej.call(this,a,b);this.w=Ud()}H(qk,Ej);qk.prototype.k=function(a,b,c){rk(this,"precompose",c,a,void 0);var d=this.n();if(null!==d){var e=this.i();c.globalAlpha=b.opacity;if(0===a.A.rotation){b=e[13];var f=d.width*e[0],g=d.height*e[5];c.drawImage(d,0,0,+d.width,+d.height,Math.round(e[12]),Math.round(b),Math.round(f),Math.round(g))}else c.setTransform(e[0],e[1],e[4],e[5],e[12],e[13]),c.drawImage(d,0,0),c.setTransform(1,0,0,1,0,0)}rk(this,"postcompose",c,a,void 0)};
function rk(a,b,c,d,e){var f=a.a;fd(f.V,b)&&(a=t(e)?e:sk(a,d),a=new ek(c,d.pixelRatio,d.extent,a),N(f,new Tg(b,f,a,d,c,null)),pk(a))}function sk(a,b){var c=b.A,d=b.pixelRatio;return Qj(a.w,d*b.size[0]/2,d*b.size[1]/2,d/c.resolution,-d/c.resolution,-c.rotation,-c.center[0],-c.center[1])};function tk(a){hf.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,state:a.state});this.i=t(a.resolutions)?a.resolutions:null}H(tk,hf);tk.prototype.Ya=k("i");function uk(a,b){null===a.i||(b=a.i[If(a.i,b,0)]);return b};function vk(a,b){qk.call(this,a,b);this.c=null;this.e=Ud()}H(vk,qk);vk.prototype.g=function(a,b,c,d){var e=this.a;return e.a.k(b.extent,b.A.resolution,b.A.rotation,a,function(a){return c.call(d,a,e)})};vk.prototype.n=function(){return null===this.c?null:this.c.e()};vk.prototype.i=k("e");
vk.prototype.b=function(a){var b=a.pixelRatio,c=a.A,d=c.center,e=c.resolution,f=c.rotation,g=this.a.a,h=a.M;h[0]||h[1]||(c=g.tb(a.extent,e,b,c.projection),null!==c&&(h=c.state,0==h?(ad(c,"change",this.l,!1,this),uj(c)):2==h&&(this.c=c)));if(null!==this.c){var c=this.c,h=c.p(),m=c.d,n=c.b,e=b*m/(e*n);Qj(this.e,b*a.size[0]/2,b*a.size[1]/2,e,e,f,n*(h[0]-d[0])/m,n*(d[1]-h[3])/m);Hj(a.attributions,c.f);Ij(a,g)}};function wk(a,b){qk.call(this,a,b);this.o=this.e=this.f=null;this.r=Ud();this.q=NaN;this.h=this.c=null}H(wk,qk);wk.prototype.n=k("f");wk.prototype.i=k("r");
wk.prototype.b=function(a){var b=a.pixelRatio,c=a.A,d=c.projection,e=this.a,f=e.a,g=Dj(f,d),h=f.pc(),m=If(g.a,c.resolution,0),n=f.Mb(m,a.pixelRatio,d),p=g.a[m],q=p/(n/g.ka(m)),r=c.center,u;p==c.resolution?(r=Lj(r,p,a.size),u=qe(r,p,c.rotation,a.size)):u=a.extent;var y=zj(g,u,p),v=n*(y.d-y.a+1),x=n*(y.c-y.b+1),w,A;null===this.f?(w=kc("CANVAS"),w.width=v,w.height=x,A=w.getContext("2d"),this.f=w,this.e=[v,x],this.o=A):(w=this.f,A=this.o,this.e[0]<v||this.e[1]<x?(w.width=v,w.height=x,this.e=[v,x],this.c=
null):(v=this.e[0],x=this.e[1],m==this.q&&this.c.a<=y.a&&y.d<=this.c.d&&this.c.b<=y.b&&y.c<=this.c.c||(this.c=null)));var C,E;null===this.c?(v/=n,x/=n,C=y.a-Math.floor((v-(y.d-y.a+1))/2),E=y.b-Math.floor((x-(y.c-y.b+1))/2),this.q=m,this.c=new ab(C,C+v-1,E,E+x-1),this.h=Array(v*x),x=this.c):(x=this.c,v=x.d-x.a+1);w={};w[m]={};var F=[],L=D(f.Oc,f,w,Kj(function(a){return null!==a&&2==a.state},f,b,d)),X=de(),aa=new ab(0,0,0,0),da,O,Z;for(E=y.a;E<=y.d;++E)for(Z=y.b;Z<=y.c;++Z)O=f.nb(m,E,Z,b,d),C=O.state,
2==C||4==C||3==C?w[m][O.a.toString()]=O:(da=g.nc(O.a,L,null,aa,X),da||(F.push(O),da=g.qc(O.a,aa,X),null===da||L(m+1,da)));L=0;for(da=F.length;L<da;++L)O=F[L],E=n*(O.a.x-x.a),Z=n*(x.c-O.a.y),A.clearRect(E,Z,n,n);F=Ha(Ub(w),Number);Ra(F);var db=f.G,ba=se(xj(g,new Wa(m,x.a,x.c),X)),eb,Ya,xc,xf,yd,Vi,L=0;for(da=F.length;L<da;++L)if(eb=F[L],n=f.Mb(eb,b,d),xf=w[eb],eb==m)for(xc in xf)O=xf[xc],Ya=(O.a.y-x.b)*v+(O.a.x-x.a),this.h[Ya]!=O&&(E=n*(O.a.x-x.a),Z=n*(x.c-O.a.y),C=O.state,4!=C&&3!=C&&db||A.clearRect(E,
Z,n,n),2==C&&A.drawImage(O.b(),h,h,n,n,E,Z,n,n),this.h[Ya]=O);else for(xc in eb=g.a[eb]/p,xf)for(O=xf[xc],Ya=xj(g,O.a,X),E=(Ya[0]-ba[0])/q,Z=(ba[1]-Ya[3])/q,Vi=eb*n,yd=eb*n,C=O.state,4!=C&&db||A.clearRect(E,Z,Vi,yd),2==C&&A.drawImage(O.b(),h,h,n,n,E,Z,Vi,yd),O=yj(g,Ya,m,aa),C=Math.max(O.a,x.a),Z=Math.min(O.d,x.d),E=Math.max(O.b,x.b),O=Math.min(O.c,x.c);C<=Z;++C)for(yd=E;yd<=O;++yd)Ya=(yd-x.b)*v+(C-x.a),this.h[Ya]=void 0;Jj(a.Wb,f,m,y);Mj(a,f,g,b,d,u,m,e.d());Gj(a,f);Ij(a,f);Qj(this.r,b*a.size[0]/
2,b*a.size[1]/2,b*q/c.resolution,b*q/c.resolution,c.rotation,(ba[0]-r[0])/q,(r[1]-ba[1])/q)};var xk=["Polygon","LineString","Image","Text"];function yk(a){this.w=a;this.T=this.n=null;this.c=[];this.coordinates=[];this.pa=Ud();this.a=[];this.r=[];this.d=de();this.q=Ud()}function zk(a,b,c,d,e,f){var g=a.coordinates.length,h;for(h=c;h<d;h+=e)a.coordinates[g++]=b[h],a.coordinates[g++]=b[h+1];f&&(a.coordinates[g++]=b[c],a.coordinates[g++]=b[c+1]);return g}function Ak(a,b){a.n=[0,b,0];a.c.push(a.n);a.T=[0,b,0];a.a.push(a.T)}
function Bk(a,b,c,d,e,f,g){var h;Rj(d,a.pa)?h=a.r:(h=Cg(a.coordinates,2,d,a.r),Xd(a.pa,d));d=0;var m=f.length,n=0,p;for(a=a.q;d<m;){var q=f[d],r,u,y,v;switch(q[0]){case 0:p=q[1];e(p)?++d:d=q[2];break;case 1:b.beginPath();++d;break;case 2:p=h[n];var x=h[n+1],w=h[n+2]-p,q=h[n+3]-x;b.arc(p,x,Math.sqrt(w*w+q*q),0,2*Math.PI,!0);n+=4;++d;break;case 3:b.closePath();++d;break;case 4:n=q[1];p=q[2];r=q[3];y=q[4]*c;u=q[5]*c;for(var A=q[6]*c,x=q[7],w=q[8],C=q[9],E=q[10]*c;n<p;n+=2){q=h[n]-y;v=h[n+1]-u;C&&(q=
q+0.5|0,v=v+0.5|0);if(1!=w||0!==x){var F=q+y,L=v+u;Qj(a,F,L,w,w,x,-F,-L);b.setTransform(a[0],a[1],a[4],a[5],a[12],a[13])}b.drawImage(r,q,v,E,A);1==w&&0===x||b.setTransform(1,0,0,1,0,0)}++d;break;case 5:n=q[1];p=q[2];y=q[3];x=q[4];w=q[5]*c;r=q[6];for(u=q[7];n<p;n+=2){q=h[n];v=h[n+1];if(1!=w||0!==x)Qj(a,q,v,w,w,x,-q,-v),b.setTransform(a[0],a[1],a[4],a[5],a[12],a[13]);u&&b.strokeText(y,q,v);r&&b.fillText(y,q,v);1==w&&0===x||b.setTransform(1,0,0,1,0,0)}++d;break;case 6:if(t(g)&&(p=q[1],p=g(p,q[2])))return p;
++d;break;case 7:b.fill();++d;break;case 8:n=q[1];p=q[2];b.moveTo(h[n],h[n+1]);for(n+=2;n<p;n+=2)b.lineTo(h[n],h[n+1]);++d;break;case 9:b.fillStyle=q[1];++d;break;case 10:b.strokeStyle=q[1];b.lineWidth=q[2]*c;b.lineCap=q[3];b.lineJoin=q[4];b.miterLimit=q[5];vc.ac&&b.setLineDash(q[6]);++d;break;case 11:b.font=q[1];b.textAlign=q[2];b.textBaseline=q[3];++d;break;case 12:b.stroke();++d;break;default:++d}}}
function Ck(a){var b=a.a;b.reverse();var c,d=b.length,e,f=-1;for(c=0;c<d;++c)if(e=b[c],e=e[0],6==e)f=c;else if(0==e){e=a.a;for(var g=c;f<g;){var h=e[f];e[f]=e[g];e[g]=h;++f;--g}f=-1}}function Dk(a,b,c){a.n[2]=a.c.length;a.n=null;a.T[2]=a.a.length;a.T=null;b=[6,b,c];a.c.push(b);a.a.push(b)}yk.prototype.Ac=ga;yk.prototype.p=k("d");function Ek(a){yk.call(this,a);this.f=this.o=null;this.l=this.k=this.i=this.h=this.g=this.e=this.b=void 0}H(Ek,yk);
Ek.prototype.Kb=function(a,b){if(null!==this.f){me(this.d,a.p());Ak(this,a);var c=a.j,d=this.coordinates.length,c=zk(this,c,0,c.length,a.a,!1);this.c.push([4,d,c,this.f,this.b,this.e,this.g,this.h,this.i,this.k,this.l]);this.a.push([4,d,c,this.o,this.b,this.e,this.g,this.h,this.i,this.k,this.l]);Dk(this,a,b)}};
Ek.prototype.Jb=function(a,b){if(null!==this.f){me(this.d,a.p());Ak(this,a);var c=a.j,d=this.coordinates.length,c=zk(this,c,0,c.length,a.a,!1);this.c.push([4,d,c,this.f,this.b,this.e,this.g,this.h,this.i,this.k,this.l]);this.a.push([4,d,c,this.o,this.b,this.e,this.g,this.h,this.i,this.k,this.l]);Dk(this,a,b)}};Ek.prototype.Ac=function(){Ck(this);this.e=this.b=void 0;this.f=this.o=null;this.l=this.k=this.h=this.i=this.g=void 0};
Ek.prototype.yb=function(a){var b=a.Lb(),c=a.ub(),d=a.ge(1),e=a.Rb(1);this.b=b[0];this.e=b[1];this.o=d;this.f=e;this.g=c[1];this.h=a.e;this.i=a.g;this.k=a.h;this.l=c[0]};function Fk(a){yk.call(this,a);this.b={Fb:void 0,Ab:void 0,Bb:null,Cb:void 0,Db:void 0,Eb:void 0,Yc:0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}H(Fk,yk);function Gk(a,b,c,d,e){var f=a.coordinates.length;b=zk(a,b,c,d,e,!1);f=[8,f,b];a.c.push(f);a.a.push(f);return d}
function Hk(a){var b=a.b,c=b.strokeStyle,d=b.lineCap,e=b.lineDash,f=b.lineJoin,g=b.lineWidth,h=b.miterLimit;b.Fb==c&&b.Ab==d&&Ta(b.Bb,e)&&b.Cb==f&&b.Db==g&&b.Eb==h||(b.Yc!=a.coordinates.length&&(a.c.push([12]),b.Yc=a.coordinates.length),a.c.push([10,c,g,d,f,h,e],[1]),b.Fb=c,b.Ab=d,b.Bb=e,b.Cb=f,b.Db=g,b.Eb=h)}
Fk.prototype.Hb=function(a,b){var c=this.b,d=c.lineWidth;t(c.strokeStyle)&&t(d)&&(me(this.d,a.p()),Hk(this),Ak(this,a),this.a.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash],[1]),c=a.j,Gk(this,c,0,c.length,a.a),this.a.push([12]),Dk(this,a,b))};
Fk.prototype.Ib=function(a,b){var c=this.b,d=c.lineWidth;if(t(c.strokeStyle)&&t(d)){me(this.d,a.p());Hk(this);Ak(this,a);this.a.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash],[1]);var c=a.d,d=a.j,e=a.a,f=0,g,h;g=0;for(h=c.length;g<h;++g)f=Gk(this,d,f,c[g],e);this.a.push([12]);Dk(this,a,b)}};Fk.prototype.Ac=function(){this.b.Yc!=this.coordinates.length&&this.c.push([12]);Ck(this);this.b=null};
Fk.prototype.ra=function(a,b){var c=b.a;this.b.strokeStyle=dh(null===c?dk:c);c=b.b;this.b.lineCap=t(c)?c:"round";c=b.d;this.b.lineDash=null===c?ck:c;c=b.e;this.b.lineJoin=t(c)?c:"round";c=b.c;this.b.lineWidth=t(c)?c:1;c=b.g;this.b.miterLimit=t(c)?c:10};function Ik(a){yk.call(this,a);this.b={Gd:void 0,Fb:void 0,Ab:void 0,Bb:null,Cb:void 0,Db:void 0,Eb:void 0,fillStyle:void 0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}H(Ik,yk);
function Jk(a,b,c,d,e){var f=a.b,g=[1];a.c.push(g);a.a.push(g);var h,g=0;for(h=d.length;g<h;++g){var m=d[g],n=a.coordinates.length;c=zk(a,b,c,m,e,!0);c=[8,n,c];n=[3];a.c.push(c,n);a.a.push(c,n);c=m}b=[7];a.a.push(b);t(f.fillStyle)&&a.c.push(b);t(f.strokeStyle)&&(f=[12],a.c.push(f),a.a.push(f));return c}l=Ik.prototype;
l.ic=function(a,b){var c=this.b,d=c.strokeStyle;if(t(c.fillStyle)||t(d)){me(this.d,a.p());Kk(this);Ak(this,a);this.a.push([9,dh(bk)]);t(c.strokeStyle)&&this.a.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash]);d=a.j;zk(this,d,0,d.length,a.a,!1);var d=[1],e=[2];this.c.push(d,e);this.a.push(d,e);Dk(this,a,b);d=[7];this.a.push(d);t(c.fillStyle)&&this.c.push(d);t(c.strokeStyle)&&(c=[12],this.c.push(c),this.a.push(c))}};
l.lb=function(a,b){var c=this.b,d=c.strokeStyle;if(t(c.fillStyle)||t(d))me(this.d,a.p()),Kk(this),Ak(this,a),this.a.push([9,dh(bk)]),t(c.strokeStyle)&&this.a.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash]),c=a.d,d=Rg(a),Jk(this,d,0,c,a.a),Dk(this,a,b)};
l.jc=function(a,b){var c=this.b,d=c.strokeStyle;if(t(c.fillStyle)||t(d)){me(this.d,a.p());Kk(this);Ak(this,a);this.a.push([9,dh(bk)]);t(c.strokeStyle)&&this.a.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash]);var c=a.d,d=Lk(a),e=a.a,f=0,g,h;g=0;for(h=c.length;g<h;++g)f=Jk(this,d,f,c[g],e);Dk(this,a,b)}};l.Ac=function(){Ck(this);this.b=null;var a=this.w;if(0!==a){var b=this.coordinates,c,d;c=0;for(d=b.length;c<d;++c)b[c]=a*Math.round(b[c]/a)}};
l.ra=function(a,b){var c=this.b;if(null===a)c.fillStyle=void 0;else{var d=a.a;c.fillStyle=dh(null===d?bk:d)}null===b?(c.strokeStyle=void 0,c.lineCap=void 0,c.lineDash=null,c.lineJoin=void 0,c.lineWidth=void 0,c.miterLimit=void 0):(d=b.a,c.strokeStyle=dh(null===d?dk:d),d=b.b,c.lineCap=t(d)?d:"round",d=b.d,c.lineDash=null===d?ck:d.slice(),d=b.e,c.lineJoin=t(d)?d:"round",d=b.c,c.lineWidth=t(d)?d:1,d=b.g,c.miterLimit=t(d)?d:10)};
function Kk(a){var b=a.b,c=b.fillStyle,d=b.strokeStyle,e=b.lineCap,f=b.lineDash,g=b.lineJoin,h=b.lineWidth,m=b.miterLimit;t(c)&&b.Gd!=c&&(a.c.push([9,c]),b.Gd=b.fillStyle);!t(d)||b.Fb==d&&b.Ab==e&&b.Bb==f&&b.Cb==g&&b.Db==h&&b.Eb==m||(a.c.push([10,d,h,e,g,m,f]),b.Fb=d,b.Ab=e,b.Bb=f,b.Cb=g,b.Db=h,b.Eb=m)}function Mk(a){yk.call(this,a);this.o=this.l=this.k=null;this.f="";this.i=this.h=0;this.g=this.e=this.b=null}H(Mk,yk);
Mk.prototype.Ma=function(a,b,c,d,e,f){if(""!==this.f&&null!==this.g&&(null!==this.b||null!==this.e)){ne(this.d,a,b,c,d);if(null!==this.b){var g=this.b,h=this.k;if(null===h||h.fillStyle!=g.fillStyle){var m=[9,g.fillStyle];this.c.push(m);this.a.push(m);null===h?this.k={fillStyle:g.fillStyle}:h.fillStyle=g.fillStyle}}null!==this.e&&(g=this.e,h=this.l,null===h||h.lineCap!=g.lineCap||h.lineDash!=g.lineDash||h.lineJoin!=g.lineJoin||h.lineWidth!=g.lineWidth||h.miterLimit!=g.miterLimit||h.strokeStyle!=g.strokeStyle)&&
(m=[10,g.strokeStyle,g.lineWidth,g.lineCap,g.lineJoin,g.miterLimit,g.lineDash],this.c.push(m),this.a.push(m),null===h?this.l={lineCap:g.lineCap,lineDash:g.lineDash,lineJoin:g.lineJoin,lineWidth:g.lineWidth,miterLimit:g.miterLimit,strokeStyle:g.strokeStyle}:(h.lineCap=g.lineCap,h.lineDash=g.lineDash,h.lineJoin=g.lineJoin,h.lineWidth=g.lineWidth,h.miterLimit=g.miterLimit,h.strokeStyle=g.strokeStyle));g=this.g;h=this.o;if(null===h||h.font!=g.font||h.textAlign!=g.textAlign||h.textBaseline!=g.textBaseline)m=
[11,g.font,g.textAlign,g.textBaseline],this.c.push(m),this.a.push(m),null===h?this.o={font:g.font,textAlign:g.textAlign,textBaseline:g.textBaseline}:(h.font=g.font,h.textAlign=g.textAlign,h.textBaseline=g.textBaseline);Ak(this,e);g=this.coordinates.length;a=zk(this,a,b,c,d,!1);a=[5,g,a,this.f,this.h,this.i,null!==this.b,null!==this.e];this.c.push(a);this.a.push(a);Dk(this,e,f)}};
Mk.prototype.Ba=function(a){if(null===a)this.f="";else{var b=a.c;null===b?this.b=null:(b=b.a,b=dh(null===b?bk:b),null===this.b?this.b={fillStyle:b}:this.b.fillStyle=b);var c=a.e;if(null===c)this.e=null;else{var b=c.a,d=c.b,e=c.d,f=c.e,g=c.c,c=c.g,d=t(d)?d:"round",e=null!=e?e.slice():ck,f=t(f)?f:"round",g=t(g)?g:1,c=t(c)?c:10,b=dh(null===b?dk:b);if(null===this.e)this.e={lineCap:d,lineDash:e,lineJoin:f,lineWidth:g,miterLimit:c,strokeStyle:b};else{var h=this.e;h.lineCap=d;h.lineDash=e;h.lineJoin=f;h.lineWidth=
g;h.miterLimit=c;h.strokeStyle=b}}f=a.a;b=a.b;d=a.d;e=a.g;g=a.f;c=a.h;a=t(f)?f:"10px sans-serif";g=t(g)?g:"center";c=t(c)?c:"middle";null===this.g?this.g={font:a,textAlign:g,textBaseline:c}:(f=this.g,f.font=a,f.textAlign=g,f.textBaseline=c);this.f=t(e)?e:"";this.h=t(b)?b:0;this.i=t(d)?d:1}};function Nk(a){this.d=a;this.a={};a=kc("CANVAS");a.width=1;a.height=1;this.c=a.getContext("2d");this.b=Ud()}
function Ok(a,b,c,d,e,f){var g=Ha(Ub(a.a),Number);Ra(g);a:{var h,m,n,p,q,r;h=0;for(m=g.length;h<m;++h)for(q=a.a[g[h].toString()],n=0,p=xk.length;n<p;++n)if(r=q[xk[n]],t(r)&&ue(c,r.p())&&(r=Bk(r,b,d,e,f,r.c,void 0)))break a}}function Pk(a,b,c,d,e,f,g){var h,m,n,p,q;h=0;for(m=b.length;h<m;++h)for(p in n=a.a[b[h].toString()],n)if(q=n[p],ue(d,q.p())&&(q=Bk(q,c,1,e,f,q.a,g)))return q}
function Qk(a,b,c,d,e,f,g){var h=a.b;Qj(h,0.5,0.5,1/c,-1/c,-d,-e[0],-e[1]);c=Ha(Ub(a.a),Number);Ra(c,function(a,b){return b-a});var m=a.c;m.clearRect(0,0,1,1);return Pk(a,c,m,b,h,f,function(a,b){if(0<m.getImageData(0,0,1,1).data[3]){var c=g(a,b);if(c)return c;m.clearRect(0,0,1,1)}})}function Rk(a){for(var b in a.a){var c=a.a[b],d;for(d in c)c[d].Ac()}}function Sk(a,b,c){var d=t(b)?b.toString():"0";b=a.a[d];t(b)||(b={},a.a[d]=b);d=b[c];t(d)||(d=new Tk[c](a.d),b[c]=d);return d}Nk.prototype.$=function(){return Vb(this.a)};
var Tk={Image:Ek,LineString:Fk,Polygon:Ik,Text:Mk};function Uk(a,b,c){Dg.call(this);this.se(a,t(b)?b:0,c)}H(Uk,Dg);l=Uk.prototype;l.H=function(){var a=new Uk(null),b=this.j.slice();Fg(a,this.b,b);a.s();return a};l.ia=function(a,b,c,d){var e=this.j;a-=e[0];var f=b-e[1];b=a*a+f*f;if(b<d){if(0===b)for(d=0;d<this.a;++d)c[d]=e[d];else for(d=this.de()/Math.sqrt(b),c[0]=e[0]+d*a,c[1]=e[1]+d*f,d=2;d<this.a;++d)c[d]=e[d];c.length=this.a;return b}return d};l.Va=function(a,b){var c=this.j,d=a-c[0],c=b-c[1];return d*d+c*c<=Vk(this)};
l.dd=function(){return this.j.slice(0,this.a)};l.p=function(a){if(this.e!=this.c){var b=this.j,c=b[this.a]-b[0];this.extent=fe(b[0]-c,b[1]-c,b[0]+c,b[1]+c,this.extent);this.e=this.c}return we(this.extent,a)};l.de=function(){return Math.sqrt(Vk(this))};function Vk(a){var b=a.j[a.a]-a.j[0];a=a.j[a.a+1]-a.j[1];return b*b+a*a}l.Za=function(){return this};l.C=ea("Circle");l.Bg=function(a){var b=this.a,c=this.j[b]-this.j[0],d=a.slice();d[b]=d[0]+c;for(c=1;c<b;++c)d[b+c]=a[c];Fg(this,this.b,d);this.s()};
l.se=function(a,b,c){if(null===a)Fg(this,"XY",null);else{Gg(this,c,a,0);null===this.j&&(this.j=[]);c=this.j;a=ng(c,a);c[a++]=c[0]+b;var d;b=1;for(d=this.a;b<d;++b)c[a++]=c[b];c.length=a}this.s()};l.Jh=function(a){this.j[this.a]=this.j[0]+a;this.s()};function Wk(a){lg.call(this);this.a=t(a)?a:null;Xk(this)}H(Wk,lg);function Yk(a){var b=[],c,d;c=0;for(d=a.length;c<d;++c)b.push(a[c].H());return b}function Zk(a){var b,c;if(null!==a.a)for(b=0,c=a.a.length;b<c;++b)bd(a.a[b],"change",a.s,!1,a)}function Xk(a){var b,c;if(null!==a.a)for(b=0,c=a.a.length;b<c;++b)K(a.a[b],"change",a.s,!1,a)}l=Wk.prototype;l.H=function(){var a=new Wk(null);a.ue(this.a);return a};
l.ia=function(a,b,c,d){if(d<ie(this.p(),a,b))return d;var e=this.a,f,g;f=0;for(g=e.length;f<g;++f)d=e[f].ia(a,b,c,d);return d};l.Va=function(a,b){var c=this.a,d,e;d=0;for(e=c.length;d<e;++d)if(c[d].Va(a,b))return!0;return!1};l.p=function(a){if(this.e!=this.c){var b=ke(this.extent),c=this.a,d,e;d=0;for(e=c.length;d<e;++d)me(b,c[d].p());this.extent=b;this.e=this.c}return we(this.extent,a)};l.jf=function(){return Yk(this.a)};
l.Za=function(a){this.i!=this.c&&(Wb(this.g),this.f=0,this.i=this.c);if(0>a||0!==this.f&&a<this.f)return this;var b=a.toString();if(this.g.hasOwnProperty(b))return this.g[b];var c=[],d=this.a,e=!1,f,g;f=0;for(g=d.length;f<g;++f){var h=d[f],m=h.Za(a);c.push(m);m!==h&&(e=!0)}if(e)return a=new Wk(null),Zk(a),a.a=c,Xk(a),a.s(),this.g[b]=a;this.f=a;return this};l.C=ea("GeometryCollection");l.$=function(){return 0==this.a.length};l.ue=function(a){a=Yk(a);Zk(this);this.a=a;Xk(this);this.s()};
l.transform=function(a){var b=this.a,c,d;c=0;for(d=b.length;c<d;++c)b[c].transform(a);this.s()};l.v=function(){Zk(this);Wk.D.v.call(this)};function $k(a,b){Dg.call(this);this.d=null;this.k=this.l=this.h=-1;this.I(a,b)}H($k,Dg);l=$k.prototype;l.H=function(){var a=new $k(null);al(a,this.b,this.j.slice());return a};l.ia=function(a,b,c,d){if(d<ie(this.p(),a,b))return d;this.k!=this.c&&(this.l=Math.sqrt(Ig(this.j,0,this.j.length,this.a,0)),this.k=this.c);return Kg(this.j,0,this.j.length,this.a,this.l,!1,a,b,c,d)};l.B=function(){return qg(this.j,0,this.j.length,this.a)};
l.Cg=function(){var a=this.j,b=this.a,c=a[0],d=a[1],e=0,f;for(f=0+b;f<this.j.length;f+=b)var g=a[f],h=a[f+1],e=e+Math.sqrt((g-c)*(g-c)+(h-d)*(h-d)),c=g,d=h;return e};function mk(a){a.h!=a.c&&(a.d=sg(a.j,0,a.j.length,a.a,a.d),a.h=a.c);return a.d}l.mb=function(a){var b=[];b.length=Mg(this.j,0,this.j.length,this.a,a,b,0);a=new $k(null);al(a,"XY",b);return a};l.C=ea("LineString");
l.I=function(a,b){null===a?al(this,"XY",null):(Gg(this,b,a,1),null===this.j&&(this.j=[]),this.j.length=og(this.j,0,a,this.a),this.s())};function al(a,b,c){Fg(a,b,c);a.s()};function bl(a,b){Dg.call(this);this.d=[];this.h=this.k=-1;this.I(a,b)}H(bl,Dg);l=bl.prototype;l.H=function(){var a=new bl(null);cl(a,this.b,this.j.slice(),this.d.slice());return a};l.ia=function(a,b,c,d){if(d<ie(this.p(),a,b))return d;this.h!=this.c&&(this.k=Math.sqrt(Jg(this.j,0,this.d,this.a,0)),this.h=this.c);return Lg(this.j,0,this.d,this.a,this.k,!1,a,b,c,d)};l.B=function(){return rg(this.j,0,this.d,this.a)};
l.qf=function(){var a=this.B(),b=[],c,d;c=0;for(d=a.length;c<d;++c)b.push(new $k(a[c]));return b};function nk(a){var b=[],c=a.j,d=0,e=a.d;a=a.a;var f,g;f=0;for(g=e.length;f<g;++f){var h=e[f],d=sg(c,d,h,a);Oa(b,d);d=h}return b}l.mb=function(a){var b=[],c=[],d=this.j,e=this.d,f=this.a,g=0,h=0,m,n;m=0;for(n=e.length;m<n;++m){var p=e[m],h=Mg(d,g,p,f,a,b,h);c.push(h);g=p}b.length=h;a=new bl(null);cl(a,"XY",b,c);return a};l.C=ea("MultiLineString");
l.I=function(a,b){if(null===a)cl(this,"XY",null,this.d);else{Gg(this,b,a,2);null===this.j&&(this.j=[]);var c=pg(this.j,0,a,this.a,this.d);this.j.length=0===c.length?0:c[c.length-1];this.s()}};function cl(a,b,c,d){Fg(a,b,c);a.d=d;a.s()};function dl(a,b){Dg.call(this);this.I(a,b)}H(dl,Dg);l=dl.prototype;l.H=function(){var a=new dl(null),b=this.j.slice();Fg(a,this.b,b);a.s();return a};l.ia=function(a,b,c,d){var e=this.j;a=Bg(a,b,e[0],e[1]);if(a<d){d=this.a;for(b=0;b<d;++b)c[b]=e[b];c.length=d;return a}return d};l.B=function(){return this.j.slice()};l.p=function(a){if(this.e!=this.c){var b=this.j,c=b[0],b=b[1];this.extent=fe(c,b,c,b,this.extent);this.e=this.c}return we(this.extent,a)};l.C=ea("Point");
l.I=function(a,b){null===a?Fg(this,"XY",null):(Gg(this,b,a,0),null===this.j&&(this.j=[]),this.j.length=ng(this.j,a));this.s()};function el(a,b){Dg.call(this);this.I(a,b)}H(el,Dg);l=el.prototype;l.H=function(){var a=new el(null),b=this.j.slice();Fg(a,this.b,b);a.s();return a};l.ia=function(a,b,c,d){if(d<ie(this.p(),a,b))return d;var e=this.j,f=this.a,g,h,m;g=0;for(h=e.length;g<h;g+=f)if(m=Bg(a,b,e[g],e[g+1]),m<d){d=m;for(m=0;m<f;++m)c[m]=e[g+m];c.length=f}return d};l.B=function(){return qg(this.j,0,this.j.length,this.a)};l.vf=function(){var a=this.B(),b=[],c,d;c=0;for(d=a.length;c<d;++c)b.push(new dl(a[c]));return b};
l.C=ea("MultiPoint");l.I=function(a,b){null===a?Fg(this,"XY",null):(Gg(this,b,a,1),null===this.j&&(this.j=[]),this.j.length=og(this.j,0,a,this.a));this.s()};function fl(a,b){Dg.call(this);this.d=[];this.k=-1;this.l=null;this.r=this.n=this.o=-1;this.h=null;this.I(a,b)}H(fl,Dg);l=fl.prototype;l.H=function(){var a=new fl(null);gl(a,this.b,this.j.slice(),this.d.slice());return a};
l.ia=function(a,b,c,d){if(d<ie(this.p(),a,b))return d;if(this.n!=this.c){var e=this.d,f=0,g=0,h,m;h=0;for(m=e.length;h<m;++h)var n=e[h],g=Jg(this.j,f,n,this.a,g),f=n[n.length-1];this.o=Math.sqrt(g);this.n=this.c}e=Lk(this);f=this.d;g=this.a;h=this.o;m=0;var n=t(void 0)?void 0:[NaN,NaN],p,q;p=0;for(q=f.length;p<q;++p){var r=f[p];d=Lg(e,m,r,g,h,!0,a,b,c,d,n);m=r[r.length-1]}return d};
l.Va=function(a,b){var c;a:{c=Lk(this);var d=this.d,e=0;if(0!==d.length){var f,g;f=0;for(g=d.length;f<g;++f){var h=d[f];if(xg(c,e,h,this.a,a,b)){c=!0;break a}e=h[h.length-1]}}c=!1}return c};l.Eg=function(){var a=Lk(this),b=this.d,c=0,d=0,e,f;e=0;for(f=b.length;e<f;++e)var g=b[e],d=d+wg(a,c,g,this.a),c=g[g.length-1];return d};l.B=function(){var a=this.j,b=this.d,c=this.a,d=0,e=t(void 0)?void 0:[],f=0,g,h;g=0;for(h=b.length;g<h;++g){var m=b[g];e[f++]=rg(a,d,m,c,e[f]);d=m[m.length-1]}e.length=f;return e};
function ok(a){if(a.k!=a.c){var b=a.j,c=a.d,d=a.a,e=0,f=[],g,h,m=de();g=0;for(h=c.length;g<h;++g){var n=c[g],m=b,p=n[0],q=d,r=ke(void 0),m=ne(r,m,e,p,q);f.push((m[0]+m[2])/2,(m[1]+m[3])/2);e=n[n.length-1]}b=Lk(a);c=a.d;d=a.a;g=0;h=[];n=0;for(m=c.length;n<m;++n)e=c[n],h=yg(b,g,e,d,f,2*n,h),g=e[e.length-1];a.l=h;a.k=a.c}return a.l}
function Lk(a){if(a.r!=a.c){var b=a.j,c;a:{c=a.d;var d,e;d=0;for(e=c.length;d<e;++d)if(!zg(b,c[d],a.a)){c=!1;break a}c=!0}if(c)a.h=b;else{a.h=b.slice();c=b=a.h;d=a.d;e=a.a;var f=0,g,h;g=0;for(h=d.length;g<h;++g)f=Ag(c,f,d[g],e);b.length=f}a.r=a.c}return a.h}l.mb=function(a){var b=[],c=[],d=this.j,e=this.d,f=this.a;a=Math.sqrt(a);var g=0,h=0,m,n;m=0;for(n=e.length;m<n;++m){var p=e[m],q=[],h=Ng(d,g,p,f,a,b,h,q);c.push(q);g=p[p.length-1]}b.length=h;d=new fl(null);gl(d,"XY",b,c);return d};
l.wf=function(){var a=this.b,b=this.j,c=this.d,d=[],e=0,f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],m=h[h.length-1],n=new Pg(null);Qg(n,a,b.slice(e,m),h.slice());d.push(n);e=m}return d};l.C=ea("MultiPolygon");
l.I=function(a,b){if(null===a)gl(this,"XY",null,this.d);else{Gg(this,b,a,3);null===this.j&&(this.j=[]);var c=this.j,d=this.a,e=this.d,f=0,e=t(e)?e:[],g=0,h,m;h=0;for(m=a.length;h<m;++h)f=pg(c,f,a[h],d,e[g]),e[g++]=f,f=f[f.length-1];e.length=g;c=e[e.length-1];this.j.length=0===c.length?0:c[c.length-1];this.s()}};function gl(a,b,c,d){Fg(a,b,c);a.d=d;a.s()};function hl(a,b,c,d,e,f,g){var h=!1,m,n;m=c.e;null===m?il(a,b,c,d,e):(n=m.he(),2==n||3==n?(m.ze(f,g),2==n&&il(a,b,c,d,e)):(0==n&&m.ie(),m.Yd(f,g),h=!0));return h}function il(a,b,c,d,e){b=b.K();null!==b&&(d=b.Za(d),(0,jl[d.C()])(a,d,c,e))}
var jl={Point:function(a,b,c,d){var e=c.e;if(null!==e){var f=Sk(a,c.a,"Image");f.yb(e);f.Kb(b,d)}e=c.c;null!==e&&(a=Sk(a,c.a,"Text"),a.Ba(e),a.Ma(b.B(),0,2,2,b,d))},LineString:function(a,b,c,d){var e=c.b;if(null!==e){var f=Sk(a,c.a,"LineString");f.ra(null,e);f.Hb(b,d)}e=c.c;null!==e&&(a=Sk(a,c.a,"Text"),a.Ba(e),a.Ma(mk(b),0,2,2,b,d))},Polygon:function(a,b,c,d){var e=c.d,f=c.b;if(null!==e||null!==f){var g=Sk(a,c.a,"Polygon");g.ra(e,f);g.lb(b,d)}e=c.c;null!==e&&(a=Sk(a,c.a,"Text"),a.Ba(e),a.Ma(Sg(b),
0,2,2,b,d))},MultiPoint:function(a,b,c,d){var e=c.e;if(null!==e){var f=Sk(a,c.a,"Image");f.yb(e);f.Jb(b,d)}e=c.c;null!==e&&(a=Sk(a,c.a,"Text"),a.Ba(e),c=b.j,a.Ma(c,0,c.length,b.a,b,d))},MultiLineString:function(a,b,c,d){var e=c.b;if(null!==e){var f=Sk(a,c.a,"LineString");f.ra(null,e);f.Ib(b,d)}e=c.c;null!==e&&(a=Sk(a,c.a,"Text"),a.Ba(e),c=nk(b),a.Ma(c,0,c.length,2,b,d))},MultiPolygon:function(a,b,c,d){var e=c.d,f=c.b;if(null!==f||null!==e){var g=Sk(a,c.a,"Polygon");g.ra(e,f);g.jc(b,d)}e=c.c;null!==
e&&(a=Sk(a,c.a,"Text"),a.Ba(e),c=ok(b),a.Ma(c,0,c.length,2,b,d))},GeometryCollection:function(a,b,c,d){b=b.a;var e,f;e=0;for(f=b.length;e<f;++e)(0,jl[b[e].C()])(a,b[e],c,d)},Circle:function(a,b,c,d){var e=c.d,f=c.b;if(null!==e||null!==f){var g=Sk(a,c.a,"Polygon");g.ra(e,f);g.ic(b,d)}e=c.c;null!==e&&(a=Sk(a,c.a,"Text"),a.Ba(e),a.Ma(b.dd(),0,2,2,b,d))}};function kl(a,b,c,d){this.extent=a;this.height=b;this.a=c;this.value=d}function ll(a,b){return a.extent[0]-b.extent[0]}function ml(a,b){return a.extent[1]-b.extent[1]}function nl(a,b,c,d){a=a.a;for(d=ke(d);b<c;++b)me(d,a[b].extent);return d}kl.prototype.remove=function(a,b,c){var d=this.a,e=d.length,f,g;if(1==this.height)for(g=0;g<e;++g){if(f=d[g],f.value===b)return Ea.splice.call(d,g,1),!0}else for(g=0;g<e;++g)if(f=d[g],je(f.extent,a)){c.push(f);if(f.remove(a,b,c))return!0;c.pop()}return!1};
function pl(a){var b=ke(a.extent);a=a.a;var c,d;c=0;for(d=a.length;c<d;++c)me(b,a[c].extent)}function ql(a){this.b=Math.max(4,t(a)?a:9);this.d=Math.max(2,Math.ceil(0.4*this.b));this.a=new kl(de(),1,[],null);this.c={}}function rl(a,b,c){var d=b.a;a=a.d;var e=d.length;Ra(d,c);c=nl(b,0,a);var f=nl(b,e-a,e),g=te(c)+re(c)+(te(f)+re(f));for(b=a;b<e-a;++b)me(c,d[b].extent),g+=te(c)+re(c);for(b=e-a-1;b>=a;--b)me(f,d[b].extent),g+=te(f)+re(f);return g}l=ql.prototype;
l.clear=function(){var a=this.a;a.extent=ke(this.a.extent);a.height=1;a.a.length=0;a.value=null;Wb(this.c)};l.forEach=function(a,b){return sl(this.a,a,b)};function sl(a,b,c){for(var d=[a],e,f,g;0<d.length;)if(a=d.pop(),e=a.a,1==a.height)for(a=0,f=e.length;a<f;++a){if(g=b.call(c,e[a].value))return g}else d.push.apply(d,e)}function tl(a,b,c){ul(a,b,c,void 0)}
function ul(a,b,c,d){a=[a.a];for(var e;0<a.length;)if(e=a.pop(),ue(b,e.extent))if(null===e.a){if(e=c.call(d,e.value))return e}else if(je(b,e.extent)){if(e=sl(e,c,d))return e}else a.push.apply(a,e.a)}function vl(a){var b=[];a.forEach(function(a){b.push(a)});return b}function wl(a,b){var c=[];ul(a,b,function(a){c.push(a)},void 0);return c}l.p=function(a){return we(this.a.extent,a)};function xl(a,b,c){var d=B(c).toString();yl(a,b,c,a.a.height-1);a.c[d]=he(b)}
function yl(a,b,c,d){for(var e=[a.a],f=a.a;null!==f.a&&e.length-1!=d;){var g=Infinity,h=Infinity,f=f.a,m=null,n,p;n=0;for(p=f.length;n<p;++n){var q=f[n],r=te(q.extent)*re(q.extent),u=q.extent,y=b,v=Math.min(u[0],y[0]),x=Math.min(u[1],y[1]),w=Math.max(u[2],y[2]),u=Math.max(u[3],y[3]),v=(w-v)*(u-x)-r;v<h?(h=v,g=Math.min(r,g),m=q):v==h&&r<g&&(g=r,m=q)}f=m;e.push(f)}d=f;d.a.push(new kl(b,0,null,c));me(d.extent,b);for(c=e.length-1;0<=c;--c)if(e[c].a.length>a.b){g=a;h=e;f=c;d=h[f];p=g;m=d;n=rl(p,m,ll);
p=rl(p,m,ml);n<p&&Ra(m.a,ll);m=d;n=g.d;p=m.a.length;r=q=Infinity;v=de();x=de();w=0;u=void 0;for(u=n;u<=p-n;++u){var v=nl(m,0,u,v),x=nl(m,u,p,x),A=v,C=x,y=Math.max(A[0],C[0]),E=Math.max(A[1],C[1]),F=Math.min(A[2],C[2]),A=Math.min(A[3],C[3]),y=Math.max(0,F-y)*Math.max(0,A-E),E=te(v)*re(v)+te(x)*re(x);y<q?(q=y,r=Math.min(E,r),w=u):y==q&&E<r&&(r=E,w=u)}m=d.a.splice(w);m=new kl(de(),d.height,m,null);pl(d);pl(m);f?h[f-1].a.push(m):(h=m,f=d.height+1,m=me(d.extent.slice(),h.extent),g.a=new kl(m,f,[d,h],null))}else break;
for(;0<=c;--c)me(e[c].extent,b)}l.$=function(){return 0===this.a.a.length};l.remove=function(a){var b=B(a).toString(),c=this.c[b];delete this.c[b];return zl(this,c,a)};function zl(a,b,c){var d=a.a,e=[d];if(b=d.remove(b,c,e))for(c=e.length-1;0<=c;--c)d=e[c],0===d.a.length?0<c?La(e[c-1].a,d):a.clear():pl(d);return b}l.update=function(a,b){var c=B(b).toString(),d=this.c[c];le(d,a)||(zl(this,d,b),yl(this,a,b,this.a.height-1),this.c[c]=he(a,d))};function Al(a){a=t(a)?a:{};hf.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,state:a.state});this.a=new ql;this.b={};this.e={};t(a.features)&&Bl(this,a.features)}H(Al,hf);l=Al.prototype;l.fe=function(a){Cl(this,a);this.s()};function Cl(a,b){var c=B(b).toString();a.e[c]=K(b,"change",a.Ug,!1,a);c=b.K();null===c?a.b[B(b).toString()]=b:(c=c.p(),xl(a.a,c,b));N(a,new Dl("addfeature",b))}l.Qe=function(a){Bl(this,a);this.s()};
function Bl(a,b){var c,d;c=0;for(d=b.length;c<d;++c)Cl(a,b[c])}l.clear=function(){this.a.forEach(this.ld,this);this.a.clear();Rb(this.b,this.ld,this);Wb(this.b);this.s()};l.$e=function(a,b){return this.a.forEach(a,b)};function El(a,b,c){a.mc([b[0],b[1],b[0],b[1]],function(a){if(a.K().Va(b[0],b[1]))return c.call(void 0,a)})}l.mc=function(a,b,c){return ul(this.a,a,b,c)};l.bf=function(){var a=vl(this.a);Vb(this.b)||Oa(a,Tb(this.b));return a};
l.cf=function(a){var b=[];El(this,a,function(a){b.push(a)});return b};l.ef=function(a){var b=a[0],c=a[1],d=null,e=[NaN,NaN],f=Infinity,g=[-Infinity,-Infinity,Infinity,Infinity];ul(this.a,g,function(a){var m=a.K(),n=f;f=m.ia(b,c,e,f);f<n&&(d=a,a=Math.sqrt(f),g[0]=b-a,g[1]=c-a,g[2]=b+a,g[3]=c+a)},void 0);return d};l.p=function(){return this.a.p()};
l.Ug=function(a){a=a.target;var b=B(a).toString(),c=a.K();null===c?b in this.b||(this.a.remove(a),this.b[b]=a):(c=c.p(),b in this.b?(delete this.b[b],xl(this.a,c,a)):this.a.update(c,a));this.s()};l.$=function(){return this.a.$()&&Vb(this.b)};l.Vg=function(a){var b=B(a).toString();b in this.b?delete this.b[b]:this.a.remove(a);this.ld(a);this.s()};l.ld=function(a){var b=B(a).toString();M(this.e[b]);delete this.e[b];N(this,new Dl("removefeature",a))};function Dl(a,b){Dc.call(this,a);this.feature=b}
H(Dl,Dc);function Fl(a,b){qk.call(this,a,b);this.va=!1;this.f=-1;this.e=NaN;this.h=de();this.c=null}H(Fl,qk);Fl.prototype.k=function(a,b,c){var d=sk(this,a);rk(this,"precompose",c,a,d);var e=this.c;if(null!==e&&!e.$()){var f=Gl(this);c.globalAlpha=b.opacity;Ok(e,c,a.extent,a.pixelRatio,d,f)}rk(this,"postcompose",c,a,d)};Fl.prototype.g=function(a,b,c,d){if(null!==this.c){var e=b.extent,f=b.A.resolution;b=b.A.rotation;var g=this.a,h=Gl(this);return Qk(this.c,e,f,b,a,h,function(a,b){return c.call(d,b,g)})}};
function Gl(a){a=a.a.o();if(!t(a))return ld;var b=a.a;switch(b.length){case 0:return ld;case 1:return b[0];default:return function(a){var d,e;d=0;for(e=b.length;d<e;++d)if(!b[d](a))return!1;return!0}}}Fl.prototype.Ig=function(){Fj(this)};
Fl.prototype.b=function(a){var b=this.a,c=b.a;Hj(a.attributions,c.d);Ij(a,c);if(this.va||!a.M[0]&&!a.M[1]){var d=a.extent,e=a.A.resolution,f=a.pixelRatio;a=b.c;if(this.va||this.e!=e||this.f!=a||!je(this.h,d)){var g=this.h,h=te(d)/4,m=re(d)/4;g[0]=d[0]-h;g[1]=d[1]-m;g[2]=d[2]+h;g[3]=d[3]+m;Cc(this.c);this.c=null;this.va=!1;var n=b.d;t(n)||(n=lh);var p=new Nk(e/(2*f));c.mc(g,function(a){var b=n(a,e);if(null!=b){var c=e*e/(4*f*f),d,g,h=!1;d=0;for(g=b.length;d<g;++d)h=hl(p,a,b[d],c,a,this.Ig,this)||h;
a=h}else a=!1;this.va=this.va||a},this);Rk(p);this.e=e;this.f=a;this.c=p}}};function Hl(a,b){Tj.call(this,0,b);this.a=kc("CANVAS");this.a.style.width="100%";this.a.style.height="100%";this.a.className="ol-unselectable";oc(a,this.a,0);this.c=!0;this.f=this.a.getContext("2d");this.h=Ud()}H(Hl,Tj);Hl.prototype.ec=function(a){return a instanceof Yj?new vk(this,a):a instanceof Zj?new wk(this,a):a instanceof ak?new Fl(this,a):null};
function Il(a,b,c){var d=a.g,e=a.f;if(fd(d.V,b)){var f=c.A,g=c.pixelRatio;Qj(a.h,a.a.width/2,a.a.height/2,g/f.resolution,-g/f.resolution,-f.rotation,-f.center[0],-f.center[1]);a=new ek(e,g,c.extent,a.h);N(d,new Tg(b,d,a,c,e,null));pk(a)}}
Hl.prototype.Dc=function(a){if(null===a)this.c&&(Gi(this.a,!1),this.c=!1);else{var b=this.f,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);Uj(a);Il(this,"precompose",a);var c=a.Y,d=a.xc,e=a.A.resolution,f,g,h,m;f=0;for(g=d.length;f<g;++f)h=d[f],m=Vj(this,h),h=c[B(h)],!h.visible||(1!=h.md||e>=h.maxResolution||e<h.minResolution)||(m.b(a,h),m.k(a,h,b));Il(this,"postcompose",a);this.c||(Gi(this.a,
!0),this.c=!0);Xj(this,a);Wj(a)}};var Jl=function(){var a;return function(){if(!t(a))if(s.getComputedStyle){var b=kc("P"),c,d={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};document.body.appendChild(b);for(var e in d)e in b.style&&(b.style[e]="translate(1px,1px)",c=s.getComputedStyle(b).getPropertyValue(d[e]));pc(b);a=c&&"none"!==c}else a=!1;return a}}(),Kl=function(){var a;return function(){if(!t(a))if(s.getComputedStyle){var b=kc("P"),
c,d={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};document.body.appendChild(b);for(var e in d)e in b.style&&(b.style[e]="translate3d(1px,1px,1px)",c=s.getComputedStyle(b).getPropertyValue(d[e]));pc(b);a=c&&"none"!==c}else a=!1;return a}}();function Ll(a,b){var c=a.style;c.WebkitTransform=b;c.MozTransform=b;c.a=b;c.msTransform=b;c.transform=b;I&&!wc&&(a.style.transformOrigin="0 0")}
function Ml(a,b){var c;if(Kl()){if(t(6)){var d=Array(16);for(c=0;16>c;++c)d[c]=b[c].toFixed(6);c=d.join(",")}else c=b.join(",");Ll(a,"matrix3d("+c+")")}else if(Jl()){d=[b[0],b[1],b[4],b[5],b[12],b[13]];if(t(6)){var e=Array(6);for(c=0;6>c;++c)e[c]=d[c].toFixed(6);c=e.join(",")}else c=d.join(",");Ll(a,"matrix("+c+")")}else a.style.left=Math.round(b[12])+"px",a.style.top=Math.round(b[13])+"px"};function Nl(a,b,c){Ej.call(this,a,b);this.target=c}H(Nl,Ej);function Ol(a,b){var c=kc("DIV");c.style.position="absolute";Nl.call(this,a,b,c);this.c=null;this.e=Wd()}H(Ol,Nl);Ol.prototype.g=function(a,b,c,d){var e=this.a;return e.a.k(b.extent,b.A.resolution,b.A.rotation,a,function(a){return c.call(d,a,e)})};
Ol.prototype.b=function(a){var b=a.A,c=b.center,d=b.resolution,e=b.rotation,f=this.c,g=this.a.a,h=a.M;h[0]||h[1]||(b=g.tb(a.extent,d,a.pixelRatio,b.projection),null!==b&&(h=b.state,0==h?(ad(b,"change",this.l,!1,this),uj(b)):2==h&&(f=b)));if(null!==f){var h=f.p(),m=f.d,b=Ud();Qj(b,a.size[0]/2,a.size[1]/2,m/d,m/d,e,(h[0]-c[0])/m,(c[1]-h[3])/m);f!=this.c&&(c=f.e(this),c.style.maxWidth="none",c.style.position="absolute",mc(this.target),this.target.appendChild(c),this.c=f);Rj(b,this.e)||(Ml(this.target,
b),Xd(this.e,b));Hj(a.attributions,f.f);Ij(a,g)}};function Pl(a,b){var c=kc("DIV");c.style.position="absolute";Nl.call(this,a,b,c);this.e=!0;this.h=1;this.f=0;this.c={}}H(Pl,Nl);
Pl.prototype.b=function(a,b){if(b.visible){var c=a.pixelRatio,d=a.A,e=d.projection,f=this.a,g=f.a,h=Dj(g,e),m=g.pc(),n=If(h.a,d.resolution,0),p=h.a[n],q=d.center,r;p==d.resolution?(q=Lj(q,p,a.size),r=qe(q,p,d.rotation,a.size)):r=a.extent;var p=zj(h,r,p),u={};u[n]={};var y=D(g.Oc,g,u,Kj(function(a){return null!==a&&2==a.state},g,c,e)),v=de(),x=new ab(0,0,0,0),w,A,C,E;for(C=p.a;C<=p.d;++C)for(E=p.b;E<=p.c;++E)w=g.nb(n,C,E,c,e),A=w.state,2==A?u[n][w.a.toString()]=w:3!=A&&4!=A&&(A=h.nc(w.a,y,null,x,v),
A||(w=h.qc(w.a,x,v),null===w||y(n+1,w)));var F;if(this.f!=g.c){for(F in this.c)v=this.c[+F],pc(v.target);this.c={};this.f=g.c}C=Ha(Ub(u),Number);Ra(C);var y={},L;E=0;for(w=C.length;E<w;++E){F=C[E];F in this.c?v=this.c[F]:(v=Aj(h,q[0],q[1],h.a[F],!1,void 0),v=new Ql(h,v),y[F]=!0,this.c[F]=v);F=u[F];for(L in F)Rl(v,F[L],m);Sl(v)}m=Ha(Ub(this.c),Number);Ra(m);E=Ud();L=0;for(C=m.length;L<C;++L)if(F=m[L],v=this.c[F],F in u)if(A=v.f,w=v.g,Qj(E,a.size[0]/2,a.size[1]/2,A/d.resolution,A/d.resolution,d.rotation,
(w[0]-q[0])/A,(q[1]-w[1])/A),Tl(v,E),F in y){for(F-=1;0<=F;--F)if(F in this.c){nc(v.target,this.c[F].target);break}0>F&&oc(this.target,v.target,0)}else a.M[0]||a.M[1]||Ul(v,r,x);else pc(v.target),delete this.c[F];b.opacity!=this.h&&(Fi(this.target,b.opacity),this.h=b.opacity);b.visible&&!this.e&&(Gi(this.target,!0),this.e=!0);Jj(a.Wb,g,n,p);Mj(a,g,h,c,e,r,n,f.d());Gj(a,g);Ij(a,g)}else this.e&&(Gi(this.target,!1),this.e=!1)};
function Ql(a,b){this.target=kc("DIV");this.target.style.position="absolute";this.target.style.width="100%";this.target.style.height="100%";this.e=a;this.b=b;this.g=se(xj(a,b));this.f=a.a[b.a];this.c={};this.a=null;this.d=Wd()}
function Rl(a,b,c){var d=b.a,e=d.toString();if(!(e in a.c)){var f=a.e.ka(d.a),g=b.b(a),h=g.style;h.maxWidth="none";var m,n;0<c?(m=kc("DIV"),n=m.style,n.overflow="hidden",n.width=f+"px",n.height=f+"px",h.position="absolute",h.left=-c+"px",h.top=-c+"px",h.width=f+2*c+"px",h.height=f+2*c+"px",m.appendChild(g)):(h.width=f+"px",h.height=f+"px",m=g,n=h);n.position="absolute";n.left=(d.x-a.b.x)*f+"px";n.top=(a.b.y-d.y)*f+"px";null===a.a&&(a.a=document.createDocumentFragment());a.a.appendChild(m);a.c[e]=
b}}function Sl(a){null!==a.a&&(a.target.appendChild(a.a),a.a=null)}function Ul(a,b,c){var d=yj(a.e,b,a.b.a,c);b=[];for(var e in a.c)c=a.c[e],d.contains(c.a)||b.push(c);var f,d=0;for(f=b.length;d<f;++d)c=b[d],e=c.a.toString(),pc(c.b(a)),delete a.c[e]}function Tl(a,b){Rj(b,a.d)||(Ml(a.target,b),Xd(a.d,b))};function Vl(a,b){Tj.call(this,0,b);this.a=kc("DIV");this.a.className="ol-unselectable";var c=this.a.style;c.position="absolute";c.width="100%";c.height="100%";oc(a,this.a,0);this.c=!0}H(Vl,Tj);Vl.prototype.ec=function(a){if(a instanceof Yj)a=new Ol(this,a);else if(a instanceof Zj)a=new Pl(this,a);else return null;return a};
Vl.prototype.Dc=function(a){if(null===a)this.c&&(Gi(this.a,!1),this.c=!1);else{var b;b=function(a,b){oc(this.a,a,b)};var c=a.Y,d=a.xc,e,f,g,h;e=0;for(f=d.length;e<f;++e)g=d[e],h=Vj(this,g),b.call(this,h.target,e),g=a.Y[B(g)],1==g.md&&h.b(a,g);for(var m in this.b)m in c||(h=this.b[m],pc(h.target));this.c||(Gi(this.a,!0),this.c=!0);Uj(a);Xj(this,a);Wj(a)}};function Wl(){}l=Wl.prototype;l.hc=ca();l.ic=ca();l.Mc=ca();l.Hd=ca();l.Kb=ca();l.Hb=ca();l.Ib=ca();l.Jb=ca();l.jc=ca();l.lb=ca();l.Ma=ca();l.ra=ca();l.yb=ca();l.Ba=ca();function Xl(){this.f=Ud();this.c=void 0;this.a=Ud();this.d=void 0;this.b=Ud();this.g=void 0;this.e=Ud();this.i=void 0;this.h=Ud()}
function Yl(a,b,c,d,e){var f=!1;t(b)&&b!==a.c&&(f=a.a,Yd(f),f[12]=b,f[13]=b,f[14]=b,f[15]=1,a.c=b,f=!0);if(t(c)&&c!==a.d){f=a.b;Yd(f);f[0]=c;f[5]=c;f[10]=c;f[15]=1;var g=-0.5*c+0.5;f[12]=g;f[13]=g;f[14]=g;f[15]=1;a.d=c;f=!0}t(d)&&d!==a.g&&(f=Math.cos(d),g=Math.sin(d),Vd(a.e,0.213+0.787*f-0.213*g,0.213-0.213*f+0.143*g,0.213-0.213*f-0.787*g,0,0.715-0.715*f-0.715*g,0.715+0.285*f+0.14*g,0.715-0.715*f+0.715*g,0,0.072-0.072*f+0.928*g,0.072-0.072*f-0.283*g,0.072+0.928*f+0.072*g,0,0,0,0,1),a.g=d,f=!0);t(e)&&
e!==a.i&&(Vd(a.h,0.213+0.787*e,0.213-0.213*e,0.213-0.213*e,0,0.715-0.715*e,0.715+0.285*e,0.715-0.715*e,0,0.072-0.072*e,0.072-0.072*e,0.072+0.928*e,0,0,0,0,1),a.i=e,f=!0);f&&(f=a.f,Yd(f),t(c)&&Zd(f,a.b,f),t(b)&&Zd(f,a.a,f),t(e)&&Zd(f,a.h,f),t(d)&&Zd(f,a.e,f));return a.f};function Zl(a){this.a=a}function $l(a){this.a=a}H($l,Zl);$l.prototype.C=ea(35632);function am(a){this.a=a}H(am,Zl);am.prototype.C=ea(35633);function bm(){this.a="precision mediump float;varying vec2 a;uniform mat4 f;uniform float g;uniform sampler2D h;void main(void){vec4 texColor\x3dtexture2D(h,a);gl_FragColor.rgb\x3d(f*vec4(texColor.rgb,1.)).rgb;gl_FragColor.a\x3dtexColor.a*g;}"}H(bm,$l);ha(bm);function cm(){this.a="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform mat4 d;uniform mat4 e;void main(void){gl_Position\x3de*vec4(b,0.,1.);a\x3d(d*vec4(c,0.,1.)).st;}"}H(cm,am);ha(cm);
function dm(a,b){this.f=a.getUniformLocation(b,"f");this.d=a.getUniformLocation(b,"g");this.e=a.getUniformLocation(b,"e");this.g=a.getUniformLocation(b,"d");this.b=a.getUniformLocation(b,"h");this.a=a.getAttribLocation(b,"b");this.c=a.getAttribLocation(b,"c")};function em(){this.a="precision mediump float;varying vec2 a;uniform float f;uniform sampler2D g;void main(void){vec4 texColor\x3dtexture2D(g,a);gl_FragColor.rgb\x3dtexColor.rgb;gl_FragColor.a\x3dtexColor.a*f;}"}H(em,$l);ha(em);function fm(){this.a="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform mat4 d;uniform mat4 e;void main(void){gl_Position\x3de*vec4(b,0.,1.);a\x3d(d*vec4(c,0.,1.)).st;}"}H(fm,am);ha(fm);
function gm(a,b){this.d=a.getUniformLocation(b,"f");this.e=a.getUniformLocation(b,"e");this.g=a.getUniformLocation(b,"d");this.b=a.getUniformLocation(b,"g");this.a=a.getAttribLocation(b,"b");this.c=a.getAttribLocation(b,"c")};function hm(a){this.a=t(a)?a:[]}function im(a,b,c){if(b!=c){var d=a.a,e=d.length,f;for(f=0;f<e;f+=2)if(b<=d[f]){d.splice(f,0,b,c);jm(a);return}d.push(b,c);jm(a)}}hm.prototype.clear=function(){this.a.length=0};function jm(a){a=a.a;var b=a.length,c=0,d;for(d=0;d<b;d+=2)a[d]!=a[d+1]&&(0<c&&a[c-2]<=a[d]&&a[d]<=a[c-1]?a[c-1]=Math.max(a[c-1],a[d+1]):(a[c++]=a[d],a[c++]=a[d+1]));a.length=c}function km(a,b){var c=a.a,d=c.length,e;for(e=0;e<d;e+=2)b.call(void 0,c[e],c[e+1])}
hm.prototype.$=function(){return 0===this.a.length};function lm(a,b,c){var d=a.a,e=d.length,f;for(f=0;f<e;f+=2)if(!(c<d[f]||d[f+1]<b)){if(d[f]>c)break;if(b<d[f])if(c==d[f])break;else if(c<d[f+1]){d[f]=Math.max(d[f],c);break}else d.splice(f,2),f-=2,e-=2;else if(b==d[f])if(c<d[f+1]){d[f]=c;break}else if(c==d[f+1]){d.splice(f,2);break}else d.splice(f,2),f-=2,e-=2;else if(c<d[f+1]){d.splice(f,2,d[f],b,c,d[f+1]);break}else if(c==d[f+1]){d[f+1]=b;break}else d[f+1]=b}jm(a)};function mm(a,b,c){this.c=t(a)?a:[];this.a=[];this.b=new hm;a=t(b)?b:this.c.length;a<this.c.length&&im(this.b,a,this.c.length);this.e=this.g=null;this.d=t(c)?c:35044}mm.prototype.add=function(a){var b=a.length,c;a:{c=this.b.a;var d=c.length,e=-1,f,g,h;for(g=0;g<d;g+=2){h=c[g+1]-c[g];if(h==b){c=c[g];break a}h>b&&(-1==e||h<f)&&(e=c[g],f=h)}c=e}lm(this.b,c,c+b);for(d=0;d<b;++d)this.c[c+d]=a[d];a=0;for(d=this.a.length;a<d;++a)im(this.a[a],c,c+b);return c};
mm.prototype.xa=function(){var a=this.b.a,b=a.length,c=0,d;for(d=0;d<b;d+=2)c+=a[d+1]-a[d];return this.c.length-c};mm.prototype.remove=function(a,b){var c,d;im(this.b,b,b+a);c=0;for(d=this.a.length;c<d;++c)lm(this.a[c],b,b+a)};function nm(a,b){Ej.call(this,a,b);this.Q=new mm([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]);this.f=this.ga=null;this.h=void 0;this.q=Ud();this.w=Wd();this.Z=new Xl;this.k=this.i=null}H(nm,Ej);
function om(a,b,c){var d=a.d.d;if(t(a.h)&&a.h==c)d.bindFramebuffer(36160,a.f);else{b.Sa.push(sa(function(a,b,c){a.isContextLost()||(a.deleteFramebuffer(b),a.deleteTexture(c))},d,a.f,a.ga));b=d.createTexture();d.bindTexture(3553,b);d.texImage2D(3553,0,6408,c,c,0,6408,5121,null);d.texParameteri(3553,10240,9729);d.texParameteri(3553,10241,9729);var e=d.createFramebuffer();d.bindFramebuffer(36160,e);d.framebufferTexture2D(36160,36064,3553,b,0);a.ga=b;a.f=e;a.h=c}}
function pm(a,b,c,d){a=a.a;fd(a.V,b)&&N(a,new Tg(b,a,new Wl,d,null,c))}nm.prototype.n=function(){this.f=this.ga=null;this.h=void 0};function qm(a,b){nm.call(this,a,b);this.c=null}H(qm,nm);function rm(a,b){var c=b.e(),d=a.d.d,e=d.createTexture();d.bindTexture(3553,e);d.texImage2D(3553,0,6408,6408,5121,c);d.texParameteri(3553,10242,33071);d.texParameteri(3553,10243,33071);d.texParameteri(3553,10241,9729);d.texParameteri(3553,10240,9729);return e}qm.prototype.g=function(a,b,c,d){var e=this.a;return e.a.k(b.extent,b.A.resolution,b.A.rotation,a,function(a){return c.call(d,a,e)})};
qm.prototype.b=function(a){var b=this.d.d,c=a.A,d=c.center,e=c.resolution,f=c.rotation,g=this.c,h=this.ga,m=this.a.a,n=a.M;n[0]||n[1]||(c=m.tb(a.extent,e,a.pixelRatio,c.projection),null!==c&&(n=c.state,0==n?(ad(c,"change",this.l,!1,this),uj(c)):2==n&&(g=c,h=rm(this,c),null===this.ga||a.Sa.push(sa(function(a,b){a.isContextLost()||a.deleteTexture(b)},b,this.ga)))));null!==g&&(b=this.d.e.g,sm(this,b.width,b.height,d,e,f,g.p()),d=this.q,Yd(d),ae(d,1,-1),$d(d,0,-1),this.c=g,this.ga=h,Hj(a.attributions,
g.f),Ij(a,m))};function sm(a,b,c,d,e,f,g){b*=e;c*=e;a=a.w;Yd(a);ae(a,2/b,2/c);be(a,-f);$d(a,g[0]-d[0],g[1]-d[1]);ae(a,(g[2]-g[0])/2,(g[3]-g[1])/2);$d(a,1,1)};function tm(){this.a="precision mediump float;varying vec2 a;uniform sampler2D e;void main(void){gl_FragColor\x3dtexture2D(e,a);}"}H(tm,$l);ha(tm);function um(){this.a="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform vec4 d;void main(void){gl_Position\x3dvec4(b*d.xy+d.zw,0.,1.);a\x3dc;}"}H(um,am);ha(um);function vm(a,b){this.b=a.getUniformLocation(b,"e");this.d=a.getUniformLocation(b,"d");this.a=a.getAttribLocation(b,"b");this.c=a.getAttribLocation(b,"c")};function wm(a,b){nm.call(this,a,b);this.R=tm.Na();this.ta=um.Na();this.c=null;this.G=new mm([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]);this.r=this.e=null;this.o=-1}H(wm,nm);wm.prototype.v=function(){var a=this.d.e,b=a.c,c=B(this.G),d=a.a[c];La(d.Bd.a,d.gc);b.isContextLost()||b.deleteBuffer(d.buffer);delete a.a[c];wm.D.v.call(this)};wm.prototype.n=function(){wm.D.n.call(this);this.c=null};
wm.prototype.b=function(a){var b=this.d,c=b.e,d=b.d,e=a.A,f=e.projection,g=this.a,h=g.a,m=Dj(h,f),n=If(m.a,e.resolution,0),p=m.a[n],q=h.Mb(n,a.pixelRatio,f),r=q/m.ka(n),u=p/r,y=h.pc(),v=e.center,x;p==e.resolution?(v=Lj(v,p,a.size),x=qe(v,p,e.rotation,a.size)):x=a.extent;p=zj(m,x,p);if(null!==this.e&&this.e.a==p.a&&(this.e.b==p.b&&this.e.d==p.d&&this.e.c==p.c)&&this.o==h.c)u=this.r;else{var w=[p.d-p.a+1,p.c-p.b+1],w=Math.max(w[0]*q,w[1]*q),A=Math.pow(2,Math.ceil(Math.log(w)/Math.LN2)),w=u*A,C=m.Sb(n),
E=C[0]+p.a*q*u,u=C[1]+p.b*q*u,u=[E,u,E+w,u+w];om(this,a,A);d.viewport(0,0,A,A);d.clearColor(0,0,0,0);d.clear(16384);d.disable(3042);A=xm(c,this.R,this.ta);c.fd(A);null===this.c&&(this.c=new vm(d,A));ym(c,this.G);d.enableVertexAttribArray(this.c.a);d.vertexAttribPointer(this.c.a,2,5126,!1,16,0);d.enableVertexAttribArray(this.c.c);d.vertexAttribPointer(this.c.c,2,5126,!1,16,8);d.uniform1i(this.c.b,0);c={};c[n]={};var F=D(h.Oc,h,c,Kj(function(a){return null!==a&&2==a.state&&zm(b.c,a.d())},h,r,f)),A=
!0,E=de(),L=new ab(0,0,0,0),X,aa,da;for(aa=p.a;aa<=p.d;++aa)for(da=p.b;da<=p.c;++da){C=h.nb(n,aa,da,r,f);X=C.state;if(2==X){if(zm(b.c,C.d())){c[n][C.a.toString()]=C;continue}}else if(3==X||4==X)continue;A=!1;X=m.nc(C.a,F,null,L,E);X||(C=m.qc(C.a,L,E),null===C||F(n+1,C))}F=Ha(Ub(c),Number);Ra(F);var L=new Float32Array(4),O,Z,db,ba,eb;aa=0;for(da=F.length;aa<da;++aa)for(db in ba=c[F[aa]],ba)C=ba[db],Z=xj(m,C.a,E),X=2*(Z[2]-Z[0])/w,O=2*(Z[3]-Z[1])/w,eb=2*(Z[0]-u[0])/w-1,Z=2*(Z[1]-u[1])/w-1,Td(L,X,O,
eb,Z),d.uniform4fv(this.c.d,L),Am(b,C,q,y*r),d.drawArrays(5,0,4);A?(this.e=p,this.r=u,this.o=h.c):(this.r=this.e=null,this.o=-1,a.ca=!0)}Jj(a.Wb,h,n,p);var Ya=b.h;Mj(a,h,m,r,f,x,n,g.d(),function(a){var c;(c=2!=a.state)||(c=zm(b.c,a.d()))||(c=a.d()in Ya.b);c||Ee(Ya,[a,Bj(m,a.a),m.a[a.a.a],q,y*r])},this);Gj(a,h);Ij(a,h);d=this.q;Yd(d);$d(d,(v[0]-u[0])/(u[2]-u[0]),(v[1]-u[1])/(u[3]-u[1]));0!==e.rotation&&be(d,e.rotation);ae(d,a.size[0]*e.resolution/(u[2]-u[0]),a.size[1]*e.resolution/(u[3]-u[1]));$d(d,
-0.5,-0.5)};function Bm(){this.F=0;this.b={};this.c=this.a=null}l=Bm.prototype;l.clear=function(){this.F=0;this.b={};this.c=this.a=null};function zm(a,b){return a.b.hasOwnProperty(b)}l.forEach=function(a,b){for(var c=this.a;null!==c;)a.call(b,c.ib,c.wc,this),c=c.la};function Cm(a,b){var c=a.b[b];if(c===a.c)return c.ib;c===a.a?(a.a=a.a.la,a.a.Ra=null):(c.la.Ra=c.Ra,c.Ra.la=c.la);c.la=null;c.Ra=a.c;a.c.la=c;a.c=c;return c.ib}l.xa=k("F");
l.Da=function(){var a=Array(this.F),b=0,c;for(c=this.c;null!==c;c=c.Ra)a[b++]=c.wc;return a};l.Ea=function(){var a=Array(this.F),b=0,c;for(c=this.c;null!==c;c=c.Ra)a[b++]=c.ib;return a};l.pop=function(){var a=this.a;delete this.b[a.wc];null!==a.la&&(a.la.Ra=null);this.a=a.la;null===this.a&&(this.c=null);--this.F;return a.ib};function Dm(a,b,c){c={wc:b,la:null,Ra:a.c,ib:c};null===a.c?a.a=c:a.c.la=c;a.c=c;a.b[b]=c;++a.F};function Em(a,b){this.g=a;this.c=b;this.a={};this.d={};this.b={};this.e=null;K(this.g,"webglcontextlost",this.nh,!1,this);K(this.g,"webglcontextrestored",this.oh,!1,this)}
function ym(a,b){var c=a.c,d=b.c,e=B(b);if(e in a.a)e=a.a[e],c.bindBuffer(34962,e.buffer),km(e.gc,function(a,b){var e=d.slice(a,b);c.bufferSubData(34962,a,new Float32Array(e))}),e.gc.clear();else{var f=c.createBuffer();c.bindBuffer(34962,f);c.bufferData(34962,new Float32Array(d),b.d);var g=new hm;b.a.push(g);a.a[e]={Bd:b,buffer:f,gc:g}}}l=Em.prototype;
l.v=function(){Rb(this.a,function(a){La(a.Bd.a,a.gc)});var a=this.c;a.isContextLost()||(Rb(this.a,function(b){a.deleteBuffer(b.buffer)}),Rb(this.b,function(b){a.deleteProgram(b)}),Rb(this.d,function(b){a.deleteShader(b)}))};l.mh=k("c");function Fm(a,b){var c=B(b);if(c in a.d)return a.d[c];var d=a.c,e=d.createShader(b.C());d.shaderSource(e,b.a);d.compileShader(e);return a.d[c]=e}
function xm(a,b,c){var d=B(b)+"/"+B(c);if(d in a.b)return a.b[d];var e=a.c,f=e.createProgram();e.attachShader(f,Fm(a,b));e.attachShader(f,Fm(a,c));e.linkProgram(f);return a.b[d]=f}l.nh=function(){Wb(this.a);Wb(this.d);Wb(this.b);this.e=null};l.oh=ca();l.fd=function(a){if(a==this.e)return!1;this.c.useProgram(a);this.e=a;return!0};function Gm(a,b){Tj.call(this,0,b);this.a=kc("CANVAS");this.a.style.width="100%";this.a.style.height="100%";this.a.className="ol-unselectable";oc(a,this.a,0);this.n=kc("CANVAS");this.l=0;this.o=this.n.getContext("2d");this.i=!0;this.d=uc(this.a,{antialias:!0,depth:!1,Ze:!0,preserveDrawingBuffer:!1,stencil:!0});this.e=new Em(this.a,this.d);K(this.a,"webglcontextlost",this.Jg,!1,this);K(this.a,"webglcontextrestored",this.Kg,!1,this);this.c=new Bm;this.k=null;this.h=new Be(D(function(a){var b=a[1];a=
a[2];var e=b[0]-this.k[0],b=b[1]-this.k[1];return 65536*Math.log(a)+Math.sqrt(e*e+b*b)/a},this),function(a){return a[0].d()});this.r=D(function(){if(!this.h.$()){Ge(this.h);var a=Ce(this.h);Am(this,a[0],a[3],a[4])}},this);this.f=0;Hm(this)}H(Gm,Tj);
function Am(a,b,c,d){var e=a.d,f=b.d();if(zm(a.c,f))a=Cm(a.c,f),e.bindTexture(3553,a.ga),9729!=a.Zd&&(e.texParameteri(3553,10240,9729),a.Zd=9729),9729!=a.$d&&(e.texParameteri(3553,10240,9729),a.$d=9729);else{var g=e.createTexture();e.bindTexture(3553,g);if(0<d){var h=a.n,m=a.o;a.l!=c?(h.width=c,h.height=c,a.l=c):m.clearRect(0,0,c,c);m.drawImage(b.b(),d,d,c,c,0,0,c,c);e.texImage2D(3553,0,6408,6408,5121,h)}else e.texImage2D(3553,0,6408,6408,5121,b.b());e.texParameteri(3553,10240,9729);e.texParameteri(3553,
10241,9729);e.texParameteri(3553,10242,33071);e.texParameteri(3553,10243,33071);Dm(a.c,f,{ga:g,Zd:9729,$d:9729})}}l=Gm.prototype;l.ec=function(a){return a instanceof Yj?new qm(this,a):a instanceof Zj?new wm(this,a):null};function Im(a,b,c){var d=a.g;fd(d.V,b)&&N(d,new Tg(b,d,new Wl,c,null,a.e))}l.v=function(){var a=this.d;a.isContextLost()||this.c.forEach(function(b){null===b||a.deleteTexture(b.ga)});Cc(this.e);Gm.D.v.call(this)};
l.Ye=function(a,b){for(var c=this.d,d;1024<this.c.xa()-this.f;){d=this.c.a.ib;if(null===d)if(+this.c.a.wc==b.index)break;else--this.f;else c.deleteTexture(d.ga);this.c.pop()}};l.Jg=function(a){a.J();this.c.clear();this.f=0;Rb(this.b,function(a){a.n()})};l.Kg=function(){Hm(this);this.g.ma()};function Hm(a){a=a.d;a.activeTexture(33984);a.blendFuncSeparate(770,771,1,771);a.disable(2884);a.disable(2929);a.disable(3089);a.disable(2960)}
l.Dc=function(a){var b=this.e,c=this.d;if(c.isContextLost())return!1;if(null===a)return this.i&&(Gi(this.a,!1),this.i=!1),!1;this.k=a.focus;Dm(this.c,(-a.index).toString(),null);++this.f;var d=[],e=a.xc,f=a.A.resolution,g,h,m,n;g=0;for(h=e.length;g<h;++g)m=e[g],n=a.Y[B(m)],n.visible&&(1==n.md&&f<n.maxResolution&&f>=n.minResolution)&&d.push(m);g=0;for(h=d.length;g<h;++g)m=d[g],e=Vj(this,m),n=a.Y[B(m)],e.b(a,n);g=a.size[0]*a.pixelRatio;h=a.size[1]*a.pixelRatio;if(this.a.width!=g||this.a.height!=h)this.a.width=
g,this.a.height=h;c.bindFramebuffer(36160,null);c.clearColor(0,0,0,0);c.clear(16384);c.enable(3042);c.viewport(0,0,this.a.width,this.a.height);Im(this,"precompose",a);g=0;for(h=d.length;g<h;++g){m=d[g];n=a.Y[B(m)];c=e=Vj(this,m);m=a;e=b;pm(c,"precompose",e,m);ym(e,c.Q);var f=e.c,p=n.brightness||1!=n.contrast||n.hue||1!=n.saturation,q=void 0,r=void 0;p?(q=bm.Na(),r=cm.Na()):(q=em.Na(),r=fm.Na());q=xm(e,q,r);r=void 0;p?null===c.i?(r=new dm(f,q),c.i=r):r=c.i:null===c.k?(r=new gm(f,q),c.k=r):r=c.k;e.fd(q)&&
(f.enableVertexAttribArray(r.a),f.vertexAttribPointer(r.a,2,5126,!1,16,0),f.enableVertexAttribArray(r.c),f.vertexAttribPointer(r.c,2,5126,!1,16,8),f.uniform1i(r.b,0));f.uniformMatrix4fv(r.g,!1,c.q);f.uniformMatrix4fv(r.e,!1,c.w);p&&f.uniformMatrix4fv(r.f,!1,Yl(c.Z,n.brightness,n.contrast,n.hue,n.saturation));f.uniform1f(r.d,n.opacity);f.bindTexture(3553,c.ga);f.drawArrays(5,0,4);pm(c,"postcompose",e,m)}this.i||(Gi(this.a,!0),this.i=!0);Uj(a);1024<this.c.xa()-this.f&&a.Sa.push(D(this.Ye,this));this.h.$()||
(a.Sa.push(this.r),a.ca=!0);Im(this,"postcompose",a);Xj(this,a);Wj(a)};var Jm=["webgl","canvas","dom"];
function V(a){P.call(this);var b=Km(a);this.Ie=t(a.pixelRatio)?a.pixelRatio:vc.vd;this.He=b.ol3Logo;this.i=new $h(this.Gh,void 0,this);Bc(this,this.i);this.Ic=Ud();this.Ke=Ud();this.Ge=0;this.d=null;this.k=0;this.va=!1;this.n=this.R=null;this.b=hc("DIV","ol-viewport");this.b.style.position="relative";this.b.style.overflow="hidden";this.b.style.width="100%";this.b.style.height="100%";this.b.style.msTouchAction="none";vc.zd&&(this.b.className="ol-touch");this.Zb=hc("DIV","ol-overlaycontainer");this.b.appendChild(this.Zb);
this.w=hc("DIV","ol-overlaycontainer-stopevent");K(this.w,["click","dblclick","mousedown","touchstart","MSPointerDown"],Ec);this.b.appendChild(this.w);a=new of(this);K(a,Tb(Af),this.ce,!1,this);Bc(this,a);this.Yb=b.keyboardEventTarget;this.q=new ji;K(this.q,"key",this.Td,!1,this);Bc(this,this.q);a=new Pi(this.b);K(a,"mousewheel",this.Td,!1,this);Bc(this,a);this.r=b.controls;this.Fe=b.deviceOptions;this.l=b.interactions;this.G=b.overlays;this.Ka=new b.Hh(this.b,this);Bc(this,this.Ka);this.Ne=new fi;
K(this.Ne,"resize",this.Q,!1,this);this.ua=null;this.o=[];this.$b=[];this.bc=new He(D(this.Af,this),D(this.fg,this));K(this,Cd("layergroup"),this.Nf,!1,this);K(this,Cd("view"),this.jg,!1,this);K(this,Cd("size"),this.dg,!1,this);K(this,Cd("target"),this.eg,!1,this);this.ba(b.Qh);this.r.forEach(function(a){a.setMap(this)},this);this.l.forEach(function(a){a.fa(this)},this);this.G.forEach(function(a){a.e(this)},this)}H(V,P);l=V.prototype;l.Oe=function(a){this.r.push(a);a.setMap(this)};
l.Re=function(a){this.l.push(a);a.fa(this)};l.Se=function(a){this.Xa().eb().push(a)};l.Te=function(a){this.G.push(a);a.e(this)};l.ha=function(a){this.N();Array.prototype.push.apply(this.o,arguments)};l.v=function(){pc(this.b);V.D.v.call(this)};l.cd=function(a,b,c,d,e){if(null!==this.d){a=this.da(a);a:{var f=this.Ka,g=this.d;c=t(c)?c:null;d=t(d)?d:ld;e=t(e)?e:null;var h=f.g.Xa().Rc(),m;for(m=h.length-1;0<=m;--m){var n=h[m];if(n.b()&&d.call(e,n)&&(n=Vj(f,n).g(a,g,b,c))){b=n;break a}}b=void 0}return b}};
l.Ld=function(a){return this.da(this.oc(a))};l.oc=function(a){if(t(a.changedTouches)){a=a.changedTouches.item(0);var b=Bi(this.b);return[a.clientX-b.x,a.clientY-b.y]}a=Ai(a,this.b);return[a.x,a.y]};l.zc=function(){return this.t("target")};V.prototype.getTarget=V.prototype.zc;l=V.prototype;l.da=function(a){var b=this.d;if(null===b)return null;a=a.slice();return Sj(b.ke,a,a)};l.ff=k("r");l.uf=k("G");l.mf=k("l");l.Xa=function(){return this.t("layergroup")};V.prototype.getLayerGroup=V.prototype.Xa;
V.prototype.Je=function(){var a=this.Xa();if(t(a))return a.eb()};V.prototype.e=function(a){var b=this.d;if(null===b)return null;a=a.slice(0,2);return Sj(b.Fd,a,a)};V.prototype.f=function(){return this.t("size")};V.prototype.getSize=V.prototype.f;V.prototype.a=function(){return this.t("view")};V.prototype.getView=V.prototype.a;l=V.prototype;l.Bf=k("b");
l.Af=function(a,b,c,d){var e=this.d;if(!(null!==e&&b in e.zb&&e.zb[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};l.Td=function(a,b){var c=new nf(b||a.type,this,a);this.ce(c)};l.ce=function(a){if(null!==this.d){this.ua=a.coordinate;a.b=this.d;var b=this.l.a,c;if(!1!==N(this,a))for(c=b.length-1;0<=c&&b[c].oa(a);c--);}};
l.ag=function(){var a=this.d,b=this.bc;if(!b.$()){var c=16,d=c,e=0;if(null!==a){var e=a.M,f=this.Fe;e[0]&&(c=!1===f.loadTilesWhileAnimating?0:8,d=2);e[1]&&(c=!1===f.loadTilesWhileInteracting?0:8,d=2);var e=a.zb,f=0,g;for(g in e)f++;e=f}c*=e;d*=e;if(b.d<c){Ge(b);c=Math.min(c-b.d,d,b.xa());for(d=0;d<c;++d)g=Ce(b)[0],ad(g,"change",b.f,!1,b),0==g.state&&(g.state=1,g.e=[ad(g.c,"error",g.k,!1,g),ad(g.c,"load",g.l,!1,g)],g.n(g,g.h));b.d+=c}}b=this.$b;c=0;for(d=b.length;c<d;++c)b[c](this,a);b.length=0};
l.dg=function(){this.ma()};l.eg=function(){var a=this.zc(),a=t(a)?dc(a):null;qi(this.q);null===a?pc(this.b):(a.appendChild(this.b),ki(this.q,null===this.Yb?a:this.Yb));this.Q()};l.fg=function(){this.N()};l.kg=function(){this.ma()};l.jg=function(){null!==this.R&&(M(this.R),this.R=null);var a=this.a();null!=a&&(this.R=K(a,"propertychange",this.kg,!1,this));this.ma()};l.Of=function(){this.ma()};l.Pf=function(){this.ma()};
l.Nf=function(){if(null!==this.n){for(var a=this.n.length,b=0;b<a;++b)M(this.n[b]);this.n=null}a=this.Xa();null!=a&&(this.n=[K(a,"propertychange",this.Pf,!1,this),K(a,"change",this.Of,!1,this)]);this.ma()};function kg(a){if(!rc(document,a.b)||"none"==a.b.style.display)return!1;var b=a.f();if(null==b||0>=b[0]||0>=b[1])return!1;a=a.a();return t(a)&&a.bd()?!0:!1}l.ma=function(){if(null==this.i.S)if(0===this.k){var a=this.i;ai(a);a.Lc()}else this.va=!0};
l.N=function(){0===this.k?null!=this.i.S||this.i.start():this.va=!0};l.Bh=function(a){if(t(this.r.remove(a)))return a.setMap(null),a};l.Dh=function(a){var b;t(this.l.remove(a))&&(a.fa(null),b=a);return b};l.Eh=function(a){return this.Xa().eb().remove(a)};l.Fh=function(a){if(t(this.G.remove(a)))return a.e(null),a};
l.Gh=function(a){var b,c,d;if(0===this.k){var e=this.f();b=this.a();var f=t(b)?this.a().L():void 0,g=null;if(t(e)&&0<e[0]&&0<e[1]&&t(f)&&f.bd()){g=Na(b.k);b=this.Xa().Qc();var h=b.layers;d=b.Y;var m={},n;b=0;for(c=h.length;b<c;++b)n=h[b],m[B(n)]=d[b];d=Xf(f);g={ca:!1,attributions:{},Fd:this.Ic,extent:null,focus:null===this.ua?d.center:this.ua,index:this.Ge++,xc:h,Y:m,Zc:{},pixelRatio:this.Ie,ke:this.Ke,Sa:[],size:e,Lh:this.bc,time:a,Wb:{},A:d,M:g,zb:{}};this.He&&(g.Zc["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/")}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=qe(d.center,d.resolution,d.rotation,g.size));this.d=g;this.Ka.Dc(g);this.va=!1;null!==g&&(g.ca&&this.N(),Array.prototype.push.apply(this.$b,g.Sa),0!=this.o.length||(g.ca||g.M[0]||g.M[1])||N(this,new mf("moveend",this)));N(this,new mf("postrender",this,g));c=b=this.ag;this&&(c=D(b,this));ma(s.setImmediate)?s.setImmediate(c):(di||(di=ei()),di(c))}};
l.Ih=function(a){this.u("layergroup",a)};V.prototype.setLayerGroup=V.prototype.Ih;V.prototype.La=function(a){this.u("size",a)};V.prototype.setSize=V.prototype.La;V.prototype.Le=function(a){this.u("target",a)};V.prototype.setTarget=V.prototype.Le;V.prototype.Me=function(a){this.u("view",a)};V.prototype.setView=V.prototype.Me;V.prototype.Q=function(){var a=this.zc(),a=t(a)?dc(a):null;null===a?this.La(void 0):(a=Ii(a),this.La([a.width,a.height]))};
function gg(a,b,c){++a.k;try{b.call(c)}finally{0===--a.k&&a.va&&(a=a.i,ai(a),a.Lc())}}
function Km(a){var b=null;t(a.keyboardEventTarget)&&(b=z(a.keyboardEventTarget)?document.getElementById(a.keyboardEventTarget):a.keyboardEventTarget);var c={},d=t(a.ol3Logo)?a.ol3Logo:!0,e=a.layers instanceof lj?a.layers:new lj({layers:a.layers});c.layergroup=e;c.target=a.target;c.view=t(a.view)?a.view:new S;var e=Tj,f;t(a.renderer)?ja(a.renderer)?f=a.renderer:z(a.renderer)&&(f=[a.renderer]):f=Jm;var g,h;g=0;for(h=f.length;g<h;++g){var m=f[g];if("canvas"==m){if(vc.wd){e=Hl;break}}else if("dom"==m){if(vc.De){e=
Vl;break}}else if("webgl"==m&&vc.Ad){e=Gm;break}}f=t(a.controls)?ja(a.controls)?new Q(Na(a.controls)):a.controls:Xi();g=t(a.deviceOptions)?a.deviceOptions:{};h=t(a.interactions)?ja(a.interactions)?new Q(Na(a.interactions)):a.interactions:kj();a=t(a.overlays)?ja(a.overlays)?new Q(Na(a.overlays)):a.overlays:new Q;return{controls:f,deviceOptions:g,interactions:h,keyboardEventTarget:b,ol3Logo:d,overlays:a,Hh:e,Qh:c}}rj();function Lm(a){P.call(this);this.r=t(a.insertFirst)?a.insertFirst:!0;this.q=t(a.stopEvent)?a.stopEvent:!0;this.b=kc("DIV");this.b.style.position="absolute";this.a={dc:"",yc:"",Ec:"",Hc:"",visible:!0};this.d=null;K(this,Cd("element"),this.Jf,!1,this);K(this,Cd("map"),this.Tf,!1,this);K(this,Cd("position"),this.Zf,!1,this);K(this,Cd("positioning"),this.$f,!1,this);t(a.element)&&this.te(a.element);t(a.position)&&this.n(a.position);t(a.positioning)&&this.o(a.positioning)}H(Lm,P);Lm.prototype.k=function(){return this.t("element")};
Lm.prototype.getElement=Lm.prototype.k;Lm.prototype.f=function(){return this.t("map")};Lm.prototype.getMap=Lm.prototype.f;Lm.prototype.l=function(){return this.t("position")};Lm.prototype.getPosition=Lm.prototype.l;Lm.prototype.i=function(){return this.t("positioning")};Lm.prototype.getPositioning=Lm.prototype.i;l=Lm.prototype;l.Jf=function(){mc(this.b);var a=this.k();null!=a&&lc(this.b,a)};
l.Tf=function(){null!==this.d&&(pc(this.b),M(this.d),this.d=null);var a=this.f();null!=a&&(this.d=K(a,"postrender",this.Ag,!1,this),Mm(this),a=this.q?a.w:a.Zb,this.r?oc(a,this.b,0):lc(a,this.b))};l.Ag=function(){Mm(this)};l.Zf=function(){Mm(this)};l.$f=function(){Mm(this)};l.te=function(a){this.u("element",a)};Lm.prototype.setElement=Lm.prototype.te;Lm.prototype.e=function(a){this.u("map",a)};Lm.prototype.setMap=Lm.prototype.e;Lm.prototype.n=function(a){this.u("position",a)};
Lm.prototype.setPosition=Lm.prototype.n;Lm.prototype.o=function(a){this.u("positioning",a)};Lm.prototype.setPositioning=Lm.prototype.o;
function Mm(a){var b=a.f(),c=a.l();if(t(b)&&kg(b)&&t(c)){var c=b.e(c),d=b.f(),b=a.b.style,e=a.i();if("bottom-right"==e||"center-right"==e||"top-right"==e){""!==a.a.yc&&(a.a.yc=b.left="");var f=Math.round(d[0]-c[0])+"px";a.a.Ec!=f&&(a.a.Ec=b.right=f)}else{""!==a.a.Ec&&(a.a.Ec=b.right="");f=0;if("bottom-center"==e||"center-center"==e||"top-center"==e)f=Di(a.b).width/2;f=Math.round(c[0]-f)+"px";a.a.yc!=f&&(a.a.yc=b.left=f)}if("bottom-left"==e||"bottom-center"==e||"bottom-right"==e)""!==a.a.Hc&&(a.a.Hc=
b.top=""),c=Math.round(d[1]-c[1])+"px",a.a.dc!=c&&(a.a.dc=b.bottom=c);else{""!==a.a.dc&&(a.a.dc=b.bottom="");d=0;if("center-left"==e||"center-center"==e||"center-right"==e)d=Di(a.b).height/2;c=Math.round(c[1]-d)+"px";a.a.Hc!=c&&(a.a.Hc=b.top=c)}a.a.visible||(Gi(a.b,!0),a.a.visible=!0)}else a.a.visible&&(Gi(a.b,!1),a.a.visible=!1)};var Nm;Nm=!1;var Om=mb();Om&&(-1!=Om.indexOf("Firefox")||-1!=Om.indexOf("Camino")||-1!=Om.indexOf("iPhone")||-1!=Om.indexOf("iPod")||-1!=Om.indexOf("iPad")||-1!=Om.indexOf("Android")||-1!=Om.indexOf("Chrome")&&(Nm=!0));var Pm=Nm;var Qm=sb?"webkitfullscreenchange":"mozfullscreenchange";function Rm(){var a=ac().a,b=a.body;return!!b.webkitRequestFullScreen||!!b.mozRequestFullScreen&&a.mozFullScreenEnabled}function Sm(){var a=ac().a;return!!a.webkitIsFullScreen||!!a.mozFullScreen};function Tm(a){a=t(a)?a:{};this.b=t(a.className)?a.className:"ol-full-screen";var b=hc("A",{href:"#fullScreen","class":this.b+"-"+Sm()});K(b,["click","touchend"],this.k,!1,this);K(s.document,Qm,this.d,!1,this);b=hc("DIV",{"class":this.b+" ol-unselectable "+(Rm()?"":"ol-unsupported")},b);Si.call(this,{element:b,target:a.target});this.i=t(a.keys)?a.keys:!1}H(Tm,Si);
Tm.prototype.k=function(a){Rm()&&(a.J(),a=this.a,null!==a&&(Sm()?(a=ac().a,a.webkitCancelFullScreen?a.webkitCancelFullScreen():a.mozCancelFullScreen&&a.mozCancelFullScreen()):(a=a.zc(),a=dc(a),this.i?a.mozRequestFullScreenWithKeys?a.mozRequestFullScreenWithKeys():a.webkitRequestFullScreen&&a.ALLOW_KEYBOARD_INPUT&&Pm?a.webkitRequestFullScreen(a.ALLOW_KEYBOARD_INPUT):a.webkitRequestFullScreen?a.webkitRequestFullScreen():a.mozRequestFullScreen&&a.mozRequestFullScreen():a.webkitRequestFullScreen?a.webkitRequestFullScreen():
a.mozRequestFullScreen&&a.mozRequestFullScreen())))};Tm.prototype.d=function(){var a=this.b+"-true",b=this.b+"-false",c=qc(this.element),d=this.a;Sm()?Lb(c,b,a):Lb(c,a,b);null===d||d.Q()};function Um(a){a=t(a)?a:{};var b=hc("DIV",{"class":t(a.className)?a.className:"ol-mouse-position"});Si.call(this,{element:b,target:a.target});K(this,Cd("projection"),this.Q,!1,this);t(a.coordinateFormat)&&this.q(a.coordinateFormat);t(a.projection)&&this.r(ef(a.projection));this.ua=t(a.undefinedHTML)?a.undefinedHTML:"";this.k=b.innerHTML;this.i=this.d=this.b=null}H(Um,Si);Um.prototype.e=function(a){a=a.b;null===a?this.b=null:this.b!=a.A.projection&&(this.b=a.A.projection,this.d=null);Vm(this,this.i)};
Um.prototype.Q=function(){this.d=null};Um.prototype.l=function(){return this.t("coordinateFormat")};Um.prototype.getCoordinateFormat=Um.prototype.l;Um.prototype.n=function(){return this.t("projection")};Um.prototype.getProjection=Um.prototype.n;Um.prototype.w=function(a){a=Ai(a,this.a.b);this.i=[a.x,a.y];Vm(this,this.i)};Um.prototype.G=function(){Vm(this,null);this.i=null};
Um.prototype.setMap=function(a){Um.D.setMap.call(this,a);null!==a&&(a=a.b,this.f.push(K(a,"mousemove",this.w,!1,this),K(a,"mouseout",this.G,!1,this)))};Um.prototype.q=function(a){this.u("coordinateFormat",a)};Um.prototype.setCoordinateFormat=Um.prototype.q;Um.prototype.r=function(a){this.u("projection",a)};Um.prototype.setProjection=Um.prototype.r;
function Vm(a,b){var c=a.ua;if(null!==b&&null!==a.b){if(null===a.d){var d=a.n();a.d=t(d)?Oe(a.b,d):gf}d=a.a.da(b);null!==d&&(a.d(d,d),c=a.l(),c=t(c)?c(d):d.toString())}t(a.k)&&c==a.k||(a.element.innerHTML=c,a.k=c)};function Wm(a){a=a||{};var b=t(a.className)?a.className:"ol-scale-line";this.i=hc("DIV",{"class":b+"-inner"});this.l=hc("DIV",{"class":b+" ol-unselectable"},this.i);this.n=null;this.k=t(a.minWidth)?a.minWidth:64;this.d=!1;this.w=void 0;this.r="";this.b=null;Si.call(this,{element:this.l,target:a.target});K(this,Cd("units"),this.Q,!1,this);this.G(a.units||"metric")}H(Wm,Si);var Xm=[1,2,5];Wm.prototype.q=function(){return this.t("units")};Wm.prototype.getUnits=Wm.prototype.q;
Wm.prototype.e=function(a){a=a.b;null===a?this.n=null:this.n=a.A;Ym(this)};Wm.prototype.Q=function(){Ym(this)};Wm.prototype.G=function(a){this.u("units",a)};Wm.prototype.setUnits=Wm.prototype.G;
function Ym(a){var b=a.n;if(null===b)a.d&&(Gi(a.l,!1),a.d=!1);else{var c=b.center,d=b.projection,b=d.b(b.resolution,c),e=d.sa,f=a.q();"degrees"!=e||"metric"!=f&&"imperial"!=f?"ft"!=e&&"m"!=e||"degrees"!=f?a.b=null:(null===a.b&&(a.b=Oe(d,ef("EPSG:4326"))),c=Math.cos(Ob(a.b(c)[1])),d=Je.radius,"ft"==e&&(d/=0.3048),b*=180/(Math.PI*c*d)):(a.b=null,c=Math.cos(Ob(c[1])),b*=Math.PI*c*Je.radius/180);c=a.k*b;e="";"degrees"==f?c<1/60?(e="\u2033",b*=3600):1>c?(e="\u2032",b*=60):e="\u00b0":"imperial"==f?0.9144>
c?(e="in",b/=0.0254):1609.344>c?(e="ft",b/=0.3048):(e="mi",b/=1609.344):"nautical"==f?(b/=1852,e="nm"):"metric"==f?1>c?(e="mm",b*=1E3):1E3>c?e="m":(e="km",b/=1E3):"us"==f&&(0.9144>c?(e="in",b*=39.37):1609.344>c?(e="ft",b/=0.30480061):(e="mi",b/=1609.3472));for(var f=3*Math.floor(Math.log(a.k*b)/Math.log(10)),g,h;;){g=Xm[f%3]*Math.pow(10,Math.floor(f/3));h=Math.round(g/b);if(h>=a.k)break;++f}g=g+e;a.r!=g&&(a.i.innerHTML=g,a.r=g);a.w!=h&&(a.i.style.width=h+"px",a.w=h);a.d||(Gi(a.l,!0),a.d=!0)}};function Zm(a){yc.call(this);this.c=a;this.a={}}H(Zm,yc);var $m=[];Zm.prototype.W=function(a,b,c,d,e){ja(b)||($m[0]=b,b=$m);for(var f=0;f<b.length;f++){var g=K(a,b[f],c||this,d||!1,e||this.c||this);this.a[g.key]=g}return this};
Zm.prototype.od=function(a,b,c,d,e){if(ja(b))for(var f=0;f<b.length;f++)this.od(a,b[f],c,d,e);else{a:if(e=e||this.c||this,d=!!d,c=Xc(c||this),Pc(a))a=a.V.a[b],b=-1,a&&(b=rd(a,c,d,e)),e=-1<b?a[b]:null;else{if(a=cd(a,b,d))for(b=0;b<a.length;b++)if(!a[b].Ja&&a[b].ya==c&&a[b].capture==d&&a[b].cb==e){e=a[b];break a}e=null}e&&(M(e),delete this.a[e.key])}return this};function an(a){Rb(a.a,M);a.a={}}Zm.prototype.v=function(){Zm.D.v.call(this);an(this)};
Zm.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function bn(a,b,c){sd.call(this);this.target=a;this.d=b||a;this.c=c||new si(NaN,NaN,NaN,NaN);this.b=cc(a);this.a=new Zm(this);Bc(this,this.a);K(this.d,["touchstart","mousedown"],this.xe,!1,this)}H(bn,sd);var cn=I||rb&&Eb("1.9.3");l=bn.prototype;l.clientX=0;l.clientY=0;l.Pd=0;l.Qd=0;l.Rd=0;l.Sd=0;l.ob=0;l.pb=0;l.Id=!0;l.bb=!1;l.Wd=0;l.og=0;l.lg=!1;l.pd=!1;
l.v=function(){bn.D.v.call(this);bd(this.d,["touchstart","mousedown"],this.xe,!1,this);an(this.a);cn&&this.b.releaseCapture();this.d=this.target=null};function dn(a){t(a.g)||(a.g=Hi(a.target));return a.g}
l.xe=function(a){var b="mousedown"==a.type;if(!this.Id||this.bb||b&&!Nc(a))N(this,"earlycancel");else{en(a);if(0==this.Wd)if(N(this,new fn("start",this,a.clientX,a.clientY,a)))this.bb=!0,a.J();else return;else a.J();var b=this.b,c=b.documentElement,d=!cn;this.a.W(b,["touchmove","mousemove"],this.Hf,d);this.a.W(b,["touchend","mouseup"],this.kc,d);cn?(c.setCapture(!1),this.a.W(c,"losecapture",this.kc)):this.a.W(b?b.parentWindow||b.defaultView:window,"blur",this.kc);I&&this.lg&&this.a.W(b,"dragstart",
Fc);this.f&&this.a.W(this.f,"scroll",this.uh,d);this.clientX=this.Rd=a.clientX;this.clientY=this.Sd=a.clientY;this.Pd=a.Vc;this.Qd=a.Wc;this.pd?(a=this.target,b=a.offsetLeft,c=a.offsetParent,c||"fixed"!=ui(a,"position")||(c=cc(a).documentElement),c?(rb?(d=Li(c),b+=d.left):I&&8<=Gb&&(d=Li(c),b-=d.left),a=Hi(c)?c.clientWidth-(b+a.offsetWidth):b):a=b):a=this.target.offsetLeft;this.ob=a;this.pb=this.target.offsetTop;this.e=sc(ac(this.b));this.og=ta()}};
l.kc=function(a,b){an(this.a);cn&&this.b.releaseCapture();if(this.bb){en(a);this.bb=!1;var c=gn(this,this.ob),d=hn(this,this.pb);N(this,new fn("end",this,a.clientX,a.clientY,a,c,d,b||"touchcancel"==a.type))}else N(this,"earlycancel")};function en(a){var b=a.type;"touchstart"==b||"touchmove"==b?Lc(a,a.O.targetTouches[0],a.c):"touchend"!=b&&"touchcancel"!=b||Lc(a,a.O.changedTouches[0],a.c)}
l.Hf=function(a){if(this.Id){en(a);var b=(this.pd&&dn(this)?-1:1)*(a.clientX-this.clientX),c=a.clientY-this.clientY;this.clientX=a.clientX;this.clientY=a.clientY;this.Pd=a.Vc;this.Qd=a.Wc;if(!this.bb){var d=this.Rd-this.clientX,e=this.Sd-this.clientY;if(d*d+e*e>this.Wd)if(N(this,new fn("start",this,a.clientX,a.clientY,a)))this.bb=!0;else{this.pa||this.kc(a);return}}c=jn(this,b,c);b=c.x;c=c.y;this.bb&&N(this,new fn("beforedrag",this,a.clientX,a.clientY,a,b,c))&&(kn(this,a,b,c),a.J())}};
function jn(a,b,c){var d=sc(ac(a.b));b+=d.x-a.e.x;c+=d.y-a.e.y;a.e=d;a.ob+=b;a.pb+=c;b=gn(a,a.ob);a=hn(a,a.pb);return new Pb(b,a)}l.uh=function(a){var b=jn(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;kn(this,a,b.x,b.y)};function kn(a,b,c,d){a.pd&&dn(a)?a.target.style.right=c+"px":a.target.style.left=c+"px";a.target.style.top=d+"px";N(a,new fn("drag",a,b.clientX,b.clientY,b,c,d))}
function gn(a,b){var c=a.c,d=isNaN(c.left)?null:c.left,c=isNaN(c.width)?0:c.width;return Math.min(null!=d?d+c:Infinity,Math.max(null!=d?d:-Infinity,b))}function hn(a,b){var c=a.c,d=isNaN(c.top)?null:c.top,c=isNaN(c.height)?0:c.height;return Math.min(null!=d?d+c:Infinity,Math.max(null!=d?d:-Infinity,b))}function fn(a,b,c,d,e,f,g,h){Dc.call(this,a);this.clientX=c;this.clientY=d;this.d=e;this.left=t(f)?f:b.ob;this.top=t(g)?g:b.pb;this.b=b;this.a=!!h}H(fn,Dc);function ln(a){a=t(a)?a:{};this.b=void 0;this.i=mn;this.k=!1;var b=t(a.className)?a.className:"ol-zoomslider";a=hc("DIV",[b+"-thumb","ol-unselectable"]);b=hc("DIV",[b,"ol-unselectable"],a);this.d=new bn(a);Bc(this,this.d);K(this.d,["drag","end"],this.n,void 0,this);K(b,"click",this.l,!1,this);K(a,"click",Ec);Si.call(this,{element:b})}H(ln,Si);var mn=0;ln.prototype.setMap=function(a){ln.D.setMap.call(this,a);null===a||a.ma()};
ln.prototype.e=function(a){if(null!==a.b){if(!this.k){var b=this.element,c=qc(b),b=Ii(b),d;d=zi(c);var e=Di(c);d=new si(d.x,d.y,e.width,e.height);var e=Ki(c,"margin"),f=Li(c),c=b.width-e.left-e.right-f.left-f.right-d.width;d=b.height-e.top-e.bottom-f.top-f.bottom-d.height;b.width>b.height?(this.i=1,b=new si(0,0,c,0)):(this.i=mn,b=new si(0,0,0,d));this.d.c=b||new si(NaN,NaN,NaN,NaN);this.k=!0}a=a.b.A.resolution;a!==this.b&&(this.b=a,a=-1*(Wf(this.a.a().L())(a)-1),b=this.d,c=qc(this.element),1==this.i?
vi(c,b.c.left+b.c.width*a):vi(c,b.c.left,b.c.top+b.c.height*a))}};ln.prototype.l=function(a){var b=this.a,c=b.a().L();a=nn(this,on(this,a.Nd,a.Od));b.ha(dg({resolution:a,duration:200,easing:Yf}));a=c.a(a);c.e(a)};function on(a,b,c){var d=a.d.c,e=0;return e=1===a.i?(b-d.left)/d.width:(c-d.top)/d.height}function nn(a,b){b=-1*(Mb(b,0,1)-1);return Vf(a.a.a().L())(b)}
ln.prototype.n=function(a){var b=this.a,c=b.a().L();"drag"===a.type?(a=nn(this,on(this,a.left,a.top)),a!==this.b&&(this.b=a,c.e(a))):(b.ha(dg({resolution:this.b,duration:200,easing:Yf})),a=c.a(this.b),c.e(a))};function pn(a){a=t(a)?a:{};this.b=t(a.extent)?a.extent:null;var b=hc("DIV",{"class":(t(a.className)?a.className:"ol-zoom-extent")+" ol-unselectable"}),c=hc("A",{href:"#zoomExtent"});b.appendChild(c);K(b,["touchend","click"],this.d,!1,this);Si.call(this,{element:b,target:a.target})}H(pn,Si);pn.prototype.d=function(a){a.J();a=this.a;var b=a.a().L(),c=null===this.b?b.l().p():this.b;b.Kd(c,a.f())};function qn(a){P.call(this);this.a=a;K(this.a,"change",this.k,!1,this);K(this,Cd("value"),this.l,!1,this);K(this,Cd("checked"),this.i,!1,this)}H(qn,P);qn.prototype.b=function(){return this.t("checked")};qn.prototype.getChecked=qn.prototype.b;qn.prototype.d=function(){return this.t("value")};qn.prototype.getValue=qn.prototype.d;qn.prototype.f=function(a){this.u("value",a)};qn.prototype.setValue=qn.prototype.f;qn.prototype.e=function(a){this.u("checked",a)};qn.prototype.setChecked=qn.prototype.e;
qn.prototype.k=function(){var a=this.a;"checkbox"===a.type||"radio"===a.type?this.e(a.checked):this.f(a.value)};qn.prototype.i=function(){this.a.checked=this.b()};qn.prototype.l=function(){this.a.value=this.d()};function rn(){};function sn(a){return tn(a,!1,[]).join("")}function tn(a,b,c){if(4==a.nodeType||3==a.nodeType)b?c.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):c.push(a.nodeValue);else for(a=a.firstChild;null!==a;a=a.nextSibling)tn(a,b,c);return c}function un(a){return a.localName}function vn(a){var b=a.localName;return t(b)?b:a.baseName}var wn=I?vn:un;function xn(a){return a instanceof Document}function yn(a){return na(a)&&9==a.nodeType}var zn=I?yn:xn;function An(a){return a instanceof Node}
function Bn(a){return na(a)&&t(a.nodeType)}var Cn=I?Bn:An;function Dn(a){return(new DOMParser).parseFromString(a,"application/xml")}function En(a,b){return function(c,d){var e=a.call(b,c,d);t(e)&&Oa(d[d.length-1],e)}}function Fn(a,b){return function(c,d){var e=a.call(b,c,d);t(e)&&d[d.length-1].push(e)}}function Gn(a){return function(b,c){var d=a.call(void 0,b,c);t(d)&&(c[c.length-1]=d)}}function W(a,b){return function(c,d){var e=a.call(void 0,c,d);t(e)&&(d[d.length-1][t(b)?b:c.localName]=e)}}
function Hn(a,b,c){c=t(c)?c:{};var d,e;d=0;for(e=a.length;d<e;++d)c[a[d]]=b;return c}function In(a,b,c,d){for(b=b.firstElementChild;null!==b;b=b.nextElementSibling){var e=a[b.namespaceURI];t(e)&&(e=e[b.localName],t(e)&&e.call(d,b,c))}}function Jn(a,b,c,d,e){d.push(a);In(b,c,d,e);return d.pop()};function Kn(){}H(Kn,rn);l=Kn.prototype;l.C=ea("xml");l.xb=function(a){return zn(a)?Ln(this,a):Cn(a)?this.me(a):z(a)?(a=Dn(a),Ln(this,a)):null};function Ln(a,b){var c=Mn(a,b);return 0<c.length?c[0]:null}l.Ia=function(a){return zn(a)?Mn(this,a):Cn(a)?this.Bc(a):z(a)?(a=Dn(a),Mn(this,a)):[]};function Mn(a,b){var c=[],d;for(d=b.firstChild;null!==d;d=d.nextSibling)1==d.nodeType&&Oa(c,a.Bc(d));return c}l.Cc=function(a){return zn(a)?this.b(a):Cn(a)?this.e(a):z(a)?(a=Dn(a),this.b(a)):null};
l.Aa=function(a){return zn(a)?this.jd(a):Cn(a)?this.ne(a):z(a)?(a=Dn(a),this.jd(a)):null};l.sd=function(a){return this.g(a)};l.td=function(a){return this.f(a)};l.ud=function(a){return this.h(a)};function Nn(a){a=sn(a);a=(a=/^\s*(true|1)|(false|0)\s*$/.exec(a))?t(a[1])||!1:void 0;return a}function On(a){a=sn(a);if(a=/^\s*(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(Z|(?:([+\-])(\d{2})(?::(\d{2}))?))\s*$/.exec(a)){var b=Date.UTC(parseInt(a[1],10),parseInt(a[2],10)-1,parseInt(a[3],10),parseInt(a[4],10),parseInt(a[5],10),parseInt(a[6],10))/1E3;if("Z"!=a[7]){var c="-"==a[8]?-1:1,b=b+60*c*parseInt(a[9],10);t(a[10])&&(b+=3600*c*parseInt(a[10],10))}return b}}
function Pn(a){a=sn(a);a=(a=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(a))?parseFloat(a[1]):void 0;return a}function Qn(a){a=sn(a);a=(a=/^\s*(\d+)\s*$/.exec(a))?parseInt(a[1],10):void 0;return a}function Rn(a){a=sn(a);return wa(a)};function Sn(){}H(Sn,Kn);var Tn=[null,"http://www.topografix.com/GPX/1/0","http://www.topografix.com/GPX/1/1"];function Un(a,b,c){a.push(parseFloat(b.getAttribute("lon")),parseFloat(b.getAttribute("lat")));"ele"in c?(a.push(J(c,"ele")),Xb(c,"ele")):a.push(0);"time"in c?(a.push(J(c,"time")),Xb(c,"time")):a.push(0);return a}function Vn(a,b){var c=b[b.length-1],d=a.getAttribute("href");null!==d&&(c.link=d);In(Wn,a,b)}
function Xn(a,b){var c=Jn({flatCoordinates:[]},Yn,a,b);if(t(c)){var d=J(c,"flatCoordinates");Xb(c,"flatCoordinates");var e=new $k(null);al(e,"XYZM",d);d=new T(e);d.ba(c);return d}}function Zn(a,b){var c=Jn({flatCoordinates:[],ends:[]},$n,a,b);if(t(c)){var d=J(c,"flatCoordinates");Xb(c,"flatCoordinates");var e=J(c,"ends");Xb(c,"ends");var f=new bl(null);cl(f,"XYZM",d,e);d=new T(f);d.ba(c);return d}}
function ao(a,b){var c=Jn({},bo,a,b);if(t(c)){var d=Un([],a,c),d=new dl(d,"XYZM"),d=new T(d);d.ba(c);return d}}
var co={rte:Xn,trk:Zn,wpt:ao},eo=Hn(Tn,{rte:Fn(Xn),trk:Fn(Zn),wpt:Fn(ao)}),Wn=Hn(Tn,{text:W(Rn,"linkText"),type:W(Rn,"linkType")}),Yn=Hn(Tn,{name:W(Rn),cmt:W(Rn),desc:W(Rn),src:W(Rn),link:Vn,number:W(Qn),type:W(Rn),rtept:function(a,b){var c=Jn({},fo,a,b);t(c)&&Un(J(b[b.length-1],"flatCoordinates"),a,c)}}),fo=Hn(Tn,{ele:W(Pn),time:W(On)}),$n=Hn(Tn,{name:W(Rn),cmt:W(Rn),desc:W(Rn),src:W(Rn),link:Vn,number:W(Qn),type:W(Rn),trkseg:function(a,b){var c=b[b.length-1];In(go,a,b);J(c,"ends").push(J(c,"flatCoordinates").length)}}),
go=Hn(Tn,{trkpt:function(a,b){var c=Jn({},ho,a,b);t(c)&&Un(J(b[b.length-1],"flatCoordinates"),a,c)}}),ho=Hn(Tn,{ele:W(Pn),time:W(On)}),bo=Hn(Tn,{ele:W(Pn),time:W(On),magvar:W(Pn),geoidheight:W(Pn),name:W(Rn),cmt:W(Rn),desc:W(Rn),src:W(Rn),link:Vn,sym:W(Rn),type:W(Rn),fix:W(Rn),sat:W(Qn),hdop:W(Pn),vdop:W(Pn),pdop:W(Pn),ageofdgpsdata:W(Pn),dgpsid:W(Qn)});Sn.prototype.me=function(a){if(-1==Fa(Tn,a.namespaceURI))return null;var b=co[a.localName];if(!t(b))return null;a=b(a,[]);return t(a)?a:null};
Sn.prototype.Bc=function(a){return-1==Fa(Tn,a.namespaceURI)?[]:"gpx"==a.localName&&(a=Jn([],eo,a,[]),t(a))?a:[]};Sn.prototype.jd=function(){return ef("EPSG:4326")};Sn.prototype.ne=function(){return ef("EPSG:4326")};function io(a){a=String(a);if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);};function jo(){}H(jo,rn);function ko(a){return na(a)?a:z(a)?(a=io(a),t(a)?a:null):null}l=jo.prototype;l.C=ea("json");l.xb=function(a){return lo(ko(a))};l.Ia=function(a){return this.a(ko(a))};l.Cc=function(a){a=ko(a);return mo(a)};l.Aa=function(a){return this.d(ko(a))};l.sd=function(a){return no(a)};l.td=function(a){var b=[],c,d;c=0;for(d=a.length;c<d;++c)b.push(no(a[c]));return{type:"FeatureCollection",features:b}};l.ud=function(a){return this.b(a)};function oo(a){a=t(a)?a:{};this.c=ef(a.defaultProjection?a.defaultProjection:"EPSG:4326")}H(oo,jo);function mo(a){return null===a?null:(0,po[a.type])(a)}function qo(a){return(0,ro[a.C()])(a)}
var po={Point:function(a){return new dl(a.coordinates)},LineString:function(a){return new $k(a.coordinates)},Polygon:function(a){return new Pg(a.coordinates)},MultiPoint:function(a){return new el(a.coordinates)},MultiLineString:function(a){return new bl(a.coordinates)},MultiPolygon:function(a){return new fl(a.coordinates)},GeometryCollection:function(a){a=Ha(a.geometries,mo);return new Wk(a)}},ro={Point:function(a){return{type:"Point",coordinates:a.B()}},LineString:function(a){return{type:"LineString",
coordinates:a.B()}},Polygon:function(a){return{type:"Polygon",coordinates:a.B()}},MultiPoint:function(a){return{type:"MultiPoint",coordinates:a.B()}},MultiLineString:function(a){return{type:"MultiLineString",coordinates:a.B()}},MultiPolygon:function(a){return{type:"MultiPolygon",coordinates:a.B()}},GeometryCollection:function(a){return{type:"GeometryCollection",geometries:Ha(a.a,qo)}},Circle:function(){return{type:"GeometryCollection",geometries:[]}}};
function lo(a){var b=mo(a.geometry),b=new T(b);t(a.id)&&b.d(a.id);t(a.properties)&&b.ba(a.properties);return b}oo.prototype.a=function(a){if("Feature"==a.type)return[lo(a)];if("FeatureCollection"==a.type){var b=[];a=a.features;var c,d;c=0;for(d=a.length;c<d;++c)b.push(lo(a[c]));return b}return[]};oo.prototype.Aa=function(a){a=a.crs;return null!=a?"name"==a.type?ef(a.properties.name):"EPSG"==a.type?ef("EPSG:"+a.properties.code):null:this.c};
function no(a){var b={type:"Feature"},c=a.S;null!=c&&(b.id=c);c=a.K();null!=c&&(c=qo(c),b.geometry=c);a=a.Md();Xb(a,"geometry");Vb(a)||(b.properties=a);return b}oo.prototype.b=qo;function so(a){a=to(a);return Ha(a,function(a){return a.b.substring(a.c,a.a)})}function uo(a,b,c,d){this.b=a;this.c=b;this.a=c;this.d=d}function to(a){for(var b=RegExp("\r\n|\r|\n","g"),c=0,d,e=[];d=b.exec(a);)c=new uo(a,c,d.index,d.index+d[0].length),e.push(c),c=b.lastIndex;c<a.length&&(c=new uo(a,c,a.length,a.length),e.push(c));return e};function vo(){}H(vo,rn);l=vo.prototype;l.C=ea("text");l.xb=function(a){return wo(this,z(a)?a:"")};l.Ia=function(a){a=wo(this,z(a)?a:"");return null===a?[]:[a]};l.Cc=function(a){return this.c(z(a)?a:"")};l.Aa=function(){return ef("EPSG:4326")};l.sd=function(a){return this.b(a)};l.td=function(a){return this.d(a)};l.ud=function(a){return this.e(a)};function xo(a){a=t(a)?a:{};this.a=t(a.altitudeMode)?a.altitudeMode:"none"}H(xo,vo);var yo=/^B(\d{2})(\d{2})(\d{2})(\d{2})(\d{5})([NS])(\d{3})(\d{5})([EW])([AV])(\d{5})(\d{5})/,zo=/^H.([A-Z]{3}).*?:(.*)/,Ao=/^HFDTE(\d{2})(\d{2})(\d{2})/;
function wo(a,b){var c=a.a,d=so(b),e={},f=[],g=2E3,h=0,m=1,n,p;n=0;for(p=d.length;n<p;++n){var q=d[n],r;if("B"==q.charAt(0)){if(r=yo.exec(q)){var q=parseInt(r[1],10),u=parseInt(r[2],10),y=parseInt(r[3],10),v=parseInt(r[4],10)+parseInt(r[5],10)/6E4;"S"==r[6]&&(v=-v);var x=parseInt(r[7],10)+parseInt(r[8],10)/6E4;"W"==r[9]&&(x=-x);f.push(x,v);"none"!=c&&f.push("gps"==c?parseInt(r[11],10):"barometric"==c?parseInt(r[12],10):0);f.push(Date.UTC(g,h,m,q,u,y)/1E3)}}else if("H"==q.charAt(0))if(r=Ao.exec(q))m=
parseInt(r[1],10),h=parseInt(r[2],10)-1,g=2E3+parseInt(r[3],10);else if(r=zo.exec(q))e[r[1]]=wa(r[2]),Ao.exec(q)}d=new $k(null);al(d,"none"==c?"XYM":"XYZM",f);c=new T(d);c.ba(e);return c};function Bo(a){a=t(a)?a:{};var b=t(a.defaultStyle)?a.defaultStyle:Co;this.c=function(){return b};var c={};this.a=c;this.d=function(){var a=this.t("styleUrl"),a=c[a];return t(a)?a:null}}H(Bo,Kn);
var Do=["http://www.google.com/kml/ext/2.2"],Eo=[null,"http://earth.google.com/kml/2.0","http://earth.google.com/kml/2.1","http://earth.google.com/kml/2.2","http://www.opengis.net/kml/2.2"],Fo=[255,255,255,1],Go=new hh({color:Fo}),Ho=[2,20],Io=[32,32],Jo=new Nj({anchor:Ho,anchorXUnits:"pixels",anchorYUnits:"pixels",crossOrigin:"anonymous",rotation:0,scale:1,size:Io,src:"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"}),Ko=new aj({color:Fo,width:1}),Co=[new jh({fill:Go,image:Jo,text:null,
stroke:Ko,zIndex:0})],Lo={fraction:"fraction",pixels:"pixels"};function Mo(a){var b=[a];return function(){return b}}function No(a){a=sn(a);if(a=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(a))return a=a[1],[parseInt(a.substr(6,2),16),parseInt(a.substr(4,2),16),parseInt(a.substr(2,2),16),parseInt(a.substr(0,2),16)/255]}
function Oo(a){a=sn(a);for(var b=[],c=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?))?\s*/i,d;d=c.exec(a);)b.push(parseFloat(d[1]),parseFloat(d[2]),d[3]?parseFloat(d[3]):0),a=a.substr(d[0].length);return""!==a?void 0:b}function Po(a,b){return Jn(null,Qo,a,b)}
function Ro(a,b){var c=Jn({j:[],Be:[]},So,a,b);if(t(c)){var d=c.j,c=c.Be,e,f;e=0;for(f=Math.min(d.length,c.length);e<f;++e)d[4*e+3]=c[e];c=new $k(null);al(c,"XYZM",d);return c}}function To(a,b){var c=Jn(null,Uo,a,b);if(t(c)){var d=new $k(null);al(d,"XYZ",c);return d}}function Vo(a,b){var c=Jn(null,Uo,a,b);if(t(c)){var d=new Pg(null);Qg(d,"XYZ",c,[c.length]);return d}}
function Wo(a,b){var c=Jn([],Xo,a,b);if(!t(c))return null;if(0===c.length)return new Wk(c);var d=!0,e=c[0].C(),f,g,h;g=1;for(h=c.length;g<h;++g)if(f=c[g],f.C()!=e){d=!1;break}if(d){var m,n;if("Point"==e){e=c[0];d=e.b;e=e.j;g=1;for(h=c.length;g<h;++g)f=c[g],Oa(e,f.j);c=new el(null);Fg(c,d,e);c.s();return c}if("LineString"==e){e=c[0];d=e.b;e=e.j;m=[e.length];g=1;for(h=c.length;g<h;++g)f=c[g],Oa(e,f.j),m.push(e.length);c=new bl(null);cl(c,d,e,m);return c}if("Polygon"==e){f=c[0];d=f.b;e=f.j;n=[f.d];g=
1;for(h=c.length;g<h;++g){f=c[g];var p=e.length;m=f.d;var q,r;q=0;for(r=m.length;q<r;++q)m[q]+=p;Oa(e,f.j);n.push(m)}c=new fl(null);gl(c,d,e,n);return c}return"GeometryCollection"==e?new Wk(c):null}return new Wk(c)}function Yo(a,b){var c=Jn(null,Uo,a,b);if(null!=c){var d=new dl(null);Fg(d,"XYZ",c);d.s();return d}}
function Zo(a,b){var c=Jn([null],$o,a,b);if(null!=c&&null!==c[0]){var d=new Pg(null),e=c[0],f=[e.length],g,h;g=1;for(h=c.length;g<h;++g)Oa(e,c[g]),f.push(e.length);Qg(d,"XYZ",e,f);return d}}function ap(a,b){var c=Jn({},bp,a,b);if(!t(c))return null;var d=J(c,"fillStyle",Go),e=J(c,"fill");t(e)&&!e&&(d=null);var e=J(c,"imageStyle",Jo),f=J(c,"strokeStyle",Ko),c=J(c,"outline");t(c)&&!c&&(f=null);return new jh({fill:d,image:e,stroke:f,text:null,zIndex:void 0})}
var cp=Hn(Eo,{value:Gn(Rn)}),ep=Hn(Eo,{Data:function(a,b){var c=a.getAttribute("name");if(null!==c){var d=Jn(void 0,cp,a,b);t(d)&&(b[b.length-1][c]=d)}},SchemaData:function(a,b){In(dp,a,b)}}),Qo=Hn(Eo,{coordinates:Gn(Oo)}),$o=Hn(Eo,{innerBoundaryIs:function(a,b){var c=Jn(void 0,fp,a,b);t(c)&&b[b.length-1].push(c)},outerBoundaryIs:function(a,b){var c=Jn(void 0,gp,a,b);t(c)&&(b[b.length-1][0]=c)}}),So=Hn(Eo,{when:function(a,b){var c=b[b.length-1].Be,d=sn(a);if(d=/^\s*(\d{4})($|-(\d{2})($|-(\d{2})($|T(\d{2}):(\d{2}):(\d{2})(Z|(?:([+\-])(\d{2})(?::(\d{2}))?)))))\s*$/.exec(d)){var e=
Date.UTC(parseInt(d[1],10),t(d[3])?parseInt(d[3],10)-1:0,t(d[5])?parseInt(d[5],10):1,t(d[7])?parseInt(d[7],10):0,t(d[8])?parseInt(d[8],10):0,t(d[9])?parseInt(d[9],10):0);if(t(d[10])&&"Z"!=d[10]){var f="-"==d[11]?-1:1,e=e+60*f*parseInt(d[12],10);t(d[13])&&(e+=3600*f*parseInt(d[13],10))}c.push(e)}else c.push(0)}},Hn(Do,{coord:function(a,b){var c=b[b.length-1].j,d=sn(a);(d=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i.exec(d))?
c.push(parseFloat(d[1]),parseFloat(d[2]),parseFloat(d[3]),0):c.push(0,0,0,0)}})),Uo=Hn(Eo,{coordinates:Gn(Oo)}),hp=Hn(Eo,{href:W(Rn)}),ip=Hn(Eo,{Icon:W(function(a,b){var c=Jn({},hp,a,b);return t(c)?c:null}),heading:W(Pn),hotSpot:W(function(a){var b=a.getAttribute("xunits"),c=a.getAttribute("yunits");return{x:parseFloat(a.getAttribute("x")),Yh:Lo[b],y:parseFloat(a.getAttribute("y")),Zh:Lo[c]}}),scale:W(function(a){a=Pn(a);if(t(a))return Math.sqrt(a)})}),fp=Hn(Eo,{LinearRing:Gn(Po)}),jp=Hn(Eo,{color:W(No),
width:W(Pn)}),Xo=Hn(Eo,{LineString:Fn(To),LinearRing:Fn(Vo),MultiGeometry:Fn(Wo),Point:Fn(Yo),Polygon:Fn(Zo)}),kp=Hn(Do,{Track:Fn(Ro)}),gp=Hn(Eo,{LinearRing:Gn(Po)}),lp=Hn(Eo,{Style:W(ap),key:W(Rn),styleUrl:W(function(a){var b=wa(sn(a));return null!=a.baseURI?Wh(a.baseURI,b).toString():b})}),np=Hn(Eo,{ExtendedData:function(a,b){In(ep,a,b)},MultiGeometry:W(Wo,"geometry"),LineString:W(To,"geometry"),LinearRing:W(Vo,"geometry"),Point:W(Yo,"geometry"),Polygon:W(Zo,"geometry"),Style:W(ap),StyleMap:function(a,
b){In(mp,a,b)},address:W(Rn),description:W(Rn),name:W(Rn),open:W(Nn),phoneNumber:W(Rn),styleUrl:W(function(a){var b=sn(a);return null!=a.baseURI?Wh(a.baseURI,wa(b)).toString():wa(b)}),visibility:W(Nn)},Hn(Do,{MultiTrack:W(function(a,b){var c=Jn([],kp,a,b);if(t(c)){var d=new bl(null),e="XY",f=[],g=[],h,m;h=0;for(m=c.length;h<m;++h){var n=c[h];0===h&&(e=n.b);Oa(f,n.j);g.push(f.length)}cl(d,e,f,g);return d}},"geometry"),Track:W(Ro,"geometry")})),op=Hn(Eo,{color:W(No),fill:W(Nn),outline:W(Nn)}),dp=Hn(Eo,
{SimpleData:function(a,b){var c=a.getAttribute("name");if(null!==c){var d=Rn(a);b[b.length-1][c]=d}}}),bp=Hn(Eo,{IconStyle:function(a,b){var c=Jn({},ip,a,b);if(t(c)){var d=b[b.length-1],e;e=J(J(c,"Icon",{}),"href");e=t(e)?e:"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png";var f,g,h,m=J(c,"hotSpot");t(m)?(f=[m.x,m.y],g=m.Yh,h=m.Zh):"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"===e?(f=Ho,h=g="pixels"):/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(e)&&(f=[0.5,1],h=g=
"fraction");var n,m=J(c,"heading");t(m)&&(n=Ob(m));var c=J(c,"scale"),p;"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"==e&&(p=Io);f=new Nj({anchor:f,anchorXUnits:g,anchorYUnits:h,crossOrigin:"anonymous",rotation:n,scale:c,size:p,src:e});d.imageStyle=f}},LineStyle:function(a,b){var c=Jn({},jp,a,b);t(c)&&(b[b.length-1].strokeStyle=new aj({color:J(c,"color",Fo),width:J(c,"width",1)}))},PolyStyle:function(a,b){var c=Jn({},op,a,b);if(t(c)){var d=b[b.length-1];d.fillStyle=new hh({color:J(c,
"color",Fo)});var e=J(c,"fill");t(e)&&(d.fill=e);c=J(c,"outline");t(c)&&(d.outline=c)}}}),mp=Hn(Eo,{Pair:function(a,b){var c=Jn({},lp,a,b);if(t(c)){var d=J(c,"key");if(t(d)&&"normal"==d){var d=b[b.length-1],e=J(c,"Style",null);null!==e&&(d.Style=e);c=J(c,"styleUrl");t(c)&&(d.styleUrl=c)}}}});l=Bo.prototype;l.le=function(a,b){wn(a);var c=Hn(Eo,{Folder:En(this.le,this),Placemark:Fn(this.hd,this),Style:D(this.Ah,this),StyleMap:D(this.zh,this)}),c=Jn([],c,a,b,this);if(t(c))return c};
l.hd=function(a,b){var c=Jn({geometry:null},np,a,b);if(t(c)){var d=J(c,"Style",null);Xb(c,"Style");var e=new T,f=a.getAttribute("id");null===f||e.d(f);e.ba(c);e.i(t(J(c,"styleUrl"))?this.d:null===d?this.c:Mo(d));return e}};l.Ah=function(a,b){var c=a.getAttribute("id");if(null!==c){var d=ap(a,b);t(d)&&(c=null!=a.baseURI?Wh(a.baseURI,"#"+c).toString():"#"+c,this.a[c]=[d])}};
l.zh=function(a,b){var c=a.getAttribute("id");if(null!==c){var d=Jn({},mp,a,b);if(t(d)){var e=J(d,"style",null),c=null!=a.baseURI?Wh(a.baseURI,"#"+c).toString():"#"+c;null===e||(this.a[c]=[e]);d=J(d,"styleUrl");t(d)&&(d=null!=a.baseURI?Wh(a.baseURI,d).toString():"#"+wa(d).replace(/^#/,""),this.a[c]=this.a[d])}}};l.me=function(a){if(-1==Fa(Eo,a.namespaceURI))return null;a=this.hd(a,[]);return t(a)?a:null};
l.Bc=function(a){if(-1==Fa(Eo,a.namespaceURI))return[];var b;b=wn(a);if("Document"==b||"Folder"==b)return b=this.le(a,[]),t(b)?b:[];if("Placemark"==b)return b=this.hd(a,[]),t(b)?[b]:[];if("kml"==b){b=[];for(a=a.firstElementChild;null!==a;a=a.nextElementSibling){var c=this.Bc(a);t(c)&&Oa(b,c)}return b}return[]};l.yh=function(a){if(zn(a))return pp(this,a);if(Cn(a))return qp(this,a);if(z(a))return a=Dn(a),pp(this,a)};
function pp(a,b){var c;for(c=b.firstChild;null!==c;c=c.nextSibling)if(1==c.nodeType){var d=qp(a,c);if(t(d))return d}}function qp(a,b){var c;for(c=b.firstElementChild;null!==c;c=c.nextElementSibling)if(-1!=Fa(Eo,c.namespaceURI)&&"name"==c.localName)return Rn(c);for(c=b.firstElementChild;null!==c;c=c.nextElementSibling){var d=wn(c);if(-1!=Fa(Eo,c.namespaceURI)&&("Document"==d||"Folder"==d||"Placemark"==d||"kml"==d)&&(d=qp(a,c),t(d)))return d}}l.jd=function(){return ef("EPSG:4326")};l.ne=function(){return ef("EPSG:4326")};function rp(a){this.c=ef((t(a)?a:{}).defaultProjection||"EPSG:4326")}H(rp,jo);function sp(a,b){var c=[],d,e,f;e=0;for(f=a.length;e<f;++e)d=a[e],0<e&&c.pop(),d=0<=d?b[d]:b[~d].slice().reverse(),c.push.apply(c,d);e=0;for(f=c.length;e<f;++e)c[e]=c[e].slice();return c}function tp(a,b,c,d){a=a.geometries;var e=[],f,g;f=0;for(g=a.length;f<g;++f)e[f]=up(a[f],b,c,d);return e}
function up(a,b,c,d){var e=a.type,f=vp[e];b="Point"===e||"MultiPoint"===e?f(a,c,d):f(a,b);c=new T;c.fb(b);t(a.id)&&c.d(a.id);t(a.properties)&&c.ba(a.properties);return c}
rp.prototype.a=function(a){if("Topology"==a.type){var b,c=null,d=null;t(a.transform)&&(b=a.transform,c=b.scale,d=b.translate);var e=a.arcs;if(t(b)){b=c;var f=d,g,h;g=0;for(h=e.length;g<h;++g)for(var m=e[g],n=b,p=f,q=0,r=0,u=void 0,y=void 0,v=void 0,y=0,v=m.length;y<v;++y)u=m[y],q+=u[0],r+=u[1],u[0]=q,u[1]=r,wp(u,n,p)}b=[];a=Tb(a.objects);f=0;for(g=a.length;f<g;++f)"GeometryCollection"===a[f].type?(h=a[f],b.push.apply(b,tp(h,e,c,d))):(h=a[f],b.push(up(h,e,c,d)));return b}return[]};
function wp(a,b,c){a[0]=a[0]*b[0]+c[0];a[1]=a[1]*b[1]+c[1]}rp.prototype.Aa=k("c");
var vp={Point:function(a,b,c){a=a.coordinates;t(b)&&t(c)&&wp(a,b,c);return new dl(a)},LineString:function(a,b){var c=sp(a.arcs,b);return new $k(Va(c))},Polygon:function(a,b){var c=[],d,e;d=0;for(e=a.arcs.length;d<e;++d)c[d]=sp(a.arcs[d],b);return new Pg(c)},MultiPoint:function(a,b,c){a=a.coordinates;var d,e;if(t(b)&&t(c))for(d=0,e=a.length;d<e;++d)wp(a[d],b,c);return new el(a)},MultiLineString:function(a,b){var c=[],d,e;d=0;for(e=a.arcs.length;d<e;++d)c[d]=sp(a.arcs[d],b);return new bl(c)},MultiPolygon:function(a,
b){var c=[],d,e,f,g,h,m;h=0;for(m=a.arcs.length;h<m;++h){d=a.arcs[h];e=[];f=0;for(g=d.length;f<g;++f)e[f]=sp(d[f],b);c[h]=e}return new fl(c)}};function xp(a,b){sd.call(this);this.a=new Zm(this);var c=a;b&&(c=cc(a));this.a.W(c,"dragenter",this.qh);c!=a&&this.a.W(c,"dragover",this.rh);this.a.W(a,"dragover",this.sh);this.a.W(a,"drop",this.th)}H(xp,sd);l=xp.prototype;l.Gb=!1;l.v=function(){xp.D.v.call(this);this.a.kb()};l.qh=function(a){var b=a.O.dataTransfer;(this.Gb=!(!b||!(b.types&&(0<=Fa(b.types,"Files")||0<=Fa(b.types,"public.file-url"))||b.files&&0<b.files.length)))&&a.J()};
l.rh=function(a){this.Gb&&(a.J(),a.O.dataTransfer.dropEffect="none")};l.sh=function(a){this.Gb&&(a.J(),a.Ha(),a=a.O.dataTransfer,a.effectAllowed="all",a.dropEffect="copy")};l.th=function(a){this.Gb&&(a.J(),a.Ha(),a=new Kc(a.O),a.type="drop",N(this,a))};/*
Portions of this code are from MochiKit, received by
The Closure Authors under the MIT license. All other code is Copyright
2005-2009 The Closure Authors. All Rights Reserved.
*/
function yp(a,b){this.a=[];this.g=a;this.e=b||null}l=yp.prototype;l.lc=!1;l.Pb=!1;l.Kc=!1;l.Ve=!1;l.ve=!1;l.We=0;l.Ed=function(a,b){this.Kc=!1;zp(this,a,b)};function zp(a,b,c){a.lc=!0;a.c=c;a.Pb=!b;Ap(a)}function Bp(a){if(a.lc){if(!a.ve)throw new Cp(a);a.ve=!1}}function Dp(a,b,c,d){a.a.push([b,c,d]);a.lc&&Ap(a)}function Ep(a){return Ia(a.a,function(a){return ma(a[1])})}
function Ap(a){a.b&&(a.lc&&Ep(a))&&(s.clearTimeout(a.b),delete a.b);a.d&&(a.d.We--,delete a.d);for(var b=a.c,c=!1,d=!1;a.a.length&&!a.Kc;){var e=a.a.shift(),f=e[0],g=e[1],e=e[2];if(f=a.Pb?g:f)try{var h=f.call(e||a.e,b);t(h)&&(a.Pb=a.Pb&&(h==b||h instanceof Error),a.c=b=h);b instanceof yp&&(d=!0,a.Kc=!0)}catch(m){b=m,a.Pb=!0,Ep(a)||(c=!0)}}a.c=b;d&&(Dp(b,D(a.Ed,a,!0),D(a.Ed,a,!1)),b.Ve=!0);c&&(a.b=s.setTimeout(nd(b),0))}function Cp(a){ua.call(this);this.a=a}H(Cp,ua);Cp.prototype.message="Deferred has already fired";
Cp.prototype.name="AlreadyCalledError";function Fp(a,b){ua.call(this,va("Error %s: %s",b,Gp(a)));this.code=a}H(Fp,ua);
function Gp(a){switch(a){case 1:return"File or directory not found";case 2:return"Insecure or disallowed operation";case 3:return"Operation aborted";case 4:return"File or directory not readable";case 5:return"Invalid encoding";case 6:return"Cannot modify file or directory";case 7:return"Invalid state";case 8:return"Invalid line-ending specifier";case 9:return"Invalid modification";case 10:return"Quota exceeded";case 11:return"Invalid filetype";case 12:return"File or directory already exists at specified path";
default:return"Unrecognized error"}};function Hp(a,b){Dc.call(this,a.type,b);this.a=a}H(Hp,Dc);function Ip(){sd.call(this);this.qa=new FileReader;this.qa.onloadstart=D(this.a,this);this.qa.onprogress=D(this.a,this);this.qa.onload=D(this.a,this);this.qa.onabort=D(this.a,this);this.qa.onerror=D(this.a,this);this.qa.onloadend=D(this.a,this)}H(Ip,sd);Ip.prototype.getError=function(){return this.qa.error&&new Fp(this.qa.error.code,"reading file")};Ip.prototype.a=function(a){N(this,new Hp(a,this))};Ip.prototype.v=function(){Ip.D.v.call(this);delete this.qa};
function Jp(a){var b=new yp;a.addEventListener("loadend",sa(function(a,b){var e=b.qa.result,f=b.getError();null==e||f?(Bp(a),zp(a,!1,f)):(Bp(a),zp(a,!0,e));b.kb()},b,a));return b};function Kp(a){a=t(a)?a:{};eg.call(this);this.d=t(a.formatConstructors)?a.formatConstructors:[];this.e=t(a.reprojectTo)?ef(a.reprojectTo):null;this.b=null;this.a=void 0}H(Kp,eg);l=Kp.prototype;l.v=function(){t(this.a)&&M(this.a);Kp.D.v.call(this)};l.If=function(a){a=a.O.dataTransfer.files;var b,c;b=0;for(c=a.length;b<c;++b){var d=a[b],e=new Ip,f=Jp(e);e.qa.readAsText(d,"");Dp(f,this.cg,null,this)}};
l.cg=function(a){var b=this.l,c=this.e;null===c&&(c=b.a().L().l());var b=this.d,d=[],e,f;e=0;for(f=b.length;e<f;++e){var g=new b[e],h;try{h=g.Ia(a)}catch(m){h=null}if(null!==h){var g=g.Aa(a),g=ff(g,c),n,p;n=0;for(p=h.length;n<p;++n){var q=h[n],r=q.K();null===r||r.transform(g);d.push(q)}}}N(this,new Lp(Mp,this,d,c))};l.oa=ld;
l.fa=function(a){t(this.a)&&(M(this.a),this.a=void 0);null!==this.b&&(Cc(this.b),this.b=null);Kp.D.fa.call(this,a);null!==a&&(this.b=new xp(a.b),this.a=K(this.b,"drop",this.If,!1,this))};var Mp="addfeatures";function Lp(a,b,c,d){Dc.call(this,a,b);this.features=c;this.projection=d}H(Lp,Dc);function Np(a,b){this.x=a;this.y=b}H(Np,Pb);Np.prototype.H=function(){return new Np(this.x,this.y)};Np.prototype.scale=Pb.prototype.scale;Np.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};function Op(a){a=t(a)?a:{};jg.call(this);this.e=t(a.condition)?a.condition:Ef;this.a=this.b=void 0;this.d=0}H(Op,jg);Op.prototype.qb=function(a){var b=a.map,c=b.f();a=a.pixel;a=new Np(a[0]-c[0]/2,c[1]/2-a[1]);c=Math.atan2(a.y,a.x);a=Math.sqrt(a.x*a.x+a.y*a.y);var d=b.a().L(),e=Xf(d);b.N();t(this.b)&&fg(b,d,e.rotation-(c-this.b));this.b=c;t(this.a)&&ig(b,d,this.a*(e.resolution/a));t(this.a)&&(this.d=this.a/a);this.a=a};
Op.prototype.rb=function(a){var b=a.map;a=b.a();Rf(a,-1);var c=a.L(),d=Xf(c),e=this.d-1;gg(b,function(){var a=d.rotation,a=c.constrainRotation(a,0);fg(b,c,a,void 0,void 0);a=d.resolution;a=c.a(a,0,e);ig(b,c,a,void 0,400)});this.d=0;return!0};Op.prototype.sb=function(a){return this.e(a)?(Rf(a.map.a(),1),this.a=this.b=void 0,!0):!1};function Pp(a){a=t(a)?a:{};this.f=kc("CANVAS");this.c=null;this.b=t(a.fill)?a.fill:null;this.d=a.radius;this.a=t(a.stroke)?a.stroke:null;a=this.f;var b,c;null===this.a?c=0:(b=dh(this.a.a),c=this.a.c,t(c)||(c=1));var d=2*(this.d+c)+1;a.height=d;a.width=d;var e=a.getContext("2d");e.arc(d/2,d/2,this.d,0,2*Math.PI,!0);null!==this.b&&(e.fillStyle=dh(this.b.a),e.fill());null!==this.a&&(e.strokeStyle=b,e.lineWidth=c,e.stroke());null===this.b?(a=this.c=kc("CANVAS"),a.height=d,a.width=d,e=a.getContext("2d"),
e.arc(d/2,d/2,this.d,0,2*Math.PI,!0),e.fillStyle=bk,e.fill(),null!==this.a&&(e.strokeStyle=b,e.lineWidth=c,e.stroke())):this.c=a;this.i=[d/2,d/2];this.k=[d,d];ih.call(this,{rotation:0,scale:1,we:void 0,ye:!1})}H(Pp,ih);l=Pp.prototype;l.Lb=k("i");l.Wg=k("b");l.ge=k("c");l.Rb=k("f");l.he=ea(2);l.Xg=k("d");l.ub=k("k");l.Yg=k("a");l.Yd=ga;l.ie=ga;l.ze=ga;function Qp(a,b){Dc.call(this,a);this.feature=b}H(Qp,Dc);function Rp(a){eg.call(this);this.k=t(a.source)?a.source:null;this.n=t(a.snapTolerance)?a.snapTolerance:12;var b=this.h=a.type,c;if("Point"===b||"MultiPoint"===b)c=Sp;else if("LineString"===b||"MultiLineString"===b)c=Tp;else if("Polygon"===b||"MultiPolygon"===b)c=Up;this.a=c;this.b=this.g=this.f=this.e=this.d=null;this.o=4;this.i=new nh({style:t(a.style)?a.style:Vp()})}H(Rp,eg);
function Vp(){var a={};a.Polygon=[new jh({fill:new hh({color:[255,255,255,0.5]})})];a.MultiPolygon=a.Polygon;a.LineString=[new jh({stroke:new aj({color:[255,255,255,1],width:5})}),new jh({stroke:new aj({color:[0,153,255,1],width:3})})];a.MultiLineString=a.LineString;a.Point=[new jh({image:new Pp({radius:7,fill:new hh({color:[0,153,255,1]}),stroke:new aj({color:[255,255,255,0.75],width:1.5})}),zIndex:1E5})];a.MultiPoint=a.Point;return function(b){return a[b.K().C()]}}
Rp.prototype.fa=function(a){null===a&&Wp(this);this.i.Qb(a);Rp.D.fa.call(this,a)};
Rp.prototype.oa=function(a){if(!kg(a.map))return!0;var b=!0;if("click"===a.type){var b=a.map.oc(a.target.wa),c=a.pixel,d=b[0]-c[0],b=b[1]-c[1],c=!0;if(d*d+b*b<=this.o){if(null===this.d)Xp(this,a);else if(this.a===Sp||Yp(this,a)){a=Wp(this);var e,d=a.K();this.a===Sp?e=d.B():this.a===Tp?(e=d.B(),e.pop(),d.I(e)):this.a===Up&&(this.b[0].pop(),this.b[0].push(this.b[0][0]),d.I(this.b),e=d.B());"MultiPoint"===this.h?a.fb(new el([e])):"MultiLineString"===this.h?a.fb(new bl([e])):"MultiPolygon"===this.h&&
a.fb(new fl([e]));null===this.k||this.k.fe(a);N(this,new Qp("drawend",a))}else a=a.coordinate,e=this.e.K(),this.a===Tp?(this.d=a.slice(),d=e.B(),d.push(a.slice()),e.I(d)):this.a===Up&&(this.b[0].push(a.slice()),e.I(this.b)),Zp(this);c=!1}b=c}else"mousemove"===a.type?(this.a===Sp&&null===this.d?Xp(this,a):null!==this.d&&(e=a.coordinate,b=this.e.K(),this.a===Sp?(a=b.B(),a[0]=e[0],a[1]=e[1],b.I(a)):(this.a===Tp?d=b.B():this.a===Up&&(d=this.b[0]),Yp(this,a)&&(e=this.d.slice()),this.f.K().I(e),a=d[d.length-
1],a[0]=e[0],a[1]=e[1],this.a===Tp?b.I(d):this.a===Up&&(this.g.K().I(d),b.I(this.b))),Zp(this)),b=!0):a.type===qf&&(b=!1);return b};function Yp(a,b){var c=!1;if(null!==a.e){var d=a.e.K(),e=!1,f=[a.d];a.a===Tp?e=2<d.B().length:a.a===Up&&(e=2<d.B()[0].length,f=[a.b[0][0],a.b[0][a.b[0].length-2]]);if(e)for(var d=b.map,e=0,g=f.length;e<g;e++){var h=f[e],m=d.e(h),n=b.pixel,c=n[0]-m[0],m=n[1]-m[1];if(c=Math.sqrt(c*c+m*m)<=a.n){a.d=h;break}}}return c}
function Xp(a,b){var c=b.coordinate;a.d=c;var d;a.a===Sp?d=new dl(c.slice()):(a.f=new T(new dl(c.slice())),a.a===Tp?d=new $k([c.slice(),c.slice()]):a.a===Up&&(a.g=new T(new $k([c.slice(),c.slice()])),a.b=[[c.slice(),c.slice()]],d=new Pg(a.b)));a.e=new T(d);Zp(a);N(a,new Qp("drawstart",a.e))}function Wp(a){a.d=null;var b=a.e;null!==b&&(a.e=null,a.f=null,a.g=null,a.i.a.clear());return b}function Zp(a){var b=[a.e];null===a.g||b.push(a.g);null===a.f||b.push(a.f);a.i.Ub(new Q(b))}
var Sp="Point",Tp="LineString",Up="Polygon";function $p(a){jg.call(this);this.b=null;this.i=!1;this.a=this.q=null;this.h=t(a.pixelTolerance)?a.pixelTolerance:20;this.d=null;this.e=a.featureOverlay;this.e.a.W("add",this.Pe,!1,this);this.e.a.W("remove",this.Ch,!1,this);this.n={Point:this.Wh,LineString:this.Ce,LinearRing:this.Ce,Polygon:this.Xh,MultiPoint:this.Uh,MultiLineString:this.Th,MultiPolygon:this.Vh,GeometryCollection:this.Sh}}H($p,jg);l=$p.prototype;
l.fa=function(a){null===a?this.a=null:null===this.a&&(this.a=new ql);this.e.Qb(a);$p.D.fa.call(this,a)};l.Pe=function(a){a=a.element;var b=a.K();t(this.n[b.C()])&&this.n[b.C()].call(this,a,b);aq(this,this.q,this.l)};l.Wh=function(a,b){var c=b.B(),c={feature:a,geometry:b,U:[c,c]};xl(this.a,b.p(),c)};l.Uh=function(a,b){var c=b.B(),d,e,f;e=0;for(f=c.length;e<f;++e)d=c[e],d={feature:a,geometry:b,depth:[e],index:e,U:[d,d]},xl(this.a,b.p(),d)};
l.Ce=function(a,b){var c=b.B(),d,e,f,g;d=0;for(e=c.length-1;d<e;++d)f=c.slice(d,d+2),g={feature:a,geometry:b,index:d,U:f},xl(this.a,ce(f),g)};l.Th=function(a,b){var c=b.B(),d,e,f,g,h,m,n;g=0;for(h=c.length;g<h;++g)for(d=c[g],e=0,f=d.length-1;e<f;++e)m=d.slice(e,e+2),n={feature:a,geometry:b,depth:[g],index:e,U:m},xl(this.a,ce(m),n)};l.Xh=function(a,b){var c=b.B()[0],d,e,f,g;d=0;for(e=c.length-1;d<e;++d)f=c.slice(d,d+2),g={feature:a,geometry:b,index:d,U:f},xl(this.a,ce(f),g)};
l.Vh=function(a,b){var c=b.B(),d,e,f,g,h,m,n;g=0;for(h=c.length;g<h;++g)for(d=c[g][0],e=0,f=d.length-1;e<f;++e)m=d.slice(e,e+2),n={feature:a,geometry:b,depth:[g],index:e,U:m},xl(this.a,ce(m),n)};l.Sh=function(a,b){var c,d=b.a;for(c=0;c<d.length;++c)this.n[d[c].C()].call(this,a,d[c])};
l.Ch=function(a){var b=a.element;a=this.a;var c,d=[];tl(a,b.K().p(),function(a){b===a.feature&&d.push(a)});for(c=d.length-1;0<=c;--c)a.remove(d[c]);null!==this.b&&(1===this.e.a.Qa()&&this.e.a.Pc(0)==this.b)&&(this.e.ad(this.b),this.b=null)};function bq(a,b){var c=a.b;null===c?(c=new T(new dl(b)),a.b=c,a.e.ae(c)):c.K().I(b)}
l.sb=function(){this.d=[];var a=this.b;if(null!==a){var b=[],a=a.K().B(),c=ce([a]),d=[];ul(this.a,c,function(a){d.push(a)},void 0);for(var c={},e=0,f=d.length;e<f;++e){var g=d[e],h=g.U;B(g.feature)in c||(c[B(g.feature)]=!0);Md(h[0],a)?this.d.push([g,0]):Md(h[1],a)?this.d.push([g,1]):0===Od(a,Jd(a,h))&&b.push([g,a])}for(e=b.length-1;0<=e;--e)this.mg.apply(this,b[e])}return this.i};
l.qb=function(a){a=a.coordinate;for(var b=0,c=this.d.length;b<c;++b){var d=this.d[b],e=d[0],f=e.depth,g=e.geometry,h=g.B(),m=e.U,d=d[1];switch(g.C()){case "Point":h=a;m[0]=m[1]=a;break;case "MultiPoint":h[e.index]=a;m[0]=m[1]=a;break;case "LineString":h[e.index+d]=a;m[d]=a;break;case "MultiLineString":h[f[0]][e.index+d]=a;m[d]=a;break;case "Polygon":h[0][e.index+d]=a;m[d]=a;break;case "MultiPolygon":h[f[0]][0][e.index+d]=a,m[d]=a}g.I(h);f=ce(m);bq(this,a);this.a.remove(e);xl(this.a,f,e)}};
l.rb=function(){for(var a,b=this.d.length-1;0<=b;--b)a=this.d[b][0],this.a.update(ce(a.U),a)};l.oa=function(a){var b=a.map.a();Na(b.k)[1]||(this.k||"mousemove"!=a.type)||(this.q=a.pixel,aq(this,a.pixel,a.map));$p.D.oa.call(this,a);return!this.i};
function aq(a,b,c){function d(a,b){return Od(e,Jd(e,a.U))-Od(e,Jd(e,b.U))}var e=c.da(b),f=c.da([b[0]-a.h,b[1]+a.h]),g=c.da([b[0]+a.h,b[1]-a.h]),f=ce([f,g]);a.i=!1;f=wl(a.a,f);if(0<f.length){f.sort(d);var f=f[0].U,g=Jd(e,f),h=c.e(g);if(Math.sqrt(Od(b,h))<=a.h){b=c.e(f[0]);c=c.e(f[1]);b=Od(h,b);c=Od(h,c);10>=Math.sqrt(Math.min(b,c))&&(g=b>c?f[1]:f[0]);bq(a,g);a.i=!0;return}}null!==a.b&&(a.e.ad(a.b),a.b=null)}
l.mg=function(a,b){var c=a.U,d=a.feature,e=a.geometry,f=a.depth,g=a.index,h;switch(e.C()){case "MultiLineString":h=e.B();h[f[0]].splice(g+1,0,b);break;case "Polygon":h=e.B();h[0].splice(g+1,0,b);break;case "MultiPolygon":h=e.B();h[f[0]][0].splice(g+1,0,b);break;case "LineString":h=e.B();h.splice(g+1,0,b);break;default:return}e.I(h);h=this.a;h.remove(a);var m=B(d),n=[];tl(this.a,e.p(),function(a){B(a.feature)===m&&n.push(a)});for(var p=0,q=n.length;p<q;++p){var r=n[p];r.geometry===e&&r.index>g&&++r.index}p=
{U:[c[0],b],feature:d,geometry:e,depth:f,index:g};xl(h,ce(p.U),p);this.d.push([p,1]);c={U:[b,c[1]],feature:d,geometry:e,depth:f,index:g+1};xl(h,ce(c.U),c);this.d.push([c,0])};function cq(a){eg.call(this);this.g=t(a.condition)?a.condition:Cf;this.d=t(a.addCondition)?a.addCondition:Ef;var b;if(t(a.layerFilter))b=a.layerFilter;else if(t(a.layer)){var c=a.layer;b=function(a){return a===c}}else if(t(a.layers)){var d=a.layers;b=function(a){return-1!=Fa(d,a)}}else b=ld;this.b=b;this.a=a.featureOverlay}H(cq,eg);cq.prototype.e=k("a");
cq.prototype.oa=function(a){if(!this.g(a))return!0;var b=this.d(a),c=a.map,d=this.a.a;gg(c,function(){if(b)c.cd(a.pixel,function(a){-1==Fa(d.a,a)&&d.push(a)},void 0,this.b);else{var e=c.cd(a.pixel,function(a){return a},void 0,this.b);t(e)?1==d.Qa()?d.Pc(0)!==e&&d.re(0,e):(1!=d.Qa()&&d.clear(),d.push(e)):0!==d.Qa()&&d.clear()}},this);return!1};cq.prototype.fa=function(a){cq.D.fa.call(this,a);this.a.Qb(a)};function dq(a){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(a,"application/xml");if("undefined"!=typeof ActiveXObject){var b=new ActiveXObject("MSXML2.DOMDocument");if(b){b.resolveExternals=!1;b.validateOnParse=!1;try{b.setProperty("ProhibitDTD",!0),b.setProperty("MaxXMLSize",2048),b.setProperty("MaxElementDepth",256)}catch(c){}}b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};function eq(){};function fq(){s.ActiveXObject&&(this.a=new ActiveXObject("Microsoft.XMLDOM"));this.b={d:/^\s*|\s*$/g,a:/\s*/g,c:/\s+/,b:/\s*,\s*/g}}H(fq,eq);function gq(a,b,c){c||(c={});var d=a.X[b.namespaceURI]||a.X[a.c];if(d){var e=b.localName||b.nodeName.split(":").pop();(d=d[e]||d["*"])&&d.apply(a,[b,c])}}function Y(a,b,c){c||(c={});b=b.childNodes;for(var d,e=0,f=b.length;e<f;++e)d=b[e],1==d.nodeType&&gq(a,d,c)}
function $(a){var b="";if(a)for(a=a.firstChild;a;a=a.nextSibling)switch(a.nodeType){case 3:case 4:b+=a.nodeValue}return b}fq.prototype.getAttributeNS=function(a,b,c){var d="";if(a.getAttributeNS)d=a.getAttributeNS(b,c)||"";else{var e=null;if(a.getAttributeNodeNS)e=a.getAttributeNodeNS(b,c);else{a=a.attributes;for(var f,g,h=0,m=a.length;h<m;++h)if(f=a[h],f.namespaceURI==b&&(g=f.prefix?f.prefix+":"+c:c,g==f.nodeName)){e=f;break}}if(b=e)d=b.nodeValue}return d};
fq.prototype.createTextNode=function(a){return this.a?this.a.createTextNode(a):document.createTextNode(a)};fq.prototype.createDocumentFragment=function(){return this.a?this.a.createDocumentFragment():document.createDocumentFragment()};function hq(){function a(a,b){b.Kh.push($(a))}function b(a,b){var e={code:a.getAttribute("exceptionCode"),oi:a.getAttribute("locator"),Kh:[]};b.Jd.push(e);Y(this,a,e)}this.X={"http://www.opengis.net/ogc":{ServiceExceptionReport:function(a,b){b.exceptionReport={};b.exceptionReport.exceptions=[];Y(this,a,b.exceptionReport)},ServiceException:function(a,b){var e={};e.code=a.getAttribute("code");e.locator=a.getAttribute("locator");e.text=$(a);b.exceptions.push(e)}},"http://www.opengis.net/ows":{ExceptionReport:function(a,
b){b.pi=!1;b.Nc={version:a.getAttribute("version"),language:a.getAttribute("language"),Jd:[]};Y(this,a,b.Nc)},Exception:function(a,d){b.apply(this,arguments)},ExceptionText:function(b,d){a.apply(this,arguments)}},"http://www.opengis.net/ows/1.1":{ExceptionReport:function(a,b){b.Nc={version:a.getAttribute("version"),language:a.getAttribute("xml:lang"),Jd:[]};Y(this,a,b.Nc)},Exception:function(a,d){b.apply(this,arguments)},ExceptionText:function(b,d){a.apply(this,arguments)}}};fq.call(this)}H(hq,fq);
hq.prototype.Tb=function(a){z(a)&&(a=dq(a));var b={exceptionReport:null};a&&Y(this,a,b);return b};function iq(a){this.c=a=t(a)?a:{};this.fc=a.fc||null;this.version=a.version;this.profile=a.profile;t(a.cc)?this.cc=a.cc:this.cc=!1;t(a.Fc)?this.Fc=a.Fc:this.Fc=!1}function jq(a,b,c){b?(c=a.version,c||(c=b.getAttribute("version"),c||(c=a.fc))):c=c&&c.version||a.version||a.fc;return c}
function kq(a,b){b=b||a.fc;var c=a.profile?"_"+a.profile:"";if(!a.parser||a.parser.VERSION!=b){var d=a.a["v"+b.replace(/\./g,"_")+c];if(!d&&(""!==c&&a.cc&&(c="",d=a.a["v"+b.replace(/\./g,"_")+c]),!d))throw"Can't find a parser for version "+b+c;a.parser=new d(a.c)}return a.parser}
iq.prototype.write=function(a,b){var c=jq(this,null,b);this.parser=kq(this,c);c=this.parser.write(a,b);if(!1!==this.Fc)if("undefined"!=typeof XMLSerializer)c=(new XMLSerializer).serializeToString(c);else if(c=c.xml,!c)throw Error("Your browser does not support serializing XML documents");return c};
iq.prototype.Tb=function(a,b){z(a)&&(a=dq(a));var c=jq(this,a.documentElement);this.parser=kq(this,c);var d=this.parser.Tb(a,b),e=this.parser.Xe||null;null!==e&&void 0===d[e]&&(e=new hq,d.error=e.Tb(a));d.version=c;return d};function lq(){this.c="http://www.opengis.net/wms";this.Xe="service";this.X={"http://www.opengis.net/wms":{Service:function(a,b){b.service={};Y(this,a,b.service)},Name:function(a,b){b.name=$(a)},Title:function(a,b){b.title=$(a)},Abstract:function(a,b){b["abstract"]=$(a)},BoundingBox:function(a){var b={};b.bbox=[parseFloat(a.getAttribute("minx")),parseFloat(a.getAttribute("miny")),parseFloat(a.getAttribute("maxx")),parseFloat(a.getAttribute("maxy"))];a={x:parseFloat(a.getAttribute("resx")),y:parseFloat(a.getAttribute("resy"))};
isNaN(a.x)&&isNaN(a.y)||(b.res=a);return b},OnlineResource:function(a,b){b.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ContactInformation:function(a,b){b.contactInformation={};Y(this,a,b.contactInformation)},ContactPersonPrimary:function(a,b){b.personPrimary={};Y(this,a,b.personPrimary)},ContactPerson:function(a,b){b.person=$(a)},ContactOrganization:function(a,b){b.organization=$(a)},ContactPosition:function(a,b){b.position=$(a)},ContactAddress:function(a,b){b.contactAddress=
{};Y(this,a,b.contactAddress)},AddressType:function(a,b){b.type=$(a)},Address:function(a,b){b.address=$(a)},City:function(a,b){b.city=$(a)},StateOrProvince:function(a,b){b.stateOrProvince=$(a)},PostCode:function(a,b){b.postcode=$(a)},Country:function(a,b){b.country=$(a)},ContactVoiceTelephone:function(a,b){b.phone=$(a)},ContactFacsimileTelephone:function(a,b){b.fax=$(a)},ContactElectronicMailAddress:function(a,b){b.email=$(a)},Fees:function(a,b){var c=$(a);c&&"none"!=c.toLowerCase()&&(b.fees=c)},
AccessConstraints:function(a,b){var c=$(a);c&&"none"!=c.toLowerCase()&&(b.accessConstraints=c)},Capability:function(a,b){b.capability={};b.capability.nestedLayers=[];b.capability.layers=[];Y(this,a,b.capability)},Request:function(a,b){b.request={};Y(this,a,b.request)},GetCapabilities:function(a,b){b.getcapabilities={};b.getcapabilities.formats=[];Y(this,a,b.getcapabilities)},Format:function(a,b){ja(b.formats)?b.formats.push($(a)):b.format=$(a)},DCPType:function(a,b){Y(this,a,b)},HTTP:function(a,b){Y(this,
a,b)},Get:function(a,b){b.get={};Y(this,a,b.get)},Post:function(a,b){b.post={};Y(this,a,b.post)},GetMap:function(a,b){b.getmap={};b.getmap.formats=[];Y(this,a,b.getmap)},GetFeatureInfo:function(a,b){b.getfeatureinfo={};b.getfeatureinfo.formats=[];Y(this,a,b.getfeatureinfo)},Exception:function(a,b){b.exception={};b.exception.formats=[];Y(this,a,b.exception)},Layer:function(a,b){var c,d;b.capability?(d=b.capability,c=b):d=b;var e=a.getAttributeNode("queryable"),f=e&&e.specified?a.getAttribute("queryable"):
null,g=(e=a.getAttributeNode("cascaded"))&&e.specified?a.getAttribute("cascaded"):null,h=(e=a.getAttributeNode("opaque"))&&e.specified?a.getAttribute("opaque"):null,m=a.getAttribute("noSubsets"),n=a.getAttribute("fixedWidth"),p=a.getAttribute("fixedHeight"),e=c||{},f={nestedLayers:[],styles:c?[].concat(c.styles):[],srs:{},metadataURLs:[],bbox:{},llbbox:e.llbbox,dimensions:{},authorityURLs:{},identifiers:{},keywords:[],queryable:f&&""!==f?"1"===f||"true"===f:e.queryable||!1,cascaded:null!==g?parseInt(g,
10):e.cascaded||0,opaque:h?"1"===h||"true"===h:e.opaque||!1,noSubsets:null!==m?"1"===m||"true"===m:e.noSubsets||!1,fixedWidth:null!==n?parseInt(n,10):e.fixedWidth||0,fixedHeight:null!==p?parseInt(p,10):e.fixedHeight||0,minScale:e.minScale,maxScale:e.maxScale,attribution:e.attribution};c&&($b(f.srs,e.srs),$b(f.bbox,e.bbox),$b(f.dimensions,e.dimensions),$b(f.authorityURLs,e.authorityURLs));b.nestedLayers.push(f);f.capability=d;Y(this,a,f);delete f.capability;f.name&&(c=f.name.split(":"),g=d.request,
e=g.getfeatureinfo,0<c.length&&(f.prefix=c[0]),d.layers.push(f),t(f.formats)||(f.formats=g.getmap.formats),!t(f.infoFormats)&&e&&(f.infoFormats=e.formats))},Attribution:function(a,b){b.attribution={};Y(this,a,b.attribution)},LogoURL:function(a,b){b.logo={width:a.getAttribute("width"),height:a.getAttribute("height")};Y(this,a,b.logo)},Style:function(a,b){var c={};b.styles.push(c);Y(this,a,c)},LegendURL:function(a,b){var c={width:a.getAttribute("width"),height:a.getAttribute("height")};b.legend=c;Y(this,
a,c)},MetadataURL:function(a,b){var c={type:a.getAttribute("type")};b.metadataURLs.push(c);Y(this,a,c)},DataURL:function(a,b){b.dataURL={};Y(this,a,b.dataURL)},FeatureListURL:function(a,b){b.featureListURL={};Y(this,a,b.featureListURL)},AuthorityURL:function(a,b){var c=a.getAttribute("name"),d={};Y(this,a,d);b.authorityURLs[c]=d.href},Identifier:function(a,b){var c=a.getAttribute("authority");b.identifiers[c]=$(a)},KeywordList:function(a,b){Y(this,a,b)},SRS:function(a,b){b.srs[$(a)]=!0}}};fq.call(this)}
H(lq,fq);lq.prototype.Tb=function(a){z(a)&&(a=dq(a));a&&9==a.nodeType&&(a=a.documentElement);var b={};gq(this,a,b);return b};function mq(){lq.call(this);var a=this.X["http://www.opengis.net/wms"].BoundingBox;$b(this.X["http://www.opengis.net/wms"],{WMT_MS_Capabilities:function(a,c){Y(this,a,c)},Keyword:function(a,c){c.keywords&&c.keywords.push({value:$(a)})},DescribeLayer:function(a,c){c.describelayer={formats:[]};Y(this,a,c.describelayer)},GetLegendGraphic:function(a,c){c.getlegendgraphic={formats:[]};Y(this,a,c.getlegendgraphic)},GetStyles:function(a,c){c.getstyles={formats:[]};Y(this,a,c.getstyles)},PutStyles:function(a,
c){c.putstyles={formats:[]};Y(this,a,c.putstyles)},UserDefinedSymbolization:function(a,c){var d={supportSLD:1==parseInt(a.getAttribute("SupportSLD"),10),userLayer:1==parseInt(a.getAttribute("UserLayer"),10),userStyle:1==parseInt(a.getAttribute("UserStyle"),10),remoteWFS:1==parseInt(a.getAttribute("RemoteWFS"),10)};c.userSymbols=d},LatLonBoundingBox:function(a,c){c.llbbox=[parseFloat(a.getAttribute("minx")),parseFloat(a.getAttribute("miny")),parseFloat(a.getAttribute("maxx")),parseFloat(a.getAttribute("maxy"))]},
BoundingBox:function(b,c){var d=a.apply(this,arguments);d.srs=b.getAttribute("SRS");c.bbox[d.srs]=d},ScaleHint:function(a,c){var d=parseFloat(a.getAttribute("min")),e=parseFloat(a.getAttribute("max")),f=Math.pow(2,0.5),g=25.4/0.28;0!==d&&(c.maxScale=parseFloat(39.37*(d/f)*g));Infinity!=e&&(c.minScale=parseFloat(39.37*(e/f)*g))},Dimension:function(a,c){var d={name:a.getAttribute("name").toLowerCase(),units:a.getAttribute("units"),unitsymbol:a.getAttribute("unitSymbol")};c.dimensions[d.name]=d},Extent:function(a,
c){var d=a.getAttribute("name").toLowerCase();d in c.dimensions&&(d=c.dimensions[d],d.nearestVal="1"===a.getAttribute("nearestValue"),d.multipleVal="1"===a.getAttribute("multipleValues"),d.current="1"===a.getAttribute("current"),d["default"]=a.getAttribute("default")||"",d.values=$(a).split(","))}})}H(mq,lq);function nq(){mq.call(this);this.version="1.1.0";$b(this.X["http://www.opengis.net/wms"],{SRS:function(a,b){for(var c=$(a).split(/ +/),d=0,e=c.length;d<e;d++)b.srs[c[d]]=!0}})}H(nq,mq);function oq(){mq.call(this);this.version="1.1.1";$b(this.X["http://www.opengis.net/wms"],{SRS:function(a,b){b.srs[$(a)]=!0}})}H(oq,mq);function pq(){oq.call(this);this.profile="WMSC";$b(this.X["http://www.opengis.net/wms"],{VendorSpecificCapabilities:function(a,b){b.vendorSpecific={tileSets:[]};Y(this,a,b.vendorSpecific)},TileSet:function(a,b){var c={srs:{},bbox:{},resolutions:[]};Y(this,a,c);b.qi.push(c)},Resolutions:function(a,b){for(var c=$(a).split(" "),d=0,e=c.length;d<e;d++)""!==c[d]&&b.resolutions.push(parseFloat(c[d]))},Width:function(a,b){b.width=parseInt($(a),10)},Height:function(a,b){b.height=parseInt($(a),10)},Layers:function(a,
b){b.layers=$(a)},Styles:function(a,b){b.styles=$(a)}})}H(pq,oq);function qq(){lq.call(this);var a=this.X["http://www.opengis.net/wms"].BoundingBox;$b(this.X["http://www.opengis.net/wms"],{WMS_Capabilities:function(a,c){Y(this,a,c)},LayerLimit:function(a,c){c.layerLimit=parseInt($(a),10)},MaxWidth:function(a,c){c.maxWidth=parseInt($(a),10)},MaxHeight:function(a,c){c.maxHeight=parseInt($(a),10)},BoundingBox:function(b,c){var d=a.apply(this,arguments);d.srs=b.getAttribute("CRS");c.bbox[d.srs]=d},CRS:function(a,c){this.X["http://www.opengis.net/wms"].SRS.apply(this,
arguments)},EX_GeographicBoundingBox:function(a,c){c.llbbox=[];Y(this,a,c.llbbox)},westBoundLongitude:function(a,c){c[0]=$(a)},eastBoundLongitude:function(a,c){c[2]=$(a)},southBoundLatitude:function(a,c){c[1]=$(a)},northBoundLatitude:function(a,c){c[3]=$(a)},MinScaleDenominator:function(a,c){c.maxScale=parseFloat($(a)).toPrecision(16)},MaxScaleDenominator:function(a,c){c.minScale=parseFloat($(a)).toPrecision(16)},Dimension:function(a,c){var d={name:a.getAttribute("name").toLowerCase(),units:a.getAttribute("units"),
unitsymbol:a.getAttribute("unitSymbol"),nearestVal:"1"===a.getAttribute("nearestValue"),multipleVal:"1"===a.getAttribute("multipleValues"),"default":a.getAttribute("default")||"",current:"1"===a.getAttribute("current"),values:$(a).split(",")};c.dimensions[d.name]=d},Keyword:function(a,c){var d={value:$(a),vocabulary:a.getAttribute("vocabulary")};c.keywords&&c.keywords.push(d)}});this.X.sld={UserDefinedSymbolization:function(a,c){this.X["http://www.opengis.net/wms"].ni.apply(this,arguments);var d=
a.getAttribute("InlineFeature");c.userSymbols.inlineFeature=1==parseInt(d,10);d=a.getAttribute("RemoteWCS");c.userSymbols.remoteWCS=1==parseInt(d,10)},DescribeLayer:function(a,c){this.X["http://www.opengis.net/wms"].fi.apply(this,arguments)},GetLegendGraphic:function(a,c){this.X["http://www.opengis.net/wms"].gi.apply(this,arguments)}}}H(qq,lq);function rq(a){a=a||{};a.defaultVersion="1.1.1";this.a={};this.a.v1_1_0=nq;this.a.v1_1_1=oq;this.a.v1_1_1_WMSC=pq;this.a.v1_3_0=qq;iq.call(this,a)}H(rq,iq);function sq(a,b){var c=b||{},d=c.document||document,e=kc("SCRIPT"),f={qe:e,gb:void 0},g=new yp(tq,f),h=null,m=null!=c.timeout?c.timeout:5E3;0<m&&(h=window.setTimeout(function(){uq(e,!0);var b=new vq(wq,"Timeout reached for loading script "+a);Bp(g);zp(g,!1,b)},m),f.gb=h);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(uq(e,c.Dd||!1,h),Bp(g),zp(g,!0,null))};e.onerror=function(){uq(e,!0,h);var b=new vq(xq,"Error while loading script "+a);Bp(g);
zp(g,!1,b)};ec(e,{type:"text/javascript",charset:"UTF-8",src:a});yq(d).appendChild(e);return g}function yq(a){var b=a.getElementsByTagName("HEAD");return b&&0!=b.length?b[0]:a.documentElement}function tq(){if(this&&this.qe){var a=this.qe;a&&"SCRIPT"==a.tagName&&uq(a,!0,this.gb)}}function uq(a,b,c){null!=c&&s.clearTimeout(c);a.onload=ga;a.onerror=ga;a.onreadystatechange=ga;b&&window.setTimeout(function(){pc(a)},0)}var xq=0,wq=1;
function vq(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);ua.call(this,c);this.code=a}H(vq,ua);function zq(a){this.c=new Gh(a);this.a="jsonp";this.gb=5E3}var Aq=0;function Bq(a){return function(){Cq(a,!1)}}function Dq(a,b){return function(c){Cq(a,!0);b.apply(void 0,arguments)}}function Cq(a,b){s._callbacks_[a]&&(b?delete s._callbacks_[a]:s._callbacks_[a]=ga)};function Eq(a){return function(b){return null===b?void 0:a.replace("{z}",b.a.toString()).replace("{x}",b.x.toString()).replace("{y}",b.y.toString())}}function Fq(a){return Gq(Ha(a,Eq))}function Gq(a){return 1===a.length?a[0]:function(b,c,d){return null===b?void 0:a[Nb((b.x<<b.a)+b.y,a.length)].call(this,b,c,d)}}function Hq(){}function Iq(a,b){var c=new Wa(0,0,0);return function(d,e,f){return null===d?void 0:b.call(this,a.call(this,d,f,c),e,f)}}
function Jq(a){var b=[],c=/\{(\d)-(\d)\}/.exec(a)||/\{([a-z])-([a-z])\}/.exec(a);if(c){var d=c[2].charCodeAt(0),e;for(e=c[1].charCodeAt(0);e<=d;++e)b.push(a.replace(c[0],String.fromCharCode(e)))}else b.push(a);return b};function Kq(a){Bm.call(this);this.d=t(a)?a:2048}H(Kq,Bm);function Lq(a,b){for(var c,d;a.xa()>a.d&&!(c=a.a.ib,d=c.a.a.toString(),d in b&&b[d].contains(c.a));)a.pop()};function Mq(a){Cj.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,opaque:a.opaque,projection:a.projection,tileGrid:a.tileGrid});this.tileUrlFunction=t(a.tileUrlFunction)?a.tileUrlFunction:Hq;this.crossOrigin=t(a.crossOrigin)?a.crossOrigin:null;this.b=new Kq;this.tileLoadFunction=t(a.tileLoadFunction)?a.tileLoadFunction:Nq;this.Gc=t(a.Gc)?a.Gc:ph}H(Mq,Cj);function Nq(a,b){a.b().src=b}l=Mq.prototype;l.ed=function(){return this.b.xa()>this.b.d};l.ee=function(a){Lq(this.b,a)};
l.nb=function(a,b,c,d,e){var f=this.Oa(a,b,c);if(zm(this.b,f))return Cm(this.b,f);a=new Wa(a,b,c);d=this.tileUrlFunction(a,d,e);d=new this.Gc(a,t(d)?0:4,t(d)?d:"",this.crossOrigin,this.tileLoadFunction);Dm(this.b,f,d);return d};l.Vb=function(a){this.b.clear();this.tileUrlFunction=a;this.s()};l.Ae=function(a,b,c){a=this.Oa(a,b,c);zm(this.b,a)&&Cm(this.b,a)};function Oq(a){var b=Array(a.maxZoom+1),c,d=2*oj/256;for(c=0;c<=a.maxZoom;++c)b[c]=d/Math.pow(2,c);vj.call(this,{minZoom:a.minZoom,origin:[-oj,oj],resolutions:b,tileSize:256})}H(Oq,vj);
Oq.prototype.c=function(a){a=t(a)?a:{};var b=this.minZoom,c=this.maxZoom,d=t(a.Rh)?a.Rh:!0,e=new Wa(0,0,0),f=null;if(t(a.extent)){var f=Array(c+1),g;for(g=0;g<=c;++g)f[g]=g<b?null:yj(this,a.extent,g)}return function(a,g,n){g=a.a;if(g<b||c<g)return null;var p=Math.pow(2,g),q=a.x;if(d)q=Nb(q,p);else if(0>q||p<=q)return null;a=a.y;return a<-p||-1<a||null!==f&&(e.a=g,e.x=q,e.y=a,!f[g].contains(e))?null:Xa(g,q,-a-1,n)}};
Oq.prototype.qc=function(a,b){return a.a<this.maxZoom?bb(2*a.x,2*(a.x+1),2*a.y,2*(a.y+1),b):null};Oq.prototype.nc=function(a,b,c,d){d=bb(0,a.x,0,a.y,d);for(a=a.a-1;a>=this.minZoom;--a)if(d.a=d.d>>=1,d.b=d.c>>=1,b.call(c,a,d))return!0;return!1};function Pq(a){Mq.call(this,{crossOrigin:"anonymous",opaque:!0,projection:ef("EPSG:3857"),state:0,tileLoadFunction:a.tileLoadFunction});this.a=t(a.culture)?a.culture:"en-us";var b=new Gh("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.imagerySet),b=new zq(b),c={include:"ImageryProviders",key:a.key};a=D(this.e,this);var d=c||null,c="_"+(Aq++).toString(36)+ta().toString(36);s._callbacks_||(s._callbacks_={});var e=b.c.H();if(d)for(var f in d)d.hasOwnProperty&&!d.hasOwnProperty(f)||Th(e,f,d[f]);
a&&(s._callbacks_[c]=Dq(c,a),Th(e,b.a,"_callbacks_."+c));f=sq(e.toString(),{timeout:b.gb,Dd:!0});Dp(f,null,Bq(c),void 0)}H(Pq,Mq);var Qq=new cb({html:'\x3ca class\x3d"ol-attribution-bing-tos" target\x3d"_blank" href\x3d"http://www.microsoft.com/maps/product/terms.html"\x3eTerms of Use\x3c/a\x3e'});
Pq.prototype.e=function(a){if(200!=a.statusCode||"OK"!=a.statusDescription||"ValidCredentials"!=a.authenticationResultCode||1!=a.resourceSets.length||1!=a.resourceSets[0].resources.length)jf(this,2);else{var b=a.brandLogoUri,c=a.resourceSets[0].resources[0],d=new Oq({minZoom:c.zoomMin,maxZoom:c.zoomMax,tileSize:c.imageWidth});this.tileGrid=d;var e=this.a;this.tileUrlFunction=Iq(d.c(),Gq(Ha(c.imageUrlSubdomains,function(a){var b=c.imageUrl.replace("{subdomain}",a).replace("{culture}",e);return function(a){return null===
a?void 0:b.replace("{quadkey}",$a(a))}})));if(c.imageryProviders){var f=Oe(ef("EPSG:4326"),this.l);a=Ha(c.imageryProviders,function(a){var b=a.attribution,c={};Ga(a.coverageAreas,function(a){var b=a.zoomMin,e=a.zoomMax;a=a.bbox;a=ze([a[1],a[0],a[3],a[2]],f);var g,h;for(g=b;g<=e;++g)h=g.toString(),b=yj(d,a,g),h in c?c[h].push(b):c[h]=[b]});return new cb({html:b,tileRanges:c})});a.push(Qq);this.d=a}this.r=b;jf(this,1)}};function Rq(a,b,c){if(ma(a))c&&(a=D(a,c));else if(a&&"function"==typeof a.handleEvent)a=D(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:s.setTimeout(a,b||0)};function Sq(){}Sq.prototype.a=null;function Tq(a){var b;(b=a.a)||(b={},Uq(a)&&(b[0]=!0,b[1]=!0),b=a.a=b);return b};var Vq;function Wq(){}H(Wq,Sq);function Xq(a){return(a=Uq(a))?new ActiveXObject(a):new XMLHttpRequest}function Uq(a){if(!a.c&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.c=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.c}Vq=new Wq;function Yq(a){sd.call(this);this.Q=new vh;this.i=a||null;this.c=!1;this.h=this.a=null;this.R=this.n="";this.d=0;this.g="";this.b=this.r=this.l=this.k=!1;this.f=0;this.e=null;this.w=Zq;this.o=this.Z=!1}H(Yq,sd);var Zq="",$q=/^https?$/i,ar=["POST","PUT"],br=[];function cr(a,b){var c=new Yq;br.push(c);b&&c.W("complete",b);c.V.add("ready",c.G,!0,void 0,void 0);dr(c,a)}Yq.prototype.G=function(){this.kb();La(br,this)};
function dr(a,b){if(a.a)throw Error("[goog.net.XhrIo] Object is active with another request\x3d"+a.n+"; newUri\x3d"+b);a.n=b;a.g="";a.d=0;a.R="GET";a.k=!1;a.c=!0;a.a=a.i?Xq(a.i):Xq(Vq);a.h=a.i?Tq(a.i):Tq(Vq);a.a.onreadystatechange=D(a.q,a);try{a.r=!0,a.a.open("GET",b,!0),a.r=!1}catch(c){er(a,c);return}var d=a.Q.H(),e=Ja(d.Da(),fr),f=s.FormData&&!1;!(0<=Fa(ar,"GET"))||(e||f)||wh(d,"Content-Type","application/x-www-form-urlencoded;charset\x3dutf-8");uh(d,function(a,b){this.a.setRequestHeader(b,a)},
a);a.w&&(a.a.responseType=a.w);"withCredentials"in a.a&&(a.a.withCredentials=a.Z);try{gr(a),0<a.f&&(a.o=I&&Eb(9)&&la(a.a.timeout)&&t(a.a.ontimeout),a.o?(a.a.timeout=a.f,a.a.ontimeout=D(a.gb,a)):a.e=Rq(a.gb,a.f,a)),a.l=!0,a.a.send(""),a.l=!1}catch(g){er(a,g)}}function fr(a){return"content-type"==a.toLowerCase()}
Yq.prototype.gb=function(){"undefined"!=typeof fa&&this.a&&(this.g="Timed out after "+this.f+"ms, aborting",this.d=8,N(this,"timeout"),this.a&&this.c&&(this.c=!1,this.b=!0,this.a.abort(),this.b=!1,this.d=8,N(this,"complete"),N(this,"abort"),hr(this)))};function er(a,b){a.c=!1;a.a&&(a.b=!0,a.a.abort(),a.b=!1);a.g=b;a.d=5;ir(a);hr(a)}function ir(a){a.k||(a.k=!0,N(a,"complete"),N(a,"error"))}Yq.prototype.v=function(){this.a&&(this.c&&(this.c=!1,this.b=!0,this.a.abort(),this.b=!1),hr(this,!0));Yq.D.v.call(this)};
Yq.prototype.q=function(){if(!this.pa&&this.c&&"undefined"!=typeof fa&&(!this.h[1]||4!=jr(this)||2!=kr(this)))if(this.l&&4==jr(this))Rq(this.q,0,this);else if(N(this,"readystatechange"),4==jr(this)){this.c=!1;try{if(lr(this))N(this,"complete"),N(this,"success");else{this.d=6;var a;try{a=2<jr(this)?this.a.statusText:""}catch(b){a=""}this.g=a+" ["+kr(this)+"]";ir(this)}}finally{hr(this)}}};
function hr(a,b){if(a.a){gr(a);var c=a.a,d=a.h[0]?ga:null;a.a=null;a.h=null;b||N(a,"ready");try{c.onreadystatechange=d}catch(e){}}}function gr(a){a.a&&a.o&&(a.a.ontimeout=null);la(a.e)&&(s.clearTimeout(a.e),a.e=null)}
function lr(a){var b=kr(a),c;a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:c=!0;break a;default:c=!1}if(!c){if(b=0===b)a=Bh(String(a.n))[1]||null,!a&&self.location&&(a=self.location.protocol,a=a.substr(0,a.length-1)),b=!$q.test(a?a.toLowerCase():"");c=b}return c}function jr(a){return a.a?a.a.readyState:0}function kr(a){try{return 2<jr(a)?a.a.status:-1}catch(b){return-1}}function mr(a){try{return a.a?a.a.responseText:""}catch(b){return""}};function nr(a){var b=t(a)?a:{};Al.call(this,{attributions:b.attributions,extent:b.extent,logo:b.logo,projection:b.projection});this.format=b.format;t(b.doc)&&or(this,b.doc);t(b.node)&&or(this,b.node);t(b.object)&&or(this,b.object);t(b.text)&&or(this,b.text);if(t(b.url)||t(b.urls))if(jf(this,0),a=D(this.f,this),t(b.url)&&cr(b.url,a),t(b.urls)){var b=b.urls,c,d;c=0;for(d=b.length;c<d;++c)cr(b[c],a)}}H(nr,Al);
nr.prototype.f=function(a){a=a.target;if(lr(a)){var b=this.format.C(),c;if("binary"!=b)if("json"==b)c=a.a?io(a.a.responseText):void 0;else if("text"==b)c=mr(a);else if("xml"==b){if(!I)try{c=a.a?a.a.responseXML:null}catch(d){c=null}null!=c||(c=Dn(mr(a)))}t(c)?or(this,c):jf(this,2)}else jf(this,2)};
function or(a,b){var c=a.format,d=c.Ia(b),c=c.Aa(b),e=a.l;if(null!==e&&c!==e&&(c.sa!=e.sa||Oe(c,e)!==Xe)){var c=ff(c,e),f,e=0;for(f=d.length;e<f;++e){var g=d[e].K();null===g||g.transform(c)}}Bl(a,d);jf(a,1)};function pr(a){a=t(a)?a:{};nr.call(this,{attributions:a.attributions,doc:a.doc,extent:a.extent,format:new Sn,logo:a.logo,node:a.node,projection:a.projection,text:a.text,url:a.url,urls:a.urls})}H(pr,nr);function qr(a){a=t(a)?a:{};nr.call(this,{attributions:a.attributions,extent:a.extent,format:new oo({defaultProjection:a.defaultProjection}),logo:a.logo,object:a.object,projection:a.projection,text:a.text,url:a.url,urls:a.urls})}H(qr,nr);function rr(a){a=t(a)?a:{};nr.call(this,{format:new xo({altitudeMode:a.altitudeMode}),projection:a.projection,text:a.text,url:a.url,urls:a.urls})}H(rr,nr);function sr(a,b,c,d,e){sj.call(this,a,b,c,2,d);this.a=e}H(sr,sj);sr.prototype.e=k("a");function tr(a){tk.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,resolutions:a.resolutions,state:a.state});this.w=a.canvasFunction;this.n=null;this.o=0;this.G=t(a.ratio)?a.ratio:1.5}H(tr,tk);tr.prototype.tb=function(a,b,c,d){b=uk(this,b);var e=this.n;if(null!==e&&this.o==this.c&&e.d==b&&e.b==c&&je(e.p(),a))return e;a=a.slice();xe(a,this.G);d=this.w(a,b,c,[(a[2]-a[0])/b*c,(a[3]-a[1])/b*c],d);null===d||(e=new sr(a,b,c,this.d,d));this.n=e;this.o=this.c;return e};function ur(a){var b=t(a.attributions)?a.attributions:null,c=t(a.crossOrigin)?a.crossOrigin:null,d=a.imageExtent,e=(d[3]-d[1])/a.imageSize[1],f=a.url,g=ef(a.projection);tk.call(this,{attributions:b,extent:a.extent,logo:a.logo,projection:g,resolutions:[e]});this.a=new tj(d,e,1,b,f,c)}H(ur,tk);ur.prototype.tb=function(a){return ue(a,this.a.p())?this.a:null};function vr(a){this.e=a.source;this.Lg=t(a.style)?mh(a.style):lh;this.R=Ud();this.a=kc("CANVAS");this.h=this.a.getContext("2d");this.b=[0,0];this.f=null;tr.call(this,{attributions:a.attributions,canvasFunction:D(this.q,this),extent:a.extent,logo:a.logo,projection:a.projection,ratio:a.ratio,resolutions:a.resolutions,state:this.e.g});K(this.e,"change",this.Z,void 0,this)}H(vr,tr);
vr.prototype.q=function(a,b,c,d){var e=new Nk(b/(2*c)),f=!1;this.e.mc(a,function(a){var d;if(!(d=f))if(d=this.Lg(a,b),null!=d){var m=b*b/(4*c*c),n,p,q=!1;n=0;for(p=d.length;n<p;++n)q=hl(e,a,d[n],m,a,this.Mg,this)||q;d=q}else d=!1;f=d},this);Rk(e);if(f)return null;this.b[0]!=d[0]||this.b[1]!=d[1]?(this.a.width=d[0],this.a.height=d[1],this.b[0]=d[0],this.b[1]=d[1]):this.h.clearRect(0,0,d[0],d[1]);d=Qj(this.R,d[0]/2,d[1]/2,c/b,-c/b,0,-pe(a)[0],-pe(a)[1]);Ok(e,this.h,a,c,d,ld);this.f=e;return this.a};
vr.prototype.k=function(a,b,c,d,e){return null===this.f?void 0:Qk(this.f,a,b,0,d,ld,function(a,b){return e(b)})};vr.prototype.Mg=function(){this.s()};vr.prototype.Z=function(){jf(this,this.e.g)};function wr(a){a=t(a)?a:{};tk.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,resolutions:a.resolutions});this.R=t(a.crossOrigin)?a.crossOrigin:null;this.f=a.url;this.b=a.params;this.e=!0;xr(this);this.G=a.serverType;this.Z=t(a.hidpi)?a.hidpi:!0;this.a=null;this.h=[0,0];this.n=null;this.q=NaN;this.w=0;this.o=t(a.ratio)?a.ratio:1.5}H(wr,tk);l=wr.prototype;
l.Ng=function(a,b,c,d){if(t(this.f)&&null!==this.a&&b==this.q&&(c===this.n||(c.sa!=this.n.sa?0:Oe(c,this.n)===Xe))){var e=this.a.p(),f=this.a.b,g={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:J(this.b,"LAYERS")};$b(g,this.b,d);b/=f;d=Math.floor((e[3]-a[1])/b);g[this.e?"I":"X"]=Math.floor((a[0]-e[0])/b);g[this.e?"J":"Y"]=d;return yr(this,e,this.h,f,c,g)}};l.Og=k("b");
l.tb=function(a,b,c,d){if(!t(this.f))return null;b=uk(this,b);1==c||this.Z&&t(this.G)||(c=1);var e=this.a;if(null!==e&&this.w==this.c&&e.d==b&&e.b==c&&je(e.p(),a))return e;e={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};$b(e,this.b);a=a.slice();var f=(a[0]+a[2])/2,g=(a[1]+a[3])/2;if(1!=this.o){var h=this.o*(a[2]-a[0])/2,m=this.o*(a[3]-a[1])/2;a[0]=f-h;a[1]=g-m;a[2]=f+h;a[3]=g+m}var h=b/c,m=Math.ceil((a[2]-a[0])/h),n=Math.ceil((a[3]-a[1])/h);a[0]=f-h*m/2;a[2]=f+
h*m/2;a[1]=g-h*n/2;a[3]=g+h*n/2;this.h[0]=m;this.h[1]=n;e=yr(this,a,this.h,c,d,e);this.a=new tj(a,b,c,this.d,e,this.R);this.n=d;this.q=b;this.w=this.c;return this.a};
function yr(a,b,c,d,e,f){f[a.e?"CRS":"SRS"]=e.a;"STYLES"in a.b||(f.STYLES=new String(""));if(1!=d)switch(a.G){case "geoserver":f.FORMAT_OPTIONS="dpi:"+(90*d+0.5|0);break;case "mapserver":f.MAP_RESOLUTION=90*d;break;case "qgis":f.DPI=90*d}f.WIDTH=c[0];f.HEIGHT=c[1];c=e.e;f.BBOX=(a.e&&"ne"==c.substr(0,2)?[b[1],b[0],b[3],b[2]]:b).join(",");return Dh(Fh([a.f],f))}l.Pg=function(a){a!=this.f&&(this.f=a,this.a=null,this.s())};l.Qg=function(a){$b(this.b,a);xr(this);this.a=null;this.s()};
function xr(a){a.e=0<=Da(J(a.b,"VERSION","1.3.0"),"1.3")};function zr(a){a=t(a)?a:{};nr.call(this,{attributions:a.attributions,doc:a.doc,extent:a.extent,format:new Bo({defaultStyle:a.defaultStyle}),logo:a.logo,node:a.node,projection:a.projection,text:a.text,url:a.url,urls:a.urls})}H(zr,nr);function Ar(a,b,c){return function(d,e,f){return c(a,b,d,e,f)}}function Br(){};function Cr(a){tk.call(this,{extent:a.extent,projection:a.projection,resolutions:a.resolutions});this.o=t(a.crossOrigin)?a.crossOrigin:null;this.a=t(a.displayDpi)?a.displayDpi:96;this.h=t(a.url)?Ar(a.url,t(a.params)?a.params:{},D(this.f,this)):Br;this.q=t(a.hidpi)?a.hidpi:!0;this.n=t(a.metersPerUnit)?a.metersPerUnit:1;this.e=t(a.ratio)?a.ratio:1;this.w=t(a.useOverlay)?a.useOverlay:!1;this.b=null}H(Cr,tk);
Cr.prototype.tb=function(a,b,c,d){b=uk(this,b);c=this.q?c:1;var e=this.b;if(null!==e&&e.d==b&&e.b==c&&je(e.p(),a))return e;1!=this.e&&(a=a.slice(),xe(a,this.e));d=this.h(a,[(a[2]-a[0])/b*c,(a[3]-a[1])/b*c],d);return this.b=e=t(d)?new tj(a,b,c,this.d,d,this.o):null};
Cr.prototype.f=function(a,b,c,d){var e;e=this.n;var f=te(c),g=re(c),h=d[0],m=d[1],n=0.0254/this.a;e=m*f>h*g?f*e/(h*n):g*e/(m*n);c=pe(c);d={OPERATION:this.w?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol.source.MapGuide source",CLIP:"1",SETDISPLAYDPI:this.a,SETDISPLAYWIDTH:Math.round(d[0]),SETDISPLAYHEIGHT:Math.round(d[1]),SETVIEWSCALE:e,SETVIEWCENTERX:c[0],SETVIEWCENTERY:c[1]};$b(d,b);return Dh(Fh([a],d))};function Dr(a){var b=a.projection||ef("EPSG:3857"),c=new Oq({maxZoom:t(a.maxZoom)?a.maxZoom:18});Mq.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,logo:a.logo,projection:b,tileGrid:c,tileLoadFunction:a.tileLoadFunction,tileUrlFunction:Hq});this.e=c.c({extent:a.extent});t(a.tileUrlFunction)?this.Vb(a.tileUrlFunction):t(a.urls)?this.Vb(Fq(a.urls)):t(a.url)&&this.a(a.url)}H(Dr,Mq);Dr.prototype.Vb=function(a){Dr.D.Vb.call(this,Iq(this.e,a))};Dr.prototype.a=function(a){this.Vb(Fq(Jq(a)))};function Er(a){a=t(a)?a:{};Dr.call(this,{attributions:t(a.attributions)?a.attributions:Fr,crossOrigin:t(a.crossOrigin)?a.crossOrigin:"anonymous",opaque:!0,maxZoom:a.maxZoom,tileLoadFunction:a.tileLoadFunction,url:t(a.url)?a.url:"//{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}H(Er,Dr);
var Gr=new cb({html:'Data \x26copy; \x3ca href\x3d"http://www.openstreetmap.org/"\x3eOpenStreetMap\x3c/a\x3e contributors, \x3ca href\x3d"http://www.openstreetmap.org/copyright"\x3eODbL\x3c/a\x3e'}),Hr=new cb({html:'Tiles \x26copy; \x3ca href\x3d"http://www.openstreetmap.org/"\x3eOpenStreetMap\x3c/a\x3e contributors, \x3ca href\x3d"http://creativecommons.org/licenses/by-sa/2.0/"\x3eCC BY-SA\x3c/a\x3e'}),Fr=[Hr,Gr];function Ir(a){a=t(a)?a:{};var b=Jr[a.layer];Dr.call(this,{attributions:b.attributions,crossOrigin:"anonymous",logo:"http://developer.mapquest.com/content/osm/mq_logo.png",maxZoom:b.maxZoom,opaque:!0,tileLoadFunction:a.tileLoadFunction,url:"//otile{1-4}.mqcdn.com/tiles/1.0.0/"+a.layer+"/{z}/{x}/{y}.jpg"})}H(Ir,Dr);
var Kr=new cb({html:'Tiles Courtesy of \x3ca href\x3d"http://www.mapquest.com/" target\x3d"_blank"\x3eMapQuest\x3c/a\x3e'}),Jr={osm:{maxZoom:28,attributions:[Kr,Gr]},sat:{maxZoom:18,attributions:[Kr,new cb({html:"Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency"})]},hyb:{maxZoom:18,attributions:[Kr,Gr]}};var Lr={terrain:{ja:"jpg",opaque:!0},"terrain-background":{ja:"jpg",opaque:!0},"terrain-labels":{ja:"png",opaque:!1},"terrain-lines":{ja:"png",opaque:!1},"toner-background":{ja:"png",opaque:!0},toner:{ja:"png",opaque:!0},"toner-hybrid":{ja:"png",opaque:!1},"toner-labels":{ja:"png",opaque:!1},"toner-lines":{ja:"png",opaque:!1},"toner-lite":{ja:"png",opaque:!0},watercolor:{ja:"jpg",opaque:!0}},Mr={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:3,maxZoom:16}};
function Nr(a){var b=a.layer.indexOf("-"),b=-1==b?a.layer:a.layer.slice(0,b),c=Lr[a.layer];Dr.call(this,{attributions:Or,crossOrigin:"anonymous",maxZoom:Mr[b].maxZoom,opaque:c.opaque,tileLoadFunction:a.tileLoadFunction,url:t(a.url)?a.url:"//{a-d}.tile.stamen.com/"+a.layer+"/{z}/{x}/{y}."+c.ja})}H(Nr,Dr);var Or=[new cb({html:'Map tiles by \x3ca href\x3d"http://stamen.com/"\x3eStamen Design\x3c/a\x3e, under \x3ca href\x3d"http://creativecommons.org/licenses/by/3.0/"\x3eCC BY 3.0\x3c/a\x3e.'}),Gr];function Pr(a,b){Ae.call(this,a,2);this.g=a;this.e=b.ka(a.a);this.c={}}H(Pr,Ae);Pr.prototype.b=function(a){a=t(a)?B(a):-1;if(a in this.c)return this.c[a];var b=this.e,c=kc("CANVAS");c.width=b;c.height=b;var d=c.getContext("2d");d.strokeStyle="black";d.strokeRect(0.5,0.5,b+0.5,b+0.5);d.fillStyle="black";d.textAlign="center";d.textBaseline="middle";d.font="24px sans-serif";d.fillText(this.g.toString(),b/2,b/2);return this.c[a]=c};
function Qr(a){Cj.call(this,{extent:a.extent,opaque:!1,projection:a.projection,tileGrid:a.tileGrid});this.a=new Kq}H(Qr,Cj);Qr.prototype.ed=function(){return this.a.xa()>this.a.d};Qr.prototype.ee=function(a){Lq(this.a,a)};Qr.prototype.nb=function(a,b,c){var d=this.Oa(a,b,c);if(zm(this.a,d))return Cm(this.a,d);a=new Pr(new Wa(a,b,c),this.tileGrid);Dm(this.a,d,a);return a};var Rr=[];G("grid",function(a){Rr.push(a)});function Sr(a){Mq.call(this,{crossOrigin:a.crossOrigin,projection:ef("EPSG:3857"),state:0,tileLoadFunction:a.tileLoadFunction});this.a=sq(a.url,{Dd:!0});Dp(this.a,this.e,null,this)}H(Sr,Mq);
Sr.prototype.e=function(){var a=Rr.pop(),b=ef("EPSG:4326"),c;if(t(a.bounds)){var d=Oe(b,this.l);this.Q=c=ze(a.bounds,d)}var e=a.minzoom||0,d=a.maxzoom||22,f=new Oq({maxZoom:d,minZoom:e});this.tileGrid=f;this.tileUrlFunction=Iq(f.c({extent:c}),Fq(a.tiles));if(t(a.attribution)){b=t(c)?c:b.p();c={};for(var g;e<=d;++e)g=e.toString(),c[g]=[yj(f,b,e)];this.d=[new cb({html:a.attribution,tileRanges:c})]}jf(this,1)};function Tr(a){a=t(a)?a:{};var b=t(a.params)?a.params:{};Mq.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,logo:a.logo,opaque:!J(b,"TRANSPARENT",!0),projection:a.projection,tileGrid:a.tileGrid,tileLoadFunction:a.tileLoadFunction,tileUrlFunction:D(this.Mh,this)});var c=a.urls;!t(c)&&t(a.url)&&(c=Jq(a.url));this.w=c;this.f=t(a.gutter)?a.gutter:0;this.a=b;this.h=NaN;this.e=!0;this.i=a.serverType;this.o=t(a.hidpi)?a.hidpi:!0;this.n="";Ur(this);this.q=de();Vr(this)}
H(Tr,Mq);l=Tr.prototype;
l.Rg=function(a,b,c,d){var e=this.h;if(!isNaN(this.h)){var f=this.tileGrid;null===f&&(f=Dj(this,c));b=Aj(f,a[0],a[1],b,!1,void 0);if(!(f.Ya().length<=b.a)){var g=f.a[b.a],h=xj(f,b,this.q),f=f.ka(b.a),m=this.f;0!==m&&(f+=2*m,h=ge(h,g*m,h));1!=e&&(f=f*e+0.5|0);m={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:J(this.a,"LAYERS")};$b(m,this.a,d);d=Math.floor((h[3]-a[1])/(g/e));m[this.e?"I":"X"]=Math.floor((a[0]-h[0])/(g/e));m[this.e?"J":"Y"]=d;return Wr(this,
b,f,h,e,c,m)}}};l.pc=k("f");l.Oa=function(a,b,c){return this.n+Tr.D.Oa.call(this,a,b,c)};l.Sg=k("a");
function Wr(a,b,c,d,e,f,g){var h=a.w;if(t(h)&&0!=h.length){g.WIDTH=c;g.HEIGHT=c;g[a.e?"CRS":"SRS"]=f.a;"STYLES"in a.a||(g.STYLES=new String(""));if(1!=e)switch(a.i){case "geoserver":g.FORMAT_OPTIONS="dpi:"+(90*e+0.5|0);break;case "mapserver":g.MAP_RESOLUTION=90*e;break;case "qgis":g.DPI=90*e}c=f.e;a.e&&"ne"==c.substr(0,2)&&(c=d[0],d[0]=d[1],d[1]=c,c=d[2],d[2]=d[3],d[3]=c);g.BBOX=d.join(",");return Dh(Fh([1==h.length?h[0]:h[Nb((b.x<<b.a)+b.y,a.w.length)]],g))}}
l.Mb=function(a,b,c){a=Tr.D.Mb.call(this,a,b,c);return 1!=b&&this.o&&t(this.i)?a*b+0.5|0:a};function Ur(a){var b=0,c=[],d;for(d in a.a)c[b++]=d+"-"+a.a[d];a.n=c.join("/")}
l.Mh=function(a,b,c){var d=this.tileGrid;null===d&&(d=Dj(this,c));if(!(d.Ya().length<=a.a)){1==b||this.o&&t(this.i)||(b=1);var e=d.a[a.a],f=xj(d,a,this.q),d=d.ka(a.a),g=this.f;0!==g&&(d+=2*g,f=ge(f,e*g,f));e=this.p();if(null===e||ue(f,e)&&!ye(f,e))return 1!=b&&(d=d*b+0.5|0),e={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0},$b(e,this.a),this.h=b,Wr(this,a,d,f,b,c,e)}};l.Tg=function(a){$b(this.a,a);Ur(this);Vr(this);this.s()};
function Vr(a){a.e=0<=Da(J(a.a,"VERSION","1.3.0"),"1.3")};function Xr(a){a=t(a)?a:{};nr.call(this,{attributions:a.attributions,extent:a.extent,format:new rp({defaultProjection:a.defaultProjection}),logo:a.logo,object:a.object,projection:a.projection,text:a.text,url:a.url})}H(Xr,nr);function Yr(a){this.c=a.matrixIds;vj.call(this,{origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes})}H(Yr,vj);Yr.prototype.f=k("c");
function Zr(a){var b=[],c=[],d=[],e=[],f=ef(a.supportedCRS).c();Ra(a.matrixIds,function(a,b){return b.scaleDenominator-a.scaleDenominator});Ga(a.matrixIds,function(a){c.push(a.identifier);d.push(a.topLeftCorner);b.push(2.8E-4*a.scaleDenominator/f);e.push(a.tileWidth)});return new Yr({origins:d,resolutions:b,matrixIds:c,tileSizes:e})};var $r="KVP";
function as(a){function b(a){a=e==$r?Dh(Fh([a],g)):a.replace(/\{(\w+?)\}/g,function(a,b){return b in g?g[b]:a});return function(b){if(null!==b){var c={TileMatrix:f.c[b.a],TileCol:b.x,TileRow:b.y};$b(c,this.a);b=a;return b=e==$r?Dh(Fh([b],c)):b.replace(/\{(\w+?)\}/g,function(a,b){return c[b]})}}}var c=t(a.version)?a.version:"1.0.0",d=t(a.format)?a.format:"image/jpeg";this.a=a.dimensions||{};this.e="";bs(this);var e=t(a.requestEncoding)?a.requestEncoding:$r,f=a.tileGrid,g={Layer:a.layer,style:a.style,
Style:a.style,TileMatrixSet:a.matrixSet};e==$r&&$b(g,{Service:"WMTS",Request:"GetTile",Version:c,Format:d});c=Hq;d=a.urls;!t(d)&&t(a.url)&&(d=Jq(a.url));t(d)&&(c=Gq(Ha(d,b)));var h=de(),m=new Wa(0,0,0),c=Iq(function(b,c){var d=this.tileGrid;if(d.Ya().length<=b.a)return null;var e=b.x,f=-b.y-1,g=xj(d,b),v=c.p(),x=t(a.extent)?a.extent:v;null!==x&&(c.i&&x[0]===v[0]&&x[2]===v[2])&&(g=Math.ceil((x[2]-x[0])/(g[2]-g[0])),e=Nb(e,g),m.a=b.a,m.x=e,m.y=b.y,g=xj(d,m,h));return!ue(g,x)||ye(g,x)?null:new Wa(b.a,
e,f)},c);Mq.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,logo:a.logo,projection:a.projection,tileGrid:f,tileLoadFunction:a.tileLoadFunction,tileUrlFunction:c})}H(as,Mq);as.prototype.f=k("a");as.prototype.Oa=function(a,b,c){return this.e+as.D.Oa.call(this,a,b,c)};function bs(a){var b=0,c=[],d;for(d in a.a)c[b++]=d+"-"+a.a[d];a.e=c.join("/")}as.prototype.h=function(a){$b(this.a,a);bs(this);this.s()};function cs(a){var b=t(a)?a:b;vj.call(this,{origin:[0,0],resolutions:b.resolutions})}H(cs,vj);cs.prototype.c=function(a){a=t(a)?a:{};var b=this.minZoom,c=this.maxZoom,d=new Wa(0,0,0),e=null;if(t(a.extent)){var e=Array(c+1),f;for(f=0;f<=c;++f)e[f]=f<b?null:yj(this,a.extent,f)}return function(a,f,m){f=a.a;if(f<b||c<f)return null;var n=Math.pow(2,f),p=a.x;if(0>p||n<=p)return null;a=a.y;return a<-n||-1<a||null!==e&&(d.a=f,d.x=p,d.y=-a-1,!e[f].contains(d))?null:Xa(f,p,-a-1,m)}};function ds(a){a=t(a)?a:{};for(var b=a.size,c=b[0],d=b[1],e=[],f=256;c>f||d>f;)e.push([Math.ceil(c/f),Math.ceil(d/f)]),f+=f;e.push([1,1]);e.reverse();for(var c=[1],g=[0],d=1,f=e.length;d<f;d++)c.push(1<<d),g.push(e[d-1][0]*e[d-1][1]+g[d-1]);c.reverse();var c=new cs({resolutions:c}),h=a.url,b=Iq(c.c({extent:[0,0,b[0],b[1]]}),function(a){return null===a?void 0:h+"TileGroup"+((a.x+a.y*e[a.a][0]+g[a.a])/256|0)+"/"+a.a+"-"+a.x+"-"+a.y+".jpg"});Mq.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,
logo:a.logo,Gc:es,tileGrid:c,tileUrlFunction:b})}H(ds,Mq);function es(a,b,c,d,e){ph.call(this,a,b,c,d,e);this.f={}}H(es,ph);es.prototype.b=function(a){var b=t(a)?B(a).toString():"";if(b in this.f)return this.f[b];a=es.D.b.call(this,a);if(2==this.state){if(256==a.width&&256==a.height)return this.f[b]=a;var c=kc("CANVAS");c.width=256;c.height=256;c.getContext("2d").drawImage(a,0,0);return this.f[b]=c}return a};function fs(a){a=t(a)?a:{};this.a=a.font;this.b=a.rotation;this.d=a.scale;this.g=a.text;this.f=a.textAlign;this.h=a.textBaseline;this.c=t(a.fill)?a.fill:null;this.e=t(a.stroke)?a.stroke:null}l=fs.prototype;l.hf=k("a");l.hh=k("c");l.ih=k("b");l.jh=k("d");l.kh=k("e");l.lh=k("g");l.xf=k("f");l.yf=k("h");G("ol.Attribution",cb);G("ol.BrowserFeature",vc);vc.DEVICE_PIXEL_RATIO=vc.vd;vc.HAS_CANVAS=vc.wd;vc.HAS_DEVICE_ORIENTATION=vc.xd;vc.HAS_GEOLOCATION=vc.yd;vc.HAS_TOUCH=vc.zd;vc.HAS_WEBGL=vc.Ad;G("ol.Collection",Q);Q.prototype.clear=Q.prototype.clear;Q.prototype.extend=Q.prototype.pg;Q.prototype.forEach=Q.prototype.forEach;Q.prototype.getArray=Q.prototype.qg;Q.prototype.getAt=Q.prototype.Pc;Q.prototype.getLength=Q.prototype.Qa;Q.prototype.insertAt=Q.prototype.tc;Q.prototype.pop=Q.prototype.pop;
Q.prototype.push=Q.prototype.push;Q.prototype.remove=Q.prototype.remove;Q.prototype.removeAt=Q.prototype.kd;Q.prototype.setAt=Q.prototype.re;G("ol.DeviceOrientation",Hd);Yg.prototype.getCoordinate=Yg.prototype.b;G("ol.Feature",T);T.prototype.getGeometryName=T.prototype.kf;T.prototype.getId=T.prototype.lf;T.prototype.getStyle=T.prototype.vg;T.prototype.getStyleFunction=T.prototype.wg;T.prototype.setGeometryName=T.prototype.k;T.prototype.setId=T.prototype.d;T.prototype.setStyle=T.prototype.i;
G("ol.FeatureOverlay",nh);nh.prototype.addFeature=nh.prototype.ae;nh.prototype.getFeatures=nh.prototype.gf;nh.prototype.getStyle=nh.prototype.rg;nh.prototype.getStyleFunction=nh.prototype.sg;nh.prototype.removeFeature=nh.prototype.ad;nh.prototype.setFeatures=nh.prototype.Ub;nh.prototype.setMap=nh.prototype.Qb;nh.prototype.setStyle=nh.prototype.ug;G("ol.Geolocation",U);ph.prototype.getImage=ph.prototype.b;G("ol.Kinetic",qh);G("ol.Map",V);V.prototype.addControl=V.prototype.Oe;
V.prototype.addInteraction=V.prototype.Re;V.prototype.addLayer=V.prototype.Se;V.prototype.addOverlay=V.prototype.Te;V.prototype.beforeRender=V.prototype.ha;V.prototype.forEachFeatureAtPixel=V.prototype.cd;V.prototype.getControls=V.prototype.ff;V.prototype.getCoordinateFromPixel=V.prototype.da;V.prototype.getEventCoordinate=V.prototype.Ld;V.prototype.getEventPixel=V.prototype.oc;V.prototype.getInteractions=V.prototype.mf;V.prototype.getLayers=V.prototype.Je;V.prototype.getOverlays=V.prototype.uf;
V.prototype.getPixelFromCoordinate=V.prototype.e;V.prototype.getViewport=V.prototype.Bf;V.prototype.removeControl=V.prototype.Bh;V.prototype.removeInteraction=V.prototype.Dh;V.prototype.removeLayer=V.prototype.Eh;V.prototype.removeOverlay=V.prototype.Fh;V.prototype.render=V.prototype.ma;V.prototype.requestRenderFrame=V.prototype.N;V.prototype.updateSize=V.prototype.Q;nf.prototype.preventDefault=nf.prototype.J;nf.prototype.stopPropagation=nf.prototype.Ha;G("ol.Object",P);P.prototype.bindTo=P.prototype.Ue;
P.prototype.get=P.prototype.t;P.prototype.getProperties=P.prototype.Md;P.prototype.notify=P.prototype.$c;P.prototype.set=P.prototype.u;P.prototype.setValues=P.prototype.ba;P.prototype.unbind=P.prototype.nd;P.prototype.unbindAll=P.prototype.Ph;G("ol.Observable",ud);ud.prototype.dispatchChangeEvent=ud.prototype.s;ud.prototype.on=ud.prototype.ph;ud.prototype.once=ud.prototype.vh;ud.prototype.un=ud.prototype.Nh;ud.prototype.unByKey=ud.prototype.Oh;G("ol.Overlay",Lm);Ae.prototype.getTileCoord=Ae.prototype.i;
Wa.prototype.getZXY=Wa.prototype.c;G("ol.View2D",S);S.prototype.calculateExtent=S.prototype.q;S.prototype.constrainResolution=S.prototype.a;S.prototype.constrainRotation=S.prototype.constrainRotation;S.prototype.fitExtent=S.prototype.Kd;S.prototype.getView2D=S.prototype.L;S.prototype.getZoom=S.prototype.Df;S.prototype.setZoom=S.prototype.G;
G("ol.animation.bounce",function(a){var b=a.resolution,c=t(a.start)?a.start:ta(),d=t(a.duration)?a.duration:1E3,e=t(a.easing)?a.easing:ag;return function(a,g){if(g.time<c)return g.ca=!0,g.M[0]+=1,!0;if(g.time<c+d){var h=e((g.time-c)/d),m=b-g.A.resolution;g.ca=!0;g.A.resolution+=h*m;g.M[0]+=1;return!0}return!1}});G("ol.animation.pan",bg);G("ol.animation.rotate",cg);G("ol.animation.zoom",dg);G("ol.color.asArray",function(a){return ja(a)?a:fh(a)});G("ol.color.asString",dh);
G("ol.control.Attribution",Ti);Ti.prototype.setMap=Ti.prototype.setMap;G("ol.control.Control",Si);Si.prototype.getMap=Si.prototype.R;Si.prototype.setMap=Si.prototype.setMap;G("ol.control.FullScreen",Tm);G("ol.control.Logo",Ui);Ui.prototype.setMap=Ui.prototype.setMap;G("ol.control.MousePosition",Um);Um.prototype.setMap=Um.prototype.setMap;G("ol.control.ScaleLine",Wm);Wm.prototype.setMap=Wm.prototype.setMap;G("ol.control.Zoom",Wi);Wi.prototype.setMap=Wi.prototype.setMap;G("ol.control.ZoomSlider",ln);
G("ol.control.ZoomToExtent",pn);G("ol.control.defaults",Xi);G("ol.coordinate.createStringXY",function(a){return function(b){return Pd(b,a)}});G("ol.coordinate.format",Ld);G("ol.coordinate.fromProjectedArray",function(a,b){var c=b.charAt(0);return"n"===c||"s"===c?[a[1],a[0]]:a});G("ol.coordinate.rotate",Nd);G("ol.coordinate.toStringHDMS",function(a){return t(a)?Kd(a[1],"NS")+" "+Kd(a[0],"EW"):""});G("ol.coordinate.toStringXY",Pd);G("ol.dom.Input",qn);
G("ol.easing.bounce",function(a){a<1/2.75?a*=7.5625*a:a<2/2.75?(a-=1.5/2.75,a=7.5625*a*a+0.75):a<2.5/2.75?(a-=2.25/2.75,a=7.5625*a*a+0.9375):(a-=2.625/2.75,a=7.5625*a*a+0.984375);return a});G("ol.easing.easeIn",function(a){return a*a*a});G("ol.easing.easeOut",Yf);G("ol.easing.elastic",function(a){return Math.pow(2,-10*a)*Math.sin((a-0.075)*2*Math.PI/0.3)+1});G("ol.easing.inAndOut",Zf);G("ol.easing.linear",$f);G("ol.easing.upAndDown",ag);
G("ol.events.condition.altKeyOnly",function(a){a=a.a;return a.ea&&!a.vb&&!a.Ga});G("ol.events.condition.altShiftKeysOnly",Bf);G("ol.events.condition.always",ld);G("ol.events.condition.noModifierKeys",Df);G("ol.events.condition.platformModifierKeyOnly",function(a){a=a.a;return!a.ea&&a.vb&&!a.Ga});G("ol.events.condition.shiftKeyOnly",Ef);G("ol.events.condition.targetNotEditable",Ff);G("ol.extent.boundingExtent",ce);G("ol.extent.buffer",ge);
G("ol.extent.containsCoordinate",function(a,b){return a[0]<=b[0]&&b[0]<=a[2]&&a[1]<=b[1]&&b[1]<=a[3]});G("ol.extent.containsExtent",je);G("ol.extent.createEmpty",de);G("ol.extent.equals",le);G("ol.extent.extend",me);G("ol.extent.getBottomLeft",oe);G("ol.extent.getBottomRight",function(a){return[a[2],a[1]]});G("ol.extent.getCenter",pe);G("ol.extent.getHeight",re);G("ol.extent.getSize",function(a){return[a[2]-a[0],a[3]-a[1]]});G("ol.extent.getTopLeft",se);
G("ol.extent.getTopRight",function(a){return[a[2],a[3]]});G("ol.extent.getWidth",te);G("ol.extent.intersects",ue);G("ol.extent.isEmpty",ve);G("ol.extent.transform",ze);rn.prototype.readProjection=rn.prototype.Aa;G("ol.format.GPX",Sn);Sn.prototype.readFeature=Sn.prototype.xb;Sn.prototype.readFeatures=Sn.prototype.Ia;G("ol.format.GeoJSON",oo);oo.prototype.readFeature=oo.prototype.xb;oo.prototype.readFeatures=oo.prototype.Ia;oo.prototype.readGeometry=oo.prototype.Cc;oo.prototype.readProjection=oo.prototype.Aa;
oo.prototype.writeFeature=oo.prototype.sd;oo.prototype.writeFeatures=oo.prototype.td;oo.prototype.writeGeometry=oo.prototype.ud;G("ol.format.IGC",xo);xo.prototype.readFeature=xo.prototype.xb;xo.prototype.readFeatures=xo.prototype.Ia;G("ol.format.KML",Bo);Bo.prototype.readFeature=Bo.prototype.xb;Bo.prototype.readFeatures=Bo.prototype.Ia;Bo.prototype.readGeometry=Bo.prototype.Cc;Bo.prototype.readName=Bo.prototype.yh;Bo.prototype.readProjection=Bo.prototype.Aa;G("ol.format.TopoJSON",rp);
rp.prototype.readFeatures=rp.prototype.Ia;rp.prototype.readProjection=rp.prototype.Aa;G("ol.geom.Circle",Uk);Uk.prototype.clone=Uk.prototype.H;Uk.prototype.getCenter=Uk.prototype.dd;Uk.prototype.getExtent=Uk.prototype.p;Uk.prototype.getRadius=Uk.prototype.de;Uk.prototype.getSimplifiedGeometry=Uk.prototype.Za;Uk.prototype.getType=Uk.prototype.C;Uk.prototype.setCenter=Uk.prototype.Bg;Uk.prototype.setCenterAndRadius=Uk.prototype.se;Uk.prototype.setRadius=Uk.prototype.Jh;Uk.prototype.transform=Uk.prototype.transform;
G("ol.geom.Geometry",lg);lg.prototype.getClosestPoint=lg.prototype.q;lg.prototype.getType=lg.prototype.C;G("ol.geom.GeometryCollection",Wk);Wk.prototype.clone=Wk.prototype.H;Wk.prototype.getExtent=Wk.prototype.p;Wk.prototype.getGeometries=Wk.prototype.jf;Wk.prototype.getSimplifiedGeometry=Wk.prototype.Za;Wk.prototype.getType=Wk.prototype.C;Wk.prototype.setGeometries=Wk.prototype.ue;G("ol.geom.LineString",$k);$k.prototype.clone=$k.prototype.H;$k.prototype.getCoordinates=$k.prototype.B;
$k.prototype.getLength=$k.prototype.Cg;$k.prototype.getType=$k.prototype.C;$k.prototype.setCoordinates=$k.prototype.I;G("ol.geom.LinearRing",Og);Og.prototype.clone=Og.prototype.H;Og.prototype.getArea=Og.prototype.Dg;Og.prototype.getCoordinates=Og.prototype.B;Og.prototype.getType=Og.prototype.C;Og.prototype.setCoordinates=Og.prototype.I;G("ol.geom.MultiLineString",bl);bl.prototype.clone=bl.prototype.H;bl.prototype.getCoordinates=bl.prototype.B;bl.prototype.getLineStrings=bl.prototype.qf;
bl.prototype.getType=bl.prototype.C;bl.prototype.setCoordinates=bl.prototype.I;G("ol.geom.MultiPoint",el);el.prototype.clone=el.prototype.H;el.prototype.getCoordinates=el.prototype.B;el.prototype.getPoints=el.prototype.vf;el.prototype.getType=el.prototype.C;el.prototype.setCoordinates=el.prototype.I;G("ol.geom.MultiPolygon",fl);fl.prototype.clone=fl.prototype.H;fl.prototype.getArea=fl.prototype.Eg;fl.prototype.getCoordinates=fl.prototype.B;fl.prototype.getPolygons=fl.prototype.wf;
fl.prototype.getType=fl.prototype.C;fl.prototype.setCoordinates=fl.prototype.I;G("ol.geom.Point",dl);dl.prototype.clone=dl.prototype.H;dl.prototype.getCoordinates=dl.prototype.B;dl.prototype.getType=dl.prototype.C;dl.prototype.setCoordinates=dl.prototype.I;G("ol.geom.Polygon",Pg);Pg.prototype.clone=Pg.prototype.H;Pg.prototype.getArea=Pg.prototype.Fg;Pg.prototype.getCoordinates=Pg.prototype.B;Pg.prototype.getLinearRings=Pg.prototype.rf;Pg.prototype.getType=Pg.prototype.C;
Pg.prototype.setCoordinates=Pg.prototype.I;G("ol.geom.SimpleGeometry",Dg);Dg.prototype.getExtent=Dg.prototype.p;Dg.prototype.getLayout=Dg.prototype.nf;Dg.prototype.getSimplifiedGeometry=Dg.prototype.Za;Dg.prototype.transform=Dg.prototype.transform;G("ol.inherits",H);G("ol.interaction.DoubleClickZoom",Yi);G("ol.interaction.DragAndDrop",Kp);G("ol.interaction.DragBox",Zg);Zg.prototype.getGeometry=Zg.prototype.K;G("ol.interaction.DragPan",Zi);G("ol.interaction.DragRotate",$i);
G("ol.interaction.DragRotateAndZoom",Op);G("ol.interaction.DragZoom",bj);G("ol.interaction.Draw",Rp);G("ol.interaction.KeyboardPan",cj);G("ol.interaction.KeyboardZoom",dj);G("ol.interaction.Modify",$p);G("ol.interaction.MouseWheelZoom",ej);G("ol.interaction.Select",cq);cq.prototype.getFeatureOverlay=cq.prototype.e;cq.prototype.setMap=cq.prototype.fa;G("ol.interaction.TouchPan",hj);G("ol.interaction.TouchRotate",ij);G("ol.interaction.TouchZoom",jj);G("ol.interaction.defaults",kj);
G("ol.layer.Group",lj);G("ol.layer.Image",Yj);G("ol.layer.Layer",lf);lf.prototype.getSource=lf.prototype.Gg;G("ol.layer.Tile",Zj);G("ol.layer.Vector",ak);ak.prototype.getStyle=ak.prototype.G;ak.prototype.getStyleFunction=ak.prototype.Q;ak.prototype.setStyle=ak.prototype.w;G("ol.parser.ogc.WMSCapabilities",rq);rq.prototype.read=rq.prototype.Tb;G("ol.proj.METERS_PER_UNIT",Ke);G("ol.proj.Projection",Me);Me.prototype.getCode=Me.prototype.h;Me.prototype.getExtent=Me.prototype.p;Me.prototype.getUnits=Me.prototype.l;
G("ol.proj.addProjection",cf);G("ol.proj.common.add",rj);G("ol.proj.configureProj4jsProjection",function(a){return Pe(a)});G("ol.proj.get",ef);G("ol.proj.getTransform",ff);G("ol.proj.getTransformFromProjections",Oe);G("ol.proj.transform",function(a,b,c){return ff(b,c)(a)});G("ol.proj.transformWithProjections",function(a,b,c){return Oe(b,c)(a)});ek.prototype.drawAsync=ek.prototype.hc;ek.prototype.drawFeature=ek.prototype.Mc;ek.prototype.drawLineStringGeometry=ek.prototype.Hb;
ek.prototype.drawMultiLineStringGeometry=ek.prototype.Ib;ek.prototype.drawMultiPointGeometry=ek.prototype.Jb;ek.prototype.drawPointGeometry=ek.prototype.Kb;ek.prototype.drawPolygonGeometry=ek.prototype.lb;ek.prototype.setFillStrokeStyle=ek.prototype.ra;ek.prototype.setImageStyle=ek.prototype.yb;G("ol.source.BingMaps",Pq);Pq.TOS_ATTRIBUTION=Qq;G("ol.source.GPX",pr);G("ol.source.GeoJSON",qr);G("ol.source.IGC",rr);G("ol.source.ImageCanvas",tr);G("ol.source.ImageStatic",ur);
G("ol.source.ImageVector",vr);G("ol.source.ImageWMS",wr);wr.prototype.getGetFeatureInfoUrl=wr.prototype.Ng;wr.prototype.getParams=wr.prototype.Og;wr.prototype.setUrl=wr.prototype.Pg;wr.prototype.updateParams=wr.prototype.Qg;G("ol.source.KML",zr);G("ol.source.MapGuide",Cr);G("ol.source.MapQuest",Ir);G("ol.source.OSM",Er);Er.DATA_ATTRIBUTION=Gr;Er.TILE_ATTRIBUTION=Hr;hf.prototype.getExtent=hf.prototype.p;hf.prototype.getState=hf.prototype.ta;G("ol.source.Stamen",Nr);G("ol.source.Tile",Cj);
Cj.prototype.getTileGrid=Cj.prototype.zf;G("ol.source.TileDebug",Qr);G("ol.source.TileJSON",Sr);G("ol.source.TileWMS",Tr);Tr.prototype.getGetFeatureInfoUrl=Tr.prototype.Rg;Tr.prototype.getParams=Tr.prototype.Sg;Tr.prototype.updateParams=Tr.prototype.Tg;G("ol.source.TopoJSON",Xr);G("ol.source.Vector",Al);Al.prototype.addFeature=Al.prototype.fe;Al.prototype.addFeatures=Al.prototype.Qe;Al.prototype.forEachFeature=Al.prototype.$e;Al.prototype.forEachFeatureInExtent=Al.prototype.mc;
Al.prototype.getAllFeatures=Al.prototype.bf;Al.prototype.getAllFeaturesAtCoordinate=Al.prototype.cf;Al.prototype.getClosestFeatureToCoordinate=Al.prototype.ef;Al.prototype.getExtent=Al.prototype.p;Al.prototype.removeFeature=Al.prototype.Vg;G("ol.source.VectorFile",nr);G("ol.source.WMTS",as);
G("ol.source.WMTS.optionsFromCapabilities",function(a,b){var c=Ja(a.contents.layers,function(a){return a.identifier==b}),d=c.tileMatrixSetLinks[0].tileMatrixSet,e=c.formats[0],f=Ka(c.styles,function(a){return a.isDefault});0>f&&(f=0);var f=c.styles[f].identifier,g={};Ga(c.dimensions,function(a){var b=a.identifier,c=a["default"];t(c)||(c=a.values[0]);g[b]=c});var h=a.contents.tileMatrixSets[d],m=Zr(h),h=ef(h.supportedCRS),n=a.operationsMetadata.GetTile.dcp.http.get,p,q;switch(Ub(n[0].constraints.GetEncoding.allowedValues)[0]){case "REST":case "RESTful":q=
"REST";p=c.resourceUrls.tile[e];break;case "KVP":q=$r,p=[],Ga(n,function(a){a.constraints.GetEncoding.allowedValues.hasOwnProperty($r)&&p.push(a.url)})}return{urls:p,layer:b,matrixSet:d,format:e,projection:h,requestEncoding:q,tileGrid:m,style:f,dimensions:g}});as.prototype.getDimensions=as.prototype.f;as.prototype.updateDimensions=as.prototype.h;G("ol.source.XYZ",Dr);Dr.prototype.setUrl=Dr.prototype.a;G("ol.source.Zoomify",ds);G("ol.style.Circle",Pp);Pp.prototype.getAnchor=Pp.prototype.Lb;
Pp.prototype.getFill=Pp.prototype.Wg;Pp.prototype.getImage=Pp.prototype.Rb;Pp.prototype.getRadius=Pp.prototype.Xg;Pp.prototype.getSize=Pp.prototype.ub;Pp.prototype.getStroke=Pp.prototype.Yg;G("ol.style.Fill",hh);hh.prototype.getColor=hh.prototype.c;G("ol.style.Icon",Nj);Nj.prototype.getAnchor=Nj.prototype.Lb;Nj.prototype.getImage=Nj.prototype.Rb;Nj.prototype.getSize=Nj.prototype.ub;Nj.prototype.getSrc=Nj.prototype.Zg;G("ol.style.Image",ih);ih.prototype.getRotation=ih.prototype.l;
ih.prototype.getScale=ih.prototype.n;G("ol.style.Stroke",aj);aj.prototype.getColor=aj.prototype.$g;aj.prototype.getLineCap=aj.prototype.of;aj.prototype.getLineDash=aj.prototype.ah;aj.prototype.getLineJoin=aj.prototype.pf;aj.prototype.getMiterLimit=aj.prototype.tf;aj.prototype.getWidth=aj.prototype.bh;G("ol.style.Style",jh);jh.prototype.getFill=jh.prototype.dh;jh.prototype.getImage=jh.prototype.eh;jh.prototype.getStroke=jh.prototype.fh;jh.prototype.getText=jh.prototype.gh;jh.prototype.getZIndex=jh.prototype.Cf;
G("ol.style.Text",fs);fs.prototype.getFill=fs.prototype.hh;fs.prototype.getFont=fs.prototype.hf;fs.prototype.getRotation=fs.prototype.ih;fs.prototype.getScale=fs.prototype.jh;fs.prototype.getStroke=fs.prototype.kh;fs.prototype.getText=fs.prototype.lh;fs.prototype.getTextAlign=fs.prototype.xf;fs.prototype.getTextBaseline=fs.prototype.yf;G("ol.tilegrid.TileGrid",vj);vj.prototype.getMinZoom=vj.prototype.sf;vj.prototype.getOrigin=vj.prototype.Sb;vj.prototype.getResolutions=vj.prototype.Ya;
vj.prototype.getTileSize=vj.prototype.ka;G("ol.tilegrid.WMTS",Yr);Yr.prototype.getMatrixIds=Yr.prototype.f;G("ol.tilegrid.XYZ",Oq);G("ol.tilegrid.Zoomify",cs);G("ol.webgl.Context",Em);Em.prototype.getGL=Em.prototype.mh;Em.prototype.useProgram=Em.prototype.fd;})();