@planet/maps 8.0.0 → 8.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/LICENSE +202 -0
  2. package/config.js +32 -0
  3. package/lib/Map.js +73 -0
  4. package/lib/Overlay.js +24 -0
  5. package/lib/View.js +24 -0
  6. package/lib/control/Attribution.js +24 -0
  7. package/lib/control/Control.js +24 -0
  8. package/lib/control/FullScreen.js +24 -0
  9. package/lib/control/MousePosition.js +24 -0
  10. package/lib/control/OverviewMap.js +24 -0
  11. package/lib/control/Rotate.js +24 -0
  12. package/lib/control/ScaleLine.js +24 -0
  13. package/lib/control/Zoom.js +24 -0
  14. package/lib/control/ZoomSlider.js +24 -0
  15. package/lib/control/ZoomToExtent.js +24 -0
  16. package/lib/interaction/DoubleClickZoom.js +24 -0
  17. package/lib/interaction/DragAndDrop.js +24 -0
  18. package/lib/interaction/DragBox.js +24 -0
  19. package/lib/interaction/DragPan.js +24 -0
  20. package/lib/interaction/DragRotate.js +24 -0
  21. package/lib/interaction/DragRotateAndZoom.js +28 -0
  22. package/lib/interaction/DragZoom.js +24 -0
  23. package/lib/interaction/Draw.js +24 -0
  24. package/lib/interaction/Extent.js +24 -0
  25. package/lib/interaction/Interaction.js +24 -0
  26. package/lib/interaction/KeyboardPan.js +24 -0
  27. package/lib/interaction/KeyboardZoom.js +24 -0
  28. package/lib/interaction/Link.js +24 -0
  29. package/lib/interaction/Modify.js +24 -0
  30. package/lib/interaction/MouseWheelZoom.js +24 -0
  31. package/lib/interaction/PinchRotate.js +24 -0
  32. package/lib/interaction/PinchZoom.js +24 -0
  33. package/lib/interaction/Pointer.js +24 -0
  34. package/lib/interaction/Property.js +24 -0
  35. package/lib/interaction/Select.js +24 -0
  36. package/lib/interaction/Snap.js +24 -0
  37. package/lib/interaction/Translate.js +24 -0
  38. package/lib/layer/Base.js +29 -0
  39. package/lib/layer/BaseImage.js +29 -0
  40. package/lib/layer/BaseTile.js +29 -0
  41. package/lib/layer/BaseVector.js +29 -0
  42. package/lib/layer/Graticule.js +29 -0
  43. package/lib/layer/Group.js +29 -0
  44. package/lib/layer/Heatmap.js +29 -0
  45. package/lib/layer/Image.js +29 -0
  46. package/lib/layer/Layer.js +29 -0
  47. package/lib/layer/MapboxVector.js +29 -0
  48. package/lib/layer/Tile.js +29 -0
  49. package/lib/layer/Vector.js +29 -0
  50. package/lib/layer/VectorImage.js +29 -0
  51. package/lib/layer/VectorTile.js +29 -0
  52. package/lib/layer/WebGLPoints.js +29 -0
  53. package/lib/layer/WebGLTile.js +29 -0
  54. package/lib/source/BingMaps.js +24 -0
  55. package/lib/source/CartoDB.js +24 -0
  56. package/lib/source/Cluster.js +24 -0
  57. package/lib/source/DataTile.js +24 -0
  58. package/lib/source/GeoTIFF.js +24 -0
  59. package/lib/source/IIIF.js +24 -0
  60. package/lib/source/Image.js +24 -0
  61. package/lib/source/ImageArcGISRest.js +24 -0
  62. package/lib/source/ImageCanvas.js +24 -0
  63. package/lib/source/ImageMapGuide.js +24 -0
  64. package/lib/source/ImageStatic.js +24 -0
  65. package/lib/source/ImageWMS.js +24 -0
  66. package/lib/source/OGCMapTile.js +24 -0
  67. package/lib/source/OGCVectorTile.js +24 -0
  68. package/lib/source/OSM.js +24 -0
  69. package/lib/source/Raster.js +24 -0
  70. package/lib/source/Source.js +24 -0
  71. package/lib/source/Stamen.js +24 -0
  72. package/lib/source/Tile.js +24 -0
  73. package/lib/source/TileArcGISRest.js +24 -0
  74. package/lib/source/TileDebug.js +24 -0
  75. package/lib/source/TileImage.js +24 -0
  76. package/lib/source/TileJSON.js +24 -0
  77. package/lib/source/TileWMS.js +24 -0
  78. package/lib/source/UTFGrid.js +24 -0
  79. package/lib/source/UrlTile.js +24 -0
  80. package/lib/source/Vector.js +24 -0
  81. package/lib/source/VectorTile.js +24 -0
  82. package/lib/source/WMTS.js +24 -0
  83. package/lib/source/XYZ.js +24 -0
  84. package/lib/source/Zoomify.js +24 -0
  85. package/package.json +103 -17
  86. package/readme.md +44 -35
  87. package/renderer/render.js +313 -0
  88. package/renderer/update.js +98 -0
  89. package/.npmignore +0 -2
  90. package/common.js +0 -582
  91. package/debug.js +0 -91520
  92. package/embed.js +0 -376
  93. package/explorer.js +0 -517
  94. package/ol.css +0 -241
  95. package/ol.min.js +0 -1012
package/common.js DELETED
@@ -1,582 +0,0 @@
1
- // OpenLayers. See https://openlayers.org/
2
- // License: https://raw.githubusercontent.com/openlayers/openlayers/master/LICENSE.md
3
- // Version: v8.0.0
4
- ;(function (root, factory) {
5
- if (typeof exports === "object") {
6
- module.exports = factory();
7
- } else if (typeof define === "function" && define.amd) {
8
- define([], factory);
9
- } else {
10
- root.ol = factory();
11
- }
12
- }(this, function () {
13
- var OPENLAYERS = {};
14
- var k,aa=this;function r(a,b){var c=OPENLAYERS,d=a.split("."),c=c||aa;d[0]in c||!c.execScript||c.execScript("var "+d[0]);for(var e;d.length&&(e=d.shift());)d.length||void 0===b?c[e]?c=c[e]:c=c[e]={}:c[e]=b};function ba(a,b){return a>b?1:a<b?-1:0}function ca(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 da(a,b){var c,d=Array.isArray(b)?b:[b],e=d.length;for(c=0;c<e;c++)a[a.length]=d[c]}function ea(a,b){for(var c=a.length>>>0,d,e=0;e<c;e++)if(d=a[e],b(d,e,a))return d;return null}
15
- function fa(a,b){var c=a.length;if(c!==b.length)return!1;for(var d=0;d<c;d++)if(a[d]!==b[d])return!1;return!0}function ga(a){var b=ha,c=a.length,d=Array(a.length),e;for(e=0;e<c;e++)d[e]={index:e,value:a[e]};d.sort(function(a,c){return b(a.value,c.value)||a.index-c.index});for(e=0;e<a.length;e++)a[e]=d[e].value}function ia(a,b){var c=b||ba;return a.every(function(b,e){if(!e)return!0;var d=c(a[e-1],b);return!(0<d||0===d)})};function t(a,b){a.prototype=Object.create(b.prototype);a.prototype.constructor=a}function ja(){}function la(a){return a.ij||(a.ij=++oa)}var oa=0;function pa(a){this.message="Assertion failed. See https://openlayers.org/en/v8.0.0/doc/errors/#"+a+" for details.";this.code=a;this.name="AssertionError"}t(pa,Error);function qa(a,b){if(!a)throw new pa(b);};function ra(a,b,c,d){this.O=a;this.R=b;this.U=c;this.X=d}function sa(a,b,c){return a.O<=b&&b<=a.R&&a.U<=c&&c<=a.X}function ta(a,b){return a.O<=b.R&&a.R>=b.O&&a.U<=b.X&&a.X>=b.U};function ua(a,b,c){return Math.min(Math.max(a,b),c)}var va=function(){var a;"cosh"in Math?a=Math.cosh:a=function(a){a=Math.exp(a);return(a+1/a)/2};return a}();function wa(a,b,c,d){a=c-a;b=d-b;return a*a+b*b}function xa(a,b){var c=a%b;return 0>c*b?c+b:c}function ya(a,b,c){return a+c*(b-a)};function Ea(a,b){if(Array.isArray(a))return a;void 0===b?b=[a,a]:b[0]=b[1]=a;return b};function Fa(a){for(var b=Ga(),c=0,d=a.length;c<d;++c)Ha(b,a[c]);return b}function Ia(a,b,c){return 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 Ja(a,b){return b?(b[0]=a[0],b[1]=a[1],b[2]=a[2],b[3]=a[3],b):a.slice()}function Ka(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 La(a,b){return Ma(a,b[0],b[1])}function Oa(a,b){return a[0]<=b[0]&&b[2]<=a[2]&&a[1]<=b[1]&&b[3]<=a[3]}
16
- function Ma(a,b,c){return a[0]<=b&&b<=a[2]&&a[1]<=c&&c<=a[3]}function Pa(a,b){var c=a[1],d=a[2],e=a[3],f=b[0],g=b[1],h=0;f<a[0]?h|=16:f>d&&(h|=4);g<c?h|=8:g>e&&(h|=2);h||(h=1);return h}function Ga(){return[Infinity,Infinity,-Infinity,-Infinity]}function Ra(a,b,c,d,e){return e?(e[0]=a,e[1]=b,e[2]=c,e[3]=d,e):[a,b,c,d]}function Sa(a){return Ra(Infinity,Infinity,-Infinity,-Infinity,a)}function Ta(a,b){var c=a[0],d=a[1];return Ra(c,d,c,d,b)}
17
- function Ua(a,b){return a[0]==b[0]&&a[2]==b[2]&&a[1]==b[1]&&a[3]==b[3]}function Va(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 Ha(a,b){b[0]<a[0]&&(a[0]=b[0]);b[0]>a[2]&&(a[2]=b[0]);b[1]<a[1]&&(a[1]=b[1]);b[1]>a[3]&&(a[3]=b[1])}function Wa(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}
18
- function Xa(a,b,c){var d;return(d=b.call(c,Ya(a)))||(d=b.call(c,Za(a)))||(d=b.call(c,$a(a)))?d:(d=b.call(c,ab(a)))?d:!1}function bb(a){var b=0;cb(a)||(b=db(a)*eb(a));return b}function Ya(a){return[a[0],a[1]]}function Za(a){return[a[2],a[1]]}function fb(a){return[(a[0]+a[2])/2,(a[1]+a[3])/2]}
19
- function gb(a,b,c,d,e){var f=b*d[0]/2;d=b*d[1]/2;b=Math.cos(c);var g=Math.sin(c);c=f*b;f*=g;b*=d;var h=d*g,l=a[0],m=a[1];a=l-c+h;d=l-c-h;g=l+c-h;c=l+c+h;var h=m-f-b,l=m-f+b,n=m+f+b,f=m+f-b;return Ra(Math.min(a,d,g,c),Math.min(h,l,n,f),Math.max(a,d,g,c),Math.max(h,l,n,f),e)}function eb(a){return a[3]-a[1]}function hb(a,b,c){c=c?c:Ga();ib(a,b)&&(c[0]=a[0]>b[0]?a[0]:b[0],c[1]=a[1]>b[1]?a[1]:b[1],c[2]=a[2]<b[2]?a[2]:b[2],c[3]=a[3]<b[3]?a[3]:b[3]);return c}function ab(a){return[a[0],a[3]]}
20
- function $a(a){return[a[2],a[3]]}function db(a){return a[2]-a[0]}function ib(a,b){return a[0]<=b[2]&&a[2]>=b[0]&&a[1]<=b[3]&&a[3]>=b[1]}function cb(a){return a[2]<a[0]||a[3]<a[1]}function jb(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}
21
- function lb(a,b,c){a=[a[0],a[1],a[0],a[3],a[2],a[1],a[2],a[3]];b(a,a,2);var d=[a[0],a[2],a[4],a[6]],e=[a[1],a[3],a[5],a[7]];b=Math.min.apply(null,d);a=Math.min.apply(null,e);d=Math.max.apply(null,d);e=Math.max.apply(null,e);return Ra(b,a,d,e,c)};var mb="function"===typeof Object.assign?Object.assign:function(a,b){if(!a||null===a)throw new TypeError("Cannot convert undefined or null to object");for(var c=Object(a),d=1,e=arguments.length;d<e;++d){var f=arguments[d];if(void 0!==f&&null!==f)for(var g in f)f.hasOwnProperty(g)&&(c[g]=f[g])}return c};function nb(a){for(var b in a)delete a[b]}function ob(a){var b=[],c;for(c in a)b.push(a[c]);return b}function pb(a){for(var b in a)return!1;return!b};/*
22
-
23
- Latitude/longitude spherical geodesy formulae taken from
24
- http://www.movable-type.co.uk/scripts/latlong.html
25
- Licensed under CC-BY-3.0.
26
- */
27
- function qb(a){this.radius=a}function rb(a,b){var c=a[1]*Math.PI/180,d=b[1]*Math.PI/180,e=(d-c)/2,f=(b[0]-a[0])*Math.PI/180/2,c=Math.sin(e)*Math.sin(e)+Math.sin(f)*Math.sin(f)*Math.cos(c)*Math.cos(d);return 2*sb.radius*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))}
28
- qb.prototype.offset=function(a,b,c){var d=a[1]*Math.PI/180;b/=this.radius;var e=Math.asin(Math.sin(d)*Math.cos(b)+Math.cos(d)*Math.sin(b)*Math.cos(c));return[180*(a[0]*Math.PI/180+Math.atan2(Math.sin(c)*Math.sin(b)*Math.cos(d),Math.cos(b)-Math.sin(d)*Math.sin(e)))/Math.PI,180*e/Math.PI]};var sb=new qb(6370997);var tb={};tb.degrees=2*Math.PI*sb.radius/360;tb.ft=.3048;tb.m=1;tb["us-ft"]=1200/3937;var ub=null;function vb(a){this.f=a.code;this.c=a.units;this.i=void 0!==a.extent?a.extent:null;this.u=void 0!==a.worldExtent?a.worldExtent:null;this.g=void 0!==a.axisOrientation?a.axisOrientation:"enu";this.a=void 0!==a.global?a.global:!1;this.b=!(!this.a||!this.i);this.C=a.getPointResolution;this.j=null;this.o=a.metersPerUnit;var b=a.code,c=ub||window.proj4;"function"==typeof c&&(b=c.defs(b),void 0!==b&&(void 0!==b.axis&&void 0===a.axisOrientation&&(this.g=b.axis),void 0===a.metersPerUnit&&(this.o=b.to_meter),
29
- void 0===a.units&&(this.c=b.units)))}k=vb.prototype;k.Mg=function(){return this.f};k.D=function(){return this.i};k.lh=function(){return this.c};k.rb=function(){return this.o||tb[this.c]};k.nh=function(){return this.u};k.Sh=function(){return this.a};k.Pj=function(a){this.a=a;this.b=!(!a||!this.i)};k.Wi=function(a){this.i=a;this.b=!(!this.a||!a)};k.ak=function(a){this.u=a};k.Oj=function(a){this.C=a};var wb={};var xb={};function yb(a,b,c){a=a.f;b=b.f;a in xb||(xb[a]={});xb[a][b]=c}function zb(a,b){var c;a in xb&&b in xb[a]&&(c=xb[a][b]);return c};function Ab(a,b,c){var d=a.C;d?b=d(b,c):"degrees"!=a.c&&(d=Bb(a,Cb("EPSG:4326")),b=[c[0]-b/2,c[1],c[0]+b/2,c[1],c[0],c[1]-b/2,c[0],c[1]+b/2],b=d(b,b,2),b=(rb(b.slice(0,2),b.slice(2,4))+rb(b.slice(4,6),b.slice(6,8)))/2,a=a.rb(),void 0!==a&&(b/=a));return b}function Db(a){Eb(a);a.forEach(function(b){a.forEach(function(a){b!==a&&yb(b,a,Fb)})})}function Gb(){var a=Hb,b=Jb,c=Kb;Lb.forEach(function(d){a.forEach(function(a){yb(d,a,b);yb(a,d,c)})})}function Mb(a){wb[a.f]=a;yb(a,a,Fb)}
30
- function Eb(a){var b=[];a.forEach(function(a){b.push(Mb(a))})}function Nb(a){return a?"string"===typeof a?Cb(a):a:Cb("EPSG:3857")}function Ob(a,b,c,d){a=Cb(a);b=Cb(b);yb(a,b,Pb(c));yb(b,a,Pb(d))}function Pb(a){return function(b,c,d){var e=b.length;d=void 0!==d?d:2;c=void 0!==c?c:Array(e);var f,g;for(g=0;g<e;g+=d)for(f=a([b[g],b[g+1]]),c[g]=f[0],c[g+1]=f[1],f=d-1;2<=f;--f)c[g+f]=b[g+f];return c}}
31
- function Cb(a){var b=null;if(a instanceof vb)b=a;else if("string"===typeof a){var b=wb[a]||null,c=ub||window.proj4;b||"function"!=typeof c||void 0===c.defs(a)||(b=new vb({code:a}),Mb(b))}return b}function Qb(a,b){if(a===b)return!0;var c=a.c===b.c;return a.f===b.f?c:Bb(a,b)===Fb&&c}function Rb(a,b){var c=Cb(a),d=Cb(b);return Bb(c,d)}
32
- function Bb(a,b){var c=a.f,d=b.f,e=zb(c,d);if(!e){var f=ub||window.proj4;if("function"==typeof f){var g=f.defs(c),h=f.defs(d);void 0!==g&&void 0!==h&&(g===h?Db([b,a]):(e=f(d,c),Ob(b,a,e.forward,e.inverse)),e=zb(c,d))}}e||(e=Sb);return e}function Sb(a,b){if(void 0!==b&&a!==b){for(var c=0,d=a.length;c<d;++c)b[c]=a[c];a=b}return a}function Fb(a,b){var c;if(void 0!==b){c=0;for(var d=a.length;c<d;++c)b[c]=a[c];c=b}else c=a.slice();return c}function Tb(a,b,c){return Rb(b,c)(a,void 0,a.length)}
33
- function Ub(a,b,c){b=Rb(b,c);return lb(a,b)};function Yb(a){this.minZoom=void 0!==a.minZoom?a.minZoom:0;this.b=a.resolutions;qa(ia(this.b,function(a,b){return b-a}),17);this.maxZoom=this.b.length-1;this.a=void 0!==a.origin?a.origin:null;this.c=null;void 0!==a.origins&&(this.c=a.origins,qa(this.c.length==this.b.length,20));var b=a.extent;void 0===b||this.a||this.c||(this.a=ab(b));qa(!this.a&&this.c||this.a&&!this.c,18);this.i=null;void 0!==a.tileSizes&&(this.i=a.tileSizes,qa(this.i.length==this.b.length,19));this.g=void 0!==a.tileSize?a.tileSize:
34
- this.i?null:256;qa(!this.g&&this.i||this.g&&!this.i,22);this.u=void 0!==b?b:null;this.f=null;this.j=[0,0];void 0!==a.sizes?this.f=a.sizes.map(function(a){return new ra(Math.min(0,a[0]),Math.max(a[0]-1,-1),Math.min(0,a[1]),Math.max(a[1]-1,-1))},this):b&&Zb(this,b)}var $b=[0,0,0];k=Yb.prototype;k.cf=function(a,b,c){a=ac(this,a,b);for(var d=a.O,e=a.R;d<=e;++d)for(var f=a.U,g=a.X;f<=g;++f)c([b,d,f])};k.D=function(){return this.u};k.nf=function(){return this.maxZoom};k.pf=function(){return this.minZoom};
35
- k.Ub=function(a){return this.a?this.a:this.c[a]};k.La=function(a){return this.b[a]};k.Tf=function(){return this.b};function bc(a,b,c,d){cc(a,b[0],b[1],c,!1,$b);var e=$b[1],f=$b[2];cc(a,b[2],b[3],c,!0,$b);a=$b[1];b=$b[2];void 0!==d?(d.O=e,d.R=a,d.U=f,d.X=b):d=new ra(e,a,f,b);return d}function ac(a,b,c,d){return bc(a,b,a.La(c),d)}function dc(a,b){var c=a.Ub(b[0]),d=a.La(b[0]),e=Ea(a.jb(b[0]),a.j);return[c[0]+(b[1]+.5)*e[0]*d,c[1]+(b[2]+.5)*e[1]*d]}
36
- k.ib=function(a,b){var c=this.Ub(a[0]),d=this.La(a[0]),e=Ea(this.jb(a[0]),this.j),f=c[0]+a[1]*e[0]*d,c=c[1]+a[2]*e[1]*d;return Ra(f,c,f+e[0]*d,c+e[1]*d,b)};k.uf=function(a,b,c){return cc(this,a[0],a[1],b,!1,c)};
37
- function cc(a,b,c,d,e,f){var g=a.qc(d),h=d/a.La(g),l=a.Ub(g);a=Ea(a.jb(g),a.j);b=h*Math.floor((b-l[0])/d+(e?.5:0))/a[0];c=h*Math.floor((c-l[1])/d+(e?0:.5))/a[1];e?(b=Math.ceil(b)-1,c=Math.ceil(c)-1):(b=Math.floor(b),c=Math.floor(c));e=b;void 0!==f?(f[0]=g,f[1]=e,f[2]=c):f=[g,e,c];return f}k.Ud=function(a,b,c){return cc(this,a[0],a[1],this.La(b),!1,c)};k.jb=function(a){return this.g?this.g:this.i[a]};k.qc=function(a,b){return ua(ca(this.b,a,b||0),this.minZoom,this.maxZoom)};
38
- function Zb(a,b){for(var c=a.b.length,d=Array(c),e=a.minZoom;e<c;++e)d[e]=ac(a,b,e);a.f=d};function ec(a){var b=a.j;if(!b){var b=fc(a),c=hc(b,void 0,void 0),b=new Yb({extent:b,origin:ab(b),resolutions:c,tileSize:void 0});a.j=b}return b}function ic(a){var b={};mb(b,a?a:{});void 0===b.extent&&(b.extent=Cb("EPSG:3857").D());b.resolutions=hc(b.extent,b.maxZoom,b.tileSize);delete b.maxZoom;return new Yb(b)}function hc(a,b,c){b=void 0!==b?b:42;var d=eb(a);a=db(a);c=Ea(void 0!==c?c:256);c=Math.max(a/c[0],d/c[1]);b+=1;d=Array(b);for(a=0;a<b;++a)d[a]=c/Math.pow(2,a);return d}
39
- function fc(a){a=Cb(a);var b=a.D();b||(a=180*tb.degrees/a.rb(),b=Ra(-a,-a,a,a));return b};function jc(a){this.f=a.html;this.b=a.tileRanges?a.tileRanges:null};function kc(a){return function(b){if(b)return[ua(b[0],a[0],a[2]),ua(b[1],a[1],a[3])]}}function lc(a){return a};function mc(a){function b(b){var c=a.listener,e=a.Se||a.target;a.Ve&&nc(a);return c.call(e,b)}return a.Te=b}function oc(a,b,c,d){for(var e,f=0,g=a.length;f<g;++f)if(e=a[f],e.listener===b&&e.Se===c)return d&&(e.deleteIndex=f),e}function pc(a,b){var c=a.Ua;return c?c[b]:void 0}function qc(a){var b=a.Ua;b||(b=a.Ua={});return b}
40
- function rc(a,b){var c=pc(a,b);if(c){for(var d=0,e=c.length;d<e;++d)a.removeEventListener(b,c[d].Te),nb(c[d]);c.length=0;if(c=a.Ua)delete c[b],Object.keys(c).length||delete a.Ua}}function w(a,b,c,d,e){var f=qc(a),g=f[b];g||(g=f[b]=[]);(f=oc(g,c,d,!1))?e||(f.Ve=!1):(f={Se:d,Ve:!!e,listener:c,target:a,type:b},a.addEventListener(b,mc(f)),g.push(f));return f}function sc(a,b,c,d){(a=pc(a,b))&&(c=oc(a,c,d,!0))&&nc(c)}
41
- function nc(a){if(a&&a.target){a.target.removeEventListener(a.type,a.Te);var b=pc(a.target,a.type);if(b){var c="deleteIndex"in a?a.deleteIndex:b.indexOf(a);-1!==c&&b.splice(c,1);b.length||rc(a.target,a.type)}nb(a)}};function tc(){}tc.prototype.ac=!1;function uc(a){a.ac||(a.ac=!0,a.ra())}tc.prototype.ra=ja;function vc(a){this.type=a;this.target=null}vc.prototype.preventDefault=vc.prototype.stopPropagation=function(){this.uj=!0};function wc(a){a.stopPropagation()};function xc(){this.Ma={};this.qa={};this.ma={}}t(xc,tc);xc.prototype.addEventListener=function(a,b){var c=this.ma[a];c||(c=this.ma[a]=[]);-1===c.indexOf(b)&&c.push(b)};
42
- xc.prototype.b=function(a){var b="string"===typeof a?new vc(a):a;a=b.type;b.target=this;var c=this.ma[a],d;if(c){a in this.qa||(this.qa[a]=0,this.Ma[a]=0);++this.qa[a];for(var e=0,f=c.length;e<f;++e)if(!1===c[e].call(this,b)||b.uj){d=!1;break}--this.qa[a];if(!this.qa[a]){b=this.Ma[a];for(delete this.Ma[a];b--;)this.removeEventListener(a,ja);delete this.qa[a]}return d}};xc.prototype.ra=function(){var a=qc(this),b;for(b in a)rc(this,b)};
43
- function yc(a,b){return b?b in a.ma:0<Object.keys(a.ma).length}xc.prototype.removeEventListener=function(a,b){var c=this.ma[a];if(c){var d=c.indexOf(b);a in this.Ma?(c[d]=ja,++this.Ma[a]):(c.splice(d,1),c.length||delete this.ma[a])}};function zc(){xc.call(this);this.f=0}t(zc,xc);k=zc.prototype;k.s=function(){++this.f;this.b("change")};k.ba=function(){return this.f};k.ca=function(a,b,c){if(Array.isArray(a)){for(var d=a.length,e=Array(d),f=0;f<d;++f)e[f]=w(this,a[f],b,c);return e}return w(this,a,b,c)};k.once=function(a,b,c){if(Array.isArray(a)){for(var d=a.length,e=Array(d),f=0;f<d;++f)e[f]=w(this,a[f],b,c,!0);return e}return w(this,a,b,c,!0)};
44
- k.da=function(a,b,c){if(Array.isArray(a))for(var d=0,e=a.length;d<e;++d)sc(this,a[d],b,c);else sc(this,a,b,c)};k.ea=function(a){if(Array.isArray(a))for(var b=0,c=a.length;b<c;++b)nc(a[b]);else nc(a)};function Ac(a){zc.call(this);la(this);this.C={};void 0!==a&&this.L(a)}t(Ac,zc);var Bc={};function Cc(a){return Bc.hasOwnProperty(a)?Bc[a]:Bc[a]="change:"+a}k=Ac.prototype;k.get=function(a){var b;this.C.hasOwnProperty(a)&&(b=this.C[a]);return b};k.fa=function(){return Object.keys(this.C)};k.Z=function(){return mb({},this.C)};function Dc(a,b,c){var d;d=Cc(b);a.b(new Ec(d,b,c));a.b(new Ec("propertychange",b,c))}k.set=function(a,b,c){c?this.C[a]=b:(c=this.C[a],this.C[a]=b,c!==b&&Dc(this,a,c))};
45
- k.L=function(a,b){for(var c in a)this.set(c,a[c],b)};k.ga=function(a,b){if(a in this.C){var c=this.C[a];delete this.C[a];b||Dc(this,a,c)}};function Ec(a,b,c){vc.call(this,a);this.key=b;this.oldValue=c}t(Ec,vc);function x(a){Ac.call(this);this.a=a?a:[];Fc(this)}t(x,Ac);k=x.prototype;k.clear=function(){for(;0<this.kb();)this.pop()};k.ae=function(a){var b,c;b=0;for(c=a.length;b<c;++b)this.push(a[b]);return this};k.forEach=function(a,b){this.a.forEach(a,b)};k.ji=function(){return this.a};k.item=function(a){return this.a[a]};k.kb=function(){return this.get(Gc)};k.Vc=function(a,b){this.a.splice(a,0,b);Fc(this);this.b(new Hc("add",b))};k.pop=function(){return this.oe(this.kb()-1)};
46
- k.push=function(a){var b=this.kb();this.Vc(b,a);return this.kb()};k.remove=function(a){var b=this.a,c,d;c=0;for(d=b.length;c<d;++c)if(b[c]===a)return this.oe(c)};k.oe=function(a){var b=this.a[a];this.a.splice(a,1);Fc(this);this.b(new Hc("remove",b));return b};k.Lj=function(a,b){var c=this.kb();if(a<c)c=this.a[a],this.a[a]=b,this.b(new Hc("remove",c)),this.b(new Hc("add",b));else{for(;c<a;++c)this.Vc(c,void 0);this.Vc(a,b)}};function Fc(a){a.set(Gc,a.a.length)}var Gc="length";
47
- function Hc(a,b){vc.call(this,a);this.element=b}t(Hc,vc);var Ic=/^#(?:[0-9a-f]{3}){1,2}$/i,Jc=/^([a-z]*)$/i;function Kc(a){if("string"!==typeof a){var b=a[0];b!=(b|0)&&(b=b+.5|0);var c=a[1];c!=(c|0)&&(c=c+.5|0);var d=a[2];d!=(d|0)&&(d=d+.5|0);a="rgba("+b+","+c+","+d+","+(void 0===a[3]?1:a[3])+")"}return a}
48
- var Mc=function(){var a={},b=0;return function(c){var d;if(a.hasOwnProperty(c))d=a[c];else{if(1024<=b){d=0;for(var e in a)d++&3||(delete a[e],--b)}d=c;var f;Jc.exec(d)&&(e=document.createElement("div"),e.style.color=d,document.body.appendChild(e),d=getComputedStyle(e).color,document.body.removeChild(e));if(Ic.exec(d)){f=d.length-1;qa(3==f||6==f,54);var g=3==f?1:2;f=parseInt(d.substr(1+0*g,g),16);e=parseInt(d.substr(1+1*g,g),16);d=parseInt(d.substr(1+2*g,g),16);1==g&&(f=(f<<4)+f,e=(e<<4)+e,d=(d<<4)+
49
- d);f=[f,e,d,1]}else d.indexOf("rgba(")?d.indexOf("rgb(")?qa(!1,14):(d=d.slice(4,-1).split(",").map(Number),d.push(1),f=Lc(d)):(d=d.slice(5,-1).split(",").map(Number),f=Lc(d));d=f;a[c]=d;++b}return d}}();function Lc(a){var b=[];b[0]=ua(a[0]+.5|0,0,255);b[1]=ua(a[1]+.5|0,0,255);b[2]=ua(a[2]+.5|0,0,255);b[3]=ua(a[3],0,1);return b};function Nc(a){return"string"===typeof a||a instanceof CanvasPattern||a instanceof CanvasGradient?a:Kc(a)};function Oc(a,b,c){this.center=a;this.resolution=b;this.rotation=c};function Qc(a,b){var c=document.createElement("CANVAS");a&&(c.width=a);b&&(c.height=b);return c.getContext("2d")}function Rc(a){a&&a.parentNode&&a.parentNode.removeChild(a)};function Sc(a){Ac.call(this);this.element=a.element?a.element:null;this.a=this.H=null;this.v=[];this.render=a.render?a.render:ja;a.target&&(a=a.target,this.H="string"===typeof a?document.getElementById(a):a)}t(Sc,Ac);Sc.prototype.ra=function(){Rc(this.element);Ac.prototype.ra.call(this)};
50
- Sc.prototype.setMap=function(a){this.a&&Rc(this.element);for(var b=0,c=this.v.length;b<c;++b)nc(this.v[b]);this.v.length=0;if(this.a=a)(this.H?this.H:a.B).appendChild(this.element),this.render!==ja&&this.v.push(w(a,"postrender",this.render,this)),a.render()};function Tc(a){a=a?a:{};this.G=document.createElement("UL");this.j=document.createElement("LI");this.G.appendChild(this.j);this.j.style.display="none";this.g=void 0!==a.collapsed?a.collapsed:!0;this.B=void 0!==a.collapsible?a.collapsible:!0;this.B||(this.g=!1);var b=void 0!==a.className?a.className:"ol-attribution",c=void 0!==a.tipLabel?a.tipLabel:"Attributions",d=void 0!==a.collapseLabel?a.collapseLabel:"\u00bb";"string"===typeof d?(this.o=document.createElement("span"),this.o.textContent=d):this.o=
51
- d;d=void 0!==a.label?a.label:"i";"string"===typeof d?(this.u=document.createElement("span"),this.u.textContent=d):this.u=d;var e=this.B&&!this.g?this.o:this.u,d=document.createElement("button");d.setAttribute("type","button");d.title=c;d.appendChild(e);w(d,"click",this.ja,this);c=document.createElement("div");c.className=b+" ol-unselectable ol-control"+(this.g&&this.B?" ol-collapsed":"")+(this.B?"":" ol-uncollapsible");c.appendChild(this.G);c.appendChild(d);Sc.call(this,{element:c,render:a.render?
52
- a.render:Uc,target:a.target});this.F=!0;this.i={};this.c={};this.K={}}t(Tc,Sc);
53
- function Uc(a){if(a=a.frameState){var b,c,d,e,f,g,h,l,m,n,p,q=a.layerStatesArray,u=mb({},a.attributions),D={},A={},I=a.viewState.projection;c=0;for(b=q.length;c<b;c++)if(g=q[c].layer.la())if(n=la(g).toString(),m=g.o)for(d=0,e=m.length;d<e;d++)if(h=m[d],l=la(h).toString(),!(l in u)){if(f=a.usedTiles[n]){var R=g.sb(I);a:{p=void 0;var W,ma,Ca=h,Da=R,Aa=I;if(Ca.b){for(p in f)if(p in Ca.b){var R=f[p],v;ma=0;for(W=Ca.b[p].length;ma<W;++ma){v=Ca.b[p][ma];if(ta(v,R)){p=!0;break a}var na=ac(Da,fc(Aa),parseInt(p,
54
- 10)),Ba=na.R-na.O+1;if(R.O<na.O||R.R>na.R)if(ta(v,new ra(xa(R.O,Ba),xa(R.R,Ba),R.U,R.X))||R.R-R.O+1>Ba&&ta(v,na)){p=!0;break a}}}p=!1}else p=!0}}else p=!1;p?(l in D&&delete D[l],p=h.f,p in A||(A[p]=!0,u[l]=h)):D[l]=h}b=[u,D];c=b[0];b=b[1];for(var X in this.i)X in c?(this.c[X]||(this.i[X].style.display="",this.c[X]=!0),delete c[X]):X in b?(this.c[X]&&(this.i[X].style.display="none",delete this.c[X]),delete b[X]):(Rc(this.i[X]),delete this.i[X],delete this.c[X]);for(X in c)d=document.createElement("LI"),
55
- d.innerHTML=c[X].f,this.G.appendChild(d),this.i[X]=d,this.c[X]=!0;for(X in b)d=document.createElement("LI"),d.innerHTML=b[X].f,d.style.display="none",this.G.appendChild(d),this.i[X]=d;X=!pb(this.c)||!pb(a.logos);this.F!=X&&(this.element.style.display=X?"":"none",this.F=X);X&&pb(this.c)?this.element.classList.add("ol-logo-only"):this.element.classList.remove("ol-logo-only");var ka;a=a.logos;X=this.K;for(ka in X)ka in a||(Rc(X[ka]),delete X[ka]);for(var za in a)b=a[za],b instanceof HTMLElement&&(this.j.appendChild(b),
56
- X[za]=b),za in X||(ka=new Image,ka.src=za,""===b?c=ka:(c=document.createElement("a"),c.href=b,c.appendChild(ka)),this.j.appendChild(c),X[za]=c);this.j.style.display=pb(a)?"none":""}else this.F&&(this.element.style.display="none",this.F=!1)}Tc.prototype.ja=function(a){a.preventDefault();this.element.classList.toggle("ol-collapsed");if(this.g){a=this.u;var b=a.parentNode;b&&b.replaceChild(this.o,a)}else a=this.o,(b=a.parentNode)&&b.replaceChild(this.u,a);this.g=!this.g};function Vc(a){return Math.pow(a,3)}function Wc(a){return 1-Vc(1-a)}function Xc(a){return 3*a*a-2*a*a*a}function Yc(a){return a};function Zc(a){a=a?a:{};var b=void 0!==a.className?a.className:"ol-rotate",c=void 0!==a.label?a.label:"\u21e7";this.c=null;"string"===typeof c?(this.c=document.createElement("span"),this.c.className="ol-compass",this.c.textContent=c):(this.c=c,this.c.classList.add("ol-compass"));var d=a.tipLabel?a.tipLabel:"Reset rotation",c=document.createElement("button");c.className=b+"-reset";c.setAttribute("type","button");c.title=d;c.appendChild(this.c);w(c,"click",Zc.prototype.u,this);d=document.createElement("div");
57
- d.className=b+" ol-unselectable ol-control";d.appendChild(c);b=a.render?a.render:$c;this.g=a.resetNorth?a.resetNorth:void 0;Sc.call(this,{element:d,render:b,target:a.target});this.j=void 0!==a.duration?a.duration:250;this.i=void 0!==a.autoHide?a.autoHide:!0;this.o=void 0;this.i&&this.element.classList.add("ol-hidden")}t(Zc,Sc);
58
- Zc.prototype.u=function(a){a.preventDefault();if(this.g)this.g();else if(a=this.a.$()){var b=a.Ha();void 0!==b&&(0<this.j?a.animate({rotation:0,duration:this.j,easing:Wc}):a.be(0))}};
59
- function $c(a){if(a=a.frameState){a=a.viewState.rotation;if(a!=this.o){var b="rotate("+a+"rad)";if(this.i){var c=this.element.classList.contains("ol-hidden");c||a?c&&a&&this.element.classList.remove("ol-hidden"):this.element.classList.add("ol-hidden")}this.c.style.msTransform=b;this.c.style.webkitTransform=b;this.c.style.transform=b}this.o=a}};function ad(a){a=a?a:{};var b=void 0!==a.className?a.className:"ol-zoom",c=void 0!==a.delta?a.delta:1,d=void 0!==a.zoomInLabel?a.zoomInLabel:"+",e=void 0!==a.zoomOutLabel?a.zoomOutLabel:"\u2212",f=void 0!==a.zoomInTipLabel?a.zoomInTipLabel:"Zoom in",g=void 0!==a.zoomOutTipLabel?a.zoomOutTipLabel:"Zoom out",h=document.createElement("button");h.className=b+"-in";h.setAttribute("type","button");h.title=f;h.appendChild("string"===typeof d?document.createTextNode(d):d);w(h,"click",ad.prototype.i.bind(this,
60
- c));d=document.createElement("button");d.className=b+"-out";d.setAttribute("type","button");d.title=g;d.appendChild("string"===typeof e?document.createTextNode(e):e);w(d,"click",ad.prototype.i.bind(this,-c));c=document.createElement("div");c.className=b+" ol-unselectable ol-control";c.appendChild(h);c.appendChild(d);Sc.call(this,{element:c,target:a.target});this.c=void 0!==a.duration?a.duration:250}t(ad,Sc);
61
- ad.prototype.i=function(a,b){b.preventDefault();var c=this.a.$();if(c){var d=c.Da();d&&(d=c.constrainResolution(d,a),0<this.c?(0<bd(c)[0]&&cd(c),c.animate({resolution:d,duration:this.c,easing:Wc})):c.Bb(d))}};function dd(a){a=a?a:{};var b=new x;(void 0!==a.zoom?a.zoom:1)&&b.push(new ad(a.zoomOptions));(void 0!==a.rotate?a.rotate:1)&&b.push(new Zc(a.rotateOptions));(void 0!==a.attribution?a.attribution:1)&&b.push(new Tc(a.attributionOptions));return b};function ed(a,b,c){vc.call(this,a);this.map=b;this.frameState=void 0!==c?c:null}t(ed,vc);function fd(a,b,c,d,e){ed.call(this,a,b,e);this.originalEvent=c;this.pixel=b.Md(c);this.coordinate=b.Xa(this.pixel);this.dragging=void 0!==d?d:!1}t(fd,ed);fd.prototype.preventDefault=function(){ed.prototype.preventDefault.call(this);this.originalEvent.preventDefault()};fd.prototype.stopPropagation=function(){ed.prototype.stopPropagation.call(this);this.originalEvent.stopPropagation()};var gd={xk:"singleclick",lk:"click",mk:"dblclick",qk:"pointerdrag",tk:"pointermove",pk:"pointerdown",wk:"pointerup",vk:"pointerover",uk:"pointerout",rk:"pointerenter",sk:"pointerleave",nk:"pointercancel"};function hd(a,b,c,d,e){fd.call(this,a,b,c.b,d,e);this.b=c}t(hd,fd);var id="undefined"!==typeof navigator?navigator.userAgent.toLowerCase():"",jd=-1!==id.indexOf("firefox"),kd=-1!==id.indexOf("safari")&&-1==id.indexOf("chrom"),ld=-1!==id.indexOf("webkit")&&-1==id.indexOf("edge"),md=-1!==id.indexOf("macintosh"),nd=window.devicePixelRatio||1,od=!1,pd=function(){if(!("HTMLCanvasElement"in window))return!1;try{var a=document.createElement("CANVAS").getContext("2d");return a?(void 0!==a.setLineDash&&(od=!0),!0):!1}catch(b){return!1}}(),qd="ontouchstart"in window,rd="PointerEvent"in
62
- window,sd=!!navigator.msPointerEnabled;function td(a,b){this.b=a;this.i=b};function ud(a){td.call(this,a,{mousedown:this.Uh,mousemove:this.Vh,mouseup:this.Yh,mouseover:this.Xh,mouseout:this.Wh});this.f=a.a;this.a=[]}t(ud,td);function vd(a,b){for(var c=a.a,d=b.clientX,e=b.clientY,f=0,g=c.length,h;f<g&&(h=c[f]);f++){var l=Math.abs(e-h[1]);if(25>=Math.abs(d-h[0])&&25>=l)return!0}return!1}function wd(a){var b=xd(a,a),c=b.preventDefault;b.preventDefault=function(){a.preventDefault();c()};b.pointerId=1;b.isPrimary=!0;b.pointerType="mouse";return b}k=ud.prototype;
63
- k.Uh=function(a){if(!vd(this,a)){(1).toString()in this.f&&this.cancel(a);var b=wd(a);this.f[(1).toString()]=a;yd(this.b,"pointerdown",b,a)}};k.Vh=function(a){if(!vd(this,a)){var b=wd(a);yd(this.b,"pointermove",b,a)}};k.Yh=function(a){if(!vd(this,a)){var b=this.f[(1).toString()];b&&b.button===a.button&&(b=wd(a),yd(this.b,"pointerup",b,a),delete this.f[(1).toString()])}};k.Xh=function(a){if(!vd(this,a)){var b=wd(a);zd(this.b,b,a)}};k.Wh=function(a){if(!vd(this,a)){var b=wd(a);Ad(this.b,b,a)}};
64
- k.cancel=function(a){var b=wd(a);this.b.cancel(b,a);delete this.f[(1).toString()]};function Bd(a){td.call(this,a,{MSPointerDown:this.ci,MSPointerMove:this.di,MSPointerUp:this.gi,MSPointerOut:this.ei,MSPointerOver:this.fi,MSPointerCancel:this.bi,MSGotPointerCapture:this.$h,MSLostPointerCapture:this.ai});this.f=a.a;this.a=["","unavailable","touch","pen","mouse"]}t(Bd,td);function Cd(a,b){var c=b;"number"===typeof b.pointerType&&(c=xd(b,b),c.pointerType=a.a[b.pointerType]);return c}k=Bd.prototype;
65
- k.ci=function(a){this.f[a.pointerId.toString()]=a;var b=Cd(this,a);yd(this.b,"pointerdown",b,a)};k.di=function(a){var b=Cd(this,a);yd(this.b,"pointermove",b,a)};k.gi=function(a){var b=Cd(this,a);yd(this.b,"pointerup",b,a);delete this.f[a.pointerId.toString()]};k.ei=function(a){var b=Cd(this,a);Ad(this.b,b,a)};k.fi=function(a){var b=Cd(this,a);zd(this.b,b,a)};k.bi=function(a){var b=Cd(this,a);this.b.cancel(b,a);delete this.f[a.pointerId.toString()]};
66
- k.ai=function(a){this.b.b(new Dd("lostpointercapture",a,a))};k.$h=function(a){this.b.b(new Dd("gotpointercapture",a,a))};function Ed(a){td.call(this,a,{pointerdown:this.oj,pointermove:this.pj,pointerup:this.sj,pointerout:this.qj,pointerover:this.rj,pointercancel:this.nj,gotpointercapture:this.ph,lostpointercapture:this.Th})}t(Ed,td);k=Ed.prototype;k.oj=function(a){Fd(this.b,a)};k.pj=function(a){Fd(this.b,a)};k.sj=function(a){Fd(this.b,a)};k.qj=function(a){Fd(this.b,a)};k.rj=function(a){Fd(this.b,a)};k.nj=function(a){Fd(this.b,a)};k.Th=function(a){Fd(this.b,a)};k.ph=function(a){Fd(this.b,a)};function Dd(a,b,c){vc.call(this,a);this.b=b;a=c?c:{};this.buttons=Gd(a);this.pressure=Hd(a,this.buttons);this.bubbles="bubbles"in a?a.bubbles:!1;this.cancelable="cancelable"in a?a.cancelable:!1;this.view="view"in a?a.view:null;this.detail="detail"in a?a.detail:null;this.screenX="screenX"in a?a.screenX:0;this.screenY="screenY"in a?a.screenY:0;this.clientX="clientX"in a?a.clientX:0;this.clientY="clientY"in a?a.clientY:0;this.button="button"in a?a.button:0;this.relatedTarget="relatedTarget"in a?a.relatedTarget:
67
- null;this.pointerId="pointerId"in a?a.pointerId:0;this.width="width"in a?a.width:0;this.height="height"in a?a.height:0;this.pointerType="pointerType"in a?a.pointerType:"";this.isPrimary="isPrimary"in a?a.isPrimary:!1;b.preventDefault&&(this.preventDefault=function(){b.preventDefault()})}t(Dd,vc);function Gd(a){if(a.buttons||Id)a=a.buttons;else switch(a.which){case 1:a=1;break;case 2:a=4;break;case 3:a=2;break;default:a=0}return a}
68
- function Hd(a,b){var c=0;a.pressure?c=a.pressure:c=b?.5:0;return c}var Id=!1;try{Id=1===(new MouseEvent("click",{buttons:1})).buttons}catch(a){};function Jd(a,b){td.call(this,a,{touchstart:this.hk,touchmove:this.gk,touchend:this.fk,touchcancel:this.ek});this.f=a.a;this.j=b;this.a=void 0;this.g=0;this.c=void 0}t(Jd,td);k=Jd.prototype;k.Xf=function(){this.g=0;this.c=void 0};
69
- function Kd(a,b,c){b=xd(b,c);b.pointerId=c.identifier+2;b.bubbles=!0;b.cancelable=!0;b.detail=a.g;b.button=0;b.buttons=1;b.width=c.webkitRadiusX||c.radiusX||0;b.height=c.webkitRadiusY||c.radiusY||0;b.pressure=c.webkitForce||c.force||.5;b.isPrimary=a.a===c.identifier;b.pointerType="touch";b.clientX=c.clientX;b.clientY=c.clientY;b.screenX=c.screenX;b.screenY=c.screenY;return b}
70
- function Ld(a,b,c){function d(){b.preventDefault()}var e=Array.prototype.slice.call(b.changedTouches),f=e.length,g,h;for(g=0;g<f;++g)h=Kd(a,b,e[g]),h.preventDefault=d,c.call(a,b,h)}
71
- k.hk=function(a){var b=a.touches,c=Object.keys(this.f),d=c.length;if(d>=b.length){var e=[],f,g,h;for(f=0;f<d;++f){g=c[f];h=this.f[g];var l;if(!(l=1==g))a:{for(var m=b.length,n=0;n<m;n++)if(l=b[n],l.identifier===g-2){l=!0;break a}l=!1}l||e.push(h.out)}for(f=0;f<e.length;++f)this.Fd(a,e[f])}b=a.changedTouches[0];c=Object.keys(this.f).length;if(!c||1===c&&(1).toString()in this.f)this.a=b.identifier,void 0!==this.c&&clearTimeout(this.c);Md(this,a);this.g++;Ld(this,a,this.jj)};
72
- k.jj=function(a,b){this.f[b.pointerId]={target:b.target,out:b,Uf:b.target};var c=this.b;b.bubbles=!0;yd(c,"pointerover",b,a);c=this.b;b.bubbles=!1;yd(c,"pointerenter",b,a);yd(this.b,"pointerdown",b,a)};k.gk=function(a){a.preventDefault();Ld(this,a,this.Zh)};
73
- k.Zh=function(a,b){var c=this.f[b.pointerId];if(c){var d=c.out,e=c.Uf;yd(this.b,"pointermove",b,a);d&&e!==b.target&&(d.relatedTarget=b.target,b.relatedTarget=e,d.target=e,b.target?(Ad(this.b,d,a),zd(this.b,b,a)):(b.target=e,b.relatedTarget=null,this.Fd(a,b)));c.out=b;c.Uf=b.target}};k.fk=function(a){Md(this,a);Ld(this,a,this.ik)};
74
- k.ik=function(a,b){yd(this.b,"pointerup",b,a);this.b.out(b,a);Nd(this.b,b,a);delete this.f[b.pointerId];b.isPrimary&&(this.a=void 0,this.c=setTimeout(this.Xf.bind(this),200))};k.ek=function(a){Ld(this,a,this.Fd)};k.Fd=function(a,b){this.b.cancel(b,a);this.b.out(b,a);Nd(this.b,b,a);delete this.f[b.pointerId];b.isPrimary&&(this.a=void 0,this.c=setTimeout(this.Xf.bind(this),200))};
75
- function Md(a,b){var c=a.j.a,d=b.changedTouches[0];if(a.a===d.identifier){var e=[d.clientX,d.clientY];c.push(e);setTimeout(function(){var a=c.indexOf(e);-1<a&&c.splice(a,1)},2500)}};function Od(a){xc.call(this);this.g=a;this.a={};this.i={};this.f=[];rd?Pd(this,new Ed(this)):sd?Pd(this,new Bd(this)):(a=new ud(this),Pd(this,a),qd&&Pd(this,new Jd(this,a)));a=this.f.length;for(var b,c=0;c<a;c++)b=this.f[c],Qd(this,Object.keys(b.i))}t(Od,xc);function Pd(a,b){var c=Object.keys(b.i);c&&(c.forEach(function(a){var c=b.i[a];c&&(this.i[a]=c.bind(b))},a),a.f.push(b))}Od.prototype.c=function(a){var b=this.i[a.type];b&&b(a)};
76
- function Qd(a,b){b.forEach(function(a){w(this.g,a,this.c,this)},a)}function Rd(a,b){b.forEach(function(a){sc(this.g,a,this.c,this)},a)}function xd(a,b){for(var c={},d,e=0,f=Sd.length;e<f;e++)d=Sd[e][0],c[d]=a[d]||b[d]||Sd[e][1];return c}function Nd(a,b,c){b.bubbles=!1;yd(a,"pointerleave",b,c)}Od.prototype.out=function(a,b){a.bubbles=!0;yd(this,"pointerout",a,b)};Od.prototype.cancel=function(a,b){yd(this,"pointercancel",a,b)};
77
- function Ad(a,b,c){a.out(b,c);var d=b.target,e=b.relatedTarget;d&&e&&d.contains(e)||Nd(a,b,c)}function zd(a,b,c){b.bubbles=!0;yd(a,"pointerover",b,c);var d=b.target,e=b.relatedTarget;d&&e&&d.contains(e)||(b.bubbles=!1,yd(a,"pointerenter",b,c))}function yd(a,b,c,d){a.b(new Dd(b,d,c))}function Fd(a,b){a.b(new Dd(b.type,b,b))}Od.prototype.ra=function(){for(var a=this.f.length,b,c=0;c<a;c++)b=this.f[c],Rd(this,Object.keys(b.i));xc.prototype.ra.call(this)};
78
- var Sd=[["bubbles",!1],["cancelable",!1],["view",null],["detail",null],["screenX",0],["screenY",0],["clientX",0],["clientY",0],["ctrlKey",!1],["altKey",!1],["shiftKey",!1],["metaKey",!1],["button",0],["relatedTarget",null],["buttons",0],["pointerId",0],["width",0],["height",0],["pressure",0],["tiltX",0],["tiltY",0],["pointerType",""],["hwTimestamp",0],["isPrimary",!1],["type",""],["target",null],["currentTarget",null],["which",0]];function Td(a){xc.call(this);this.c=a;this.j=0;this.C=!1;this.i=[];this.a=null;a=this.c.a;this.B=0;this.v={};this.g=new Od(a);this.f=null;this.o=w(this.g,"pointerdown",this.Fh,this);this.u=w(this.g,"pointermove",this.Aj,this)}t(Td,xc);function Ud(a,b){var c=new hd("click",a.c,b);a.b(c);a.j?(clearTimeout(a.j),a.j=0,c=new hd("dblclick",a.c,b),a.b(c)):a.j=setTimeout(function(){this.j=0;var a=new hd("singleclick",this.c,b);this.b(a)}.bind(a),250)}
79
- function Vd(a,b){"pointerup"==b.type||"pointercancel"==b.type?delete a.v[b.pointerId]:"pointerdown"==b.type&&(a.v[b.pointerId]=!0);a.B=Object.keys(a.v).length}k=Td.prototype;k.xf=function(a){Vd(this,a);var b=new hd("pointerup",this.c,a);this.b(b);this.C||a.button||Ud(this,this.a);this.B||(this.i.forEach(nc),this.i.length=0,this.C=!1,this.a=null,uc(this.f),this.f=null)};
80
- k.Fh=function(a){Vd(this,a);var b=new hd("pointerdown",this.c,a);this.b(b);this.a=a;this.i.length||(this.f=new Od(document),this.i.push(w(this.f,"pointermove",this.si,this),w(this.f,"pointerup",this.xf,this),w(this.g,"pointercancel",this.xf,this)))};k.si=function(a){if(a.clientX!=this.a.clientX||a.clientY!=this.a.clientY){this.C=!0;var b=new hd("pointerdrag",this.c,a,this.C);this.b(b)}a.preventDefault()};
81
- k.Aj=function(a){this.b(new hd(a.type,this.c,a,!(!this.a||a.clientX==this.a.clientX&&a.clientY==this.a.clientY)))};k.ra=function(){this.u&&(nc(this.u),this.u=null);this.o&&(nc(this.o),this.o=null);this.i.forEach(nc);this.i.length=0;this.f&&(uc(this.f),this.f=null);this.g&&(uc(this.g),this.g=null);xc.prototype.ra.call(this)};function Wd(a,b){this.o=a;this.c=b;this.b=[];this.f=[];this.a={}}Wd.prototype.clear=function(){this.b.length=0;this.f.length=0;nb(this.a)};Wd.prototype.j=function(a){qa(!(this.c(a)in this.a),31);var b=this.o(a);return Infinity!=b?(this.b.push(a),this.f.push(b),this.a[this.c(a)]=!0,Xd(this,0,this.b.length-1),!0):!1};function Yd(a,b){for(var c=a.b,d=a.f,e=c.length,f=c[b],g=d[b],h=b;b<e>>1;){var l=2*b+1,m=2*b+2,l=m<e&&d[m]<d[l]?m:l;c[b]=c[l];d[b]=d[l];b=l}c[b]=f;d[b]=g;Xd(a,h,b)}
82
- function Xd(a,b,c){var d=a.b;a=a.f;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 Zd(a,b){Wd.call(this,function(b){return a.apply(null,b)},function(a){return a[0].vb()});this.u=b;this.g=0;this.i={}}t(Zd,Wd);Zd.prototype.j=function(a){var b=Wd.prototype.j.call(this,a);b&&w(a[0],"change",this.C,this);return b};Zd.prototype.C=function(a){a=a.target;var b=a.T();if(2===b||3===b||4===b||5===b)sc(a,"change",this.C,this),a=a.vb(),a in this.i&&(delete this.i[a],--this.g),this.u()};
83
- function $d(a,b,c){for(var d=0,e,f;a.g<b&&d<c&&0<a.b.length;){e=a;var g=e.b,h=e.f;f=g[0];1==g.length?(g.length=0,h.length=0):(g[0]=g.pop(),h[0]=h.pop(),Yd(e,0));g=e.c(f);delete e.a[g];e=f[0];f=e.vb();0!==e.T()||f in a.i||(a.i[f]=!0,++a.g,++d,e.load())}};function ae(a){return function(b,c,d){if(void 0!==b)return b=ca(a,b,d),b=ua(b+c,0,a.length-1),c=Math.floor(b),b!=c&&c<a.length-1?a[c]/Math.pow(a[c]/a[c+1],b-c):a[c]}}function be(a,b,c){return function(d,e,f){if(void 0!==d)return d=Math.max(Math.floor(Math.log(b/d)/Math.log(a)+(-f/2+.5))+e,0),void 0!==c&&(d=Math.min(d,c)),b/Math.pow(a,d)}};function ce(a){if(void 0!==a)return 0}function de(a,b){if(void 0!==a)return a+b}function ee(a){var b=2*Math.PI/a;return function(a,d){if(void 0!==a)return a=Math.floor((a+d)/b+.5)*b}}function fe(){var a=5*Math.PI/180;return function(b,c){if(void 0!==b)return Math.abs(b+c)<=a?0:b+c}};function ge(a){a=""+a;var b=a.indexOf("."),b=-1===b?a.length:b;return 2<b?a:Array(3-b).join("0")+a};function he(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],l=h-g,m=f-e,c=l||m?(l*(c-g)+m*(d-e))/(l*l+m*m||0):0;0>=c||(1<=c?(g=h,e=f):(g+=c*l,e+=c*m));return[g,e]}function ie(a,b){for(var c=!0,d=a.length-1;0<=d;--d)if(a[d]!=b[d]){c=!1;break}return c}function je(a,b){var c=Math.cos(b),d=Math.sin(b),e=a[1]*c+a[0]*d;a[0]=a[0]*c-a[1]*d;a[1]=e}function ke(a,b){var c=a[0]-b[0],d=a[1]-b[1];return c*c+d*d}function le(a,b){return Math.sqrt(ke(a,b))};function me(){return!0}function ne(){return!1};function oe(){Ac.call(this);this.o=Ga();this.u=-1;this.c={};this.j=this.i=0}t(oe,Ac);k=oe.prototype;k.Qa=function(a,b){var c=b?b:[NaN,NaN];this.Wa(a[0],a[1],c,Infinity);return c};k.Na=function(a){return this.wb(a[0],a[1])};k.wb=ne;k.D=function(a){this.u!=this.f&&(this.o=this.Gc(this.o),this.u=this.f);var b=this.o;a?(a[0]=b[0],a[1]=b[1],a[2]=b[2],a[3]=b[3]):a=b;return a};k.Za=function(a){return this.Rc(a*a)};k.Ra=function(a,b){this.Eb(Rb(a,b));return this};function pe(a,b,c,d,e,f){for(var g=f?f:[],h=0;b<c;b+=d){var l=a[b],m=a[b+1];g[h++]=e[0]*l+e[2]*m+e[4];g[h++]=e[1]*l+e[3]*m+e[5]}f&&g.length!=h&&(g.length=h);return g};function y(){oe.call(this);this.V="XY";this.A=2;this.l=null}t(y,oe);function qe(a){var b;"XY"==a?b=2:"XYZ"==a||"XYM"==a?b=3:"XYZM"==a&&(b=4);return b}k=y.prototype;k.wb=ne;k.Gc=function(a){var b=this.l,c=this.l.length,d=this.A;a=Sa(a);return Wa(a,b,0,c,d)};k.eb=function(){return this.l.slice(0,this.A)};k.fb=function(){return this.l.slice(this.l.length-this.A)};k.gb=function(){return this.V};
84
- k.Rc=function(a){this.j!=this.f&&(nb(this.c),this.i=0,this.j=this.f);if(0>a||this.i&&a<=this.i)return this;var b=a.toString();if(this.c.hasOwnProperty(b))return this.c[b];var c=this.Kb(a);if(c.l.length<this.l.length)return this.c[b]=c;this.i=a;return this};k.Kb=function(){return this};function re(a,b,c){a.A=qe(b);a.V=b;a.l=c}
85
- function se(a,b,c,d){if(b)c=qe(b);else{for(b=0;b<d;++b)if(c.length)c=c[0];else{a.V="XY";a.A=2;return}c=c.length;var e;2==c?e="XY":3==c?e="XYZ":4==c&&(e="XYZM");b=e}a.V=b;a.A=c}k.Eb=function(a){this.l&&(a(this.l,this.l,this.A),this.s())};k.rotate=function(a,b){var c=this.l;if(c){for(var d=c.length,e=this.A,f=c?c:[],g=Math.cos(a),h=Math.sin(a),l=b[0],m=b[1],n=0,p=0;p<d;p+=e){var q=c[p]-l,u=c[p+1]-m;f[n++]=l+q*g-u*h;f[n++]=m+q*h+u*g;for(q=p+2;q<p+e;++q)f[n++]=c[q]}c&&f.length!=n&&(f.length=n);this.s()}};
86
- k.scale=function(a,b,c){var d=b;void 0===d&&(d=a);var e=c;e||(e=fb(this.D()));if(c=this.l){b=c.length;for(var f=this.A,g=c?c:[],h=e[0],e=e[1],l=0,m=0;m<b;m+=f){var n=c[m]-h,p=c[m+1]-e;g[l++]=h+a*n;g[l++]=e+d*p;for(n=m+2;n<m+f;++n)g[l++]=c[n]}c&&g.length!=l&&(g.length=l);this.s()}};k.translate=function(a,b){var c=this.l;if(c){var d=c.length,e=this.A,f=c?c:[],g=0,h,l;for(h=0;h<d;h+=e)for(f[g++]=c[h]+a,f[g++]=c[h+1]+b,l=h+2;l<h+e;++l)f[g++]=c[l];c&&f.length!=g&&(f.length=g);this.s()}};function te(a,b,c,d){for(var e=0,f=a[c-d],g=a[c-d+1];b<c;b+=d)var h=a[b],l=a[b+1],e=e+(g*h-f*l),f=h,g=l;return e/2}function ue(a,b,c,d){var e=0,f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],e=e+te(a,b,h,d);b=h}return e};function ve(a,b,c,d,e,f,g){var h=a[b],l=a[b+1],m=a[c]-h,n=a[c+1]-l;if(m||n)if(f=((e-h)*m+(f-l)*n)/(m*m+n*n),1<f)b=c;else if(0<f){for(e=0;e<d;++e)g[e]=ya(a[b+e],a[c+e],f);g.length=d;return}for(e=0;e<d;++e)g[e]=a[b+e];g.length=d}function we(a,b,c,d,e){var f=a[b],g=a[b+1];for(b+=d;b<c;b+=d){var h=a[b],l=a[b+1],f=wa(f,g,h,l);f>e&&(e=f);f=h;g=l}return e}function xe(a,b,c,d,e){var f,g;f=0;for(g=c.length;f<g;++f){var h=c[f];e=we(a,b,h,d,e);b=h}return e}
87
- function ye(a,b,c,d,e,f,g,h,l,m,n){if(b==c)return m;var p;if(!e){p=wa(g,h,a[b],a[b+1]);if(p<m){for(n=0;n<d;++n)l[n]=a[b+n];l.length=d;return p}return m}for(var q=n?n:[NaN,NaN],u=b+d;u<c;)if(ve(a,u-d,u,d,g,h,q),p=wa(g,h,q[0],q[1]),p<m){m=p;for(n=0;n<d;++n)l[n]=q[n];l.length=d;u+=d}else u+=d*Math.max((Math.sqrt(p)-Math.sqrt(m))/e|0,1);if(f&&(ve(a,c-d,b,d,g,h,q),p=wa(g,h,q[0],q[1]),p<m)){m=p;for(n=0;n<d;++n)l[n]=q[n];l.length=d}return m}
88
- function ze(a,b,c,d,e,f,g,h,l,m,n){n=n?n:[NaN,NaN];var p,q;p=0;for(q=c.length;p<q;++p){var u=c[p];m=ye(a,b,u,d,e,f,g,h,l,m,n);b=u}return m};function Ae(a,b){var c=0,d,e;d=0;for(e=b.length;d<e;++d)a[c++]=b[d];return c}function Be(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 Ce(a,b,c,d,e){e=e?e:[];var f=0,g,h;g=0;for(h=c.length;g<h;++g)b=Be(a,b,c[g],d),e[f++]=b;e.length=f;return e};function De(a,b,c,d,e){e=void 0!==e?e:[];for(var f=0;b<c;b+=d)e[f++]=a.slice(b,b+d);e.length=f;return e}function Ee(a,b,c,d,e){e=void 0!==e?e:[];var f=0,g,h;g=0;for(h=c.length;g<h;++g){var l=c[g];e[f++]=De(a,b,l,d,e[f]);b=l}e.length=f;return e};function Fe(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 l=Array(h);l[0]=1;l[h-1]=1;c=[b,c-d];for(var m=0,n;0<c.length;){var p=c.pop(),q=c.pop(),u=0,D=a[q],A=a[q+1],I=a[p],R=a[p+1];for(n=q+d;n<p;n+=d){var W;W=a[n];var ma=a[n+1],Ca=D,Da=A,Aa=I-Ca,v=R-Da;if(Aa||v){var na=((W-Ca)*Aa+(ma-Da)*v)/(Aa*Aa+v*v);1<na?(Ca=I,Da=R):0<na&&(Ca+=Aa*na,Da+=v*na)}W=wa(W,ma,Ca,Da);W>u&&(m=n,u=W)}u>e&&(l[(m-b)/d]=1,q+d<m&&c.push(q,m),m+d<p&&c.push(m,p))}for(n=0;n<h;++n)l[n]&&
89
- (f[g++]=a[b+n*d],f[g++]=a[b+n*d+1]);return g}
90
- function Ge(a,b,c,d,e,f,g,h){var l,m;l=0;for(m=c.length;l<m;++l){var n=c[l];a:{var p,q=a,u=n,D=d,A=e,I=f,R=g;if(b!=u){var W=A*Math.round(q[b]/A),ma=A*Math.round(q[b+1]/A);b+=D;I[R++]=W;I[R++]=ma;do if(p=A*Math.round(q[b]/A),g=A*Math.round(q[b+1]/A),b+=D,b==u){I[R++]=p;I[R++]=g;g=R;break a}while(p==W&&g==ma);for(;b<u;){var Ca,Da;Ca=A*Math.round(q[b]/A);Da=A*Math.round(q[b+1]/A);b+=D;if(Ca!=p||Da!=g){var Aa=p-W,v=g-ma,na=Ca-W,Ba=Da-ma;Aa*Ba==v*na&&(0>Aa&&na<Aa||Aa==na||0<Aa&&na>Aa)&&(0>v&&Ba<v||v==
91
- Ba||0<v&&Ba>v)||(I[R++]=p,I[R++]=g,W=p,ma=g);p=Ca;g=Da}}I[R++]=p;I[R++]=g}g=R}h.push(g);b=n}return g};function z(a,b){y.call(this);this.a=this.g=-1;this.aa(a,b)}t(z,y);k=z.prototype;k.clone=function(){var a=new z(null);re(a,this.V,this.l.slice());a.s();return a};k.Wa=function(a,b,c,d){if(d<Ka(this.D(),a,b))return d;this.a!=this.f&&(this.g=Math.sqrt(we(this.l,0,this.l.length,this.A,0)),this.a=this.f);return ye(this.l,0,this.l.length,this.A,this.g,!0,a,b,c,d)};k.Ci=function(){return te(this.l,0,this.l.length,this.A)};k.M=function(){return De(this.l,0,this.l.length,this.A)};
92
- k.Kb=function(a){var b=[];b.length=Fe(this.l,0,this.l.length,this.A,a,b,0);a=new z(null);re(a,"XY",b);a.s();return a};k.J=function(){return"LinearRing"};k.Aa=function(){};k.aa=function(a,b){a?(se(this,b,a,1),this.l||(this.l=[]),this.l.length=Be(this.l,0,a,this.A)):re(this,"XY",null);this.s()};function B(a,b){y.call(this);this.aa(a,b)}t(B,y);k=B.prototype;k.clone=function(){var a=new B(null);a.S(this.V,this.l.slice());return a};k.Wa=function(a,b,c,d){var e=this.l;a=wa(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};k.M=function(){return this.l?this.l.slice():[]};k.Gc=function(a){return Ta(this.l,a)};k.J=function(){return"Point"};k.Aa=function(a){return Ma(a,this.l[0],this.l[1])};
93
- k.aa=function(a,b){a?(se(this,b,a,0),this.l||(this.l=[]),this.l.length=Ae(this.l,a),this.s()):this.S("XY",null)};k.S=function(a,b){re(this,a,b);this.s()};function He(a,b,c,d,e){return!Xa(e,function(e){return!Ie(a,b,c,d,e[0],e[1])})}function Ie(a,b,c,d,e,f){for(var g=0,h=a[c-d],l=a[c-d+1];b<c;b+=d){var m=a[b],n=a[b+1];l<=f?n>f&&0<(m-h)*(f-l)-(e-h)*(n-l)&&g++:n<=f&&0>(m-h)*(f-l)-(e-h)*(n-l)&&g--;h=m;l=n}return!!g}function Je(a,b,c,d,e,f){if(!c.length||!Ie(a,b,c[0],d,e,f))return!1;var g;b=1;for(g=c.length;b<g;++b)if(Ie(a,c[b-1],c[b],d,e,f))return!1;return!0};function Ke(a,b,c,d,e,f,g){var h,l,m,n,p,q=e[f+1],u=[],D=c[0];m=a[D-d];p=a[D-d+1];for(h=b;h<D;h+=d){n=a[h];l=a[h+1];if(q<=p&&l<=q||p<=q&&q<=l)m=(q-p)/(l-p)*(n-m)+m,u.push(m);m=n;p=l}D=NaN;p=-Infinity;u.sort(ba);m=u[0];h=1;for(l=u.length;h<l;++h){n=u[h];var A=Math.abs(n-m);A>p&&(m=(m+n)/2,Je(a,b,c,d,m,q)&&(D=m,p=A));m=n}isNaN(D)&&(D=e[f]);return g?(g.push(D,q),g):[D,q]};function Le(a,b,c,d,e,f){for(var g=[a[b],a[b+1]],h=[],l;b+d<c;b+=d){h[0]=a[b+d];h[1]=a[b+d+1];if(l=e.call(f,g,h))return l;g[0]=h[0];g[1]=h[1]}return!1};function Me(a,b,c,d,e){var f=Wa(Ga(),a,b,c,d);return ib(e,f)?Oa(e,f)||f[0]>=e[0]&&f[2]<=e[2]||f[1]>=e[1]&&f[3]<=e[3]?!0:Le(a,b,c,d,function(a,b){var c=!1,d=Pa(e,a),f=Pa(e,b);if(1===d||1===f)c=!0;else{var g=e[0],h=e[1],u=e[2],D=e[3],A=b[0],I=b[1],R=(I-a[1])/(A-a[0]);f&2&&!(d&2)&&(c=A-(I-D)/R,c=c>=g&&c<=u);c||!(f&4)||d&4||(c=I-(A-u)*R,c=c>=h&&c<=D);c||!(f&8)||d&8||(c=A-(I-h)/R,c=c>=g&&c<=u);c||!(f&16)||d&16||(c=I-(A-g)*R,c=c>=h&&c<=D)}return c}):!1}
94
- function Ne(a,b,c,d,e){var f=c[0];if(!(Me(a,b,f,d,e)||Ie(a,b,f,d,e[0],e[1])||Ie(a,b,f,d,e[0],e[3])||Ie(a,b,f,d,e[2],e[1])||Ie(a,b,f,d,e[2],e[3])))return!1;if(1===c.length)return!0;b=1;for(f=c.length;b<f;++b)if(He(a,c[b-1],c[b],d,e))return!1;return!0};function Oe(a,b,c,d){for(var e=0,f=a[c-d],g=a[c-d+1];b<c;b+=d)var h=a[b],l=a[b+1],e=e+(h-f)*(l+g),f=h,g=l;return 0<e}function Pe(a,b,c,d){var e=0;d=void 0!==d?d:!1;var f,g;f=0;for(g=b.length;f<g;++f){var h=b[f],e=Oe(a,e,h,c);if(!f){if(d&&e||!d&&!e)return!1}else if(d&&!e||!d&&e)return!1;e=h}return!0}
95
- function Qe(a,b,c,d,e){e=void 0!==e?e:!1;var f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],l=Oe(a,b,h,d);if(f?e&&!l||!e&&l:e&&l||!e&&!l)for(var l=a,m=h,n=d;b<m-n;){var p;for(p=0;p<n;++p){var q=l[b+p];l[b+p]=l[m-n+p];l[m-n+p]=q}b+=n;m-=n}b=h}return b}function Re(a,b,c,d){var e=0,f,g;f=0;for(g=b.length;f<g;++f)e=Qe(a,e,b[f],c,d);return e};function C(a,b){y.call(this);this.a=[];this.v=-1;this.B=null;this.H=this.F=this.G=-1;this.g=null;this.aa(a,b)}t(C,y);k=C.prototype;k.Fg=function(a){this.l?da(this.l,a.l):this.l=a.l.slice();this.a.push(this.l.length);this.s()};k.clone=function(){var a=new C(null);a.S(this.V,this.l.slice(),this.a.slice());return a};k.Wa=function(a,b,c,d){if(d<Ka(this.D(),a,b))return d;this.F!=this.f&&(this.G=Math.sqrt(xe(this.l,0,this.a,this.A,0)),this.F=this.f);return ze(this.l,0,this.a,this.A,this.G,!0,a,b,c,d)};
96
- k.wb=function(a,b){return Je(Se(this),0,this.a,this.A,a,b)};k.Fi=function(){return ue(Se(this),0,this.a,this.A)};k.M=function(a){var b;void 0!==a?(b=Se(this).slice(),Qe(b,0,this.a,this.A,a)):b=this.l;return Ee(b,0,this.a,this.A)};k.cb=function(){return this.a};function Te(a){if(a.v!=a.f){var b=fb(a.D());a.B=Ke(Se(a),0,a.a,a.A,b,0);a.v=a.f}return a.B}k.Ug=function(){return new B(Te(this))};k.$g=function(){return this.a.length};
97
- k.mf=function(a){if(0>a||this.a.length<=a)return null;var b=new z(null);re(b,this.V,this.l.slice(a?this.a[a-1]:0,this.a[a]));b.s();return b};k.Pd=function(){var a=this.V,b=this.l,c=this.a,d=[],e=0,f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],l=new z(null),m=l;re(m,a,b.slice(e,h));m.s();d.push(l);e=h}return d};function Se(a){if(a.H!=a.f){var b=a.l;Pe(b,a.a,a.A)?a.g=b:(a.g=b.slice(),a.g.length=Qe(a.g,0,a.a,a.A));a.H=a.f}return a.g}
98
- k.Kb=function(a){var b=[],c=[];b.length=Ge(this.l,0,this.a,this.A,Math.sqrt(a),b,0,c);a=new C(null);a.S("XY",b,c);return a};k.J=function(){return"Polygon"};k.Aa=function(a){return Ne(Se(this),0,this.a,this.A,a)};k.aa=function(a,b){if(a){se(this,b,a,2);this.l||(this.l=[]);var c=Ce(this.l,0,a,this.A,this.a);this.l.length=c.length?c[c.length-1]:0;this.s()}else this.S("XY",null,this.a)};k.S=function(a,b,c){re(this,a,b);this.a=c;this.s()};
99
- function Ue(a){var b=a[0],c=a[1],d=a[2];a=a[3];b=[b,c,b,a,d,a,d,c,b,c];c=new C(null);c.S("XY",b,[b.length]);return c};function E(a){Ac.call(this);a=a||{};this.j=[0,0];this.c=[];this.xd=this.xd.bind(this);var b={};b.center=void 0!==a.center?a.center:null;this.B=Nb(a.projection);var c,d,e,f=void 0!==a.minZoom?a.minZoom:0;c=void 0!==a.maxZoom?a.maxZoom:28;var g=void 0!==a.zoomFactor?a.zoomFactor:2;if(void 0!==a.resolutions)c=a.resolutions,d=c[0],e=c[c.length-1],c=ae(c);else{d=Nb(a.projection);e=d.D();var h=(e?Math.max(db(e),eb(e)):360*tb.degrees/d.rb())/256/Math.pow(2,0),l=h/Math.pow(2,28);d=a.maxResolution;void 0!==
100
- d?f=0:d=h/Math.pow(g,f);e=a.minResolution;void 0===e&&(e=void 0!==a.maxZoom?void 0!==a.maxResolution?d/Math.pow(g,c):h/Math.pow(g,c):l);c=f+Math.floor(Math.log(d/e)/Math.log(g));e=d/Math.pow(g,c-f);c=be(g,d,c-f)}this.a=d;this.i=e;this.F=g;this.g=a.resolutions;this.o=f;(void 0!==a.enableRotation?a.enableRotation:1)?(f=a.constrainRotation,f=void 0===f||!0===f?fe():!1===f?de:"number"===typeof f?ee(f):de):f=ce;this.v=new Oc(void 0!==a.extent?kc(a.extent):lc,c,f);void 0!==a.resolution?b.resolution=a.resolution:
101
- void 0!==a.zoom&&(b.resolution=this.constrainResolution(this.a,a.zoom-this.o));b.rotation=void 0!==a.rotation?a.rotation:0;this.L(b)}t(E,Ac);k=E.prototype;
102
- k.animate=function(a){var b=Date.now(),c=this.na().slice(),d=this.Da(),e=this.Ha(),f=arguments.length,g;1<f&&"function"===typeof arguments[f-1]&&(g=arguments[f-1],--f);for(var h=[],l=0;l<f;++l){var m=arguments[l],n={start:b,complete:!1,anchor:m.anchor,duration:void 0!==m.duration?m.duration:1E3,easing:m.easing||Xc};m.center&&(n.ze=c,n.Be=m.center,c=n.Be);void 0!==m.zoom?(n.ud=d,n.vd=this.constrainResolution(this.a,m.zoom-this.o,0),d=n.vd):m.resolution&&(n.ud=d,n.vd=m.resolution,d=n.vd);void 0!==m.rotation&&
103
- (n.Ae=e,n.dg=m.rotation,e=n.dg);n.Fb=g;b+=n.duration;h.push(n)}this.c.push(h);Ve(this,0,1);this.xd()};function cd(a){Ve(a,0,-bd(a)[0]);for(var b=0,c=a.c.length;b<c;++b){var d=a.c[b];d[0].Fb&&d[0].Fb(!1)}a.c.length=0}
104
- k.xd=function(){void 0!==this.u&&(cancelAnimationFrame(this.u),this.u=void 0);if(0<bd(this)[0]){for(var a=Date.now(),b=!1,c=this.c.length-1;0<=c;--c){for(var d=this.c[c],e=!0,f=0,g=d.length;f<g;++f){var h=d[f];if(!h.complete){b=a-h.start;b=0<h.duration?b/h.duration:1;1<=b?(h.complete=!0,b=1):e=!1;b=h.easing(b);if(h.ze){var l=h.ze[0],m=h.ze[1];this.set("center",[l+b*(h.Be[0]-l),m+b*(h.Be[1]-m)])}h.ud&&(l=h.ud+b*(h.vd-h.ud),h.anchor&&this.set("center",We(this,l,h.anchor)),this.set("resolution",l));
105
- void 0!==h.Ae&&(b=h.Ae+b*(h.dg-h.Ae),h.anchor&&this.set("center",Xe(this,b,h.anchor)),this.set("rotation",b));b=!0;if(!h.complete)break}}e&&(this.c[c]=null,Ve(this,0,-1),(d=d[0].Fb)&&d(!0))}this.c=this.c.filter(Boolean);b&&void 0===this.u&&(this.u=requestAnimationFrame(this.xd))}};function Xe(a,b,c){var d,e=a.na();void 0!==e&&(d=[e[0]-c[0],e[1]-c[1]],je(d,b-a.Ha()),a=d,a[0]+=c[0],a[1]+=c[1]);return d}
106
- function We(a,b,c){var d,e=a.na();a=a.Da();void 0!==e&&void 0!==a&&(d=[c[0]-b*(c[0]-e[0])/a,c[1]-b*(c[1]-e[1])/a]);return d}function Ye(a){var b=[100,100];a='.ol-viewport[data-view="'+la(a)+'"]';if(a=document.querySelector(a))a=getComputedStyle(a),b[0]=parseInt(a.width,10),b[1]=parseInt(a.height,10);return b}k.ob=function(a){return this.v.center(a)};k.constrainResolution=function(a,b,c){return this.v.resolution(a,b||0,c||0)};k.constrainRotation=function(a,b){return this.v.rotation(a,b||0)};k.na=function(){return this.get("center")};
107
- function bd(a,b){return void 0!==b?(b[0]=a.j[0],b[1]=a.j[1],b):a.j.slice()}k.Ue=function(a){a=a||Ye(this);var b=this.na();qa(b,1);var c=this.Da();qa(void 0!==c,2);var d=this.Ha();qa(void 0!==d,3);return gb(b,c,d,a)};k.wi=function(){return this.a};k.xi=function(){return this.i};k.yi=function(){return this.B};k.Da=function(){return this.get("resolution")};k.zi=function(){return this.g};function Ze(a,b){return Math.max(db(a)/b[0],eb(a)/b[1])}
108
- function $e(a){var b=a.a,c=Math.log(b/a.i)/Math.log(2);return function(a){return b/Math.pow(2,a*c)}}k.Ha=function(){return this.get("rotation")};function af(a){var b=a.a,c=Math.log(b/a.i)/Math.log(2);return function(a){return Math.log(b/a)/Math.log(2)/c}}k.T=function(){var a=this.na(),b=this.B,c=this.Da(),d=this.Ha();return{center:a.slice(),projection:void 0!==b?b:null,resolution:c,rotation:d}};
109
- k.oh=function(){var a,b=this.Da();if(void 0!==b&&b>=this.i&&b<=this.a){a=this.o||0;var c,d;if(this.g){d=ca(this.g,b,1);a+=d;if(d==this.g.length-1)return a;c=this.g[d];d=c/this.g[d+1]}else c=this.a,d=this.F;a+=Math.log(c/b)/Math.log(d)}return a};
110
- k.Kg=function(a,b){var c=b||{},d=c.size;d||(d=Ye(this));var e;a instanceof y?"Circle"===a.J()?(a=a.D(),e=Ue(a),e.rotate(this.Ha(),fb(a))):e=a:(qa(Array.isArray(a),24),qa(!cb(a),25),e=Ue(a));var f=c.padding?c.padding:[0,0,0,0],g=void 0!==c.constrainResolution?c.constrainResolution:!0,h=void 0!==c.nearest?c.nearest:!1,l;void 0!==c.minResolution?l=c.minResolution:void 0!==c.maxZoom?l=this.constrainResolution(this.a,c.maxZoom-this.o,0):l=0;var m=e.l,n=this.Ha(),p=Math.cos(-n),n=Math.sin(-n),q=Infinity,
111
- u=Infinity,D=-Infinity,A=-Infinity;e=e.A;for(var I=0,R=m.length;I<R;I+=e)var W=m[I]*p-m[I+1]*n,ma=m[I]*n+m[I+1]*p,q=Math.min(q,W),u=Math.min(u,ma),D=Math.max(D,W),A=Math.max(A,ma);d=Ze([q,u,D,A],[d[0]-f[1]-f[3],d[1]-f[0]-f[2]]);d=isNaN(d)?l:Math.max(d,l);g&&(g=this.constrainResolution(d,0,0),!h&&g<d&&(g=this.constrainResolution(g,-1,0)),d=g);n=-n;h=(q+D)/2+(f[1]-f[3])/2*d;f=(u+A)/2+(f[0]-f[2])/2*d;p=[h*p-f*n,f*p+h*n];void 0!==c.duration?this.animate({resolution:d,center:p,duration:c.duration,easing:c.easing}):
112
- (this.Bb(d),this.Sa(p))};k.Jg=function(a,b,c){var d=this.Ha(),e=Math.cos(-d),d=Math.sin(-d),f=a[0]*e-a[1]*d;a=a[1]*e+a[0]*d;var g=this.Da(),f=f+(b[0]/2-c[0])*g;a+=(c[1]-b[1]/2)*g;d=-d;this.Sa([f*e-a*d,a*e+f*d])};k.rotate=function(a,b){if(void 0!==b){var c=Xe(this,a,b);this.Sa(c)}this.be(a)};k.Sa=function(a){this.set("center",a);0<bd(this)[0]&&cd(this)};function Ve(a,b,c){a.j[b]+=c;a.s()}k.Bb=function(a){this.set("resolution",a);0<bd(this)[0]&&cd(this)};
113
- k.be=function(a){this.set("rotation",a);0<bd(this)[0]&&cd(this)};k.bk=function(a){a=this.constrainResolution(this.a,a-this.o,0);this.Bb(a)};function bf(){this.b=[];this.f=this.a=0};function cf(a){Ac.call(this);this.u=null;this.xb(!0);this.handleEvent=a.handleEvent}t(cf,Ac);cf.prototype.F=function(){return this.get("active")};cf.prototype.ha=function(){return this.u};cf.prototype.xb=function(a){this.set("active",a)};cf.prototype.setMap=function(a){this.u=a};function df(a,b,c,d){if(void 0!==b){var e=a.Ha(),f=a.na();void 0!==e&&f&&0<d?a.animate({rotation:b,anchor:c,duration:d,easing:Wc}):a.rotate(b,c)}}
114
- function ef(a,b,c,d){var e=a.Da();b=a.constrainResolution(e,b,0);if(c&&void 0!==b&&b!==e){var f=a.na();c=We(a,b,c);c=a.ob(c);c=[(b*f[0]-e*c[0])/(b-e),(b*f[1]-e*c[1])/(b-e)]}ff(a,b,c,d)}function ff(a,b,c,d){if(b){var e=a.Da(),f=a.na();void 0!==e&&f&&b!==e&&d?a.animate({resolution:b,anchor:c,duration:d,easing:Wc}):(c&&(c=We(a,b,c),a.Sa(c)),a.Bb(b))}};function gf(a){a=a?a:{};this.a=a.delta?a.delta:1;cf.call(this,{handleEvent:hf});this.c=void 0!==a.duration?a.duration:250}t(gf,cf);function hf(a){var b=!1,c=a.originalEvent;if("dblclick"==a.type){var b=a.coordinate,c=c.shiftKey?-this.a:this.a,d=a.map.$();ef(d,c,b,this.c);a.preventDefault();b=!0}return!b};function jf(a){a=a.originalEvent;return a.altKey&&!(a.metaKey||a.ctrlKey)&&a.shiftKey}function kf(a){a=a.originalEvent;return!a.button&&!(ld&&md&&a.ctrlKey)}function lf(a){return"pointermove"==a.type}function mf(a){return"singleclick"==a.type}function nf(a){a=a.originalEvent;return!a.altKey&&!(a.metaKey||a.ctrlKey)&&!a.shiftKey}function of(a){a=a.originalEvent;return!a.altKey&&!(a.metaKey||a.ctrlKey)&&a.shiftKey}
115
- function pf(a){a=a.originalEvent.target.tagName;return"INPUT"!==a&&"SELECT"!==a&&"TEXTAREA"!==a}function qf(a){qa(a.b,56);return"mouse"==a.b.pointerType}function rf(a){a=a.b;return a.isPrimary&&0===a.button};function sf(a){a=a?a:{};cf.call(this,{handleEvent:a.handleEvent?a.handleEvent:tf});this.zd=a.handleDownEvent?a.handleDownEvent:ne;this.Ad=a.handleDragEvent?a.handleDragEvent:ja;this.Bd=a.handleMoveEvent?a.handleMoveEvent:ja;this.yd=a.handleUpEvent?a.handleUpEvent:ne;this.G=!1;this.ja={};this.i=[]}t(sf,cf);function uf(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]}
116
- function tf(a){if(!(a instanceof hd))return!0;var b=!1,c=a.type;if("pointerdown"===c||"pointerdrag"===c||"pointerup"===c)c=a.b,"pointerup"==a.type?delete this.ja[c.pointerId]:"pointerdown"==a.type?this.ja[c.pointerId]=c:c.pointerId in this.ja&&(this.ja[c.pointerId]=c),this.i=ob(this.ja);this.G?"pointerdrag"==a.type?this.Ad(a):"pointerup"==a.type&&(this.G=this.yd(a)&&0<this.i.length):"pointerdown"==a.type?(this.G=a=this.zd(a),b=this.Yb(a)):"pointermove"==a.type&&this.Bd(a);return!b}
117
- sf.prototype.Yb=function(a){return a};function vf(a){sf.call(this,{handleDownEvent:wf,handleDragEvent:xf,handleUpEvent:yf});a=a?a:{};this.a=a.kinetic;this.c=null;this.j=a.condition?a.condition:nf;this.g=!1}t(vf,sf);function xf(a){var b=uf(this.i);this.a&&this.a.b.push(b[0],b[1],Date.now());if(this.c){var c=this.c[0]-b[0],d=b[1]-this.c[1];a=a.map.$();var e=a.T(),d=c=[c,d],f=e.resolution;d[0]*=f;d[1]*=f;je(c,e.rotation);d=c;e=e.center;d[0]+=e[0];d[1]+=e[1];c=a.ob(c);a.Sa(c)}this.c=b}
118
- function yf(a){var b=a.map;a=b.$();if(this.i.length)return this.a&&(a=this.a,a.b.length=0,a.a=0,a.f=0),this.c=null,!0;var c;if(c=!this.g&&this.a)if(c=this.a,6>c.b.length)c=!1;else{var d=Date.now()-100,e=c.b.length-3;if(c.b[e+2]<d)c=!1;else{for(var f=e-3;0<f&&c.b[f+2]>d;)f-=3;var d=c.b[e+2]-c.b[f+2],g=c.b[e]-c.b[f],e=c.b[e+1]-c.b[f+1];c.a=Math.atan2(e,g);c.f=Math.sqrt(g*g+e*e)/d;c=.05<c.f}}c&&(c=(.05-this.a.f)/-.005,e=this.a.a,f=a.na(),f=b.$a(f),b=b.Xa([f[0]-c*Math.cos(e),f[1]-c*Math.sin(e)]),a.animate({center:a.ob(b),
119
- duration:500,easing:Wc}));Ve(a,1,-1);return!1}function wf(a){if(0<this.i.length&&this.j(a)){var b=a.map.$();this.c=null;this.G||Ve(b,1,1);bd(b)[0]&&b.Sa(a.frameState.viewState.center);this.a&&(a=this.a,a.b.length=0,a.a=0,a.f=0);this.g=1<this.i.length;return!0}return!1}vf.prototype.Yb=ne;function zf(a){a=a?a:{};sf.call(this,{handleDownEvent:Af,handleDragEvent:Bf,handleUpEvent:Cf});this.c=a.condition?a.condition:jf;this.a=void 0;this.g=void 0!==a.duration?a.duration:250}t(zf,sf);function Bf(a){if(qf(a)){var b=a.map,c=b.Nb();a=a.pixel;c=Math.atan2(c[1]/2-a[1],a[0]-c[0]/2);if(void 0!==this.a){a=c-this.a;var b=b.$(),d=b.Ha();df(b,d-a)}this.a=c}}function Cf(a){if(!qf(a))return!0;a=a.map.$();Ve(a,1,-1);var b=a.Ha(),c=this.g,b=a.constrainRotation(b,0);df(a,b,void 0,c);return!1}
120
- function Af(a){return qf(a)&&kf(a)&&this.c(a)?(Ve(a.map.$(),1,1),this.a=void 0,!0):!1}zf.prototype.Yb=ne;function Df(a){this.qb=null;this.f=document.createElement("div");this.f.style.position="absolute";this.f.className="ol-box "+a;this.a=this.c=this.b=null}t(Df,tc);Df.prototype.ra=function(){this.setMap(null)};function Ef(a){var b=a.c,c=a.a;a=a.f.style;a.left=Math.min(b[0],c[0])+"px";a.top=Math.min(b[1],c[1])+"px";a.width=Math.abs(c[0]-b[0])+"px";a.height=Math.abs(c[1]-b[1])+"px"}
121
- Df.prototype.setMap=function(a){if(this.b){this.b.F.removeChild(this.f);var b=this.f.style;b.left=b.top=b.width=b.height="inherit"}(this.b=a)&&this.b.F.appendChild(this.f)};function Ff(a){var b=a.c,c=a.a,b=[b,[b[0],c[1]],c,[c[0],b[1]]].map(a.b.Xa,a.b);b[4]=b[0].slice();a.qb?a.qb.aa([b]):a.qb=new C([b])}Df.prototype.N=function(){return this.qb};function Gf(a){sf.call(this,{handleDownEvent:Hf,handleDragEvent:If,handleUpEvent:Jf});a=a?a:{};this.a=new Df(a.className||"ol-dragbox");this.c=null;this.o=a.condition?a.condition:me;this.j=a.boxEndCondition?a.boxEndCondition:Kf}t(Gf,sf);function Kf(a,b,c){a=c[0]-b[0];b=c[1]-b[1];return 64<=a*a+b*b}function If(a){if(qf(a)){var b=this.a,c=a.pixel;b.c=this.c;b.a=c;Ff(b);Ef(b);this.b(new Lf(Mf,a.coordinate,a))}}Gf.prototype.N=function(){return this.a.N()};Gf.prototype.g=ja;
122
- function Jf(a){if(!qf(a))return!0;this.a.setMap(null);this.j(a,this.c,a.pixel)&&(this.g(a),this.b(new Lf(Nf,a.coordinate,a)));return!1}function Hf(a){if(qf(a)&&kf(a)&&this.o(a)){this.c=a.pixel;this.a.setMap(a.map);var b=this.a,c=this.c;b.c=this.c;b.a=c;Ff(b);Ef(b);this.b(new Lf(Of,a.coordinate,a));return!0}return!1}var Of="boxstart",Mf="boxdrag",Nf="boxend";function Lf(a,b,c){vc.call(this,a);this.coordinate=b;this.mapBrowserEvent=c}t(Lf,vc);function Pf(a){a=a?a:{};var b=a.condition?a.condition:of;this.v=void 0!==a.duration?a.duration:200;this.B=void 0!==a.out?a.out:!1;Gf.call(this,{condition:b,className:a.className||"ol-dragzoom"})}t(Pf,Gf);
123
- Pf.prototype.g=function(){var a=this.u,b=a.$(),c=a.Nb(),d=this.N().D();if(this.B){var e=b.Ue(c),d=[a.$a(Ya(d)),a.$a($a(d))],a=Sa(void 0),f,g;f=0;for(g=d.length;f<g;++f)Ha(a,d[f]);jb(e,1/Ze(a,c));d=e}c=b.constrainResolution(Ze(d,c));e=fb(d);e=b.ob(e);b.animate({resolution:c,center:e,duration:this.v,easing:Wc})};function Qf(a){cf.call(this,{handleEvent:Rf});a=a||{};this.a=function(a){return nf(a)&&pf(a)};this.c=a.condition?a.condition:this.a;this.i=void 0!==a.duration?a.duration:100;this.g=void 0!==a.pixelDelta?a.pixelDelta:128}t(Qf,cf);
124
- function Rf(a){var b=!1;if("keydown"==a.type){var c=a.originalEvent.keyCode;if(this.c(a)&&(40==c||37==c||39==c||38==c)){var b=a.map.$(),d=b.Da()*this.g,e=0,f=0;40==c?f=-d:37==c?e=-d:39==c?e=d:f=d;d=[e,f];je(d,b.Ha());c=this.i;if(e=b.na())d=b.ob([e[0]+d[0],e[1]+d[1]]),c?b.animate({duration:c,easing:Yc,center:d}):b.Sa(d);a.preventDefault();b=!0}}return!b};function Sf(a){cf.call(this,{handleEvent:Tf});a=a?a:{};this.c=a.condition?a.condition:pf;this.a=a.delta?a.delta:1;this.i=void 0!==a.duration?a.duration:100}t(Sf,cf);function Tf(a){var b=!1;if("keydown"==a.type||"keypress"==a.type){var c=a.originalEvent.charCode;!this.c(a)||43!=c&&45!=c||(b=43==c?this.a:-this.a,c=a.map.$(),ef(c,b,void 0,this.i),a.preventDefault(),b=!0)}return!b};function Uf(a){cf.call(this,{handleEvent:Vf});a=a||{};this.i=0;this.G=void 0!==a.duration?a.duration:250;this.H=void 0!==a.timeout?a.timeout:80;this.K=void 0!==a.useAnchor?a.useAnchor:!0;this.a=null;this.j=this.g=this.o=this.c=void 0}t(Uf,cf);
125
- function Vf(a){var b=a.type;if("wheel"!==b&&"mousewheel"!==b)return!0;a.preventDefault();var b=a.map,c=a.originalEvent;this.K&&(this.a=a.coordinate);var d;"wheel"==a.type?(d=c.deltaY,jd&&c.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(d/=nd),c.deltaMode===WheelEvent.DOM_DELTA_LINE&&(d*=40)):"mousewheel"==a.type&&(d=-c.wheelDeltaY,kd&&(d/=3));if(0===d)return!1;a=Date.now();void 0===this.c&&(this.c=a);if(!this.g||400<a-this.c)this.g=4>Math.abs(d)?Wf:Xf;if(this.g===Wf){b=b.$();this.j?clearTimeout(this.j):
126
- Ve(b,1,1);this.j=setTimeout(this.v.bind(this),400);d=b.Da()*Math.pow(2,d/300);var c=b.i,e=b.a,f=0;d<c?(d=Math.max(d,c/1.5),f=1):d>e&&(d=Math.min(d,1.5*e),f=-1);if(this.a){var g=We(b,d,this.a);b.Sa(b.ob(g))}b.Bb(d);0<f?b.animate({resolution:c,easing:Wc,anchor:this.a,duration:500}):0>f&&b.animate({resolution:e,easing:Wc,anchor:this.a,duration:500});this.c=a;return!1}this.i+=d;a=Math.max(this.H-(a-this.c),0);clearTimeout(this.o);this.o=setTimeout(this.B.bind(this,b),a);return!1}
127
- Uf.prototype.v=function(){this.j=void 0;Ve(this.u.$(),1,-1)};Uf.prototype.B=function(a){a=a.$();0<bd(a)[0]&&cd(a);ef(a,-ua(this.i,-1,1),this.a,this.G);this.g=void 0;this.i=0;this.a=null;this.o=this.c=void 0};var Wf="trackpad",Xf="wheel";function Yf(a){sf.call(this,{handleDownEvent:Zf,handleDragEvent:$f,handleUpEvent:ag});a=a||{};this.c=null;this.g=void 0;this.a=!1;this.j=0;this.v=void 0!==a.threshold?a.threshold:.3;this.o=void 0!==a.duration?a.duration:250}t(Yf,sf);
128
- function $f(a){var b=0,c=this.i[0],d=this.i[1],c=Math.atan2(d.clientY-c.clientY,d.clientX-c.clientX);void 0!==this.g&&(b=c-this.g,this.j+=b,!this.a&&Math.abs(this.j)>this.v&&(this.a=!0));this.g=c;a=a.map;c=a.a.getBoundingClientRect();d=uf(this.i);d[0]-=c.left;d[1]-=c.top;this.c=a.Xa(d);this.a&&(c=a.$(),d=c.Ha(),a.render(),df(c,d+b,this.c))}function ag(a){if(2>this.i.length){a=a.map.$();Ve(a,1,-1);if(this.a){var b=a.Ha(),c=this.c,d=this.o,b=a.constrainRotation(b,0);df(a,b,c,d)}return!1}return!0}
129
- function Zf(a){return 2<=this.i.length?(a=a.map,this.c=null,this.g=void 0,this.a=!1,this.j=0,this.G||Ve(a.$(),1,1),!0):!1}Yf.prototype.Yb=ne;function bg(a){sf.call(this,{handleDownEvent:cg,handleDragEvent:dg,handleUpEvent:eg});a=a?a:{};this.j=a.constrainResolution||!1;this.c=null;this.o=void 0!==a.duration?a.duration:400;this.a=void 0;this.g=1}t(bg,sf);
130
- function dg(a){var b=1,c=this.i[0],d=this.i[1],e=c.clientX-d.clientX,c=c.clientY-d.clientY,e=Math.sqrt(e*e+c*c);void 0!==this.a&&(b=this.a/e);this.a=e;a=a.map;var e=a.$(),d=e.Da(),f=e.a,g=e.i,c=d*b;c>f?(b=f/d,c=f):c<g&&(b=g/d,c=g);1!=b&&(this.g=b);b=a.a.getBoundingClientRect();d=uf(this.i);d[0]-=b.left;d[1]-=b.top;this.c=a.Xa(d);a.render();ff(e,c,this.c)}
131
- function eg(a){if(2>this.i.length){a=a.map.$();Ve(a,1,-1);var b=a.Da();if(this.j||b<a.i||b>a.a){var c=this.c,d=this.o,b=a.constrainResolution(b,0,this.g-1);ff(a,b,c,d)}return!1}return!0}function cg(a){return 2<=this.i.length?(a=a.map,this.c=null,this.a=void 0,this.g=1,this.G||Ve(a.$(),1,1),!0):!1}bg.prototype.Yb=ne;function fg(a){a=a?a:{};var b=new x,c=new bf;(void 0!==a.altShiftDragRotate?a.altShiftDragRotate:1)&&b.push(new zf);(void 0!==a.doubleClickZoom?a.doubleClickZoom:1)&&b.push(new gf({delta:a.zoomDelta,duration:a.zoomDuration}));(void 0!==a.dragPan?a.dragPan:1)&&b.push(new vf({kinetic:c}));(void 0!==a.pinchRotate?a.pinchRotate:1)&&b.push(new Yf);(void 0!==a.pinchZoom?a.pinchZoom:1)&&b.push(new bg({duration:a.zoomDuration}));if(void 0!==a.keyboard?a.keyboard:1)b.push(new Qf),b.push(new Sf({delta:a.zoomDelta,
132
- duration:a.zoomDuration}));(void 0!==a.mouseWheelZoom?a.mouseWheelZoom:1)&&b.push(new Uf({duration:a.zoomDuration}));(void 0!==a.shiftDragZoom?a.shiftDragZoom:1)&&b.push(new Pf({duration:a.zoomDuration}));return b};function gg(a){Ac.call(this);var b=mb({},a);b.opacity=void 0!==a.opacity?a.opacity:1;b.visible=void 0!==a.visible?a.visible:!0;b.zIndex=void 0!==a.zIndex?a.zIndex:0;b.maxResolution=void 0!==a.maxResolution?a.maxResolution:Infinity;b.minResolution=void 0!==a.minResolution?a.minResolution:0;this.L(b);this.a={layer:this,$d:!0}}t(gg,Ac);
133
- function hg(a){a.a.opacity=ua(a.tc(),0,1);a.a.dk=a.Sd();a.a.visible=a.tb();a.a.extent=a.D();a.a.zIndex=a.ta();a.a.maxResolution=a.rc();a.a.minResolution=Math.max(a.sc(),0);return a.a}k=gg.prototype;k.D=function(){return this.get("extent")};k.rc=function(){return this.get("maxResolution")};k.sc=function(){return this.get("minResolution")};k.tc=function(){return this.get("opacity")};k.tb=function(){return this.get("visible")};k.ta=function(){return this.get("zIndex")};
134
- k.Zc=function(a){this.set("extent",a)};k.pd=function(a){this.set("maxResolution",a)};k.qd=function(a){this.set("minResolution",a)};k.$c=function(a){this.set("opacity",a)};k.ad=function(a){this.set("visible",a)};k.Xb=function(a){this.set("zIndex",a)};function ig(a){var b=a||{};a=mb({},b);delete a.layers;b=b.layers;gg.call(this,a);this.i=[];this.c={};w(this,Cc(jg),this.Bh,this);b?Array.isArray(b)?b=new x(b.slice()):qa(b instanceof x,43):b=new x;this.Hf(b)}t(ig,gg);k=ig.prototype;k.Hc=function(){};k.Uc=function(){this.tb()&&this.s()};
135
- k.Bh=function(){this.i.forEach(nc);this.i.length=0;var a=this.Ob();this.i.push(w(a,"add",this.Ah,this),w(a,"remove",this.Ch,this));for(var b in this.c)this.c[b].forEach(nc);nb(this.c);var a=a.a,c,d;b=0;for(c=a.length;b<c;b++)d=a[b],this.c[la(d).toString()]=[w(d,"propertychange",this.Uc,this),w(d,"change",this.Uc,this)];this.s()};k.Ah=function(a){a=a.element;var b=la(a).toString();this.c[b]=[w(a,"propertychange",this.Uc,this),w(a,"change",this.Uc,this)];this.s()};
136
- k.Ch=function(a){a=la(a.element).toString();this.c[a].forEach(nc);delete this.c[a];this.s()};k.Ob=function(){return this.get(jg)};k.Hf=function(a){this.set(jg,a)};
137
- k.Od=function(a){var b=void 0!==a?a:[],c=b.length;this.Ob().forEach(function(a){a.Od(b)});a=hg(this);var d,e;for(d=b.length;c<d;c++)e=b[c],e.opacity*=a.opacity,e.visible=e.visible&&a.visible,e.maxResolution=Math.min(e.maxResolution,a.maxResolution),e.minResolution=Math.max(e.minResolution,a.minResolution),void 0!==a.extent&&(e.extent=void 0!==e.extent?hb(e.extent,a.extent):a.extent);return b};k.Sd=function(){return"ready"};var jg="layers";function kg(a){vb.call(this,{code:a,units:"m",extent:lg,global:!0,worldExtent:mg,getPointResolution:function(a,c){return a/va(c[1]/6378137)}})}t(kg,vb);var ng=6378137*Math.PI,lg=[-ng,-ng,ng,ng],mg=[-180,-85,180,85],Hb="EPSG:3857 EPSG:102100 EPSG:102113 EPSG:900913 urn:ogc:def:crs:EPSG:6.18:3:3857 urn:ogc:def:crs:EPSG::3857 http://www.opengis.net/gml/srs/epsg.xml#3857".split(" ").map(function(a){return new kg(a)});
138
- function Jb(a,b,c){var d=a.length;c=1<c?c:2;void 0===b&&(2<c?b=a.slice():b=Array(d));for(var e=0;e<d;e+=c){b[e]=ng*a[e]/180;var f=6378137*Math.log(Math.tan(Math.PI*(a[e+1]+90)/360));f>ng?f=ng:f<-ng&&(f=-ng);b[e+1]=f}return b}function Kb(a,b,c){var d=a.length;c=1<c?c:2;void 0===b&&(2<c?b=a.slice():b=Array(d));for(var e=0;e<d;e+=c)b[e]=180*a[e]/ng,b[e+1]=360*Math.atan(Math.exp(a[e+1]/6378137))/Math.PI-90;return b};var og=new qb(6378137);function pg(a,b){vb.call(this,{code:a,units:"degrees",extent:qg,axisOrientation:b,global:!0,metersPerUnit:rg,worldExtent:qg})}t(pg,vb);var qg=[-180,-90,180,90],rg=Math.PI*og.radius/180,Lb=[new pg("CRS:84"),new pg("EPSG:4326","neu"),new pg("urn:ogc:def:crs:EPSG::4326","neu"),new pg("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new pg("urn:ogc:def:crs:OGC:1.3:CRS84"),new pg("urn:ogc:def:crs:OGC:2:84"),new pg("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new pg("urn:x-ogc:def:crs:EPSG:4326","neu")];function sg(){Db(Hb);Db(Lb);Gb()};function tg(a){var b=mb({},a);delete b.source;gg.call(this,b);this.g=this.i=this.c=null;a.map&&this.setMap(a.map);w(this,Cc("source"),this.Kh,this);this.sd(a.source?a.source:null)}t(tg,gg);k=tg.prototype;k.Od=function(a){a=a?a:[];a.push(hg(this));return a};k.la=function(){return this.get("source")||null};k.Sd=function(){var a=this.la();return a?a.T():"undefined"};k.Vi=function(){this.s()};k.Kh=function(){this.g&&(nc(this.g),this.g=null);var a=this.la();a&&(this.g=w(a,"change",this.Vi,this));this.s()};
139
- k.setMap=function(a){this.c&&(nc(this.c),this.c=null);a||this.s();this.i&&(nc(this.i),this.i=null);a&&(this.c=w(a,"precompose",function(a){var b=hg(this);b.$d=!1;b.zIndex=Infinity;a.frameState.layerStatesArray.push(b);a.frameState.layerStates[la(this)]=b},this),this.i=w(this,"change",a.render,a),this.s())};k.sd=function(a){this.set("source",a)};function ug(){this.b={};this.f=0}ug.prototype.clear=function(){this.b={};this.f=0};ug.prototype.get=function(a,b,c){a=b+":"+a+":"+(c?Kc(c):"null");return a in this.b?this.b[a]:null};ug.prototype.set=function(a,b,c,d){this.b[b+":"+a+":"+(c?Kc(c):"null")]=d;++this.f};var vg=new ug;function wg(){return[1,0,0,1,0,0]}function xg(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];return a}function yg(a,b){var c=b[0],d=b[1];b[0]=a[0]*c+a[2]*d+a[4];b[1]=a[1]*c+a[3]*d+a[5];return b}function zg(a,b,c,d,e,f,g,h){var l=Math.sin(f);f=Math.cos(f);a[0]=d*f;a[1]=e*l;a[2]=-d*l;a[3]=e*f;a[4]=g*d*f-h*d*l+b;a[5]=g*e*l+h*e*f+c;return a};function Ag(a,b){this.g=b;this.f={};this.c={}}t(Ag,tc);k=Ag.prototype;k.ra=function(){for(var a in this.f)uc(this.f[a])};function Bg(){if(32<vg.f){var a=0,b,c;for(b in vg.b)c=vg.b[b],a++&3||yc(c)||(delete vg.b[b],--vg.f)}}
140
- k.Ka=function(a,b,c,d,e,f,g){function h(a,c){var f=la(a).toString(),g=b.layerStates[la(c)].$d;if(!(f in b.skippedFeatureUids)||g)return d.call(e,a,g?c:null)}var l,m=b.viewState,n=m.resolution,p=m.projection,m=a;if(p.b){var p=p.D(),q=db(p),u=a[0];if(u<p[0]||u>p[2])m=[u+q*Math.ceil((p[0]-u)/q),a[1]]}p=b.layerStatesArray;for(q=p.length-1;0<=q;--q){var D=p[q],u=D.layer;if(D.visible&&n>=D.minResolution&&n<D.maxResolution&&f.call(g,u)&&(D=Cg(this,u),u.la()&&(l=D.Ka(u.la().B?m:a,b,c,h,e)),l))return l}};
141
- function Cg(a,b){var c=la(b).toString();if(c in a.f)return a.f[c];var d=b.Hc(a);a.f[c]=d;a.c[c]=w(d,"change",a.zh,a);return d}k.zh=function(){this.g.render()};k.Wf=ja;k.Gj=function(a,b){for(var c in this.f)if(!(b&&c in b.layerStates)){var d=c,e=this.f[d];delete this.f[d];nc(this.c[d]);delete this.c[d];uc(e)}};function ha(a,b){return a.zIndex-b.zIndex};function Dg(a,b,c,d,e){vc.call(this,a);this.vectorContext=b;this.frameState=c;this.context=d;this.glContext=e}t(Dg,vc);var Eg=[0,0,0,1],Fg=[],Gg=[0,0,0,1];function Hg(a,b,c,d){b&&(a.translate(c,d),a.rotate(b),a.translate(-c,-d))};function Ig(){}k=Ig.prototype;k.Ic=function(){};k.ee=function(){};k.mc=function(){};k.Xe=function(){};k.Ye=function(){};k.Jc=function(){};k.Kc=function(){};k.Lc=function(){};k.Mc=function(){};k.Nc=function(){};k.Oc=function(){};k.lb=function(){};k.hb=function(){};k.wc=function(){};k.ab=function(){};function Jg(a,b,c,d,e){this.a=a;this.v=b;this.c=c;this.B=d;this.Va=e;this.I=this.b=this.f=this.ja=this.Ma=this.K=null;this.Ua=this.ha=this.o=this.ma=this.G=this.F=0;this.ia=!1;this.i=this.ua=0;this.wa=!1;this.qa=0;this.pa="";this.Ea=this.ac=0;this.Fa=!1;this.j=this.Ia=0;this.H=this.C=this.g=null;this.u=[];this.Ja=wg()}t(Jg,Ig);
142
- function Kg(a,b,c){if(a.I){b=pe(b,0,c,2,a.B,a.u);c=a.a;var d=a.Ja,e=c.globalAlpha;1!=a.o&&(c.globalAlpha=e*a.o);var f=a.ua;a.ia&&(f+=a.Va);var g,h;g=0;for(h=b.length;g<h;g+=2){var l=b[g]-a.F,m=b[g+1]-a.G;a.wa&&(l=Math.round(l),m=Math.round(m));if(f||1!=a.i){var n=l+a.F,p=m+a.G;zg(d,n,p,a.i,a.i,f,-n,-p);c.setTransform.apply(c,d)}c.drawImage(a.I,a.ha,a.Ua,a.qa,a.ma,l,m,a.qa,a.ma)}(f||1!=a.i)&&c.setTransform(1,0,0,1,0,0);1!=a.o&&(c.globalAlpha=e)}}
143
- function Lg(a,b,c,d){var e=0;if(a.H&&""!==a.pa){a.g&&Mg(a,a.g);a.C&&Ng(a,a.C);var f=a.H,g=a.a,h=a.ja;h?(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)):(g.font=f.font,g.textAlign=f.textAlign,g.textBaseline=f.textBaseline,a.ja={font:f.font,textAlign:f.textAlign,textBaseline:f.textBaseline});b=pe(b,e,c,d,a.B,a.u);f=a.a;g=a.Ia;for(a.Fa&&(g+=a.Va);e<c;e+=d){var h=b[e]+
144
- a.ac,l=b[e+1]+a.Ea;if(g||1!=a.j){var m=zg(a.Ja,h,l,a.j,a.j,g,-h,-l);f.setTransform.apply(f,m)}a.C&&f.strokeText(a.pa,h,l);a.g&&f.fillText(a.pa,h,l)}(g||1!=a.j)&&f.setTransform(1,0,0,1,0,0)}}function Og(a,b,c,d,e,f){var g=a.a;a=pe(b,c,d,e,a.B,a.u);g.moveTo(a[0],a[1]);b=a.length;f&&(b-=2);for(c=2;c<b;c+=2)g.lineTo(a[c],a[c+1]);f&&g.closePath();return d}function Pg(a,b,c,d,e){var f,g;f=0;for(g=d.length;f<g;++f)c=Og(a,b,c,d[f],e,!0);return c}k=Jg.prototype;
145
- k.mc=function(a){if(ib(this.c,a.D())){if(this.f||this.b){this.f&&Mg(this,this.f);this.b&&Ng(this,this.b);var b;b=this.B;var c=this.u,d=a.l;b=d?pe(d,0,d.length,a.A,b,c):null;c=b[2]-b[0];d=b[3]-b[1];c=Math.sqrt(c*c+d*d);d=this.a;d.beginPath();d.arc(b[0],b[1],c,0,2*Math.PI);this.f&&d.fill();this.b&&d.stroke()}""!==this.pa&&Lg(this,a.na(),2,2)}};k.ee=function(a){this.hb(a.sa(),a.oa());this.wc(a.W());this.ab(a.xa())};
146
- k.Ic=function(a){switch(a.J()){case "Point":this.Nc(a);break;case "LineString":this.Jc(a);break;case "Polygon":this.Oc(a);break;case "MultiPoint":this.Lc(a);break;case "MultiLineString":this.Kc(a);break;case "MultiPolygon":this.Mc(a);break;case "GeometryCollection":this.Ye(a);break;case "Circle":this.mc(a)}};k.Xe=function(a,b){var c=(0,b.Ca)(a);c&&ib(this.c,c.D())&&(this.ee(b),this.Ic(c))};k.Ye=function(a){a=a.a;var b,c;b=0;for(c=a.length;b<c;++b)this.Ic(a[b])};
147
- k.Nc=function(a){var b=a.l;a=a.A;this.I&&Kg(this,b,b.length);""!==this.pa&&Lg(this,b,b.length,a)};k.Lc=function(a){var b=a.l;a=a.A;this.I&&Kg(this,b,b.length);""!==this.pa&&Lg(this,b,b.length,a)};k.Jc=function(a){if(ib(this.c,a.D())){if(this.b){Ng(this,this.b);var b=this.a,c=a.l;b.beginPath();Og(this,c,0,c.length,a.A,!1);b.stroke()}""!==this.pa&&(a=Qg(a),Lg(this,a,2,2))}};
148
- k.Kc=function(a){var b=a.D();if(ib(this.c,b)){if(this.b){Ng(this,this.b);var b=this.a,c=a.l,d=0,e=a.cb(),f=a.A;b.beginPath();var g,h;g=0;for(h=e.length;g<h;++g)d=Og(this,c,d,e[g],f,!1);b.stroke()}""!==this.pa&&(a=Rg(a),Lg(this,a,a.length,2))}};k.Oc=function(a){if(ib(this.c,a.D())){if(this.b||this.f){this.f&&Mg(this,this.f);this.b&&Ng(this,this.b);var b=this.a;b.beginPath();Pg(this,Se(a),0,a.cb(),a.A);this.f&&b.fill();this.b&&b.stroke()}""!==this.pa&&(a=Te(a),Lg(this,a,2,2))}};
149
- k.Mc=function(a){if(ib(this.c,a.D())){if(this.b||this.f){this.f&&Mg(this,this.f);this.b&&Ng(this,this.b);var b=this.a,c=Sg(a),d=0,e=a.a,f=a.A,g,h;b.beginPath();g=0;for(h=e.length;g<h;++g)d=Pg(this,c,d,e[g],f);this.f&&b.fill();this.b&&b.stroke()}""!==this.pa&&(a=Tg(a),Lg(this,a,a.length,2))}};function Mg(a,b){var c=a.a,d=a.K;d?d.fillStyle!=b.fillStyle&&(d.fillStyle=c.fillStyle=b.fillStyle):(c.fillStyle=b.fillStyle,a.K={fillStyle:b.fillStyle})}
150
- function Ng(a,b){var c=a.a,d=a.Ma;d?(d.lineCap!=b.lineCap&&(d.lineCap=c.lineCap=b.lineCap),od&&!fa(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)):(c.lineCap=b.lineCap,od&&c.setLineDash(b.lineDash),c.lineJoin=b.lineJoin,c.lineWidth=
151
- b.lineWidth,c.miterLimit=b.miterLimit,c.strokeStyle=b.strokeStyle,a.Ma={lineCap:b.lineCap,lineDash:b.lineDash,lineJoin:b.lineJoin,lineWidth:b.lineWidth,miterLimit:b.miterLimit,strokeStyle:b.strokeStyle})}
152
- k.hb=function(a,b){if(a){var c=a.b;this.f={fillStyle:Nc(c?c:Eg)}}else this.f=null;if(b){var c=b.f,d=b.i,e=b.a,f=b.C,g=b.g,h=b.c,l=b.j;this.b={lineCap:void 0!==d?d:"round",lineDash:e?e:Fg,lineDashOffset:f?f:0,lineJoin:void 0!==g?g:"round",lineWidth:this.v*(void 0!==h?h:1),miterLimit:void 0!==l?l:10,strokeStyle:Nc(c?c:Gg)}}else this.b=null};
153
- k.wc=function(a){if(a){var b=a.Hb(),c=a.W(1),d=a.Rb(),e=a.mb();this.F=b[0];this.G=b[1];this.ma=e[1];this.I=c;this.o=a.j;this.ha=d[0];this.Ua=d[1];this.ia=a.v;this.ua=a.C;this.i=a.i;this.wa=a.o;this.qa=e[0]}else this.I=null};
154
- k.ab=function(a){if(a){var b=a.sa();b?(b=b.b,this.g={fillStyle:Nc(b?b:Eg)}):this.g=null;var c=a.oa();if(c){var b=c.f,d=c.i,e=c.a,f=c.C,g=c.g,h=c.c,c=c.j;this.C={lineCap:void 0!==d?d:"round",lineDash:e?e:Fg,lineDashOffset:f?f:0,lineJoin:void 0!==g?g:"round",lineWidth:void 0!==h?h:1,miterLimit:void 0!==c?c:10,strokeStyle:Nc(b?b:Gg)}}else this.C=null;var b=a.f,d=a.a,e=a.c,f=a.C,g=a.i,h=a.b,c=a.xa(),l=a.g;a=a.j;this.H={font:void 0!==b?b:"10px sans-serif",textAlign:void 0!==l?l:"center",textBaseline:void 0!==
155
- a?a:"middle"};this.pa=void 0!==c?c:"";this.ac=void 0!==d?this.v*d:0;this.Ea=void 0!==e?this.v*e:0;this.Fa=void 0!==f?f:!1;this.Ia=void 0!==g?g:0;this.j=this.v*(void 0!==h?h:1)}else this.pa=""};function Ug(a,b){Ag.call(this,0,b);this.i=Qc();this.b=this.i.canvas;this.b.style.width="100%";this.b.style.height="100%";this.b.style.display="block";this.b.className="ol-unselectable";a.insertBefore(this.b,a.childNodes[0]||null);this.a=!0;this.j=wg()}t(Ug,Ag);
156
- function Vg(a,b,c){var d=a.g,e=a.i;if(yc(d,b)){var f=c.extent,g=c.pixelRatio,h=c.viewState.rotation,l=c.viewState,m=c.pixelRatio/l.resolution;a=zg(a.j,a.b.width/2,a.b.height/2,m,-m,-l.rotation,-l.center[0],-l.center[1]);d.b(new Dg(b,new Jg(e,g,f,a,h),c,e,null))}}Ug.prototype.J=function(){return"canvas"};
157
- Ug.prototype.Wf=function(a){if(a){var b=this.i,c=a.pixelRatio,d=Math.round(a.size[0]*c),c=Math.round(a.size[1]*c);this.b.width!=d||this.b.height!=c?(this.b.width=d,this.b.height=c):b.clearRect(0,0,d,c);var e=a.viewState.rotation,f=a.viewState,g=a.coordinateToPixelTransform,h=a.pixelToCoordinateTransform;zg(g,a.size[0]/2,a.size[1]/2,1/f.resolution,-1/f.resolution,-f.rotation,-f.center[0],-f.center[1]);f=xg(h,g);g=f[0]*f[3]-f[1]*f[2];qa(!!g,32);var h=f[0],l=f[1],m=f[2],n=f[3],p=f[4],q=f[5];f[0]=n/g;
158
- f[1]=-l/g;f[2]=-m/g;f[3]=h/g;f[4]=(m*q-n*p)/g;f[5]=-(h*q-l*p)/g;Vg(this,"precompose",a);f=a.layerStatesArray;ga(f);Hg(b,e,d/2,c/2);g=a.viewState.resolution;h=0;for(l=f.length;h<l;++h)m=f[h],n=m.layer,n=Cg(this,n),m.visible&&g>=m.minResolution&&g<m.maxResolution&&"ready"==m.dk&&n.j(a,m)&&n.v(a,m,b);Hg(b,-e,d/2,c/2);Vg(this,"postcompose",a);this.a||(this.b.style.display="",this.a=!0);for(var u in this.f)if(!(u in a.layerStates)){a.postRenderFunctions.push(this.Gj.bind(this));break}a.postRenderFunctions.push(Bg)}else this.a&&
159
- (this.b.style.display="none",this.a=!1)};var Wg=["Polygon","Circle","LineString","Image","Text"];function Xg(){};function Yg(a){a=a||{};this.f=void 0!==a.color?a.color:null;this.i=a.lineCap;this.a=void 0!==a.lineDash?a.lineDash:null;this.C=a.lineDashOffset;this.g=a.lineJoin;this.j=a.miterLimit;this.c=a.width;this.b=void 0}k=Yg.prototype;k.clone=function(){var a=this.f;return new Yg({color:a&&a.slice?a.slice():a||void 0,lineCap:this.i,lineDash:this.a?this.a.slice():void 0,lineDashOffset:this.C,lineJoin:this.g,miterLimit:this.j,width:this.c})};k.$i=function(){return this.f};k.Wg=function(){return this.i};
160
- k.aj=function(){return this.a};k.Xg=function(){return this.C};k.Yg=function(){return this.g};k.ah=function(){return this.j};k.bj=function(){return this.c};k.cj=function(a){this.f=a;this.b=void 0};k.Rj=function(a){this.i=a;this.b=void 0};k.setLineDash=function(a){this.a=a;this.b=void 0};k.Sj=function(a){this.C=a;this.b=void 0};k.Tj=function(a){this.g=a;this.b=void 0};k.Uj=function(a){this.j=a;this.b=void 0};k.$j=function(a){this.c=a;this.b=void 0};var Zg,$g;
161
- (function(){var a={},b={Y:a};(function(c){if("object"===typeof a&&"undefined"!==typeof b)b.Y=c();else{var d;"undefined"!==typeof window?d=window:"undefined"!==typeof global?d=global:"undefined"!==typeof self?d=self:d=this;d.Ek=c()}})(function(){return function d(a,b,g){function e(h,l){if(!b[h]){if(!a[h]){var m="function"==typeof require&&require;if(!l&&m)return m(h,!0);if(f)return f(h,!0);m=Error("Cannot find module '"+h+"'");throw m.code="MODULE_NOT_FOUND",m;}m=b[h]={Y:{}};a[h][0].call(m.Y,function(b){var d=
162
- a[h][1][b];return e(d?d:b)},m,m.Y,d,a,b,g)}return b[h].Y}for(var f="function"==typeof require&&require,m=0;m<g.length;m++)e(g[m]);return e}({1:[function(a,b){function d(a,b,f,g,q){f=f||0;g=g||a.length-1;for(q=q||h;g>f;){if(600<g-f){var l=g-f+1,m=b-f+1,n=Math.log(l),p=.5*Math.exp(2*n/3),n=.5*Math.sqrt(n*p*(l-p)/l)*(0>m-l/2?-1:1);d(a,b,Math.max(f,Math.floor(b-m*p/l+n)),Math.min(g,Math.floor(b+(l-m)*p/l+n)),q)}l=a[b];m=f;p=g;e(a,f,b);for(0<q(a[g],l)&&e(a,f,g);m<p;){e(a,m,p);m++;for(p--;0>q(a[m],l);)m++;
163
- for(;0<q(a[p],l);)p--}0===q(a[f],l)?e(a,f,p):(p++,e(a,p,g));p<=b&&(f=p+1);b<=p&&(g=p-1)}}function e(a,b,d){var e=a[b];a[b]=a[d];a[d]=e}function h(a,b){return a<b?-1:a>b?1:0}b.Y=d},{}],2:[function(a,b){function d(a,b){if(!(this instanceof d))return new d(a,b);this.Ed=Math.max(4,a||9);this.Oe=Math.max(2,Math.ceil(.4*this.Ed));b&&this.sg(b);this.clear()}function e(a,b){h(a,0,a.children.length,b,a)}function h(a,b,d,e,f){f||(f=A(null));f.O=Infinity;f.U=Infinity;f.R=-Infinity;f.X=-Infinity;for(var g;b<
164
- d;b++)g=a.children[b],l(f,a.Ga?e(g):g);return f}function l(a,b){a.O=Math.min(a.O,b.O);a.U=Math.min(a.U,b.U);a.R=Math.max(a.R,b.R);a.X=Math.max(a.X,b.X)}function m(a,b){return a.O-b.O}function n(a,b){return a.U-b.U}function p(a){return(a.R-a.O)*(a.X-a.U)}function q(a){return a.R-a.O+(a.X-a.U)}function u(a,b){return a.O<=b.O&&a.U<=b.U&&b.R<=a.R&&b.X<=a.X}function D(a,b){return b.O<=a.R&&b.U<=a.X&&b.R>=a.O&&b.X>=a.U}function A(a){return{children:a,height:1,Ga:!0,O:Infinity,U:Infinity,R:-Infinity,X:-Infinity}}
165
- function I(a,b,d,e,f){for(var g=[b,d],h;g.length;)d=g.pop(),b=g.pop(),d-b<=e||(h=b+Math.ceil((d-b)/e/2)*e,R(a,h,b,d,f),g.push(b,h,h,d))}b.Y=d;var R=a("quickselect");d.prototype={all:function(){return this.Ie(this.data,[])},search:function(a){var b=this.data,d=[],e=this.Pa;if(!D(a,b))return d;for(var f=[],g,h,l,m;b;){g=0;for(h=b.children.length;g<h;g++)l=b.children[g],m=b.Ga?e(l):l,D(a,m)&&(b.Ga?d.push(l):u(a,m)?this.Ie(l,d):f.push(l));b=f.pop()}return d},load:function(a){if(!a||!a.length)return this;
166
- if(a.length<this.Oe){for(var b=0,d=a.length;b<d;b++)this.za(a[b]);return this}a=this.Ke(a.slice(),0,a.length-1,0);this.data.children.length?this.data.height===a.height?this.Qe(this.data,a):(this.data.height<a.height&&(b=this.data,this.data=a,a=b),this.Ne(a,this.data.height-a.height-1,!0)):this.data=a;return this},za:function(a){a&&this.Ne(a,this.data.height-1);return this},clear:function(){this.data=A([]);return this},remove:function(a,b){if(!a)return this;for(var d=this.data,e=this.Pa(a),f=[],g=
167
- [],h,l,m,n;d||f.length;){d||(d=f.pop(),l=f[f.length-1],h=g.pop(),n=!0);if(d.Ga){a:{m=a;var p=d.children,q=b;if(q){for(var D=0;D<p.length;D++)if(q(m,p[D])){m=D;break a}m=-1}else m=p.indexOf(m)}if(-1!==m){d.children.splice(m,1);f.push(d);this.qg(f);break}}n||d.Ga||!u(d,e)?l?(h++,d=l.children[h],n=!1):d=null:(f.push(d),g.push(h),h=0,l=d,d=d.children[0])}return this},Pa:function(a){return a},Gd:m,Hd:n,toJSON:function(){return this.data},Ie:function(a,b){for(var d=[];a;)a.Ga?b.push.apply(b,a.children):
168
- d.push.apply(d,a.children),a=d.pop();return b},Ke:function(a,b,d,f){var g=d-b+1,h=this.Ed,l;if(g<=h)return l=A(a.slice(b,d+1)),e(l,this.Pa),l;f||(f=Math.ceil(Math.log(g)/Math.log(h)),h=Math.ceil(g/Math.pow(h,f-1)));l=A([]);l.Ga=!1;l.height=f;var g=Math.ceil(g/h),h=g*Math.ceil(Math.sqrt(h)),m,n,p;for(I(a,b,d,h,this.Gd);b<=d;b+=h)for(n=Math.min(b+h-1,d),I(a,b,n,g,this.Hd),m=b;m<=n;m+=g)p=Math.min(m+g-1,n),l.children.push(this.Ke(a,m,p,f-1));e(l,this.Pa);return l},pg:function(a,b,d,e){for(var f,g,h,
169
- l,m,n,q,u;;){e.push(b);if(b.Ga||e.length-1===d)break;q=u=Infinity;f=0;for(g=b.children.length;f<g;f++)h=b.children[f],m=p(h),n=(Math.max(h.R,a.R)-Math.min(h.O,a.O))*(Math.max(h.X,a.X)-Math.min(h.U,a.U))-m,n<u?(u=n,q=m<q?m:q,l=h):n===u&&m<q&&(q=m,l=h);b=l||b.children[0]}return b},Ne:function(a,b,d){var e=this.Pa;d=d?a:e(a);var e=[],f=this.pg(d,this.data,b,e);f.children.push(a);for(l(f,d);0<=b;)if(e[b].children.length>this.Ed)this.xg(e,b),b--;else break;this.mg(d,e,b)},xg:function(a,b){var d=a[b],f=
170
- d.children.length,g=this.Oe;this.ng(d,g,f);f=this.og(d,g,f);f=A(d.children.splice(f,d.children.length-f));f.height=d.height;f.Ga=d.Ga;e(d,this.Pa);e(f,this.Pa);b?a[b-1].children.push(f):this.Qe(d,f)},Qe:function(a,b){this.data=A([a,b]);this.data.height=a.height+1;this.data.Ga=!1;e(this.data,this.Pa)},og:function(a,b,d){var e,f,g,l,m,n,q;m=n=Infinity;for(e=b;e<=d-b;e++)f=h(a,0,e,this.Pa),g=h(a,e,d,this.Pa),l=Math.max(0,Math.min(f.R,g.R)-Math.max(f.O,g.O))*Math.max(0,Math.min(f.X,g.X)-Math.max(f.U,
171
- g.U)),f=p(f)+p(g),l<m?(m=l,q=e,n=f<n?f:n):l===m&&f<n&&(n=f,q=e);return q},ng:function(a,b,d){var e=a.Ga?this.Gd:m,f=a.Ga?this.Hd:n,g=this.Je(a,b,d,e);b=this.Je(a,b,d,f);g<b&&a.children.sort(e)},Je:function(a,b,d,e){a.children.sort(e);e=this.Pa;var f=h(a,0,b,e),g=h(a,d-b,d,e),m=q(f)+q(g),n,p;for(n=b;n<d-b;n++)p=a.children[n],l(f,a.Ga?e(p):p),m+=q(f);for(n=d-b-1;n>=b;n--)p=a.children[n],l(g,a.Ga?e(p):p),m+=q(g);return m},mg:function(a,b,d){for(;0<=d;d--)l(b[d],a)},qg:function(a){for(var b=a.length-
172
- 1,d;0<=b;b--)0===a[b].children.length?0<b?(d=a[b-1].children,d.splice(d.indexOf(a[b]),1)):this.clear():e(a[b],this.Pa)},sg:function(a){var b=["return a"," - b",";"];this.Gd=new Function("a","b",b.join(a[0]));this.Hd=new Function("a","b",b.join(a[1]));this.Pa=new Function("a","return {minX: a"+a[0]+", minY: a"+a[1]+", maxX: a"+a[2]+", maxY: a"+a[3]+"};")}}},{quickselect:1}]},{},[2])(2)});Zg=b.Y})();function ah(a){this.b=Zg(a);this.f={}}k=ah.prototype;k.za=function(a,b){var c={O:a[0],U:a[1],R:a[2],X:a[3],value:b};this.b.za(c);this.f[la(b)]=c};k.load=function(a,b){for(var c=Array(b.length),d=0,e=b.length;d<e;d++){var f=a[d],g=b[d],f={O:f[0],U:f[1],R:f[2],X:f[3],value:g};c[d]=f;this.f[la(g)]=f}this.b.load(c)};k.remove=function(a){a=la(a);var b=this.f[a];delete this.f[a];return null!==this.b.remove(b)};function bh(a,b,c){var d=a.f[la(c)];Ua([d.O,d.U,d.R,d.X],b)||(a.remove(c),a.za(b,c))}
173
- function ch(a){return a.b.all().map(function(a){return a.value})}function dh(a,b){return a.b.search({O:b[0],U:b[1],R:b[2],X:b[3]}).map(function(a){return a.value})}k.forEach=function(a,b){return eh(ch(this),a,b)};function fh(a,b,c,d){return eh(dh(a,b),c,d)}function eh(a,b,c){for(var d,e=0,f=a.length;e<f&&!(d=b.call(c,a[e]));e++);return d}k.clear=function(){this.b.clear();this.f={}};k.D=function(){var a=this.b.data;return[a.O,a.U,a.R,a.X]};function gh(){this.c=0;this.a={};this.f=this.b=null}k=gh.prototype;k.clear=function(){this.c=0;this.a={};this.f=this.b=null};k.forEach=function(a,b){for(var c=this.b;c;)a.call(b,c.$b,c.ub,this),c=c.Ya};k.get=function(a){a=this.a[a];qa(!!a,15);if(a===this.f)return a.$b;a===this.b?(this.b=this.b.Ya,this.b.Vb=null):(a.Ya.Vb=a.Vb,a.Vb.Ya=a.Ya);a.Ya=null;a.Vb=this.f;this.f=this.f.Ya=a;return a.$b};
174
- k.pop=function(){var a=this.b;delete this.a[a.ub];a.Ya&&(a.Ya.Vb=null);this.b=a.Ya;this.b||(this.f=null);--this.c;return a.$b};k.replace=function(a,b){this.get(a);this.a[a].$b=b};k.set=function(a,b){qa(!(a in this.a),16);var c={ub:a,Ya:null,Vb:this.f,$b:b};this.f?this.f.Ya=c:this.b=c;this.f=c;this.a[a]=c;++this.c};var hh=["canvas","webgl"];
175
- function F(a){Ac.call(this);var b=ih(a);this.cc=void 0!==a.loadTilesWhileAnimating?a.loadTilesWhileAnimating:!1;this.zd=void 0!==a.loadTilesWhileInteracting?a.loadTilesWhileInteracting:!1;this.Bd=void 0!==a.pixelRatio?a.pixelRatio:nd;this.Ad=b.logos;this.ua=function(){this.g=void 0;this.Hj.call(this,Date.now())}.bind(this);this.Va=wg();this.yd=wg();this.bc=0;this.c=null;this.Ja=Ga();this.H=this.K=this.ja=null;this.a=document.createElement("DIV");this.a.className="ol-viewport"+(qd?" ol-touch":"");
176
- this.a.style.position="relative";this.a.style.overflow="hidden";this.a.style.width="100%";this.a.style.height="100%";this.a.style.msTouchAction="none";this.a.style.touchAction="none";this.F=document.createElement("DIV");this.F.className="ol-overlaycontainer";this.a.appendChild(this.F);this.B=document.createElement("DIV");this.B.className="ol-overlaycontainer-stopevent";a="click dblclick mousedown touchstart mspointerdown pointerdown mousewheel wheel".split(" ");for(var c=0,d=a.length;c<d;++c)w(this.B,
177
- a[c],wc);this.a.appendChild(this.B);this.Ea=new Td(this);for(var e in gd)w(this.Ea,gd[e],this.wf,this);this.wa=b.keyboardEventTarget;this.v=null;w(this.a,"wheel",this.Lb,this);w(this.a,"mousewheel",this.Lb,this);this.o=b.controls;this.j=b.interactions;this.u=b.overlays;this.fe={};this.G=new b.Jj(this.a,this);this.ha=null;this.Ia=[];this.Fa=new Zd(this.kh.bind(this),this.Mh.bind(this));this.ia={};w(this,Cc("layergroup"),this.yh,this);w(this,Cc("view"),this.Nh,this);w(this,Cc("size"),this.Jh,this);
178
- w(this,Cc("target"),this.Lh,this);this.L(b.values);this.o.forEach(function(a){a.setMap(this)},this);w(this.o,"add",function(a){a.element.setMap(this)},this);w(this.o,"remove",function(a){a.element.setMap(null)},this);this.j.forEach(function(a){a.setMap(this)},this);w(this.j,"add",function(a){a.element.setMap(this)},this);w(this.j,"remove",function(a){a.element.setMap(null)},this);this.u.forEach(this.Re,this);w(this.u,"add",function(a){this.Re(a.element)},this);w(this.u,"remove",function(a){var b=
179
- a.element.g;void 0!==b&&delete this.fe[b.toString()];a.element.setMap(null)},this)}t(F,Ac);k=F.prototype;k.zg=function(a){this.o.push(a)};k.Ag=function(a){this.j.push(a)};k.Bg=function(a){this.Ib().Ob().push(a)};k.Cg=function(a){this.u.push(a)};k.Re=function(a){var b=a.g;void 0!==b&&(this.fe[b.toString()]=a);a.setMap(this)};
180
- k.ra=function(){uc(this.Ea);uc(this.G);sc(this.a,"wheel",this.Lb,this);sc(this.a,"mousewheel",this.Lb,this);this.i&&(window.removeEventListener("resize",this.i,!1),this.i=void 0);this.g&&(cancelAnimationFrame(this.g),this.g=void 0);this.Cf(null);Ac.prototype.ra.call(this)};k.Jd=function(a,b,c){if(this.c)return a=this.Xa(a),c=c?c:{},this.G.Ka(a,this.c,void 0!==c.hitTolerance?c.hitTolerance*this.c.pixelRatio:0,b,null,c.layerFilter?c.layerFilter:me,null)};
181
- k.ti=function(a,b,c,d,e){if(this.c){a:{var f=this.G,g=this.c;c=void 0!==c?c:null;d=d?d:me;e=void 0!==e?e:null;var h,l=g.viewState.resolution,m=g.layerStatesArray,n=m.length;a=yg(g.pixelToCoordinateTransform,a.slice());for(--n;0<=n;--n){h=m[n];var p=h.layer;if(h.visible&&l>=h.minResolution&&l<h.maxResolution&&d.call(e,p)&&(h=Cg(f,p).u(a,g,b,c))){b=h;break a}}b=void 0}return b}};
182
- k.Oh=function(a,b){if(!this.c)return!1;var c=this.Xa(a);b=b?b:{};var d=this.G;return void 0!==d.Ka(c,this.c,void 0!==b.hitTolerance?b.hitTolerance*this.c.pixelRatio:0,me,d,b.layerFilter?b.layerFilter:me,null)};k.Pg=function(a){return this.Xa(this.Md(a))};k.Md=function(a){var b=this.a.getBoundingClientRect();a=a.changedTouches?a.changedTouches[0]:a;return[a.clientX-b.left,a.clientY-b.top]};k.Td=function(){return this.get("target")};
183
- k.oc=function(){var a=this.Td();return void 0!==a?"string"===typeof a?document.getElementById(a):a:null};k.Xa=function(a){var b=this.c;return b?yg(b.pixelToCoordinateTransform,a.slice()):null};k.Og=function(){return this.o};k.fh=function(){return this.u};k.eh=function(a){a=this.fe[a.toString()];return void 0!==a?a:null};k.Tg=function(){return this.j};k.Ib=function(){return this.get("layergroup")};k.ui=function(){return this.Ib().Ob()};
184
- k.$a=function(a){var b=this.c;return b?yg(b.coordinateToPixelTransform,a.slice(0,2)):null};k.Nb=function(){return this.get("size")};k.$=function(){return this.get("view")};k.mh=function(){return this.a};k.kh=function(a,b,c,d){var e=this.c;if(!(e&&b in e.wantedTiles&&e.wantedTiles[b][a.vb()]))return Infinity;a=c[0]-e.focus[0];c=c[1]-e.focus[1];return 65536*Math.log(d)+Math.sqrt(a*a+c*c)/d};k.Lb=function(a,b){var c=new fd(b||a.type,this,a);this.wf(c)};
185
- k.wf=function(a){if(this.c){this.ha=a.coordinate;a.frameState=this.c;var b=this.j.a,c;if(!1!==this.b(a))for(c=b.length-1;0<=c;c--){var d=b[c];if(d.F()&&!d.handleEvent(a))break}}};
186
- k.Ih=function(){var a=this.c,b=this.Fa;if(b.b.length){var c=16,d=c;if(a){var e=a.viewHints;e[0]&&(c=this.cc?8:0,d=2);e[1]&&(c=this.zd?8:0,d=2)}if(b.g<c){var e=b.o,f=b.b,g=b.f,h=0,l=f.length,m,n,p;for(n=0;n<l;++n)m=f[n],p=e(m),Infinity==p?delete b.a[b.c(m)]:(g[h]=p,f[h++]=m);f.length=h;g.length=h;for(e=(b.b.length>>1)-1;0<=e;e--)Yd(b,e);$d(b,c,d)}}b=this.Ia;c=0;for(d=b.length;c<d;++c)b[c](this,a);b.length=0};k.Jh=function(){this.render()};
187
- k.Lh=function(){var a;this.Td()&&(a=this.oc());if(this.v){for(var b=0,c=this.v.length;b<c;++b)nc(this.v[b]);this.v=null}a?(a.appendChild(this.a),a=this.wa?this.wa:a,this.v=[w(a,"keydown",this.Lb,this),w(a,"keypress",this.Lb,this)],this.i||(this.i=this.Ce.bind(this),window.addEventListener("resize",this.i,!1))):(Rc(this.a),this.i&&(window.removeEventListener("resize",this.i,!1),this.i=void 0));this.Ce()};k.Mh=function(){this.render()};k.yf=function(){this.render()};
188
- k.Nh=function(){this.ja&&(nc(this.ja),this.ja=null);this.K&&(nc(this.K),this.K=null);var a=this.$();a&&(this.a.setAttribute("data-view",la(a)),this.ja=w(a,"propertychange",this.yf,this),this.K=w(a,"change",this.yf,this));this.render()};k.yh=function(){this.H&&(this.H.forEach(nc),this.H=null);var a=this.Ib();a&&(this.H=[w(a,"propertychange",this.render,this),w(a,"change",this.render,this)]);this.render()};k.Ij=function(){this.g&&cancelAnimationFrame(this.g);this.ua()};
189
- k.render=function(){void 0===this.g&&(this.g=requestAnimationFrame(this.ua))};k.Bj=function(a){return this.o.remove(a)};k.Cj=function(a){return this.j.remove(a)};k.Ej=function(a){return this.Ib().Ob().remove(a)};k.Fj=function(a){return this.u.remove(a)};
190
- k.Hj=function(a){var b,c,d=this.Nb(),e=this.$(),f=Ga(),g=null,h;if(h=void 0!==d&&0<d[0]&&0<d[1]&&e)h=!!e.na()&&void 0!==e.Da();if(h){g=bd(e,this.c?this.c.viewHints:void 0);h=this.Ib().Od();var l={};b=0;for(c=h.length;b<c;++b)l[la(h[b].layer)]=h[b];b=e.T();g={animate:!1,attributions:{},coordinateToPixelTransform:this.Va,extent:f,focus:this.ha?this.ha:b.center,index:this.bc++,layerStates:l,layerStatesArray:h,logos:mb({},this.Ad),pixelRatio:this.Bd,pixelToCoordinateTransform:this.yd,postRenderFunctions:[],
191
- size:d,skippedFeatureUids:this.ia,tileQueue:this.Fa,time:a,usedTiles:{},viewState:b,viewHints:g,wantedTiles:{}}}g&&(g.extent=gb(b.center,b.resolution,b.rotation,g.size,f));this.c=g;this.G.Wf(g);g&&(g.animate&&this.render(),Array.prototype.push.apply(this.Ia,g.postRenderFunctions),g.viewHints[0]||g.viewHints[1]||Ua(g.extent,this.Ja)||(this.b(new ed("moveend",this,g)),Ja(g.extent,this.Ja)));this.b(new ed("postrender",this,g));setTimeout(this.Ih.bind(this),0)};
192
- k.Qj=function(a){this.set("layergroup",a)};k.ue=function(a){this.set("size",a)};k.Cf=function(a){this.set("target",a)};k.Zj=function(a){this.set("view",a)};k.bg=function(a){a=la(a).toString();this.ia[a]=!0;this.render()};
193
- k.Ce=function(){var a=this.oc();if(a){var b=getComputedStyle(a);this.ue([a.offsetWidth-parseFloat(b.borderLeftWidth)-parseFloat(b.paddingLeft)-parseFloat(b.paddingRight)-parseFloat(b.borderRightWidth),a.offsetHeight-parseFloat(b.borderTopWidth)-parseFloat(b.paddingTop)-parseFloat(b.paddingBottom)-parseFloat(b.borderBottomWidth)])}else this.ue(void 0)};k.fg=function(a){a=la(a).toString();delete this.ia[a];this.render()};
194
- function ih(a){var b=null;void 0!==a.keyboardEventTarget&&(b="string"===typeof a.keyboardEventTarget?document.getElementById(a.keyboardEventTarget):a.keyboardEventTarget);var c={},d={};if(void 0===a.logo||"boolean"===typeof a.logo&&a.logo)d["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAAHGAAABxgEXwfpGAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAhNQTFRF////AP//AICAgP//AFVVQECA////K1VVSbbbYL/fJ05idsTYJFtbbcjbJllmZszWWMTOIFhoHlNiZszTa9DdUcHNHlNlV8XRIVdiasrUHlZjIVZjaMnVH1RlIFRkH1RkH1ZlasvYasvXVsPQH1VkacnVa8vWIVZjIFRjVMPQa8rXIVVkXsXRsNveIFVkIFZlIVVj3eDeh6GmbMvXH1ZkIFRka8rWbMvXIFVkIFVjIFVkbMvWH1VjbMvWIFVlbcvWIFVla8vVIFVkbMvWbMvVH1VkbMvWIFVlbcvWIFVkbcvVbMvWjNPbIFVkU8LPwMzNIFVkbczWIFVkbsvWbMvXIFVkRnB8bcvW2+TkW8XRIFVkIlZlJVloJlpoKlxrLl9tMmJwOWd0Omh1RXF8TneCT3iDUHiDU8LPVMLPVcLPVcPQVsPPVsPQV8PQWMTQWsTQW8TQXMXSXsXRX4SNX8bSYMfTYcfTYsfTY8jUZcfSZsnUaIqTacrVasrVa8jTa8rWbI2VbMvWbcvWdJObdcvUdszUd8vVeJaee87Yfc3WgJyjhqGnitDYjaarldPZnrK2oNbborW5o9bbo9fbpLa6q9ndrL3ArtndscDDutzfu8fJwN7gwt7gxc/QyuHhy+HizeHi0NfX0+Pj19zb1+Tj2uXk29/e3uLg3+Lh3+bl4uXj4ufl4+fl5Ofl5ufl5ujm5+jmySDnBAAAAFp0Uk5TAAECAgMEBAYHCA0NDg4UGRogIiMmKSssLzU7PkJJT1JTVFliY2hrdHZ3foSFhYeJjY2QkpugqbG1tre5w8zQ09XY3uXn6+zx8vT09vf4+Pj5+fr6/P39/f3+gz7SsAAAAVVJREFUOMtjYKA7EBDnwCPLrObS1BRiLoJLnte6CQy8FLHLCzs2QUG4FjZ5GbcmBDDjxJBXDWxCBrb8aM4zbkIDzpLYnAcE9VXlJSWlZRU13koIeW57mGx5XjoMZEUqwxWYQaQbSzLSkYGfKFSe0QMsX5WbjgY0YS4MBplemI4BdGBW+DQ11eZiymfqQuXZIjqwyadPNoSZ4L+0FVM6e+oGI6g8a9iKNT3o8kVzNkzRg5lgl7p4wyRUL9Yt2jAxVh6mQCogae6GmflI8p0r13VFWTHBQ0rWPW7ahgWVcPm+9cuLoyy4kCJDzCm6d8PSFoh0zvQNC5OjDJhQopPPJqph1doJBUD5tnkbZiUEqaCnB3bTqLTFG1bPn71kw4b+GFdpLElKIzRxxgYgWNYc5SCENVHKeUaltHdXx0dZ8uBI1hJ2UUDgq82CM2MwKeibqAvSO7MCABq0wXEPiqWEAAAAAElFTkSuQmCC"]=
195
- "https://openlayers.org/";else{var e=a.logo;"string"===typeof e?d[e]="":e instanceof HTMLElement?d[la(e).toString()]=e:e&&(qa("string"==typeof e.href,44),qa("string"==typeof e.src,45),d[e.src]=e.href)}e=a.layers instanceof ig?a.layers:new ig({layers:a.layers});c.layergroup=e;c.target=a.target;c.view=void 0!==a.view?a.view:new E;var e=Ag,f;void 0!==a.renderer?(Array.isArray(a.renderer)?f=a.renderer:"string"===typeof a.renderer?f=[a.renderer]:qa(!1,46),0<=f.indexOf("dom")&&(f=f.concat(hh))):f=hh;var g,
196
- h;g=0;for(h=f.length;g<h;++g)if("canvas"==f[g]&&pd){e=Ug;break}void 0!==a.controls?Array.isArray(a.controls)?f=new x(a.controls.slice()):(qa(a.controls instanceof x,47),f=a.controls):f=dd();void 0!==a.interactions?Array.isArray(a.interactions)?g=new x(a.interactions.slice()):(qa(a.interactions instanceof x,48),g=a.interactions):g=fg();void 0!==a.overlays?Array.isArray(a.overlays)?a=new x(a.overlays.slice()):(qa(a.overlays instanceof x,49),a=a.overlays):a=new x;return{controls:f,interactions:g,keyboardEventTarget:b,
197
- logos:d,overlays:a,Jj:e,values:c}}sg();function jh(a){Ac.call(this);this.g=a.id;this.u=void 0!==a.insertFirst?a.insertFirst:!0;this.v=void 0!==a.stopEvent?a.stopEvent:!0;this.c=document.createElement("DIV");this.c.className="ol-overlay-container";this.c.style.position="absolute";this.autoPan=void 0!==a.autoPan?a.autoPan:!1;this.j=a.autoPanAnimation||{};this.o=void 0!==a.autoPanMargin?a.autoPanMargin:20;this.a={Fc:"",Wc:"",ld:"",wd:"",visible:!0};this.i=null;w(this,Cc(kh),this.uh,this);w(this,Cc(lh),this.Dh,this);w(this,Cc(mh),this.Eh,
198
- this);w(this,Cc(nh),this.Gh,this);w(this,Cc(oh),this.Hh,this);void 0!==a.element&&this.Yf(a.element);this.$f(void 0!==a.offset?a.offset:[0,0]);this.ag(void 0!==a.positioning?a.positioning:"top-left");void 0!==a.position&&this.Ef(a.position)}t(jh,Ac);k=jh.prototype;k.Ld=function(){return this.get(kh)};k.vi=function(){return this.g};k.Xc=function(){return this.get(lh)};k.qf=function(){return this.get(mh)};k.Df=function(){return this.get(nh)};k.rf=function(){return this.get(oh)};
199
- k.uh=function(){for(var a=this.c;a.lastChild;)a.removeChild(a.lastChild);(a=this.Ld())&&this.c.appendChild(a)};k.Dh=function(){this.i&&(Rc(this.c),nc(this.i),this.i=null);var a=this.Xc();a&&(this.i=w(a,"postrender",this.render,this),ph(this),a=this.v?a.B:a.F,this.u?a.insertBefore(this.c,a.childNodes[0]||null):a.appendChild(this.c))};k.render=function(){ph(this)};k.Eh=function(){ph(this)};
200
- k.Gh=function(){ph(this);if(this.get(nh)&&this.autoPan){var a=this.Xc();if(a&&a.oc()){var b=qh(a.oc(),a.Nb()),c=this.Ld(),d=c.offsetWidth,e=c.currentStyle||getComputedStyle(c),d=d+(parseInt(e.marginLeft,10)+parseInt(e.marginRight,10)),e=c.offsetHeight,f=c.currentStyle||getComputedStyle(c),e=e+(parseInt(f.marginTop,10)+parseInt(f.marginBottom,10)),g=qh(c,[d,e]),c=this.o;Oa(b,g)||(d=g[0]-b[0],e=b[2]-g[2],f=g[1]-b[1],g=b[3]-g[3],b=[0,0],0>d?b[0]=d-c:0>e&&(b[0]=Math.abs(e)+c),0>f?b[1]=f-c:0>g&&(b[1]=
201
- Math.abs(g)+c),0===b[0]&&0===b[1])||(c=a.$().na(),c=a.$a(c),b=[c[0]+b[0],c[1]+b[1]],a.$().animate({center:a.Xa(b),duration:this.j.duration,easing:this.j.easing}))}}};k.Hh=function(){ph(this)};k.Yf=function(a){this.set(kh,a)};k.setMap=function(a){this.set(lh,a)};k.$f=function(a){this.set(mh,a)};k.Ef=function(a){this.set(nh,a)};function qh(a,b){var c=a.getBoundingClientRect(),d=c.left+window.pageXOffset,c=c.top+window.pageYOffset;return[d,c,d+b[0],c+b[1]]}k.ag=function(a){this.set(oh,a)};
202
- function rh(a,b){a.a.visible!==b&&(a.c.style.display=b?"":"none",a.a.visible=b)}
203
- function ph(a){var b=a.Xc(),c=a.Df();if(b&&b.c&&c){var c=b.$a(c),d=b.Nb(),b=a.c.style,e=a.qf(),f=a.rf(),g=e[0],e=e[1];if("bottom-right"==f||"center-right"==f||"top-right"==f)""!==a.a.Wc&&(a.a.Wc=b.left=""),g=Math.round(d[0]-c[0]-g)+"px",a.a.ld!=g&&(a.a.ld=b.right=g);else{""!==a.a.ld&&(a.a.ld=b.right="");if("bottom-center"==f||"center-center"==f||"top-center"==f)g-=a.c.offsetWidth/2;g=Math.round(c[0]+g)+"px";a.a.Wc!=g&&(a.a.Wc=b.left=g)}if("bottom-left"==f||"bottom-center"==f||"bottom-right"==f)""!==
204
- a.a.wd&&(a.a.wd=b.top=""),c=Math.round(d[1]-c[1]-e)+"px",a.a.Fc!=c&&(a.a.Fc=b.bottom=c);else{""!==a.a.Fc&&(a.a.Fc=b.bottom="");if("center-left"==f||"center-center"==f||"center-right"==f)e-=a.c.offsetHeight/2;c=Math.round(c[1]+e)+"px";a.a.wd!=c&&(a.a.wd=b.top=c)}rh(a,!0)}else rh(a,!1)}var kh="element",lh="map",mh="offset",nh="position",oh="positioning";function sh(a){a=a?a:{};this.c=void 0;this.i=th;this.u=this.j=0;this.G=null;this.ja=!1;this.K=void 0!==a.duration?a.duration:200;var b=void 0!==a.className?a.className:"ol-zoomslider",c=document.createElement("button");c.setAttribute("type","button");c.className=b+"-thumb ol-unselectable";var d=document.createElement("div");d.className=b+" ol-unselectable ol-control";d.appendChild(c);this.g=new Od(d);w(this.g,"pointerdown",this.th,this);w(this.g,"pointermove",this.rh,this);w(this.g,"pointerup",this.sh,
205
- this);w(d,"click",this.qh,this);w(c,"click",wc);Sc.call(this,{element:d,render:a.render?a.render:uh})}t(sh,Sc);sh.prototype.ra=function(){uc(this.g);Sc.prototype.ra.call(this)};var th=0;k=sh.prototype;k.setMap=function(a){Sc.prototype.setMap.call(this,a);a&&a.render()};
206
- function uh(a){if(a.frameState){if(!this.ja){var b=this.element,c=b.offsetWidth,d=b.offsetHeight,e=b.firstElementChild,f=getComputedStyle(e),b=e.offsetWidth+parseFloat(f.marginRight)+parseFloat(f.marginLeft),e=e.offsetHeight+parseFloat(f.marginTop)+parseFloat(f.marginBottom);this.G=[b,e];c>d?(this.i=1,this.u=c-b):(this.i=th,this.j=d-e);this.ja=!0}a=a.frameState.viewState.resolution;a!==this.c&&(this.c=a,vh(this,a))}}
207
- k.qh=function(a){var b=this.a.$();a=wh(this,ua(1===this.i?(a.offsetX-this.G[0]/2)/this.u:(a.offsetY-this.G[1]/2)/this.j,0,1));b.animate({resolution:b.constrainResolution(a),duration:this.K,easing:Wc})};k.th=function(a){this.o||a.b.target!==this.element.firstElementChild||(Ve(this.a.$(),1,1),this.B=a.clientX,this.F=a.clientY,this.o=!0)};
208
- k.rh=function(a){if(this.o){var b=this.element.firstElementChild;this.c=wh(this,ua(1===this.i?(a.clientX-this.B+parseInt(b.style.left,10))/this.u:(a.clientY-this.F+parseInt(b.style.top,10))/this.j,0,1));this.a.$().Bb(this.c);vh(this,this.c);this.B=a.clientX;this.F=a.clientY}};k.sh=function(){if(this.o){var a=this.a.$();Ve(a,1,-1);a.animate({resolution:a.constrainResolution(this.c),duration:this.K,easing:Wc});this.o=!1;this.F=this.B=void 0}};
209
- function vh(a,b){var c;c=1-af(a.a.$())(b);var d=a.element.firstElementChild;1==a.i?d.style.left=a.u*c+"px":d.style.top=a.j*c+"px"}function wh(a,b){return $e(a.a.$())(1-b)};function xh(a){this.j=a.opacity;this.v=a.rotateWithView;this.C=a.rotation;this.i=a.scale;this.o=a.snapToPixel}k=xh.prototype;k.dd=function(){return this.j};k.ed=function(){return this.v};k.fd=function(){return this.C};k.gd=function(){return this.i};k.Sc=function(){return this.o};k.Sb=function(a){this.j=a};k.hd=function(a){this.C=a};k.Tb=function(a){this.i=a};function yh(a){this.F=this.u=this.c=null;this.ya=void 0!==a.fill?a.fill:null;this.qa=[0,0];this.b=a.points;this.f=void 0!==a.radius?a.radius:a.radius1;this.a=void 0!==a.radius2?a.radius2:this.f;this.g=void 0!==a.angle?a.angle:0;this.Ba=void 0!==a.stroke?a.stroke:null;this.ma=this.H=this.G=null;this.B=a.atlasManager;zh(this,this.B);xh.call(this,{opacity:1,rotateWithView:void 0!==a.rotateWithView?a.rotateWithView:!1,rotation:void 0!==a.rotation?a.rotation:0,scale:1,snapToPixel:void 0!==a.snapToPixel?
210
- a.snapToPixel:!0})}t(yh,xh);k=yh.prototype;k.clone=function(){var a=new yh({fill:this.sa()?this.sa().clone():void 0,points:this.a!==this.f?this.b/2:this.b,radius:this.f,radius2:this.a,angle:this.g,snapToPixel:this.o,stroke:this.oa()?this.oa().clone():void 0,rotation:this.C,rotateWithView:this.v,atlasManager:this.B});a.Sb(this.j);a.Tb(this.i);return a};k.Hb=function(){return this.G};k.Qf=function(){return this.g};k.sa=function(){return this.ya};k.Pf=function(){return this.F};k.W=function(){return this.u};
211
- k.lf=function(){return this.ma};k.cd=function(){return 2};k.Rb=function(){return this.qa};k.Rf=function(){return this.b};k.Sf=function(){return this.f};k.tf=function(){return this.a};k.mb=function(){return this.H};k.oa=function(){return this.Ba};k.zf=function(){};k.load=function(){};k.eg=function(){};
212
- function zh(a,b){var c,d="",e="",f=0,g=null,h,l=0;a.Ba&&(h=Nc(a.Ba.f),l=a.Ba.c,void 0===l&&(l=1),g=a.Ba.a,od||(g=null),e=a.Ba.g,void 0===e&&(e="round"),d=a.Ba.i,void 0===d&&(d="round"),f=a.Ba.j,void 0===f&&(f=10));var m=2*(a.f+l)+1,d={strokeStyle:h,cg:l,size:m,lineCap:d,lineDash:g,lineJoin:e,miterLimit:f};void 0===b?(e=Qc(m,m),a.u=e.canvas,c=m=a.u.width,a.$e(d,e,0,0),a.ya?a.F=a.u:(e=Qc(d.size,d.size),a.F=e.canvas,a.Ze(d,e,0,0))):(m=Math.round(m),(e=!a.ya)&&(c=a.Ze.bind(a,d)),a.Ba?(f=a.Ba,void 0===
213
- f.b&&(f.b="s",f.b=f.f?"string"===typeof f.f?f.b+f.f:f.b+la(f.f).toString():f.b+"-",f.b+=","+(void 0!==f.i?f.i.toString():"-")+","+(f.a?f.a.toString():"-")+","+(void 0!==f.C?f.C:"-")+","+(void 0!==f.g?f.g:"-")+","+(void 0!==f.j?f.j.toString():"-")+","+(void 0!==f.c?f.c.toString():"-")),f=f.b):f="-",a.ya?(g=a.ya,void 0===g.f&&(g.f=g.b instanceof CanvasPattern||g.b instanceof CanvasGradient?la(g.b).toString():"f"+(g.b?Kc(g.b):"-")),g=g.f):g="-",a.c&&f==a.c[1]&&g==a.c[2]&&a.f==a.c[3]&&a.a==a.c[4]&&a.g==
214
- a.c[5]&&a.b==a.c[6]||(a.c=["r"+f+g+(void 0!==a.f?a.f.toString():"-")+(void 0!==a.a?a.a.toString():"-")+(void 0!==a.g?a.g.toString():"-")+(void 0!==a.b?a.b.toString():"-"),f,g,a.f,a.a,a.g,a.b]),d=b.add(a.c[0],m,m,a.$e.bind(a,d),c),a.u=d.image,a.qa=[d.offsetX,d.offsetY],c=d.image.width,a.F=e?d.Ph:a.u);a.G=[m/2,m/2];a.H=[m,m];a.ma=[c,c]}
215
- k.$e=function(a,b,c,d){var e;b.setTransform(1,0,0,1,0,0);b.translate(c,d);b.beginPath();if(Infinity===this.b)b.arc(a.size/2,a.size/2,this.f,0,2*Math.PI,!0);else for(this.a!==this.f&&(this.b*=2),c=0;c<=this.b;c++)d=2*c*Math.PI/this.b-Math.PI/2+this.g,e=c%2?this.a:this.f,b.lineTo(a.size/2+e*Math.cos(d),a.size/2+e*Math.sin(d));this.ya&&(b.fillStyle=Nc(this.ya.b),b.fill());this.Ba&&(b.strokeStyle=a.strokeStyle,b.lineWidth=a.cg,a.lineDash&&b.setLineDash(a.lineDash),b.lineCap=a.lineCap,b.lineJoin=a.lineJoin,
216
- b.miterLimit=a.miterLimit,b.stroke());b.closePath()};
217
- k.Ze=function(a,b,c,d){b.setTransform(1,0,0,1,0,0);b.translate(c,d);b.beginPath();if(Infinity===this.b)b.arc(a.size/2,a.size/2,this.f,0,2*Math.PI,!0);else{this.a!==this.f&&(this.b*=2);var e;for(c=0;c<=this.b;c++)e=2*c*Math.PI/this.b-Math.PI/2+this.g,d=c%2?this.a:this.f,b.lineTo(a.size/2+d*Math.cos(e),a.size/2+d*Math.sin(e))}b.fillStyle=Eg;b.fill();this.Ba&&(b.strokeStyle=a.strokeStyle,b.lineWidth=a.cg,a.lineDash&&b.setLineDash(a.lineDash),b.stroke());b.closePath()};function Ah(a){a=a||{};yh.call(this,{points:Infinity,fill:a.fill,radius:a.radius,snapToPixel:a.snapToPixel,stroke:a.stroke,atlasManager:a.atlasManager})}t(Ah,yh);Ah.prototype.clone=function(){var a=new Ah({fill:this.sa()?this.sa().clone():void 0,stroke:this.oa()?this.oa().clone():void 0,radius:this.f,snapToPixel:this.o,atlasManager:this.B});a.Sb(this.j);a.Tb(this.i);return a};Ah.prototype.rd=function(a){this.f=a;zh(this,this.B)};function Bh(a){a=a||{};this.b=void 0!==a.color?a.color:null;this.f=void 0}Bh.prototype.clone=function(){var a=this.b;return new Bh({color:a&&a.slice?a.slice():a||void 0})};Bh.prototype.a=function(){return this.b};Bh.prototype.c=function(a){this.b=a;this.f=void 0};function Ch(a){a=a||{};this.qb=null;this.Ca=Dh;void 0!==a.geometry&&this.Oa(a.geometry);this.ya=void 0!==a.fill?a.fill:null;this.I=void 0!==a.image?a.image:null;this.Ba=void 0!==a.stroke?a.stroke:null;this.pa=void 0!==a.text?a.text:null;this.jg=a.zIndex}k=Ch.prototype;
218
- k.clone=function(){var a=this.N();a&&a.clone&&(a=a.clone());return new Ch({geometry:a,fill:this.sa()?this.sa().clone():void 0,image:this.W()?this.W().clone():void 0,stroke:this.oa()?this.oa().clone():void 0,text:this.xa()?this.xa().clone():void 0,zIndex:this.ta()})};k.N=function(){return this.qb};k.Rg=function(){return this.Ca};k.sa=function(){return this.ya};k.re=function(a){this.ya=a};k.W=function(){return this.I};k.se=function(a){this.I=a};k.oa=function(){return this.Ba};
219
- k.ve=function(a){this.Ba=a};k.xa=function(){return this.pa};k.we=function(a){this.pa=a};k.ta=function(){return this.jg};k.Oa=function(a){"function"===typeof a?this.Ca=a:"string"===typeof a?this.Ca=function(b){return b.get(a)}:a?a&&(this.Ca=function(){return a}):this.Ca=Dh;this.qb=a};k.Xb=function(a){this.jg=a};function Eh(a){if("function"!==typeof a){var b;Array.isArray(a)?b=a:(qa(a instanceof Ch,41),b=[a]);a=function(){return b}}return a}var Fh=null;
220
- function Gh(){if(!Fh){var a=new Bh({color:"rgba(255,255,255,0.4)"}),b=new Yg({color:"#3399CC",width:1.25});Fh=[new Ch({image:new Ah({fill:a,stroke:b,radius:5}),fill:a,stroke:b})]}return Fh}
221
- function Hh(){var a={},b=[255,255,255,1],c=[0,153,255,1];a.Polygon=[new Ch({fill:new Bh({color:[255,255,255,.5]})})];a.MultiPolygon=a.Polygon;a.LineString=[new Ch({stroke:new Yg({color:b,width:5})}),new Ch({stroke:new Yg({color:c,width:3})})];a.MultiLineString=a.LineString;a.Circle=a.Polygon.concat(a.LineString);a.Point=[new Ch({image:new Ah({radius:6,fill:new Bh({color:c}),stroke:new Yg({color:b,width:1.5})}),zIndex:Infinity})];a.MultiPoint=a.Point;a.GeometryCollection=a.Polygon.concat(a.LineString,
222
- a.Point);return a}function Dh(a){return a.N()};function Ih(a){Ac.call(this);this.c=void 0;this.a="geometry";this.j=null;this.i=void 0;this.g=null;w(this,Cc(this.a),this.Tc,this);void 0!==a&&(a instanceof oe||!a?this.Oa(a):this.L(a))}t(Ih,Ac);k=Ih.prototype;k.clone=function(){var a=new Ih(this.Z());a.md(this.a);var b=this.N();b&&a.Oa(b.clone());(b=this.j)&&a.Bf(b);return a};k.N=function(){return this.get(this.a)};k.ki=function(){return this.c};k.Sg=function(){return this.a};k.li=function(){return this.j};k.mi=function(){return this.i};k.vh=function(){this.s()};
223
- k.Tc=function(){this.g&&(nc(this.g),this.g=null);var a=this.N();a&&(this.g=w(a,"change",this.vh,this));this.s()};k.Oa=function(a){this.set(this.a,a)};k.Bf=function(a){this.i=(this.j=a)?Jh(a):void 0;this.s()};k.od=function(a){this.c=a;this.s()};k.md=function(a){sc(this,Cc(this.a),this.Tc,this);this.a=a;w(this,Cc(this.a),this.Tc,this);this.Tc()};
224
- function Jh(a){var b;if("function"===typeof a)2==a.length?b=function(b){return a(this,b)}:b=a;else{var c;Array.isArray(a)?c=a:(qa(a instanceof Ch,41),c=[a]);b=function(){return c}}return b};var Kh=document.implementation.createDocument("","",null);function Lh(a){return Mh(a,!1,[]).join("")}function Mh(a,b,c){if(a.nodeType==Node.CDATA_SECTION_NODE||a.nodeType==Node.TEXT_NODE)b?c.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):c.push(a.nodeValue);else for(a=a.firstChild;a;a=a.nextSibling)Mh(a,b,c);return c}function Nh(a){return function(b,c){var d=a.call(this,b,c);void 0!==d&&c[c.length-1].push(d)}}
225
- function Oh(a){return function(b,c){var d=a.call(this,b,c);void 0!==d&&(c[c.length-1]=d)}}function Ph(a){return function(b,c){var d=a.call(this,b,c);if(void 0!==d){var e=c[c.length-1],f=b.localName,g;f in e?g=e[f]:g=e[f]=[];g.push(d)}}}function G(a,b){return function(c,d){var e=a.call(this,c,d);void 0!==e&&(d[d.length-1][void 0!==b?b:c.localName]=e)}}function H(a){return function(b,c,d){a.call(this,b,c,d);d[d.length-1].node.appendChild(b)}}
226
- function Qh(a){var b,c;return function(d,e,f){if(!b){b={};var g={};g[d.localName]=a;b[d.namespaceURI]=g;c=Rh(d.localName)}Sh(b,c,e,f)}}function Rh(a){return function(b,c,d){b=c[c.length-1].node;c=a;void 0===c&&(c=d);return Kh.createElementNS(b.namespaceURI,c)}}var Th=Rh();function Uh(a,b){for(var c=b.length,d=Array(c),e=0;e<c;++e)d[e]=a[b[e]];return d}function J(a,b,c){c=void 0!==c?c:{};var d,e;d=0;for(e=a.length;d<e;++d)c[a[d]]=b;return c}
227
- function Vh(a,b,c,d){for(b=b.firstElementChild;b;b=b.nextElementSibling){var e=a[b.namespaceURI];void 0!==e&&(e=e[b.localName])&&e.call(d,b,c)}}function K(a,b,c,d){d.push(a);Vh(b,c,d,void 0);return d.pop()}function Sh(a,b,c,d,e,f){for(var g=(void 0!==e?e:c).length,h,l,m=0;m<g;++m)h=c[m],void 0!==h&&(l=b.call(f,h,d,void 0!==e?e[m]:void 0),void 0!==l&&a[l.namespaceURI][l.localName].call(f,l,h,d))}function Wh(a,b,c,d,e,f,g){e.push(a);Sh(b,c,d,e,f,g);e.pop()};function Xh(a,b,c){return function(d,e,f){var g=new XMLHttpRequest;g.open("GET","function"===typeof a?a(d,e,f):a,!0);"arraybuffer"==b.J()&&(g.responseType="arraybuffer");g.onload=function(){if(!g.status||200<=g.status&&300>g.status){var a=b.J(),d;"json"==a||"text"==a?d=g.responseText:"xml"==a?(d=g.responseXML,d||(a=g.responseText,d=(new DOMParser).parseFromString(a,"application/xml"))):"arraybuffer"==a&&(d=g.response);d&&c.call(this,b.jd(d,{featureProjection:f}),b.kd(d))}}.bind(this);g.send()}}
228
- function Yh(a,b){return Xh(a,b,function(a){this.Ec(a)})};function Zh(){this.f=this.defaultDataProjection=null}function $h(a,b,c){var d;c&&(d={dataProjection:c.dataProjection?c.dataProjection:a.kd(b),featureProjection:c.featureProjection});return ai(a,d)}function ai(a,b){return mb({dataProjection:a.defaultDataProjection,featureProjection:a.f},b)}
229
- function bi(a,b,c){var d=c?Cb(c.featureProjection):null,e=c?Cb(c.dataProjection):null,f;d&&e&&!Qb(d,e)?a instanceof oe?f=(b?a.clone():a).Ra(b?d:e,b?e:d):f=Ub(b?a.slice():a,b?d:e,b?e:d):f=a;if(b&&c&&c.decimals){var g=Math.pow(10,c.decimals);a=function(a){for(var b=0,c=a.length;b<c;++b)a[b]=Math.round(a[b]*g)/g;return a};Array.isArray(f)?a(f):f.Eb(a)}return f};function ci(){Zh.call(this)}t(ci,Zh);function di(a){return"string"===typeof a?(a=JSON.parse(a))?a:null:null!==a?a:null}k=ci.prototype;k.J=function(){return"json"};k.je=function(a,b){return ei(this,di(a),$h(this,a,b))};k.jd=function(a,b){var c=di(a),d=$h(this,a,b),e;if("FeatureCollection"===c.type){e=[];var c=c.features,f,g;f=0;for(g=c.length;f<g;++f)e.push(ei(this,c[f],d))}else e=[ei(this,c,d)];return e};k.le=function(a,b){var c=di(a),d=$h(this,a,b);return fi(c,d)};
230
- k.kd=function(a){a=di(a).crs;var b;a?"name"==a.type?b=Cb(a.properties.name):"EPSG"==a.type?b=Cb("EPSG:"+a.properties.code):qa(!1,36):b=this.defaultDataProjection;return b};k.De=function(a,b){return JSON.stringify(this.b(a,b))};k.Ee=function(a,b){return JSON.stringify(this.c(a,b))};k.Fe=function(a,b){return JSON.stringify(this.i(a,b))};function gi(a,b,c,d,e,f){var g=NaN,h=NaN,l=(c-b)/d;if(1===l)g=a[b],h=a[b+1];else if(2==l)g=(1-e)*a[b]+e*a[b+d],h=(1-e)*a[b+1]+e*a[b+d+1];else if(l){var h=a[b],l=a[b+1],m=0,g=[0],n;for(n=b+d;n<c;n+=d){var p=a[n],q=a[n+1],m=m+Math.sqrt((p-h)*(p-h)+(q-l)*(q-l));g.push(m);h=p;l=q}c=e*m;l=0;m=g.length;for(n=!1;l<m;)e=l+(m-l>>1),h=+ba(g[e],c),0>h?l=e+1:(m=e,n=!h);e=n?l:~l;0>e?(c=(c-g[-e-2])/(g[-e-1]-g[-e-2]),b+=(-e-2)*d,g=ya(a[b],a[b+d],c),h=ya(a[b+1],a[b+d+1],c)):(g=a[b+e*d],h=a[b+e*d+1])}return f?(f[0]=
231
- g,f[1]=h,f):[g,h]}function hi(a,b,c,d,e,f){if(c==b)return null;if(e<a[b+d-1])return f?(c=a.slice(b,b+d),c[d-1]=e,c):null;if(a[c-1]<e)return f?(c=a.slice(c-d,c),c[d-1]=e,c):null;if(e==a[b+d-1])return a.slice(b,b+d);b/=d;for(c/=d;b<c;)f=b+c>>1,e<a[(f+1)*d-1]?c=f:b=f+1;c=a[b*d-1];if(e==c)return a.slice((b-1)*d,(b-1)*d+d);f=(e-c)/(a[(b+1)*d-1]-c);c=[];var g;for(g=0;g<d-1;++g)c.push(ya(a[(b-1)*d+g],a[b*d+g],f));c.push(e);return c}
232
- function ii(a,b,c,d,e,f){var g=0;if(f)return hi(a,g,b[b.length-1],c,d,e);if(d<a[c-1])return e?(a=a.slice(0,c),a[c-1]=d,a):null;if(a[a.length-1]<d)return e?(a=a.slice(a.length-c),a[c-1]=d,a):null;e=0;for(f=b.length;e<f;++e){var h=b[e];if(g!=h){if(d<a[g+c-1])break;else if(d<=a[h-1])return hi(a,g,h,c,d,!1);g=h}}return null};function L(a,b){y.call(this);this.a=null;this.v=this.B=this.g=-1;this.aa(a,b)}t(L,y);k=L.prototype;k.Dg=function(a){this.l?da(this.l,a):this.l=a.slice();this.s()};k.clone=function(){var a=new L(null);a.S(this.V,this.l.slice());return a};k.Wa=function(a,b,c,d){if(d<Ka(this.D(),a,b))return d;this.v!=this.f&&(this.B=Math.sqrt(we(this.l,0,this.l.length,this.A,0)),this.v=this.f);return ye(this.l,0,this.l.length,this.A,this.B,!1,a,b,c,d)};k.Lg=function(a,b){return Le(this.l,0,this.l.length,this.A,a,b)};
233
- k.Ai=function(a,b){return"XYM"!=this.V&&"XYZM"!=this.V?null:hi(this.l,0,this.l.length,this.A,a,void 0!==b?b:!1)};k.M=function(){return De(this.l,0,this.l.length,this.A)};k.ef=function(a,b){return gi(this.l,0,this.l.length,this.A,a,b)};k.Bi=function(){var a=this.l,b=this.A,c=a[0],d=a[1],e=0,f;for(f=0+b;f<this.l.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 Qg(a){a.g!=a.f&&(a.a=a.ef(.5,a.a),a.g=a.f);return a.a}
234
- k.Kb=function(a){var b=[];b.length=Fe(this.l,0,this.l.length,this.A,a,b,0);a=new L(null);a.S("XY",b);return a};k.J=function(){return"LineString"};k.Aa=function(a){return Me(this.l,0,this.l.length,this.A,a)};k.aa=function(a,b){a?(se(this,b,a,1),this.l||(this.l=[]),this.l.length=Be(this.l,0,a,this.A),this.s()):this.S("XY",null)};k.S=function(a,b){re(this,a,b);this.s()};function M(a,b){y.call(this);this.a=[];this.g=this.v=-1;this.aa(a,b)}t(M,y);k=M.prototype;k.Eg=function(a){this.l?da(this.l,a.l.slice()):this.l=a.l.slice();this.a.push(this.l.length);this.s()};k.clone=function(){var a=new M(null);a.S(this.V,this.l.slice(),this.a.slice());return a};k.Wa=function(a,b,c,d){if(d<Ka(this.D(),a,b))return d;this.g!=this.f&&(this.v=Math.sqrt(xe(this.l,0,this.a,this.A,0)),this.g=this.f);return ze(this.l,0,this.a,this.A,this.v,!1,a,b,c,d)};
235
- k.Di=function(a,b,c){return"XYM"!=this.V&&"XYZM"!=this.V||!this.l.length?null:ii(this.l,this.a,this.A,a,void 0!==b?b:!1,void 0!==c?c:!1)};k.M=function(){return Ee(this.l,0,this.a,this.A)};k.cb=function(){return this.a};k.Zg=function(a){if(0>a||this.a.length<=a)return null;var b=new L(null);b.S(this.V,this.l.slice(a?this.a[a-1]:0,this.a[a]));return b};k.Qc=function(){var a=this.l,b=this.a,c=this.V,d=[],e=0,f,g;f=0;for(g=b.length;f<g;++f){var h=b[f],l=new L(null);l.S(c,a.slice(e,h));d.push(l);e=h}return d};
236
- function Rg(a){var b=[],c=a.l,d=0,e=a.a;a=a.A;var f,g;f=0;for(g=e.length;f<g;++f){var h=e[f],d=gi(c,d,h,a,.5);da(b,d);d=h}return b}k.Kb=function(a){var b=[],c=[],d=this.l,e=this.a,f=this.A,g=0,h=0,l,m;l=0;for(m=e.length;l<m;++l){var n=e[l],h=Fe(d,g,n,f,a,b,h);c.push(h);g=n}b.length=h;a=new M(null);a.S("XY",b,c);return a};k.J=function(){return"MultiLineString"};k.Aa=function(a){a:{var b=this.l,c=this.a,d=this.A,e=0,f,g;f=0;for(g=c.length;f<g;++f){if(Me(b,e,c[f],d,a)){a=!0;break a}e=c[f]}a=!1}return a};
237
- k.aa=function(a,b){if(a){se(this,b,a,2);this.l||(this.l=[]);var c=Ce(this.l,0,a,this.A,this.a);this.l.length=c.length?c[c.length-1]:0;this.s()}else this.S("XY",null,this.a)};k.S=function(a,b,c){re(this,a,b);this.a=c;this.s()};function ji(a,b){var c=a.V,d=[],e=[],f,g;f=0;for(g=b.length;f<g;++f){var h=b[f];f||(c=h.V);da(d,h.l);e.push(d.length)}a.S(c,d,e)};function N(a,b){y.call(this);this.aa(a,b)}t(N,y);k=N.prototype;k.Gg=function(a){this.l?da(this.l,a.l):this.l=a.l.slice();this.s()};k.clone=function(){var a=new N(null);a.S(this.V,this.l.slice());return a};k.Wa=function(a,b,c,d){if(d<Ka(this.D(),a,b))return d;var e=this.l,f=this.A,g,h,l;g=0;for(h=e.length;g<h;g+=f)if(l=wa(a,b,e[g],e[g+1]),l<d){d=l;for(l=0;l<f;++l)c[l]=e[g+l];c.length=f}return d};k.M=function(){return De(this.l,0,this.l.length,this.A)};
238
- k.gh=function(a){var b=this.l?this.l.length/this.A:0;if(0>a||b<=a)return null;b=new B(null);b.S(this.V,this.l.slice(a*this.A,(a+1)*this.A));return b};k.ce=function(){var a=this.l,b=this.V,c=this.A,d=[],e,f;e=0;for(f=a.length;e<f;e+=c){var g=new B(null);g.S(b,a.slice(e,e+c));d.push(g)}return d};k.J=function(){return"MultiPoint"};k.Aa=function(a){var b=this.l,c=this.A,d,e,f,g;d=0;for(e=b.length;d<e;d+=c)if(f=b[d],g=b[d+1],Ma(a,f,g))return!0;return!1};
239
- k.aa=function(a,b){a?(se(this,b,a,1),this.l||(this.l=[]),this.l.length=Be(this.l,0,a,this.A),this.s()):this.S("XY",null)};k.S=function(a,b){re(this,a,b);this.s()};function O(a,b){y.call(this);this.a=[];this.v=-1;this.B=null;this.H=this.F=this.G=-1;this.g=null;this.aa(a,b)}t(O,y);k=O.prototype;k.Hg=function(a){if(this.l){var b=this.l.length;da(this.l,a.l);a=a.cb().slice();var c,d;c=0;for(d=a.length;c<d;++c)a[c]+=b}else this.l=a.l.slice(),a=a.cb().slice(),this.a.push();this.a.push(a);this.s()};k.clone=function(){for(var a=new O(null),b=this.a.length,c=Array(b),d=0;d<b;++d)c[d]=this.a[d].slice();ki(a,this.V,this.l.slice(),c);return a};
240
- k.Wa=function(a,b,c,d){if(d<Ka(this.D(),a,b))return d;if(this.F!=this.f){var e=this.a,f=0,g=0,h,l;h=0;for(l=e.length;h<l;++h)var m=e[h],g=xe(this.l,f,m,this.A,g),f=m[m.length-1];this.G=Math.sqrt(g);this.F=this.f}e=Sg(this);f=this.a;g=this.A;h=this.G;l=0;var m=[NaN,NaN],n,p;n=0;for(p=f.length;n<p;++n){var q=f[n];d=ze(e,l,q,g,h,!0,a,b,c,d,m);l=q[q.length-1]}return d};
241
- k.wb=function(a,b){var c;a:{c=Sg(this);var d=this.a,e=0;if(d.length){var f,g;f=0;for(g=d.length;f<g;++f){var h=d[f];if(Je(c,e,h,this.A,a,b)){c=!0;break a}e=h[h.length-1]}}c=!1}return c};k.Ei=function(){var a=Sg(this),b=this.a,c=0,d=0,e,f;e=0;for(f=b.length;e<f;++e)var g=b[e],d=d+ue(a,c,g,this.A),c=g[g.length-1];return d};
242
- k.M=function(a){var b;void 0!==a?(b=Sg(this).slice(),Re(b,this.a,this.A,a)):b=this.l;a=b;b=this.a;var c=this.A,d=0,e=[],f=0,g,h;g=0;for(h=b.length;g<h;++g){var l=b[g];e[f++]=Ee(a,d,l,c,e[f]);d=l[l.length-1]}e.length=f;return e};
243
- function Tg(a){if(a.v!=a.f){var b=a.l,c=a.a,d=a.A,e=0,f=[],g,h,l;g=0;for(h=c.length;g<h;++g){var m=c[g];l=b;var n=m[0],p=d,q=Sa(void 0);l=Wa(q,l,e,n,p);f.push((l[0]+l[2])/2,(l[1]+l[3])/2);e=m[m.length-1]}b=Sg(a);c=a.a;d=a.A;g=0;h=[];m=0;for(l=c.length;m<l;++m)e=c[m],h=Ke(b,g,e,d,f,2*m,h),g=e[e.length-1];a.B=h;a.v=a.f}return a.B}k.Vg=function(){var a=new N(null);a.S("XY",Tg(this).slice());return a};
244
- function Sg(a){if(a.H!=a.f){var b=a.l,c;a:{c=a.a;var d,e;d=0;for(e=c.length;d<e;++d)if(!Pe(b,c[d],a.A,void 0)){c=!1;break a}c=!0}c?a.g=b:(a.g=b.slice(),a.g.length=Re(a.g,a.a,a.A));a.H=a.f}return a.g}k.Kb=function(a){var b=[],c=[],d=this.l,e=this.a,f=this.A;a=Math.sqrt(a);var g=0,h=0,l,m;l=0;for(m=e.length;l<m;++l){var n=e[l],p=[],h=Ge(d,g,n,f,a,b,h,p);c.push(p);g=n[n.length-1]}b.length=h;d=new O(null);ki(d,"XY",b,c);return d};
245
- k.hh=function(a){if(0>a||this.a.length<=a)return null;var b;a?(b=this.a[a-1],b=b[b.length-1]):b=0;a=this.a[a].slice();var c=a[a.length-1];if(b){var d,e;d=0;for(e=a.length;d<e;++d)a[d]-=b}d=new C(null);d.S(this.V,this.l.slice(b,c),a);return d};k.Rd=function(){var a=this.V,b=this.l,c=this.a,d=[],e=0,f,g,h,l;f=0;for(g=c.length;f<g;++f){var m=c[f].slice(),n=m[m.length-1];if(e)for(h=0,l=m.length;h<l;++h)m[h]-=e;h=new C(null);h.S(a,b.slice(e,n),m);d.push(h);e=n}return d};k.J=function(){return"MultiPolygon"};
246
- k.Aa=function(a){a:{var b=Sg(this),c=this.a,d=this.A,e=0,f,g;f=0;for(g=c.length;f<g;++f){var h=c[f];if(Ne(b,e,h,d,a)){a=!0;break a}e=h[h.length-1]}a=!1}return a};k.aa=function(a,b){if(a){se(this,b,a,3);this.l||(this.l=[]);var c=this.l,d=this.A,e=this.a,f=0,e=e?e:[],g=0,h,l;h=0;for(l=a.length;h<l;++h)f=Ce(c,f,a[h],d,e[g]),e[g++]=f,f=f[f.length-1];e.length=g;e.length?(c=e[e.length-1],this.l.length=c.length?c[c.length-1]:0):this.l.length=0;this.s()}else ki(this,"XY",null,this.a)};
247
- function ki(a,b,c,d){re(a,b,c);a.a=d;a.s()};function P(a){oe.call(this);this.a=a?a:null;li(this)}t(P,oe);function mi(a){var b=[],c,d;c=0;for(d=a.length;c<d;++c)b.push(a[c].clone());return b}function ni(a){var b,c;if(a.a)for(b=0,c=a.a.length;b<c;++b)sc(a.a[b],"change",a.s,a)}function li(a){var b,c;if(a.a)for(b=0,c=a.a.length;b<c;++b)w(a.a[b],"change",a.s,a)}k=P.prototype;k.clone=function(){var a=new P(null);a.Zf(this.a);return a};
248
- k.Wa=function(a,b,c,d){if(d<Ka(this.D(),a,b))return d;var e=this.a,f,g;f=0;for(g=e.length;f<g;++f)d=e[f].Wa(a,b,c,d);return d};k.wb=function(a,b){var c=this.a,d,e;d=0;for(e=c.length;d<e;++d)if(c[d].wb(a,b))return!0;return!1};k.Gc=function(a){Sa(a);for(var b=this.a,c=0,d=b.length;c<d;++c)Va(a,b[c].D());return a};k.Nd=function(){return mi(this.a)};
249
- k.Rc=function(a){this.j!=this.f&&(nb(this.c),this.i=0,this.j=this.f);if(0>a||this.i&&a<this.i)return this;var b=a.toString();if(this.c.hasOwnProperty(b))return this.c[b];var c=[],d=this.a,e=!1,f,g;f=0;for(g=d.length;f<g;++f){var h=d[f],l=h.Rc(a);c.push(l);l!==h&&(e=!0)}if(e)return a=new P(null),ni(a),a.a=c,li(a),a.s(),this.c[b]=a;this.i=a;return this};k.J=function(){return"GeometryCollection"};k.Aa=function(a){var b=this.a,c,d;c=0;for(d=b.length;c<d;++c)if(b[c].Aa(a))return!0;return!1};
250
- k.rotate=function(a,b){for(var c=this.a,d=0,e=c.length;d<e;++d)c[d].rotate(a,b);this.s()};k.scale=function(a,b,c){c||(c=fb(this.D()));for(var d=this.a,e=0,f=d.length;e<f;++e)d[e].scale(a,b,c);this.s()};k.Zf=function(a){a=mi(a);ni(this);this.a=a;li(this);this.s()};k.Eb=function(a){var b=this.a,c,d;c=0;for(d=b.length;c<d;++c)b[c].Eb(a);this.s()};k.translate=function(a,b){var c=this.a,d,e;d=0;for(e=c.length;d<e;++d)c[d].translate(a,b);this.s()};k.ra=function(){ni(this);oe.prototype.ra.call(this)};function oi(a){a=a?a:{};Zh.call(this);this.defaultDataProjection=Cb(a.defaultDataProjection?a.defaultDataProjection:"EPSG:4326");a.featureProjection&&(this.f=Cb(a.featureProjection));this.a=a.geometryName}t(oi,ci);function fi(a,b){return a?bi((0,pi[a.type])(a),!1,b):null}function qi(a,b){return(0,ri[a.J()])(bi(a,!0,b),b)}
251
- var pi={Point:function(a){return new B(a.coordinates)},LineString:function(a){return new L(a.coordinates)},Polygon:function(a){return new C(a.coordinates)},MultiPoint:function(a){return new N(a.coordinates)},MultiLineString:function(a){return new M(a.coordinates)},MultiPolygon:function(a){return new O(a.coordinates)},GeometryCollection:function(a,b){var c=a.geometries.map(function(a){return fi(a,b)});return new P(c)}},ri={Point:function(a){return{type:"Point",coordinates:a.M()}},LineString:function(a){return{type:"LineString",
252
- coordinates:a.M()}},Polygon:function(a,b){var c;b&&(c=b.rightHanded);return{type:"Polygon",coordinates:a.M(c)}},MultiPoint:function(a){return{type:"MultiPoint",coordinates:a.M()}},MultiLineString:function(a){return{type:"MultiLineString",coordinates:a.M()}},MultiPolygon:function(a,b){var c;b&&(c=b.rightHanded);return{type:"MultiPolygon",coordinates:a.M(c)}},GeometryCollection:function(a,b){return{type:"GeometryCollection",geometries:a.a.map(function(a){var c=mb({},b);delete c.featureProjection;return qi(a,
253
- c)})}},Circle:function(){return{type:"GeometryCollection",geometries:[]}}};function ei(a,b,c){b="Feature"===b.type?b:{type:"Feature",geometry:b};c=fi(b.geometry,c);var d=new Ih;a.a&&d.md(a.a);d.Oa(c);void 0!==b.id&&d.od(b.id);b.properties&&d.L(b.properties);return d}oi.prototype.b=function(a,b){b=ai(this,b);var c={type:"Feature"},d=a.c;void 0!==d&&(c.id=d);(d=a.N())?c.geometry=qi(d,b):c.geometry=null;d=a.Z();delete d[a.a];pb(d)?c.properties=null:c.properties=d;return c};
254
- oi.prototype.c=function(a,b){b=ai(this,b);var c=[],d,e;d=0;for(e=a.length;d<e;++d)c.push(this.b(a[d],b));return{type:"FeatureCollection",features:c}};oi.prototype.i=function(a,b){return qi(a,ai(this,b))};function si(a){a=Lh(a);return ti(a)}function ti(a){if(a=/^\s*(true|1)|(false|0)\s*$/.exec(a))return void 0!==a[1]||!1}function ui(a){a=Lh(a);a=Date.parse(a);return isNaN(a)?void 0:a/1E3}function vi(a){a=Lh(a);return wi(a)}function wi(a){if(a=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(a))return parseFloat(a[1])}function xi(a){a=Lh(a);return yi(a)}function yi(a){if(a=/^\s*(\d+)\s*$/.exec(a))return parseInt(a[1],10)}function Q(a){return Lh(a).trim()}function zi(a,b){Ai(a,b?"1":"0")}
255
- function Bi(a,b){a.appendChild(Kh.createTextNode(b.toPrecision()))}function Ci(a,b){a.appendChild(Kh.createTextNode(b.toString()))}function Ai(a,b){a.appendChild(Kh.createTextNode(b))};var Di=[null,"http://www.topografix.com/GPX/1/0","http://www.topografix.com/GPX/1/1"];function Ei(a,b,c,d){a.push(parseFloat(c.getAttribute("lon")),parseFloat(c.getAttribute("lat")));"ele"in d?(a.push(d.ele),delete d.ele,b.hasZ=!0):a.push(0);"time"in d?(a.push(d.time),delete d.time,b.hasM=!0):a.push(0);return a}
256
- function Fi(a,b,c){var d="XY",e=2;a.hasZ&&a.hasM?(d="XYZM",e=4):a.hasZ?(d="XYZ",e=3):a.hasM&&(d="XYM",e=3);if(4!==e){var f,g;f=0;for(g=b.length/4;f<g;f++)b[f*e]=b[4*f],b[f*e+1]=b[4*f+1],a.hasZ&&(b[f*e+2]=b[4*f+2]),a.hasM&&(b[f*e+2]=b[4*f+3]);b.length=b.length/4*e;if(c)for(f=0,g=c.length;f<g;f++)c[f]=c[f]/4*e}return d}function Gi(a,b){var c=b[b.length-1],d=a.getAttribute("href");null!==d&&(c.link=d);Vh(Hi,a,b)}function Ii(a,b){b[b.length-1].extensionsNode_=a}
257
- J(Di,{rte:Nh(function(a,b){var c=b[0],d=K({flatCoordinates:[],layoutOptions:{}},Ji,a,b);if(d){var e=d.flatCoordinates;delete d.flatCoordinates;var f=d.layoutOptions;delete d.layoutOptions;var f=Fi(f,e),g=new L(null);g.S(f,e);bi(g,!1,c);c=new Ih(g);c.L(d);return c}}),trk:Nh(function(a,b){var c=b[0],d=K({flatCoordinates:[],ends:[],layoutOptions:{}},Ki,a,b);if(d){var e=d.flatCoordinates;delete d.flatCoordinates;var f=d.ends;delete d.ends;var g=d.layoutOptions;delete d.layoutOptions;var g=Fi(g,e,f),h=
258
- new M(null);h.S(g,e,f);bi(h,!1,c);c=new Ih(h);c.L(d);return c}}),wpt:Nh(function(a,b){var c=b[0],d=K({},Li,a,b);if(d){var e={},f=Ei([],e,a,d),e=Fi(e,f),f=new B(f,e);bi(f,!1,c);c=new Ih(f);c.L(d);return c}})});
259
- var Hi=J(Di,{text:G(Q,"linkText"),type:G(Q,"linkType")}),Ji=J(Di,{name:G(Q),cmt:G(Q),desc:G(Q),src:G(Q),link:Gi,number:G(xi),extensions:Ii,type:G(Q),rtept:function(a,b){var c=K({},Mi,a,b);if(c){var d=b[b.length-1];Ei(d.flatCoordinates,d.layoutOptions,a,c)}}}),Mi=J(Di,{ele:G(vi),time:G(ui)}),Ki=J(Di,{name:G(Q),cmt:G(Q),desc:G(Q),src:G(Q),link:Gi,number:G(xi),type:G(Q),extensions:Ii,trkseg:function(a,b){var c=b[b.length-1];Vh(Ni,a,b);c.ends.push(c.flatCoordinates.length)}}),Ni=J(Di,{trkpt:function(a,
260
- b){var c=K({},Oi,a,b);if(c){var d=b[b.length-1];Ei(d.flatCoordinates,d.layoutOptions,a,c)}}}),Oi=J(Di,{ele:G(vi),time:G(ui)}),Li=J(Di,{ele:G(vi),time:G(ui),magvar:G(vi),geoidheight:G(vi),name:G(Q),cmt:G(Q),desc:G(Q),src:G(Q),link:Gi,sym:G(Q),type:G(Q),fix:G(Q),sat:G(xi),hdop:G(vi),vdop:G(vi),pdop:G(vi),ageofdgpsdata:G(vi),dgpsid:G(xi),extensions:Ii});function Pi(a,b,c){a.setAttribute("href",b);b=c[c.length-1].properties;Wh({node:a},Qi,Th,[b.linkText,b.linkType],c,Ri)}
261
- function Si(a,b,c){var d=c[c.length-1],e=d.node.namespaceURI,f=d.properties;a.setAttributeNS(null,"lat",b[1]);a.setAttributeNS(null,"lon",b[0]);switch(d.geometryLayout){case "XYZM":b[3]&&(f.time=b[3]);case "XYZ":b[2]&&(f.ele=b[2]);break;case "XYM":b[2]&&(f.time=b[2])}b="rtept"==a.nodeName?Ti[e]:Ui[e];d=Uh(f,b);Wh({node:a,properties:f},Vi,Th,d,c,b)}
262
- var Ri=["text","type"],Qi=J(Di,{text:H(Ai),type:H(Ai)}),Wi=J(Di,"name cmt desc src link number type rtept".split(" ")),Xi=J(Di,{name:H(Ai),cmt:H(Ai),desc:H(Ai),src:H(Ai),link:H(Pi),number:H(Ci),type:H(Ai),rtept:Qh(H(Si))}),Ti=J(Di,["ele","time"]),Yi=J(Di,"name cmt desc src link number type trkseg".split(" ")),aj=J(Di,{name:H(Ai),cmt:H(Ai),desc:H(Ai),src:H(Ai),link:H(Pi),number:H(Ci),type:H(Ai),trkseg:Qh(H(function(a,b,c){Wh({node:a,geometryLayout:b.V,properties:{}},Zi,$i,b.M(),c)}))}),$i=Rh("trkpt"),
263
- Zi=J(Di,{trkpt:H(Si)}),Ui=J(Di,"ele time magvar geoidheight name cmt desc src link sym type fix sat hdop vdop pdop ageofdgpsdata dgpsid".split(" ")),Vi=J(Di,{ele:H(Bi),time:H(function(a,b){var c=new Date(1E3*b);a.appendChild(Kh.createTextNode(c.getUTCFullYear()+"-"+ge(c.getUTCMonth()+1)+"-"+ge(c.getUTCDate())+"T"+ge(c.getUTCHours())+":"+ge(c.getUTCMinutes())+":"+ge(c.getUTCSeconds())+"Z"))}),magvar:H(Bi),geoidheight:H(Bi),name:H(Ai),cmt:H(Ai),desc:H(Ai),src:H(Ai),link:H(Pi),sym:H(Ai),type:H(Ai),fix:H(Ai),
264
- sat:H(Ci),hdop:H(Bi),vdop:H(Bi),pdop:H(Bi),ageofdgpsdata:H(Bi),dgpsid:H(Ci)});
265
- J(Di,{rte:H(function(a,b,c){var d=c[0],e=b.Z();a={node:a,properties:e};if(b=b.N())b=bi(b,!0,d),a.geometryLayout=b.V,e.rtept=b.M();d=Wi[c[c.length-1].node.namespaceURI];e=Uh(e,d);Wh(a,Xi,Th,e,c,d)}),trk:H(function(a,b,c){var d=c[0],e=b.Z();a={node:a,properties:e};if(b=b.N())b=bi(b,!0,d),e.trkseg=b.Qc();d=Yi[c[c.length-1].node.namespaceURI];e=Uh(e,d);Wh(a,aj,Th,e,c,d)}),wpt:H(function(a,b,c){var d=c[0],e=c[c.length-1];e.properties=b.Z();if(b=b.N())b=bi(b,!0,d),e.geometryLayout=b.V,Si(a,b.M(),c)})});function bj(){Zh.call(this)}t(bj,Zh);function cj(a){return"string"===typeof a?a:""}k=bj.prototype;k.J=function(){return"text"};k.je=function(a,b){var c;c=ai(this,b);if(c=dj(cj(a),c)){var d=new Ih;d.Oa(c);c=d}else c=null;return c};k.jd=function(a,b){var c=ai(this,b),d=[],c=dj(cj(a),c);this.b&&"GeometryCollection"==c.J()?d=c.a:d=[c];for(var e=[],f=0,g=d.length;f<g;++f)c=new Ih,c.Oa(d[f]),e.push(c);return e};k.le=function(a,b){return dj(cj(a),ai(this,b))};k.kd=function(){return this.defaultDataProjection};
266
- k.De=function(a,b){return ej(a,ai(this,b))};k.Ee=function(a,b){var c;c=ai(this,b);if(1==a.length)c=ej(a[0],c);else{for(var d=[],e=0,f=a.length;e<f;++e)d.push(a[e].N());d=new P(d);c=fj(bi(d,!0,c))}return c};k.Fe=function(a,b){var c=ai(this,b);return fj(bi(a,!0,c))};function gj(a,b,c,d,e,f){xc.call(this);this.j=null;this.I=a?a:new Image;null!==d&&(this.I.crossOrigin=d);this.c=f?document.createElement("CANVAS"):null;this.g=f;this.i=null;this.a=e;this.f=c;this.C=b;this.o=!1;2==this.a&&hj(this)}t(gj,xc);function hj(a){var b=Qc(1,1);try{b.drawImage(a.I,0,0),b.getImageData(0,0,1,1)}catch(c){a.o=!0}}gj.prototype.u=function(){this.a=3;this.i.forEach(nc);this.i=null;this.b("change")};
267
- gj.prototype.v=function(){this.a=2;this.f&&(this.I.width=this.f[0],this.I.height=this.f[1]);this.f=[this.I.width,this.I.height];this.i.forEach(nc);this.i=null;hj(this);if(!this.o&&null!==this.g){this.c.width=this.I.width;this.c.height=this.I.height;var a=this.c.getContext("2d");a.drawImage(this.I,0,0);for(var b=a.getImageData(0,0,this.I.width,this.I.height),c=b.data,d=this.g[0]/255,e=this.g[1]/255,f=this.g[2]/255,g=0,h=c.length;g<h;g+=4)c[g]*=d,c[g+1]*=e,c[g+2]*=f;a.putImageData(b,0,0)}this.b("change")};
268
- gj.prototype.W=function(){return this.c?this.c:this.I};gj.prototype.load=function(){if(0==this.a){this.a=1;this.i=[w(this.I,"error",this.u,this,!0),w(this.I,"load",this.v,this,!0)];try{this.I.src=this.C}catch(a){this.u()}}};function ij(a){a=a||{};this.g=void 0!==a.anchor?a.anchor:[.5,.5];this.u=null;this.f=void 0!==a.anchorOrigin?a.anchorOrigin:"top-left";this.G=void 0!==a.anchorXUnits?a.anchorXUnits:"fraction";this.ma=void 0!==a.anchorYUnits?a.anchorYUnits:"fraction";this.H=void 0!==a.crossOrigin?a.crossOrigin:null;var b=void 0!==a.img?a.img:null,c=void 0!==a.imgSize?a.imgSize:null,d=a.src;qa(!(void 0!==d&&b),4);qa(!b||b&&c,5);void 0!==d&&d.length||!b||(d=b.src||la(b).toString());qa(void 0!==d&&0<d.length,6);var e=
269
- void 0!==a.src?0:2,f;void 0!==a.color?(f=a.color,f=Array.isArray(f)?f:Mc(f)):f=null;this.c=f;f=this.H;var g=this.c,h=vg.get(d,f,g);h||(h=new gj(b,d,c,f,e,g),vg.set(d,f,g,h));this.b=h;this.qa=void 0!==a.offset?a.offset:[0,0];this.a=void 0!==a.offsetOrigin?a.offsetOrigin:"top-left";this.B=null;this.F=void 0!==a.size?a.size:null;xh.call(this,{opacity:void 0!==a.opacity?a.opacity:1,rotation:void 0!==a.rotation?a.rotation:0,scale:void 0!==a.scale?a.scale:1,snapToPixel:void 0!==a.snapToPixel?a.snapToPixel:
270
- !0,rotateWithView:void 0!==a.rotateWithView?a.rotateWithView:!1})}t(ij,xh);k=ij.prototype;
271
- k.clone=function(){var a=this.W(1),b;if(2===this.b.a)if("IMG"===a.tagName.toUpperCase())b=a.cloneNode(!0);else{b=document.createElement("canvas");var c=b.getContext("2d");b.width=a.width;b.height=a.height;c.drawImage(a,0,0)}return new ij({anchor:this.g.slice(),anchorOrigin:this.f,anchorXUnits:this.G,anchorYUnits:this.ma,crossOrigin:this.H,color:this.c&&this.c.slice?this.c.slice():this.c||void 0,img:b?b:void 0,imgSize:b?this.b.f.slice():void 0,src:b?void 0:this.b.C,offset:this.qa.slice(),offsetOrigin:this.a,
272
- size:null!==this.F?this.F.slice():void 0,opacity:this.j,scale:this.i,snapToPixel:this.o,rotation:this.C,rotateWithView:this.v})};
273
- k.Hb=function(){if(this.u)return this.u;var a=this.g,b=this.mb();if("fraction"==this.G||"fraction"==this.ma){if(!b)return null;a=this.g.slice();"fraction"==this.G&&(a[0]*=b[0]);"fraction"==this.ma&&(a[1]*=b[1])}if("top-left"!=this.f){if(!b)return null;a===this.g&&(a=this.g.slice());if("top-right"==this.f||"bottom-right"==this.f)a[0]=-a[0]+b[0];if("bottom-left"==this.f||"bottom-right"==this.f)a[1]=-a[1]+b[1]}return this.u=a};k.Yi=function(){return this.c};k.W=function(a){return this.b.W(a)};k.lf=function(){return this.b.f};
274
- k.cd=function(){return this.b.a};k.Pf=function(){var a=this.b;if(!a.j)if(a.o){var b=a.f[0],c=a.f[1],d=Qc(b,c);d.fillRect(0,0,b,c);a.j=d.canvas}else a.j=a.I;return a.j};k.Rb=function(){if(this.B)return this.B;var a=this.qa;if("top-left"!=this.a){var b=this.mb(),c=this.b.f;if(!b||!c)return null;a=a.slice();if("top-right"==this.a||"bottom-right"==this.a)a[0]=c[0]-b[0]-a[0];if("bottom-left"==this.a||"bottom-right"==this.a)a[1]=c[1]-b[1]-a[1]}return this.B=a};k.Zi=function(){return this.b.C};
275
- k.mb=function(){return this.F?this.F:this.b.f};k.zf=function(a,b){return w(this.b,"change",a,b)};k.load=function(){this.b.load()};k.eg=function(a,b){sc(this.b,"change",a,b)};function jj(a){a=a||{};this.f=a.font;this.i=a.rotation;this.C=a.rotateWithView;this.b=a.scale;this.pa=a.text;this.g=a.textAlign;this.j=a.textBaseline;this.ya=void 0!==a.fill?a.fill:new Bh({color:"#333"});this.Ba=void 0!==a.stroke?a.stroke:null;this.a=void 0!==a.offsetX?a.offsetX:0;this.c=void 0!==a.offsetY?a.offsetY:0}k=jj.prototype;
276
- k.clone=function(){return new jj({font:this.f,rotation:this.i,rotateWithView:this.C,scale:this.b,text:this.xa(),textAlign:this.g,textBaseline:this.j,fill:this.sa()?this.sa().clone():void 0,stroke:this.oa()?this.oa().clone():void 0,offsetX:this.a,offsetY:this.c})};k.Qg=function(){return this.f};k.bh=function(){return this.a};k.dh=function(){return this.c};k.sa=function(){return this.ya};k.dj=function(){return this.C};k.ej=function(){return this.i};k.fj=function(){return this.b};k.oa=function(){return this.Ba};
277
- k.xa=function(){return this.pa};k.ih=function(){return this.g};k.jh=function(){return this.j};k.Nj=function(a){this.f=a};k.Vj=function(a){this.a=a};k.Wj=function(a){this.c=a};k.re=function(a){this.ya=a};k.gj=function(a){this.i=a};k.hj=function(a){this.b=a};k.ve=function(a){this.Ba=a};k.we=function(a){this.pa=a};k.Xj=function(a){this.g=a};k.Yj=function(a){this.j=a};var kj=["http://www.google.com/kml/ext/2.2"],lj=[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"],mj={fraction:"fraction",pixels:"pixels"};function nj(a){a=Lh(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]}
278
- function oj(a){a=Lh(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);if(""===a)return b}function pj(a){var b=Lh(a).trim();return a.baseURI?(new URL(b,a.baseURI)).href:b}function qj(a){return vi(a)}function rj(a,b){return K(null,sj,a,b)}
279
- function tj(a,b){var c=K({l:[],ig:[]},uj,a,b);if(c){var d=c.l,c=c.ig,e,f;e=0;for(f=Math.min(d.length,c.length);e<f;++e)d[4*e+3]=c[e];c=new L(null);c.S("XYZM",d);return c}}function vj(a,b){var c=K({},wj,a,b),d=K(null,xj,a,b);if(d){var e=new L(null);e.S("XYZ",d);e.L(c);return e}}function yj(a,b){var c=K({},wj,a,b),d=K(null,xj,a,b);if(d){var e=new C(null);e.S("XYZ",d,[d.length]);e.L(c);return e}}
280
- function zj(a,b){var c=K([],Aj,a,b);if(!c)return null;if(!c.length)return new P(c);var d,e=!0,f=c[0].J(),g,h,l;h=1;for(l=c.length;h<l;++h)if(g=c[h],g.J()!=f){e=!1;break}if(e)if("Point"==f){d=c[0];e=d.V;f=d.l;h=1;for(l=c.length;h<l;++h)g=c[h],da(f,g.l);d=new N(null);d.S(e,f);Bj(d,c)}else if("LineString"==f)d=new M(null),ji(d,c),Bj(d,c);else if("Polygon"==f){g=d=new O(null);h=g.V;l=[];var e=[],m,n,f=0;for(m=c.length;f<m;++f){var p=c[f];f||(h=p.V);var q=l.length;n=p.cb();var u,D;u=0;for(D=n.length;u<
281
- D;++u)n[u]+=q;da(l,p.l);e.push(n)}ki(g,h,l,e);Bj(d,c)}else"GeometryCollection"==f?d=new P(c):qa(!1,37);else d=new P(c);return d}function Cj(a,b){var c=K({},wj,a,b),d=K(null,xj,a,b);if(d){var e=new B(null);e.S("XYZ",d);e.L(c);return e}}function Dj(a,b){var c=K({},wj,a,b),d=K([null],Ej,a,b);if(d&&d[0]){var e=new C(null),f=d[0],g=[f.length],h,l;h=1;for(l=d.length;h<l;++h)da(f,d[h]),g.push(f.length);e.S("XYZ",f,g);e.L(c);return e}}
282
- function Fj(a,b){var c=K({},Gj,a,b);if(!c)return null;var d="fillStyle"in c?c.fillStyle:void 0,e=c.fill;void 0===e||e||(d=null);e="imageStyle"in c?c.imageStyle:void 0;!e&&(e=void 0);var f="textStyle"in c?c.textStyle:void 0,g="strokeStyle"in c?c.strokeStyle:void 0,c=c.outline;void 0===c||c||(g=null);return[new Ch({fill:d,image:e,stroke:g,text:f,zIndex:void 0})]}
283
- function Bj(a,b){var c=b.length,d=Array(b.length),e=Array(b.length),f,g,h,l;h=l=!1;for(g=0;g<c;++g)f=b[g],d[g]=f.get("extrude"),e[g]=f.get("altitudeMode"),h=h||void 0!==d[g],l=l||e[g];h&&a.set("extrude",d);l&&a.set("altitudeMode",e)}function Hj(a,b){Vh(Ij,a,b)}function Jj(a,b){Vh(Kj,a,b)}
284
- var Lj=J(lj,{displayName:G(Q),value:G(Q)}),Ij=J(lj,{Data:function(a,b){var c=a.getAttribute("name");Vh(Lj,a,b);var d=b[b.length-1];null!==c?d[c]=d.value:null!==d.displayName&&(d[d.displayName]=d.value)},SchemaData:function(a,b){Vh(Mj,a,b)}}),Kj=J(lj,{LatLonAltBox:function(a,b){var c=K({},Nj,a,b);if(c){var d=b[b.length-1];d.extent=[parseFloat(c.west),parseFloat(c.south),parseFloat(c.east),parseFloat(c.north)];d.altitudeMode=c.altitudeMode;d.minAltitude=parseFloat(c.minAltitude);d.maxAltitude=parseFloat(c.maxAltitude)}},
285
- Lod:function(a,b){var c=K({},Oj,a,b);if(c){var d=b[b.length-1];d.minLodPixels=parseFloat(c.minLodPixels);d.maxLodPixels=parseFloat(c.maxLodPixels);d.minFadeExtent=parseFloat(c.minFadeExtent);d.maxFadeExtent=parseFloat(c.maxFadeExtent)}}}),Nj=J(lj,{altitudeMode:G(Q),minAltitude:G(vi),maxAltitude:G(vi),north:G(vi),south:G(vi),east:G(vi),west:G(vi)}),Oj=J(lj,{minLodPixels:G(vi),maxLodPixels:G(vi),minFadeExtent:G(vi),maxFadeExtent:G(vi)}),wj=J(lj,{extrude:G(si),altitudeMode:G(Q)}),sj=J(lj,{coordinates:Oh(oj)}),
286
- Ej=J(lj,{innerBoundaryIs:function(a,b){var c=K(void 0,Pj,a,b);c&&b[b.length-1].push(c)},outerBoundaryIs:function(a,b){var c=K(void 0,Qj,a,b);c&&(b[b.length-1][0]=c)}}),uj=J(lj,{when:function(a,b){var c=b[b.length-1].ig,d=Lh(a),d=Date.parse(d);c.push(isNaN(d)?0:d)}},J(kj,{coord:function(a,b){var c=b[b.length-1].l,d=Lh(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]),
287
- parseFloat(d[3]),0):c.push(0,0,0,0)}})),xj=J(lj,{coordinates:Oh(oj)}),Rj=J(lj,{href:G(pj)},J(kj,{x:G(vi),y:G(vi),w:G(vi),h:G(vi)})),Sj=J(lj,{Icon:G(function(a,b){var c=K({},Rj,a,b);return c?c:null}),heading:G(vi),hotSpot:G(function(a){var b=a.getAttribute("xunits"),c=a.getAttribute("yunits");return{x:parseFloat(a.getAttribute("x")),Ge:mj[b],y:parseFloat(a.getAttribute("y")),He:mj[c]}}),scale:G(qj)}),Pj=J(lj,{LinearRing:Oh(rj)}),Tj=J(lj,{color:G(nj),scale:G(qj)}),Uj=J(lj,{color:G(nj),width:G(vi)}),
288
- Aj=J(lj,{LineString:Nh(vj),LinearRing:Nh(yj),MultiGeometry:Nh(zj),Point:Nh(Cj),Polygon:Nh(Dj)}),Vj=J(kj,{Track:Nh(tj)});J(lj,{ExtendedData:Hj,Region:Jj,Link:function(a,b){Vh(Wj,a,b)},address:G(Q),description:G(Q),name:G(Q),open:G(si),phoneNumber:G(Q),visibility:G(si)});var Wj=J(lj,{href:G(pj)}),Qj=J(lj,{LinearRing:Oh(rj)}),Xj=J(lj,{Style:G(Fj),key:G(Q),styleUrl:G(pj)});
289
- J(lj,{ExtendedData:Hj,Region:Jj,MultiGeometry:G(zj,"geometry"),LineString:G(vj,"geometry"),LinearRing:G(yj,"geometry"),Point:G(Cj,"geometry"),Polygon:G(Dj,"geometry"),Style:G(Fj),StyleMap:function(a,b){var c=K(void 0,Yj,a,b);if(c){var d=b[b.length-1];Array.isArray(c)?d.Style=c:"string"===typeof c?d.styleUrl=c:qa(!1,38)}},address:G(Q),description:G(Q),name:G(Q),open:G(si),phoneNumber:G(Q),styleUrl:G(pj),visibility:G(si)},J(kj,{MultiTrack:G(function(a,b){var c=K([],Vj,a,b);if(c){var d=new M(null);ji(d,
290
- c);return d}},"geometry"),Track:G(tj,"geometry")}));
291
- var Zj=J(lj,{color:G(nj),fill:G(si),outline:G(si)}),Mj=J(lj,{SimpleData:function(a,b){var c=a.getAttribute("name");if(null!==c){var d=Q(a);b[b.length-1][c]=d}}}),Gj=J(lj,{IconStyle:function(a,b){var c=K({},Sj,a,b);if(c){var d=b[b.length-1],e="Icon"in c?c.Icon:{},f=!("Icon"in c)||0<Object.keys(e).length,g,h=e.href;h?g=h:f&&(g=void 0);var l,m,n;(h=c.hotSpot)?(l=[h.x,h.y],m=h.Ge,n=h.He):void 0===g?n=m=l=void 0:/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(g)&&(l=[.5,0],n=m="fraction");var p,h=e.x,
292
- q=e.y;void 0!==h&&void 0!==q&&(p=[h,q]);var u,h=e.w,e=e.h;void 0!==h&&void 0!==e&&(u=[h,e]);var D,e=c.heading;void 0!==e&&(D=e*Math.PI/180);c=c.scale;f?(void 0==g&&(u=void 0,void 0===c&&(c=void 0)),f=new ij({anchor:l,anchorOrigin:"bottom-left",anchorXUnits:m,anchorYUnits:n,crossOrigin:"anonymous",offset:p,offsetOrigin:"bottom-left",rotation:D,scale:c,size:u,src:g}),d.imageStyle=f):d.imageStyle=void 0}},LabelStyle:function(a,b){var c=K({},Tj,a,b);c&&(b[b.length-1].textStyle=new jj({fill:new Bh({color:"color"in
293
- c?c.color:void 0}),scale:c.scale}))},LineStyle:function(a,b){var c=K({},Uj,a,b);c&&(b[b.length-1].strokeStyle=new Yg({color:"color"in c?c.color:void 0,width:"width"in c?c.width:1}))},PolyStyle:function(a,b){var c=K({},Zj,a,b);if(c){var d=b[b.length-1];d.fillStyle=new Bh({color:"color"in c?c.color:void 0});var e=c.fill;void 0!==e&&(d.fill=e);c=c.outline;void 0!==c&&(d.outline=c)}}}),Yj=J(lj,{Pair:function(a,b){var c=K({},Xj,a,b);if(c){var d=c.key;d&&"normal"==d&&((d=c.styleUrl)&&(b[b.length-1]=d),
294
- (c=c.Style)&&(b[b.length-1]=c))}}});function ak(a,b){var c=Array.isArray(b)?b:Mc(b),c=[255*(4==c.length?c[3]:1),c[2],c[1],c[0]],d;for(d=0;4>d;++d){var e=parseInt(c[d],10).toString(16);c[d]=1==e.length?"0"+e:e}Ai(a,c.join(""))}function bk(a,b,c){a={node:a};var d=b.J(),e,f;"GeometryCollection"==d?(e=b.Nd(),f=ck):"MultiPoint"==d?(e=b.ce(),f=dk):"MultiLineString"==d?(e=b.Qc(),f=ek):"MultiPolygon"==d?(e=b.Rd(),f=fk):qa(!1,39);Wh(a,gk,f,e,c)}function hk(a,b,c){Wh({node:a},ik,jk,[b],c)}
295
- function kk(a,b,c){var d={node:a};b.c&&a.setAttribute("id",b.c);a=b.Z();var e={address:1,description:1,name:1,open:1,phoneNumber:1,styleUrl:1,visibility:1};e[b.a]=1;var f=Object.keys(a||{}).sort().filter(function(a){return!e[a]});if(0<f.length){var g=Uh(a,f);Wh(d,lk,mk,[{names:f,values:g}],c)}if(f=b.i)if(f=f.call(b,0))f=Array.isArray(f)?f[0]:f,this.b&&(a.Style=f),(f=f.xa())&&(a.name=f.xa());f=nk[c[c.length-1].node.namespaceURI];a=Uh(a,f);Wh(d,lk,Th,a,c,f);a=c[0];(b=b.N())&&(b=bi(b,!0,a));Wh(d,lk,
296
- ck,[b],c)}function ok(a,b,c){var d=b.l;a={node:a};a.layout=b.V;a.stride=b.A;Wh(a,pk,qk,[d],c)}function rk(a,b,c){b=b.Pd();var d=b.shift();a={node:a};Wh(a,sk,tk,b,c);Wh(a,sk,uk,[d],c)}function vk(a,b){Bi(a,Math.round(1E6*b)/1E6)}J(lj,["Document","Placemark"]);J(lj,{Document:H(function(a,b,c){Wh({node:a},wk,xk,b,c,void 0,this)}),Placemark:H(kk)});
297
- var wk=J(lj,{Placemark:H(kk)}),yk=J(lj,{Data:H(function(a,b,c){a.setAttribute("name",b.name);a={node:a};b=b.value;"object"==typeof b?(null!==b&&b.displayName&&Wh(a,yk,Th,[b.displayName],c,["displayName"]),null!==b&&b.value&&Wh(a,yk,Th,[b.value],c,["value"])):Wh(a,yk,Th,[b],c,["value"])}),value:H(function(a,b){Ai(a,b)}),displayName:H(function(a,b){a.appendChild(Kh.createCDATASection(b))})}),zk={Point:"Point",LineString:"LineString",LinearRing:"LinearRing",Polygon:"Polygon",MultiPoint:"MultiGeometry",
298
- MultiLineString:"MultiGeometry",MultiPolygon:"MultiGeometry",GeometryCollection:"MultiGeometry"},Ak=J(lj,["href"],J(kj,["x","y","w","h"])),Bk=J(lj,{href:H(Ai)},J(kj,{x:H(Bi),y:H(Bi),w:H(Bi),h:H(Bi)})),Ck=J(lj,["scale","heading","Icon","hotSpot"]),Ek=J(lj,{Icon:H(function(a,b,c){a={node:a};var d=Ak[c[c.length-1].node.namespaceURI],e=Uh(b,d);Wh(a,Bk,Th,e,c,d);d=Ak[kj[0]];e=Uh(b,d);Wh(a,Bk,Dk,e,c,d)}),heading:H(Bi),hotSpot:H(function(a,b){a.setAttribute("x",b.x);a.setAttribute("y",b.y);a.setAttribute("xunits",
299
- b.Ge);a.setAttribute("yunits",b.He)}),scale:H(vk)}),Fk=J(lj,["color","scale"]),Gk=J(lj,{color:H(ak),scale:H(vk)}),Hk=J(lj,["color","width"]),Ik=J(lj,{color:H(ak),width:H(Bi)}),ik=J(lj,{LinearRing:H(ok)}),gk=J(lj,{LineString:H(ok),Point:H(ok),Polygon:H(rk),GeometryCollection:H(bk)}),nk=J(lj,"name open visibility address phoneNumber description styleUrl Style".split(" ")),lk=J(lj,{ExtendedData:H(function(a,b,c){a={node:a};var d=b.names;b=b.values;for(var e=d.length,f=0;f<e;f++)Wh(a,yk,Jk,[{name:d[f],
300
- value:b[f]}],c)}),MultiGeometry:H(bk),LineString:H(ok),LinearRing:H(ok),Point:H(ok),Polygon:H(rk),Style:H(function(a,b,c){a={node:a};var d={},e=b.sa(),f=b.oa(),g=b.W();b=b.xa();g instanceof ij&&(d.IconStyle=g);b&&(d.LabelStyle=b);f&&(d.LineStyle=f);e&&(d.PolyStyle=e);b=Kk[c[c.length-1].node.namespaceURI];d=Uh(d,b);Wh(a,Lk,Th,d,c,b)}),address:H(Ai),description:H(Ai),name:H(Ai),open:H(zi),phoneNumber:H(Ai),styleUrl:H(Ai),visibility:H(zi)}),pk=J(lj,{coordinates:H(function(a,b,c){c=c[c.length-1];var d=
301
- c.layout;c=c.stride;var e;"XY"==d||"XYM"==d?e=2:"XYZ"==d||"XYZM"==d?e=3:qa(!1,34);var f,g=b.length,h="";if(0<g){h+=b[0];for(d=1;d<e;++d)h+=","+b[d];for(f=c;f<g;f+=c)for(h+=" "+b[f],d=1;d<e;++d)h+=","+b[f+d]}Ai(a,h)})}),sk=J(lj,{outerBoundaryIs:H(hk),innerBoundaryIs:H(hk)}),Mk=J(lj,{color:H(ak)}),Kk=J(lj,["IconStyle","LabelStyle","LineStyle","PolyStyle"]),Lk=J(lj,{IconStyle:H(function(a,b,c){a={node:a};var d={},e=b.mb(),f=b.lf(),g={href:b.b.C};if(e){g.w=e[0];g.h=e[1];var h=b.Hb(),l=b.Rb();l&&f&&l[0]&&
302
- l[1]!==e[1]&&(g.x=l[0],g.y=f[1]-(l[1]+e[1]));h&&h[0]&&h[1]!==e[1]&&(d.hotSpot={x:h[0],Ge:"pixels",y:e[1]-h[1],He:"pixels"})}d.Icon=g;e=b.i;1!==e&&(d.scale=e);(b=b.C)&&(d.heading=b);b=Ck[c[c.length-1].node.namespaceURI];d=Uh(d,b);Wh(a,Ek,Th,d,c,b)}),LabelStyle:H(function(a,b,c){a={node:a};var d={},e=b.sa();e&&(d.color=e.b);(b=b.b)&&1!==b&&(d.scale=b);b=Fk[c[c.length-1].node.namespaceURI];d=Uh(d,b);Wh(a,Gk,Th,d,c,b)}),LineStyle:H(function(a,b,c){a={node:a};var d=Hk[c[c.length-1].node.namespaceURI];
303
- b=Uh({color:b.f,width:b.c},d);Wh(a,Ik,Th,b,c,d)}),PolyStyle:H(function(a,b,c){Wh({node:a},Mk,Nk,[b.b],c)})});function Dk(a,b,c){return Kh.createElementNS(kj[0],"gx:"+c)}function xk(a,b){return Kh.createElementNS(b[b.length-1].node.namespaceURI,"Placemark")}function ck(a,b){if(a)return Kh.createElementNS(b[b.length-1].node.namespaceURI,zk[a.J()])}
304
- var Nk=Rh("color"),qk=Rh("coordinates"),Jk=Rh("Data"),mk=Rh("ExtendedData"),tk=Rh("innerBoundaryIs"),dk=Rh("Point"),ek=Rh("LineString"),jk=Rh("LinearRing"),fk=Rh("Polygon"),uk=Rh("outerBoundaryIs");(function(){var a={},b={Y:a};(function(c){if("object"===typeof a&&"undefined"!==typeof b)b.Y=c();else{var d;"undefined"!==typeof window?d=window:"undefined"!==typeof global?d=global:"undefined"!==typeof self?d=self:d=this;d.Ck=c()}})(function(){return function d(a,b,g){function e(h,l){if(!b[h]){if(!a[h]){var m="function"==typeof require&&require;if(!l&&m)return m(h,!0);if(f)return f(h,!0);m=Error("Cannot find module '"+h+"'");throw m.code="MODULE_NOT_FOUND",m;}m=b[h]={Y:{}};a[h][0].call(m.Y,function(b){var d=
305
- a[h][1][b];return e(d?d:b)},m,m.Y,d,a,b,g)}return b[h].Y}for(var f="function"==typeof require&&require,m=0;m<g.length;m++)e(g[m]);return e}({1:[function(a,b,f){f.read=function(a,b,d,e,f){var g;g=8*f-e-1;var h=(1<<g)-1,l=h>>1,m=-7;f=d?f-1:0;var n=d?-1:1,I=a[b+f];f+=n;d=I&(1<<-m)-1;I>>=-m;for(m+=g;0<m;d=256*d+a[b+f],f+=n,m-=8);g=d&(1<<-m)-1;d>>=-m;for(m+=e;0<m;g=256*g+a[b+f],f+=n,m-=8);if(0===d)d=1-l;else{if(d===h)return g?NaN:Infinity*(I?-1:1);g+=Math.pow(2,e);d-=l}return(I?-1:1)*g*Math.pow(2,d-e)};
306
- f.write=function(a,b,d,e,f,p){var g,h=8*p-f-1,l=(1<<h)-1,m=l>>1,n=23===f?Math.pow(2,-24)-Math.pow(2,-77):0;p=e?0:p-1;var R=e?1:-1,W=0>b||0===b&&0>1/b?1:0;b=Math.abs(b);isNaN(b)||Infinity===b?(b=isNaN(b)?1:0,e=l):(e=Math.floor(Math.log(b)/Math.LN2),1>b*(g=Math.pow(2,-e))&&(e--,g*=2),b=1<=e+m?b+n/g:b+n*Math.pow(2,1-m),2<=b*g&&(e++,g/=2),e+m>=l?(b=0,e=l):1<=e+m?(b=(b*g-1)*Math.pow(2,f),e+=m):(b=b*Math.pow(2,m-1)*Math.pow(2,f),e=0));for(;8<=f;a[d+p]=b&255,p+=R,b/=256,f-=8);e=e<<f|b;for(h+=f;0<h;a[d+p]=
307
- e&255,p+=R,e/=256,h-=8);a[d+p-R]|=128*W}},{}],2:[function(a,b){function d(a){this.nb=ArrayBuffer.isView&&ArrayBuffer.isView(a)?a:new Uint8Array(a||0);this.type=this.P=0;this.length=this.nb.length}function e(a,b,d){var e=d.nb,f,g;g=e[d.P++];f=(g&112)>>4;if(128>g)return h(a,f,b);g=e[d.P++];f|=(g&127)<<3;if(128>g)return h(a,f,b);g=e[d.P++];f|=(g&127)<<10;if(128>g)return h(a,f,b);g=e[d.P++];f|=(g&127)<<17;if(128>g)return h(a,f,b);g=e[d.P++];f|=(g&127)<<24;if(128>g)return h(a,f,b);g=e[d.P++];if(128>g)return h(a,
308
- f|(g&1)<<31,b);throw Error("Expected varint not more than 10 bytes");}function h(a,b,d){return d?4294967296*b+(a>>>0):4294967296*(b>>>0)+(a>>>0)}b.Y=d;var l=a("ieee754");d.c=0;d.a=1;d.b=2;d.f=5;d.prototype={ke:function(a,b,d){for(d=d||this.length;this.P<d;){var e=this.va(),f=e>>3,g=this.P;this.type=e&7;a(f,b,this);this.P===g&&this.ck(e)}return b},yj:function(){var a=l.read(this.nb,this.P,!0,23,4);this.P+=4;return a},xj:function(){var a=l.read(this.nb,this.P,!0,52,8);this.P+=8;return a},va:function(a){var b=
309
- this.nb,d,f;f=b[this.P++];d=f&127;if(128>f)return d;f=b[this.P++];d|=(f&127)<<7;if(128>f)return d;f=b[this.P++];d|=(f&127)<<14;if(128>f)return d;f=b[this.P++];d|=(f&127)<<21;if(128>f)return d;f=b[this.P];return e(d|(f&15)<<28,a,this)},zj:function(){return this.va(!0)},me:function(){var a=this.va();return 1===a%2?(a+1)/-2:a/2},wj:function(){return!!this.va()},ne:function(){for(var a=this.va()+this.P,b=this.nb,d="",e=this.P;e<a;){var f=b[e],g=null,h=239<f?4:223<f?3:191<f?2:1;if(e+h>a)break;var l,R,
310
- W;if(1===h)128>f&&(g=f);else if(2===h)l=b[e+1],128===(l&192)&&(g=(f&31)<<6|l&63,127>=g&&(g=null));else if(3===h){if(l=b[e+1],R=b[e+2],128===(l&192)&&128===(R&192)&&(g=(f&15)<<12|(l&63)<<6|R&63,2047>=g||55296<=g&&57343>=g))g=null}else 4===h&&(l=b[e+1],R=b[e+2],W=b[e+3],128===(l&192)&&128===(R&192)&&128===(W&192)&&(g=(f&15)<<18|(l&63)<<12|(R&63)<<6|W&63,65535>=g||1114112<=g))&&(g=null);null===g?(g=65533,h=1):65535<g&&(g-=65536,d+=String.fromCharCode(g>>>10&1023|55296),g=56320|g&1023);d+=String.fromCharCode(g);
311
- e+=h}this.P=a;return d},ck:function(a){a&=7;if(a===d.c)for(;127<this.nb[this.P++];);else if(a===d.b)this.P=this.va()+this.P;else if(a===d.f)this.P+=4;else if(a===d.a)this.P+=8;else throw Error("Unimplemented type: "+a);}}},{ieee754:1}]},{},[2])(2)})})();(function(){var a={},b={Y:a};(function(c){if("object"===typeof a&&"undefined"!==typeof b)b.Y=c();else{var d;"undefined"!==typeof window?d=window:"undefined"!==typeof global?d=global:"undefined"!==typeof self?d=self:d=this;d.Fk=c()}})(function(){return function d(a,b,g){function e(h,l){if(!b[h]){if(!a[h]){var m="function"==typeof require&&require;if(!l&&m)return m(h,!0);if(f)return f(h,!0);m=Error("Cannot find module '"+h+"'");throw m.code="MODULE_NOT_FOUND",m;}m=b[h]={Y:{}};a[h][0].call(m.Y,function(b){var d=
312
- a[h][1][b];return e(d?d:b)},m,m.Y,d,a,b,g)}return b[h].Y}for(var f="function"==typeof require&&require,m=0;m<g.length;m++)e(g[m]);return e}({1:[function(a,b){function d(a,b){this.x=a;this.y=b}b.Y=d;d.prototype={clone:function(){return new d(this.x,this.y)},add:function(a){return this.clone().lg(a)},rotate:function(a){return this.clone().vg(a)},round:function(){return this.clone().wg()},angle:function(){return Math.atan2(this.y,this.x)},lg:function(a){this.x+=a.x;this.y+=a.y;return this},vg:function(a){var b=
313
- Math.cos(a);a=Math.sin(a);var d=a*this.x+b*this.y;this.x=b*this.x-a*this.y;this.y=d;return this},wg:function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}};d.b=function(a){return a instanceof d?a:Array.isArray(a)?new d(a[0],a[1]):a}},{}],2:[function(a,b){b.Y.yk=a("./lib/vectortile.js");b.Y.zk=a("./lib/vectortilefeature.js");b.Y.Ak=a("./lib/vectortilelayer.js")},{"./lib/vectortile.js":3,"./lib/vectortilefeature.js":4,"./lib/vectortilelayer.js":5}],3:[function(a,b){function d(a,
314
- b,d){3===a&&(a=new e(d,d.va()+d.P),a.length&&(b[a.name]=a))}var e=a("./vectortilelayer");b.Y=function(a,b){this.layers=a.ke(d,{},b)}},{"./vectortilelayer":5}],4:[function(a,b){function d(a,b,d,f,g){this.properties={};this.extent=d;this.type=0;this.Db=a;this.Me=-1;this.Ac=f;this.Cc=g;a.ke(e,this,b)}function e(a,b,d){if(1==a)b.id=d.va();else if(2==a)for(a=d.va()+d.P;d.P<a;){var e=b.Ac[d.va()],f=b.Cc[d.va()];b.properties[e]=f}else 3==a?b.type=d.va():4==a&&(b.Me=d.P)}a("point-geometry");b.Y=d;d.b=["Unknown",
315
- "Point","LineString","Polygon"];d.prototype.bbox=function(){var a=this.Db;a.P=this.Me;for(var b=a.va()+a.P,d=1,e=0,f=0,g=0,u=Infinity,D=-Infinity,A=Infinity,I=-Infinity;a.P<b;)if(e||(e=a.va(),d=e&7,e>>=3),e--,1===d||2===d)f+=a.me(),g+=a.me(),f<u&&(u=f),f>D&&(D=f),g<A&&(A=g),g>I&&(I=g);else if(7!==d)throw Error("unknown command "+d);return[u,A,D,I]}},{"point-geometry":1}],5:[function(a,b){function d(a,b){this.version=1;this.name=null;this.extent=4096;this.length=0;this.Db=a;this.Ac=[];this.Cc=[];this.zc=
316
- [];a.ke(e,this,b);this.length=this.zc.length}function e(a,b,d){15===a?b.version=d.va():1===a?b.name=d.ne():5===a?b.extent=d.va():2===a?b.zc.push(d.P):3===a?b.Ac.push(d.ne()):4===a&&b.Cc.push(h(d))}function h(a){for(var b=null,d=a.va()+a.P;a.P<d;)b=a.va()>>3,b=1===b?a.ne():2===b?a.yj():3===b?a.xj():4===b?a.zj():5===b?a.va():6===b?a.me():7===b?a.wj():null;return b}var l=a("./vectortilefeature.js");b.Y=d;d.prototype.feature=function(a){if(0>a||a>=this.zc.length)throw Error("feature index out of bounds");
317
- this.Db.P=this.zc[a];a=this.Db.va()+this.Db.P;return new l(this.Db,a,this.extent,this.Ac,this.Cc)}},{"./vectortilefeature.js":4}]},{},[2])(2)})})();function Ok(a,b){b[b.length-1].yc[a.getAttribute("k")]=a.getAttribute("v")}var Pk=[null],Qk=J(Pk,{nd:function(a,b){b[b.length-1].Mb.push(a.getAttribute("ref"))},tag:Ok});
318
- J(Pk,{node:function(a,b){var c=b[0],d=b[b.length-1],e=a.getAttribute("id"),f=[parseFloat(a.getAttribute("lon")),parseFloat(a.getAttribute("lat"))];d.ii[e]=f;var g=K({yc:{}},Rk,a,b);pb(g.yc)||(f=new B(f),bi(f,!1,c),c=new Ih(f),c.od(e),c.L(g.yc),d.features.push(c))},way:function(a,b){for(var c=b[0],d=a.getAttribute("id"),e=K({Mb:[],yc:{}},Qk,a,b),f=b[b.length-1],g=[],h=0,l=e.Mb.length;h<l;h++)da(g,f.ii[e.Mb[h]]);e.Mb[0]==e.Mb[e.Mb.length-1]?(h=new C(null),h.S("XY",g,[g.length])):(h=new L(null),h.S("XY",
319
- g));bi(h,!1,c);c=new Ih(h);c.od(d);c.L(e.yc);f.features.push(c)}});var Rk=J(Pk,{tag:Ok});function Sk(a){return a.getAttributeNS("http://www.w3.org/1999/xlink","href")};var Tk=[null,"http://www.opengis.net/ows/1.1"];J(Tk,{ServiceIdentification:G(function(a,b){return K({},Uk,a,b)}),ServiceProvider:G(function(a,b){return K({},Vk,a,b)}),OperationsMetadata:G(function(a,b){return K({},Wk,a,b)})});
320
- var Xk=J(Tk,{DeliveryPoint:G(Q),City:G(Q),AdministrativeArea:G(Q),PostalCode:G(Q),Country:G(Q),ElectronicMailAddress:G(Q)}),Yk=J(Tk,{Value:Ph(function(a){return Q(a)})}),Zk=J(Tk,{AllowedValues:G(function(a,b){return K({},Yk,a,b)})}),al=J(Tk,{Phone:G(function(a,b){return K({},$k,a,b)}),Address:G(function(a,b){return K({},Xk,a,b)})}),cl=J(Tk,{HTTP:G(function(a,b){return K({},bl,a,b)})}),bl=J(Tk,{Get:Ph(function(a,b){var c=Sk(a);if(c)return K({href:c},dl,a,b)}),Post:void 0}),el=J(Tk,{DCP:G(function(a,
321
- b){return K({},cl,a,b)})}),Wk=J(Tk,{Operation:function(a,b){var c=a.getAttribute("name"),d=K({},el,a,b);d&&(b[b.length-1][c]=d)}}),$k=J(Tk,{Voice:G(Q),Facsimile:G(Q)}),dl=J(Tk,{Constraint:Ph(function(a,b){var c=a.getAttribute("name");if(c)return K({name:c},Zk,a,b)})}),fl=J(Tk,{IndividualName:G(Q),PositionName:G(Q),ContactInfo:G(function(a,b){return K({},al,a,b)})}),Uk=J(Tk,{Title:G(Q),ServiceTypeVersion:G(Q),ServiceType:G(Q)}),Vk=J(Tk,{ProviderName:G(Q),ProviderSite:G(Sk),ServiceContact:G(function(a,
322
- b){return K({},fl,a,b)})});function gl(a){a=a?a:{};Zh.call(this);this.b=void 0!==a.splitCollection?a.splitCollection:!1}t(gl,bj);function hl(a){a=a.M();return a.length?a.join(" "):""}function il(a){a=a.M();for(var b=[],c=0,d=a.length;c<d;++c)b.push(a[c].join(" "));return b.join(",")}function jl(a){var b=[];a=a.Pd();for(var c=0,d=a.length;c<d;++c)b.push("("+il(a[c])+")");return b.join(",")}
323
- function fj(a){var b=a.J(),c=(0,kl[b])(a),b=b.toUpperCase();if(a instanceof y){a=a.V;var d="";if("XYZ"===a||"XYZM"===a)d+="Z";if("XYM"===a||"XYZM"===a)d+="M";a=d;0<a.length&&(b+=" "+a)}return c.length?b+"("+c+")":b+" EMPTY"}
324
- var kl={Point:hl,LineString:il,Polygon:jl,MultiPoint:function(a){var b=[];a=a.ce();for(var c=0,d=a.length;c<d;++c)b.push("("+hl(a[c])+")");return b.join(",")},MultiLineString:function(a){var b=[];a=a.Qc();for(var c=0,d=a.length;c<d;++c)b.push("("+il(a[c])+")");return b.join(",")},MultiPolygon:function(a){var b=[];a=a.Rd();for(var c=0,d=a.length;c<d;++c)b.push("("+jl(a[c])+")");return b.join(",")},GeometryCollection:function(a){var b=[];a=a.Nd();for(var c=0,d=a.length;c<d;++c)b.push(fj(a[c]));return b.join(",")}};
325
- function dj(a,b){var c;c=new ll(new ml(a));nl(c);return(c=pl(c))?bi(c,!1,b):null}function ej(a,b){var c=a.N();return c?fj(bi(c,!0,b)):""}function ml(a){this.f=a;this.b=-1}
326
- function ql(a){var b=a.f.charAt(++a.b),c={position:a.b,value:b};if("("==b)c.type=2;else if(","==b)c.type=5;else if(")"==b)c.type=3;else if("0"<=b&&"9">=b||"."==b||"-"==b){c.type=4;var d,b=a.b,e=!1,f=!1;do{if("."==d)e=!0;else if("e"==d||"E"==d)f=!0;d=a.f.charAt(++a.b)}while("0"<=d&&"9">=d||"."==d&&(void 0===e||!e)||!f&&("e"==d||"E"==d)||f&&("-"==d||"+"==d));a=parseFloat(a.f.substring(b,a.b--));c.value=a}else if("a"<=b&&"z">=b||"A"<=b&&"Z">=b){c.type=1;b=a.b;do d=a.f.charAt(++a.b);while("a"<=d&&"z">=
327
- d||"A"<=d&&"Z">=d);a=a.f.substring(b,a.b--).toUpperCase();c.value=a}else{if(" "==b||"\t"==b||"\r"==b||"\n"==b)return ql(a);if(""===b)c.type=6;else throw Error("Unexpected character: "+b);}return c}function ll(a){this.a=a;this.f="XY"}function nl(a){a.b=ql(a.a)}function rl(a,b){var c=a.b.type==b;c&&nl(a);return c}
328
- function pl(a){var b=a.b;if(rl(a,1)){var b=b.value,c="XY",d=a.b;1==a.b.type&&(d=d.value,"Z"===d?c="XYZ":"M"===d?c="XYM":"ZM"===d&&(c="XYZM"),"XY"!==c&&nl(a));a.f=c;if("GEOMETRYCOLLECTION"==b){a:{if(rl(a,2)){b=[];do b.push(pl(a));while(rl(a,5));if(rl(a,3)){a=b;break a}}else if(sl(a)){a=[];break a}throw Error(tl(a));}return new P(a)}d=ul[b];c=vl[b];if(!d||!c)throw Error("Invalid geometry type: "+b);b=d.call(a);return new c(b,a.f)}throw Error(tl(a));}k=ll.prototype;
329
- k.he=function(){if(rl(this,2)){var a=wl(this);if(rl(this,3))return a}else if(sl(this))return null;throw Error(tl(this));};k.ge=function(){if(rl(this,2)){var a=xl(this);if(rl(this,3))return a}else if(sl(this))return[];throw Error(tl(this));};k.ie=function(){if(rl(this,2)){var a=yl(this);if(rl(this,3))return a}else if(sl(this))return[];throw Error(tl(this));};
330
- k.lj=function(){if(rl(this,2)){var a;if(2==this.b.type)for(a=[this.he()];rl(this,5);)a.push(this.he());else a=xl(this);if(rl(this,3))return a}else if(sl(this))return[];throw Error(tl(this));};k.kj=function(){if(rl(this,2)){var a=yl(this);if(rl(this,3))return a}else if(sl(this))return[];throw Error(tl(this));};k.mj=function(){if(rl(this,2)){for(var a=[this.ie()];rl(this,5);)a.push(this.ie());if(rl(this,3))return a}else if(sl(this))return[];throw Error(tl(this));};
331
- function wl(a){for(var b=[],c=a.f.length,d=0;d<c;++d){var e=a.b;if(rl(a,4))b.push(e.value);else break}if(b.length==c)return b;throw Error(tl(a));}function xl(a){for(var b=[wl(a)];rl(a,5);)b.push(wl(a));return b}function yl(a){for(var b=[a.ge()];rl(a,5);)b.push(a.ge());return b}function sl(a){var b=1==a.b.type&&"EMPTY"==a.b.value;b&&nl(a);return b}function tl(a){return"Unexpected `"+a.b.value+"` at position "+a.b.position+" in `"+a.a.f+"`"}
332
- var vl={POINT:B,LINESTRING:L,POLYGON:C,MULTIPOINT:N,MULTILINESTRING:M,MULTIPOLYGON:O},ul={POINT:ll.prototype.he,LINESTRING:ll.prototype.ge,POLYGON:ll.prototype.ie,MULTIPOINT:ll.prototype.lj,MULTILINESTRING:ll.prototype.kj,MULTIPOLYGON:ll.prototype.mj};function zl(a,b){return K({},Al,a,b)}function Bl(a,b){return K({},Cl,a,b)}function Dl(a,b){var c=zl(a,b);if(c){var d=[yi(a.getAttribute("width")),yi(a.getAttribute("height"))];c.size=d;return c}}function El(a,b){return K([],Fl,a,b)}var Gl=[null,"http://www.opengis.net/wms"];J(Gl,{Service:G(function(a,b){return K({},Hl,a,b)}),Capability:G(function(a,b){return K({},Il,a,b)})});
333
- var Il=J(Gl,{Request:G(function(a,b){return K({},Jl,a,b)}),Exception:G(function(a,b){return K([],Kl,a,b)}),Layer:G(function(a,b){return K({},Ll,a,b)})}),Hl=J(Gl,{Name:G(Q),Title:G(Q),Abstract:G(Q),KeywordList:G(El),OnlineResource:G(Sk),ContactInformation:G(function(a,b){return K({},Ml,a,b)}),Fees:G(Q),AccessConstraints:G(Q),LayerLimit:G(xi),MaxWidth:G(xi),MaxHeight:G(xi)}),Ml=J(Gl,{ContactPersonPrimary:G(function(a,b){return K({},Nl,a,b)}),ContactPosition:G(Q),ContactAddress:G(function(a,b){return K({},
334
- Ol,a,b)}),ContactVoiceTelephone:G(Q),ContactFacsimileTelephone:G(Q),ContactElectronicMailAddress:G(Q)}),Nl=J(Gl,{ContactPerson:G(Q),ContactOrganization:G(Q)}),Ol=J(Gl,{AddressType:G(Q),Address:G(Q),City:G(Q),StateOrProvince:G(Q),PostCode:G(Q),Country:G(Q)}),Kl=J(Gl,{Format:Nh(Q)}),Ll=J(Gl,{Name:G(Q),Title:G(Q),Abstract:G(Q),KeywordList:G(El),CRS:Ph(Q),EX_GeographicBoundingBox:G(function(a,b){var c=K({},Pl,a,b);if(c){var d=c.westBoundLongitude,e=c.southBoundLatitude,f=c.eastBoundLongitude,c=c.northBoundLatitude;
335
- if(void 0!==d&&void 0!==e&&void 0!==f&&void 0!==c)return[d,e,f,c]}}),BoundingBox:Ph(function(a){var b=[wi(a.getAttribute("minx")),wi(a.getAttribute("miny")),wi(a.getAttribute("maxx")),wi(a.getAttribute("maxy"))],c=[wi(a.getAttribute("resx")),wi(a.getAttribute("resy"))];return{crs:a.getAttribute("CRS"),extent:b,res:c}}),Dimension:Ph(function(a){return{name:a.getAttribute("name"),units:a.getAttribute("units"),unitSymbol:a.getAttribute("unitSymbol"),"default":a.getAttribute("default"),multipleValues:ti(a.getAttribute("multipleValues")),
336
- nearestValue:ti(a.getAttribute("nearestValue")),current:ti(a.getAttribute("current")),values:Q(a)}}),Attribution:G(function(a,b){return K({},Ql,a,b)}),AuthorityURL:Ph(function(a,b){var c=zl(a,b);if(c)return c.name=a.getAttribute("name"),c}),Identifier:Ph(Q),MetadataURL:Ph(function(a,b){var c=zl(a,b);if(c)return c.type=a.getAttribute("type"),c}),DataURL:Ph(zl),FeatureListURL:Ph(zl),Style:Ph(function(a,b){return K({},Rl,a,b)}),MinScaleDenominator:G(vi),MaxScaleDenominator:G(vi),Layer:Ph(function(a,
337
- b){var c=b[b.length-1],d=K({},Ll,a,b);if(d){var e=ti(a.getAttribute("queryable"));void 0===e&&(e=c.queryable);d.queryable=void 0!==e?e:!1;e=yi(a.getAttribute("cascaded"));void 0===e&&(e=c.cascaded);d.cascaded=e;e=ti(a.getAttribute("opaque"));void 0===e&&(e=c.opaque);d.opaque=void 0!==e?e:!1;e=ti(a.getAttribute("noSubsets"));void 0===e&&(e=c.noSubsets);d.noSubsets=void 0!==e?e:!1;(e=wi(a.getAttribute("fixedWidth")))||(e=c.fixedWidth);d.fixedWidth=e;(e=wi(a.getAttribute("fixedHeight")))||(e=c.fixedHeight);
338
- d.fixedHeight=e;["Style","CRS","AuthorityURL"].forEach(function(a){a in c&&(d[a]=(d[a]||[]).concat(c[a]))});"EX_GeographicBoundingBox BoundingBox Dimension Attribution MinScaleDenominator MaxScaleDenominator".split(" ").forEach(function(a){a in d||(d[a]=c[a])});return d}})}),Ql=J(Gl,{Title:G(Q),OnlineResource:G(Sk),LogoURL:G(Dl)}),Pl=J(Gl,{westBoundLongitude:G(vi),eastBoundLongitude:G(vi),southBoundLatitude:G(vi),northBoundLatitude:G(vi)}),Jl=J(Gl,{GetCapabilities:G(Bl),GetMap:G(Bl),GetFeatureInfo:G(Bl)}),
339
- Cl=J(Gl,{Format:Ph(Q),DCPType:Ph(function(a,b){return K({},Sl,a,b)})}),Sl=J(Gl,{HTTP:G(function(a,b){return K({},Tl,a,b)})}),Tl=J(Gl,{Get:G(zl),Post:G(zl)}),Rl=J(Gl,{Name:G(Q),Title:G(Q),Abstract:G(Q),LegendURL:Ph(Dl),StyleSheetURL:G(zl),StyleURL:G(zl)}),Al=J(Gl,{Format:G(Q),OnlineResource:G(Sk)}),Fl=J(Gl,{Keyword:Nh(Q)});function Ul(a){var b=Q(a).split(" ");if(b&&2==b.length&&(a=+b[0],b=+b[1],!isNaN(a)&&!isNaN(b)))return[a,b]}var Vl=[null,"http://www.opengis.net/wmts/1.0"],Wl=[null,"http://www.opengis.net/ows/1.1"];J(Vl,{Contents:G(function(a,b){return K({},Xl,a,b)})});
340
- var Xl=J(Vl,{Layer:Ph(function(a,b){return K({},Yl,a,b)}),TileMatrixSet:Ph(function(a,b){return K({},Zl,a,b)})}),Yl=J(Vl,{Style:Ph(function(a,b){var c=K({},$l,a,b);if(c){var d="true"===a.getAttribute("isDefault");c.isDefault=d;return c}}),Format:Ph(Q),TileMatrixSetLink:Ph(function(a,b){return K({},am,a,b)}),Dimension:Ph(function(a,b){return K({},bm,a,b)}),ResourceURL:Ph(function(a){var b=a.getAttribute("format"),c=a.getAttribute("template");a=a.getAttribute("resourceType");var d={};b&&(d.format=b);
341
- c&&(d.template=c);a&&(d.resourceType=a);return d})},J(Wl,{Title:G(Q),Abstract:G(Q),WGS84BoundingBox:G(function(a,b){var c=K([],cm,a,b);if(2==c.length)return Fa(c)}),Identifier:G(Q)})),$l=J(Vl,{LegendURL:Ph(function(a){var b={};b.format=a.getAttribute("format");b.href=Sk(a);return b})},J(Wl,{Title:G(Q),Identifier:G(Q)})),am=J(Vl,{TileMatrixSet:G(Q),TileMatrixSetLimits:G(function(a,b){return K([],dm,a,b)})}),dm=J(Vl,{TileMatrixLimits:Nh(function(a,b){return K({},em,a,b)})}),em=J(Vl,{TileMatrix:G(Q),
342
- MinTileRow:G(xi),MaxTileRow:G(xi),MinTileCol:G(xi),MaxTileCol:G(xi)}),bm=J(Vl,{Default:G(Q),Value:Ph(Q)},J(Wl,{Identifier:G(Q)})),cm=J(Wl,{LowerCorner:Nh(Ul),UpperCorner:Nh(Ul)}),Zl=J(Vl,{WellKnownScaleSet:G(Q),TileMatrix:Ph(function(a,b){return K({},fm,a,b)})},J(Wl,{SupportedCRS:G(Q),Identifier:G(Q)})),fm=J(Vl,{TopLeftCorner:G(Ul),ScaleDenominator:G(vi),TileWidth:G(xi),TileHeight:G(xi),MatrixWidth:G(xi),MatrixHeight:G(xi)},J(Wl,{Identifier:G(Q)}));function S(a,b,c){y.call(this);this.qe(a,b?b:0,c)}t(S,y);k=S.prototype;k.clone=function(){var a=new S(null);re(a,this.V,this.l.slice());a.s();return a};k.Wa=function(a,b,c,d){var e=this.l;a-=e[0];var f=b-e[1];b=a*a+f*f;if(b<d){if(b)for(d=this.Yc()/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];else for(d=0;d<this.A;++d)c[d]=e[d];c.length=this.A;return b}return d};k.wb=function(a,b){var c=this.l,d=a-c[0],c=b-c[1];return d*d+c*c<=gm(this)};
343
- k.na=function(){return this.l.slice(0,this.A)};k.Gc=function(a){var b=this.l,c=b[this.A]-b[0];return Ra(b[0]-c,b[1]-c,b[0]+c,b[1]+c,a)};k.Yc=function(){return Math.sqrt(gm(this))};function gm(a){var b=a.l[a.A]-a.l[0];a=a.l[a.A+1]-a.l[1];return b*b+a*a}k.J=function(){return"Circle"};k.Aa=function(a){var b=this.D();return ib(a,b)?(b=this.na(),a[0]<=b[0]&&a[2]>=b[0]||a[1]<=b[1]&&a[3]>=b[1]?!0:Xa(a,this.Na,this)):!1};
344
- k.Sa=function(a){var b=this.A,c=a.slice();c[b]=c[0]+(this.l[b]-this.l[0]);var d;for(d=1;d<b;++d)c[b+d]=a[d];re(this,this.V,c);this.s()};k.qe=function(a,b,c){if(a){se(this,c,a,0);this.l||(this.l=[]);c=this.l;a=Ae(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}else re(this,"XY",null);this.s()};k.M=function(){};k.aa=function(){};k.rd=function(a){this.l[this.A]=this.l[0]+a;this.s()};function hm(a,b,c,d,e){xc.call(this);this.i=e;this.extent=a;this.c=c;this.resolution=b;this.state=d}t(hm,xc);hm.prototype.s=function(){this.b("change")};hm.prototype.D=function(){return this.extent};hm.prototype.T=function(){return this.state};function im(a,b,c,d,e,f,g){hm.call(this,a,b,c,0,d);this.j=e;this.I=new Image;null!==f&&(this.I.crossOrigin=f);this.a={};this.f=null;this.state=0;this.g=g}t(im,hm);k=im.prototype;k.W=function(a){if(void 0!==a){var b;a=la(a);if(a in this.a)return this.a[a];pb(this.a)?b=this.I:b=this.I.cloneNode(!1);return this.a[a]=b}return this.I};k.pi=function(){this.state=3;this.f.forEach(nc);this.f=null;this.s()};
345
- k.ri=function(){void 0===this.resolution&&(this.resolution=eb(this.extent)/this.I.height);this.state=2;this.f.forEach(nc);this.f=null;this.s()};k.load=function(){if(0==this.state||3==this.state)this.state=1,this.s(),this.f=[w(this.I,"error",this.pi,this,!0),w(this.I,"load",this.ri,this,!0)],this.g(this,this.j)};k.se=function(a){this.I=a};function jm(a,b,c,d,e,f){this.a=f?f:null;hm.call(this,a,b,c,f?0:2,d);this.f=e}t(jm,hm);jm.prototype.g=function(a){this.state=a?3:2;this.s()};jm.prototype.load=function(){0==this.state&&(this.state=1,this.s(),this.a(this.g.bind(this)))};jm.prototype.W=function(){return this.f};function km(a,b){xc.call(this);this.bb=a;this.state=b;this.f=null;this.key=""}t(km,xc);km.prototype.s=function(){this.b("change")};km.prototype.vb=function(){return this.key+"/"+this.bb};km.prototype.T=function(){return this.state};function lm(a,b,c,d,e){km.call(this,a,b);this.c=c;this.I=new Image;null!==d&&(this.I.crossOrigin=d);this.a=null;this.i=e}t(lm,km);k=lm.prototype;k.ra=function(){1==this.state&&mm(this);this.f&&uc(this.f);this.state=5;this.s();km.prototype.ra.call(this)};k.W=function(){return this.I};k.vb=function(){return this.c};k.ni=function(){this.state=3;mm(this);this.s()};k.oi=function(){this.state=this.I.naturalWidth&&this.I.naturalHeight?2:4;mm(this);this.s()};
346
- k.load=function(){if(0==this.state||3==this.state)this.state=1,this.s(),this.a=[w(this.I,"error",this.ni,this,!0),w(this.I,"load",this.oi,this,!0)],this.i(this,this.c)};function mm(a){a.a.forEach(nc);a.a=null};function nm(a,b,c,d){this.wa=a;this.ha=b;this.overlaps=d;this.c=0;this.resolution=c;this.K=this.H=null;this.f=[];this.coordinates=[];this.Ua=wg();this.b=[];this.qa=null;this.ua=wg();this.ia=wg()}t(nm,Ig);
347
- function om(a,b,c,d,e,f,g){var h=a.coordinates.length,l=a.Kd();g&&(c+=e);g=[b[c],b[c+1]];var m=[NaN,NaN],n=!0,p,q,u;for(p=c+e;p<d;p+=e)m[0]=b[p],m[1]=b[p+1],u=Pa(l,m),u!==q?(n&&(a.coordinates[h++]=g[0],a.coordinates[h++]=g[1]),a.coordinates[h++]=m[0],a.coordinates[h++]=m[1],n=!1):1===u?(a.coordinates[h++]=m[0],a.coordinates[h++]=m[1],n=!1):n=!0,g[0]=m[0],g[1]=m[1],q=u;if(f&&n||p===c+e)a.coordinates[h++]=g[0],a.coordinates[h++]=g[1];return h}
348
- function pm(a,b){a.H=[0,b,0];a.f.push(a.H);a.K=[0,b,0];a.b.push(a.K)}nm.prototype.ya=function(a,b){if(this.ja){var c=yg(this.Ua,this.ja.slice());a.translate(c[0],c[1]);a.rotate(b)}a.fill();this.ja&&a.setTransform.apply(a,this.ia)};
349
- function qm(a,b,c,d,e,f,g,h,l){var m;a.qa&&fa(d,a.Ua)?m=a.qa:(a.qa||(a.qa=[]),m=pe(a.coordinates,0,a.coordinates.length,2,d,a.qa),xg(a.Ua,d));d=!pb(f);for(var n=0,p=g.length,q=0,u,D=a.ua,A=a.ia,I,R,W,ma,Ca=0,Da=0,Aa=a.f!=g||a.overlaps?0:200;n<p;){var v=g[n],na,Ba,X,ka;switch(v[0]){case 0:q=v[1];d&&f[la(q).toString()]||!q.N()?n=v[2]:void 0===l||ib(l,q.N().D())?++n:n=v[2]+1;break;case 1:Ca>Aa&&(a.ya(b,e),Ca=0);Da>Aa&&(b.stroke(),Da=0);Ca||Da||(b.beginPath(),I=R=NaN);++n;break;case 2:q=v[1];u=m[q];v=
350
- m[q+1];W=m[q+2]-u;q=m[q+3]-v;q=Math.sqrt(W*W+q*q);b.moveTo(u+q,v);b.arc(u,v,q,0,2*Math.PI,!0);++n;break;case 3:b.closePath();++n;break;case 4:q=v[1];u=v[2];na=v[3];Ba=v[4]*c;X=v[5]*c;var za=v[6],Na=v[7],kb=v[8],Ib=v[9];ka=v[10];W=v[11];ma=v[12];var gc=v[13],Vb=v[14];for(ka&&(W+=e);q<u;q+=2){v=m[q]-Ba;ka=m[q+1]-X;gc&&(v=Math.round(v),ka=Math.round(ka));if(1!=ma||W){var Qa=v+Ba,Wb=ka+X;zg(D,Qa,Wb,ma,ma,W,-Qa,-Wb);b.setTransform.apply(b,D)}Qa=b.globalAlpha;1!=Na&&(b.globalAlpha=Qa*Na);var Wb=Vb+kb>na.width?
351
- na.width-kb:Vb,Pc=za+Ib>na.height?na.height-Ib:za;b.drawImage(na,kb,Ib,Wb,Pc,v,ka,Wb*c,Pc*c);1!=Na&&(b.globalAlpha=Qa);(1!=ma||W)&&b.setTransform.apply(b,A)}++n;break;case 5:q=v[1];u=v[2];X=v[3];za=v[4]*c;Na=v[5]*c;W=v[6];ma=v[7]*c;na=v[8];Ba=v[9];for((ka=v[10])&&(W+=e);q<u;q+=2){v=m[q]+za;ka=m[q+1]+Na;if(1!=ma||W)zg(D,v,ka,ma,ma,W,-v,-ka),b.setTransform.apply(b,D);kb=X.split("\n");Ib=kb.length;1<Ib?(gc=Math.round(1.5*b.measureText("M").width),ka-=(Ib-1)/2*gc):gc=0;for(Vb=0;Vb<Ib;Vb++)Qa=kb[Vb],Ba&&
352
- b.strokeText(Qa,v,ka),na&&b.fillText(Qa,v,ka),ka+=gc;(1!=ma||W)&&b.setTransform.apply(b,A)}++n;break;case 6:if(h&&(q=v[1],q=h(q)))return q;++n;break;case 7:Aa?Ca++:a.ya(b,e);++n;break;case 8:q=v[1];u=v[2];v=m[q];ka=m[q+1];W=v+.5|0;ma=ka+.5|0;if(W!==I||ma!==R)b.moveTo(v,ka),I=W,R=ma;for(q+=2;q<u;q+=2)if(v=m[q],ka=m[q+1],W=v+.5|0,ma=ka+.5|0,q==u-2||W!==I||ma!==R)b.lineTo(v,ka),I=W,R=ma;++n;break;case 9:a.ja=v[2];Ca&&(a.ya(b,e),Ca=0,Da&&(b.stroke(),Da=0));b.fillStyle=v[1];++n;break;case 10:var q=void 0!==
353
- v[8]?v[8]:!0,Xb=v[9];u=v[2];Da&&(b.stroke(),Da=0);b.strokeStyle=v[1];b.lineWidth=q?u*c:u;b.lineCap=v[3];b.lineJoin=v[4];b.miterLimit=v[5];od&&(u=v[6],W=v[7],q&&c!==Xb&&(u=u.map(function(a){return a*c/Xb}),W*=c/Xb,v[6]=u,v[7]=W,v[9]=c),b.lineDashOffset=W,b.setLineDash(u));++n;break;case 11:b.font=v[1];b.textAlign=v[2];b.textBaseline=v[3];++n;break;case 12:Aa?Da++:b.stroke();++n;break;default:++n}}Ca&&a.ya(b,e);Da&&b.stroke()}nm.prototype.ma=function(a,b,c,d,e){qm(this,a,b,c,d,e,this.f,void 0,void 0)};
354
- function rm(a){var b=a.b;b.reverse();var c,d=b.length,e,f,g=-1;for(c=0;c<d;++c)if(e=b[c],f=e[0],6==f)g=c;else if(0==f){e[2]=c;e=a.b;for(f=c;g<f;){var h=e[g];e[g]=e[f];e[f]=h;++g;--f}g=-1}}function sm(a,b){a.H[2]=a.f.length;a.H=null;a.K[2]=a.b.length;a.K=null;var c=[6,b];a.f.push(c);a.b.push(c)}nm.prototype.bd=ja;nm.prototype.Kd=function(){return this.ha};function tm(a,b,c,d){nm.call(this,a,b,c,d);this.I=this.Ma=null;this.G=this.F=this.B=this.v=this.u=this.o=this.C=this.j=this.g=this.i=this.a=void 0}t(tm,nm);tm.prototype.Nc=function(a,b){if(this.I){pm(this,b);var c=a.l,d=this.coordinates.length,c=om(this,c,0,c.length,a.A,!1,!1);this.f.push([4,d,c,this.I,this.a,this.i,this.g,this.j,this.C,this.o,this.u,this.v,this.B,this.F,this.G]);this.b.push([4,d,c,this.Ma,this.a,this.i,this.g,this.j,this.C,this.o,this.u,this.v,this.B,this.F,this.G]);sm(this,b)}};
355
- tm.prototype.Lc=function(a,b){if(this.I){pm(this,b);var c=a.l,d=this.coordinates.length,c=om(this,c,0,c.length,a.A,!1,!1);this.f.push([4,d,c,this.I,this.a,this.i,this.g,this.j,this.C,this.o,this.u,this.v,this.B,this.F,this.G]);this.b.push([4,d,c,this.Ma,this.a,this.i,this.g,this.j,this.C,this.o,this.u,this.v,this.B,this.F,this.G]);sm(this,b)}};tm.prototype.bd=function(){rm(this);this.i=this.a=void 0;this.I=this.Ma=null;this.G=this.F=this.v=this.u=this.o=this.C=this.j=this.B=this.g=void 0};
356
- tm.prototype.wc=function(a){var b=a.Hb(),c=a.mb(),d=a.Pf(1),e=a.W(1),f=a.Rb();this.a=b[0];this.i=b[1];this.Ma=d;this.I=e;this.g=c[1];this.j=a.j;this.C=f[0];this.o=f[1];this.u=a.v;this.v=a.C;this.B=a.i;this.F=a.o;this.G=c[0]};function um(a,b,c,d){nm.call(this,a,b,c,d);this.i=null;this.a={lc:void 0,fc:void 0,gc:null,hc:void 0,ic:void 0,jc:void 0,kc:void 0,Zd:0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}t(um,nm);function vm(a,b,c,d,e){var f=a.coordinates.length;b=om(a,b,c,d,e,!1,!1);f=[8,f,b];a.f.push(f);a.b.push(f);return d}k=um.prototype;k.Kd=function(){this.i||(this.i=Ja(this.ha),0<this.c&&Ia(this.i,this.resolution*(this.c+1)/2,this.i));return this.i};
357
- function wm(a){var b=a.a,c=b.strokeStyle,d=b.lineCap,e=b.lineDash,f=b.lineDashOffset,g=b.lineJoin,h=b.lineWidth,l=b.miterLimit;b.lc==c&&b.fc==d&&fa(b.gc,e)&&b.hc==f&&b.ic==g&&b.jc==h&&b.kc==l||(b.Zd!=a.coordinates.length&&(a.f.push([12]),b.Zd=a.coordinates.length),a.f.push([10,c,h,d,g,l,e,f,!0,1],[1]),b.lc=c,b.fc=d,b.gc=e,b.hc=f,b.ic=g,b.jc=h,b.kc=l)}
358
- k.Jc=function(a,b){var c=this.a,d=c.lineWidth;void 0!==c.strokeStyle&&void 0!==d&&(wm(this),pm(this,b),this.b.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash,c.lineDashOffset,!0,1],[1]),c=a.l,vm(this,c,0,c.length,a.A),this.b.push([12]),sm(this,b))};
359
- k.Kc=function(a,b){var c=this.a,d=c.lineWidth;if(void 0!==c.strokeStyle&&void 0!==d){wm(this);pm(this,b);this.b.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash,c.lineDashOffset,!0,1],[1]);var c=a.cb(),d=a.l,e=a.A,f=0,g,h;g=0;for(h=c.length;g<h;++g)f=vm(this,d,f,c[g],e);this.b.push([12]);sm(this,b)}};k.bd=function(){this.a.Zd!=this.coordinates.length&&this.f.push([12]);rm(this);this.a=null};
360
- k.hb=function(a,b){var c=b.f;this.a.strokeStyle=Nc(c?c:Gg);c=b.i;this.a.lineCap=void 0!==c?c:"round";c=b.a;this.a.lineDash=c?c:Fg;c=b.C;this.a.lineDashOffset=c?c:0;c=b.g;this.a.lineJoin=void 0!==c?c:"round";c=b.c;this.a.lineWidth=void 0!==c?c:1;c=b.j;this.a.miterLimit=void 0!==c?c:10;this.a.lineWidth>this.c&&(this.c=this.a.lineWidth,this.i=null)};function xm(a,b,c,d){nm.call(this,a,b,c,d);this.i=null;this.a={We:void 0,lc:void 0,fc:void 0,gc:null,hc:void 0,ic:void 0,jc:void 0,kc:void 0,fillStyle:void 0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}t(xm,nm);
361
- function ym(a,b,c,d,e){var f=a.a,g=void 0!==f.fillStyle,f=void 0!=f.strokeStyle,h=d.length,l=[1];a.f.push(l);a.b.push(l);for(l=0;l<h;++l){var m=d[l],n=a.coordinates.length;c=om(a,b,c,m,e,!0,!f);c=[8,n,c];a.f.push(c);a.b.push(c);f&&(c=[3],a.f.push(c),a.b.push(c));c=m}b=[7];a.b.push(b);g&&a.f.push(b);f&&(g=[12],a.f.push(g),a.b.push(g));return c}k=xm.prototype;
362
- k.mc=function(a,b){var c=this.a,d=c.strokeStyle;if(void 0!==c.fillStyle||void 0!==d){zm(this,a);pm(this,b);this.b.push([9,Kc(Eg)]);void 0!==c.strokeStyle&&this.b.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash,c.lineDashOffset,!0,1]);var e=a.l,d=this.coordinates.length;om(this,e,0,e.length,a.A,!1,!1);e=[1];d=[2,d];this.f.push(e,d);this.b.push(e,d);d=[7];this.b.push(d);void 0!==c.fillStyle&&this.f.push(d);void 0!==c.strokeStyle&&(c=[12],this.f.push(c),this.b.push(c));
363
- sm(this,b)}};k.Oc=function(a,b){var c=this.a;zm(this,a);pm(this,b);this.b.push([9,Kc(Eg)]);void 0!==c.strokeStyle&&this.b.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash,c.lineDashOffset,!0,1]);var c=a.cb(),d=Se(a);ym(this,d,0,c,a.A);sm(this,b)};
364
- k.Mc=function(a,b){var c=this.a,d=c.strokeStyle;if(void 0!==c.fillStyle||void 0!==d){zm(this,a);pm(this,b);this.b.push([9,Kc(Eg)]);void 0!==c.strokeStyle&&this.b.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash,c.lineDashOffset,!0,1]);var c=a.a,d=Sg(a),e=a.A,f=0,g,h;g=0;for(h=c.length;g<h;++g)f=ym(this,d,f,c[g],e);sm(this,b)}};k.bd=function(){rm(this);this.a=null;var a=this.wa;if(a){var b=this.coordinates,c,d;c=0;for(d=b.length;c<d;++c)b[c]=a*Math.round(b[c]/a)}};
365
- k.Kd=function(){this.i||(this.i=Ja(this.ha),0<this.c&&Ia(this.i,this.resolution*(this.c+1)/2,this.i));return this.i};
366
- k.hb=function(a,b){var c=this.a;if(a){var d=a.b;c.fillStyle=Nc(d?d:Eg)}else c.fillStyle=void 0;b?(d=b.f,c.strokeStyle=Nc(d?d:Gg),d=b.i,c.lineCap=void 0!==d?d:"round",d=b.a,c.lineDash=d?d.slice():Fg,d=b.C,c.lineDashOffset=d?d:0,d=b.g,c.lineJoin=void 0!==d?d:"round",d=b.c,c.lineWidth=void 0!==d?d:1,d=b.j,c.miterLimit=void 0!==d?d:10,c.lineWidth>this.c&&(this.c=c.lineWidth,this.i=null)):(c.strokeStyle=void 0,c.lineCap=void 0,c.lineDash=null,c.lineDashOffset=void 0,c.lineJoin=void 0,c.lineWidth=void 0,
367
- c.miterLimit=void 0)};function zm(a,b){var c=a.a,d=c.fillStyle,e=c.strokeStyle,f=c.lineCap,g=c.lineDash,h=c.lineDashOffset,l=c.lineJoin,m=c.lineWidth,n=c.miterLimit;if(void 0!==d&&("string"!==typeof d||c.We!=d)){var p=[9,d];"string"!==typeof d&&(d=b.D(),p.push([d[0],d[3]]));a.f.push(p);c.We=c.fillStyle}void 0===e||c.lc==e&&c.fc==f&&fa(c.gc,g)&&c.hc==h&&c.ic==l&&c.jc==m&&c.kc==n||(a.f.push([10,e,m,f,l,n,g,h,!0,1]),c.lc=e,c.fc=f,c.gc=g,c.hc=h,c.ic=l,c.jc=m,c.kc=n)};function Am(a,b,c,d){nm.call(this,a,b,c,d);this.G=this.F=this.B=null;this.pa="";this.C=this.j=0;this.o=void 0;this.v=this.u=0;this.g=this.i=this.a=null}t(Am,nm);
368
- Am.prototype.lb=function(a,b,c,d,e,f){if(""!==this.pa&&this.g&&(this.a||this.i)){if(this.a){e=this.a;var g=this.B;if(!g||g.fillStyle!=e.fillStyle){var h=[9,e.fillStyle];this.f.push(h);this.b.push(h);g?g.fillStyle=e.fillStyle:this.B={fillStyle:e.fillStyle}}}this.i&&(e=this.i,g=this.F,g&&g.lineCap==e.lineCap&&g.lineDash==e.lineDash&&g.lineDashOffset==e.lineDashOffset&&g.lineJoin==e.lineJoin&&g.lineWidth==e.lineWidth&&g.miterLimit==e.miterLimit&&g.strokeStyle==e.strokeStyle||(h=[10,e.strokeStyle,e.lineWidth,
369
- e.lineCap,e.lineJoin,e.miterLimit,e.lineDash,e.lineDashOffset,!1,1],this.f.push(h),this.b.push(h),g?(g.lineCap=e.lineCap,g.lineDash=e.lineDash,g.lineDashOffset=e.lineDashOffset,g.lineJoin=e.lineJoin,g.lineWidth=e.lineWidth,g.miterLimit=e.miterLimit,g.strokeStyle=e.strokeStyle):this.F={lineCap:e.lineCap,lineDash:e.lineDash,lineDashOffset:e.lineDashOffset,lineJoin:e.lineJoin,lineWidth:e.lineWidth,miterLimit:e.miterLimit,strokeStyle:e.strokeStyle}));e=this.g;g=this.G;g&&g.font==e.font&&g.textAlign==
370
- e.textAlign&&g.textBaseline==e.textBaseline||(h=[11,e.font,e.textAlign,e.textBaseline],this.f.push(h),this.b.push(h),g?(g.font=e.font,g.textAlign=e.textAlign,g.textBaseline=e.textBaseline):this.G={font:e.font,textAlign:e.textAlign,textBaseline:e.textBaseline});pm(this,f);e=this.coordinates.length;a=om(this,a,b,c,d,!1,!1);a=[5,e,a,this.pa,this.j,this.C,this.u,this.v,!!this.a,!!this.i,this.o];this.f.push(a);this.b.push(a);sm(this,f)}};
371
- Am.prototype.ab=function(a){if(a){var b=a.sa();b?(b=b.b,b=Nc(b?b:Eg),this.a?this.a.fillStyle=b:this.a={fillStyle:b}):this.a=null;var c=a.oa();if(c){var b=c.f,d=c.i,e=c.a,f=c.C,g=c.g,h=c.c,c=c.j,d=void 0!==d?d:"round",e=e?e.slice():Fg,f=void 0!==f?f:0,g=void 0!==g?g:"round",h=void 0!==h?h:1,c=void 0!==c?c:10,b=Nc(b?b:Gg);if(this.i){var l=this.i;l.lineCap=d;l.lineDash=e;l.lineDashOffset=f;l.lineJoin=g;l.lineWidth=h;l.miterLimit=c;l.strokeStyle=b}else this.i={lineCap:d,lineDash:e,lineDashOffset:f,lineJoin:g,
372
- lineWidth:h,miterLimit:c,strokeStyle:b}}else this.i=null;var m=a.f,b=a.a,d=a.c,e=a.C,h=a.i,c=a.b,f=a.xa(),g=a.g,l=a.j;a=void 0!==m?m:"10px sans-serif";g=void 0!==g?g:"center";l=void 0!==l?l:"middle";this.g?(m=this.g,m.font=a,m.textAlign=g,m.textBaseline=l):this.g={font:a,textAlign:g,textBaseline:l};this.pa=void 0!==f?f:"";this.j=void 0!==b?b:0;this.C=void 0!==d?d:0;this.o=void 0!==e?e:!1;this.u=void 0!==h?h:0;this.v=void 0!==c?c:1}else this.pa=""};function Bm(a,b,c,d,e){this.C=a;this.f=b;this.g=d;this.j=c;this.a=e;this.b={};this.c=Qc(1,1);this.i=wg()}t(Bm,Xg);var Cm={0:[[!0]]};function Dm(a,b,c){var d,e=Math.floor(a.length/2);if(b>=e)for(d=e;d<b;d++)a[d][c]=!0;else if(b<e)for(d=b+1;d<e;d++)a[d][c]=!0}
373
- function Em(a){if(void 0!==Cm[a])return Cm[a];for(var b=2*a+1,c=Array(b),d=0;d<b;d++)c[d]=Array(b);for(var b=a,e=d=0;b>=d;)Dm(c,a+b,a+d),Dm(c,a+d,a+b),Dm(c,a-d,a+b),Dm(c,a-b,a+d),Dm(c,a-b,a-d),Dm(c,a-d,a-b),Dm(c,a+d,a-b),Dm(c,a+b,a-d),d++,e+=1+2*d,0<2*(e-b)+1&&(--b,e+=1-2*b);return Cm[a]=c}function Fm(a){for(var b in a.b){var c=a.b[b],d;for(d in c)c[d].bd()}}
374
- Bm.prototype.Ka=function(a,b,c,d,e,f){d=Math.round(d);var g=2*d+1,h=zg(this.i,d+.5,d+.5,1/b,-1/b,-c,-a[0],-a[1]),l=this.c;l.canvas.width!==g||l.canvas.height!==g?(l.canvas.width=g,l.canvas.height=g):l.clearRect(0,0,g,g);var m;void 0!==this.a&&(m=Ga(),Ha(m,a),Ia(m,b*(this.a+d),m));var n=Em(d);return Gm(this,l,h,c,e,function(a){for(var b=l.getImageData(0,0,g,g).data,c=0;c<g;c++)for(var d=0;d<g;d++)if(n[c][d]&&0<b[4*(d*g+c)+3]){if(a=f(a))return a;l.clearRect(0,0,g,g);return}},m)};
375
- function Hm(a,b,c){var d=void 0!==b?b.toString():"0";b=a.b[d];void 0===b&&(b={},a.b[d]=b);d=b[c];void 0===d&&(d=new Im[c](a.C,a.f,a.j,a.g),b[c]=d);return d}
376
- Bm.prototype.ma=function(a,b,c,d,e,f){var g=Object.keys(this.b).map(Number);g.sort(ba);var h=this.f,l=h[0],m=h[1],n=h[2],h=h[3],l=[l,m,l,h,n,h,n,m];pe(l,0,8,2,c,l);a.save();a.beginPath();a.moveTo(l[0],l[1]);a.lineTo(l[2],l[3]);a.lineTo(l[4],l[5]);a.lineTo(l[6],l[7]);a.clip();f=f?f:Wg;for(var p,q,l=0,m=g.length;l<m;++l)for(p=this.b[g[l].toString()],n=0,h=f.length;n<h;++n)q=p[f[n]],void 0!==q&&q.ma(a,b,c,d,e);a.restore()};
377
- function Gm(a,b,c,d,e,f,g){var h=Object.keys(a.b).map(Number);h.sort(function(a,b){return b-a});var l,m,n,p,q;l=0;for(m=h.length;l<m;++l)for(p=a.b[h[l].toString()],n=Wg.length-1;0<=n;--n)if(q=p[Wg[n]],void 0!==q&&(q=qm(q,b,1,c,d,e,q.b,f,g)))return q}var Im={Circle:xm,Image:tm,LineString:um,Polygon:xm,Text:Am};function Jm(a){zc.call(this);this.a=a}t(Jm,zc);Jm.prototype.Ka=ja;function Km(a,b,c){return function(d,e){return Lm(a,b,d,e,function(a){c[d]||(c[d]={});c[d][a.bb.toString()]=a})}}Jm.prototype.K=function(a){2===a.target.T()&&Mm(this)};function Mm(a){var b=a.a;b.tb()&&"ready"==b.Sd()&&a.s()}function Nm(a,b){b.Kf()&&a.postRenderFunctions.push(function(a,b,e){b=la(a).toString();a.Gb(e.viewState.projection,e.usedTiles[b])}.bind(null,b))}
378
- function Om(a,b){if(b){var c,d,e;d=0;for(e=b.length;d<e;++d)c=b[d],a[la(c).toString()]=c}}function Pm(a,b){var c=b.ja;void 0!==c&&("string"===typeof c?a.logos[c]="":c&&(qa("string"==typeof c.href,44),qa("string"==typeof c.src,45),a.logos[c.src]=c.href))};function Qm(a){Jm.call(this,a);this.ja=wg()}t(Qm,Jm);function Rm(a,b,c){var d=b.pixelRatio,e=b.size[0]*d,f=b.size[1]*d,g=b.viewState.rotation,h=ab(c),l=$a(c),m=Za(c);c=Ya(c);yg(b.coordinateToPixelTransform,h);yg(b.coordinateToPixelTransform,l);yg(b.coordinateToPixelTransform,m);yg(b.coordinateToPixelTransform,c);a.save();Hg(a,-g,e/2,f/2);a.beginPath();a.moveTo(h[0]*d,h[1]*d);a.lineTo(l[0]*d,l[1]*d);a.lineTo(m[0]*d,m[1]*d);a.lineTo(c[0]*d,c[1]*d);a.clip();Hg(a,g,e/2,f/2)}
379
- function Sm(a,b,c,d,e){var f=a.a;if(yc(f,b)){var g=d.size[0]*d.pixelRatio,h=d.size[1]*d.pixelRatio,l=d.viewState.rotation;Hg(c,-l,g/2,h/2);a=e?e:Tm(a,d,0);f.b(new Dg(b,new Jg(c,d.pixelRatio,d.extent,a,d.viewState.rotation),d,c,null));Hg(c,l,g/2,h/2)}}Qm.prototype.u=function(a,b,c,d){if(this.Ka(a,b,0,me,this))return c.call(d,this.a,null)};function Tm(a,b,c){var d=b.viewState,e=b.pixelRatio,f=e/d.resolution;return zg(a.ja,e*b.size[0]/2,e*b.size[1]/2,f,-f,-d.rotation,-d.center[0]+c,-d.center[1])};function Um(a,b){return la(a)-la(b)}function Vm(a,b){var c=.5*a/b;return c*c}function Wm(a,b,c,d,e,f){var g=!1,h,l;if(h=c.W())l=h.cd(),2==l||3==l?h.eg(e,f):(0==l&&h.load(),h.zf(e,f),g=!0);if(e=(0,c.Ca)(b))d=e.Rc(d),(0,Xm[d.J()])(a,d,c,b);return g}
380
- var Xm={Point:function(a,b,c,d){var e=c.W();if(e){if(2!=e.cd())return;var f=Hm(a,c.ta(),"Image");f.wc(e);f.Nc(b,d)}if(e=c.xa())a=Hm(a,c.ta(),"Text"),a.ab(e),a.lb(b.l,0,2,2,b,d)},LineString:function(a,b,c,d){var e=c.oa();if(e){var f=Hm(a,c.ta(),"LineString");f.hb(null,e);f.Jc(b,d)}if(e=c.xa())a=Hm(a,c.ta(),"Text"),a.ab(e),a.lb(Qg(b),0,2,2,b,d)},Polygon:function(a,b,c,d){var e=c.sa(),f=c.oa();if(e||f){var g=Hm(a,c.ta(),"Polygon");g.hb(e,f);g.Oc(b,d)}if(e=c.xa())a=Hm(a,c.ta(),"Text"),a.ab(e),a.lb(Te(b),
381
- 0,2,2,b,d)},MultiPoint:function(a,b,c,d){var e=c.W();if(e){if(2!=e.cd())return;var f=Hm(a,c.ta(),"Image");f.wc(e);f.Lc(b,d)}if(e=c.xa())a=Hm(a,c.ta(),"Text"),a.ab(e),c=b.l,a.lb(c,0,c.length,b.A,b,d)},MultiLineString:function(a,b,c,d){var e=c.oa();if(e){var f=Hm(a,c.ta(),"LineString");f.hb(null,e);f.Kc(b,d)}if(e=c.xa())a=Hm(a,c.ta(),"Text"),a.ab(e),c=Rg(b),a.lb(c,0,c.length,2,b,d)},MultiPolygon:function(a,b,c,d){var e=c.sa(),f=c.oa();if(f||e){var g=Hm(a,c.ta(),"Polygon");g.hb(e,f);g.Mc(b,d)}if(e=c.xa())a=
382
- Hm(a,c.ta(),"Text"),a.ab(e),c=Tg(b),a.lb(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,Xm[b[e].J()])(a,b[e],c,d)},Circle:function(a,b,c,d){var e=c.sa(),f=c.oa();if(e||f){var g=Hm(a,c.ta(),"Circle");g.hb(e,f);g.mc(b,d)}if(e=c.xa())a=Hm(a,c.ta(),"Text"),a.ab(e),a.lb(b.na(),0,2,2,b,d)}};function Ym(a){Qm.call(this,a);this.c=!1;this.F=-1;this.B=NaN;this.C=Ga();this.i=this.o=null;this.g=Qc()}t(Ym,Qm);
383
- Ym.prototype.v=function(a,b,c){var d=a.extent,e=a.pixelRatio,f=b.$d?a.skippedFeatureUids:{},g=a.viewState,h=g.projection,g=g.rotation,l=h.D(),m=this.a.la(),n=Tm(this,a,0);Sm(this,"precompose",c,a,n);var p=b.extent,q=void 0!==p;q&&Rm(c,a,p);if((p=this.i)&&!pb(p.b)){var u=0,D=0,A;if(yc(this.a,"render")){A=c.canvas.width;var I=c.canvas.height;if(g){var R=Math.round(Math.sqrt(A*A+I*I)),u=(R-A)/2,D=(R-I)/2;A=I=R}this.g.canvas.width=A;this.g.canvas.height=I;A=this.g}else A=c;I=A.globalAlpha;A.globalAlpha=
384
- b.opacity;A!=c&&A.translate(u,D);b=a.size[0]*e;R=a.size[1]*e;Hg(A,-g,b/2,R/2);p.ma(A,e,n,g,f);if(m.B&&h.b&&!Oa(l,d)){for(var h=d[0],m=db(l),W=0;h<l[0];)--W,n=m*W,n=Tm(this,a,n),p.ma(A,e,n,g,f),h+=m;W=0;for(h=d[2];h>l[2];)++W,n=m*W,n=Tm(this,a,n),p.ma(A,e,n,g,f),h-=m;n=Tm(this,a,0)}Hg(A,g,b/2,R/2);A!=c&&(Sm(this,"render",A,a,n),c.drawImage(A.canvas,-u,-D),A.translate(-u,-D));A.globalAlpha=I}q&&c.restore();Sm(this,"postcompose",c,a,n)};
385
- Ym.prototype.Ka=function(a,b,c,d,e){if(this.i){var f=this.a,g={};return this.i.Ka(a,b.viewState.resolution,b.viewState.rotation,c,{},function(a){var b=la(a).toString();if(!(b in g))return g[b]=!0,d.call(e,a,f)})}};Ym.prototype.G=function(){Mm(this)};
386
- Ym.prototype.j=function(a){function b(a){var b,d=a.i;d?b=d.call(a,m):(d=c.j)&&(b=d(a,m));if(b){if(b){d=!1;if(Array.isArray(b))for(var e=0,f=b.length;e<f;++e)d=Wm(q,a,b[e],Vm(m,n),this.G,this)||d;else d=Wm(q,a,b,Vm(m,n),this.G,this)||d;a=d}else a=!1;this.c=this.c||a}}var c=this.a,d=c.la();Om(a.attributions,d.o);Pm(a,d);var e=a.viewHints[0],f=a.viewHints[1],g=c.G,h=c.H;if(!this.c&&!g&&e||!h&&f)return!0;var l=a.extent,h=a.viewState,e=h.projection,m=h.resolution,n=a.pixelRatio,f=c.f,p=c.u,g=c.get(Zm);
387
- void 0===g&&(g=Um);l=Ia(l,p*m);p=h.projection.D();d.B&&h.projection.b&&!Oa(p,a.extent)&&(a=Math.max(db(l)/2,db(p)),l[0]=p[0]-a,l[2]=p[2]+a);if(!this.c&&this.B==m&&this.F==f&&this.o==g&&Oa(this.C,l))return!0;this.i=null;this.c=!1;var q=new Bm(.5*m/n,l,m,d.ha,c.u);$m(d,l,m,e);if(g){var u=[];d.pb(l,function(a){u.push(a)},this);u.sort(g);u.forEach(b,this)}else d.pb(l,b,this);Fm(q);this.B=m;this.F=f;this.o=g;this.C=l;this.i=q;return!0};function T(a){a=a?a:{};var b=mb({},a);delete b.style;delete b.renderBuffer;delete b.updateWhileAnimating;delete b.updateWhileInteracting;tg.call(this,b);this.u=void 0!==a.renderBuffer?a.renderBuffer:100;this.o=null;this.j=void 0;this.v(a.style);this.G=void 0!==a.updateWhileAnimating?a.updateWhileAnimating:!1;this.H=void 0!==a.updateWhileInteracting?a.updateWhileInteracting:!1}t(T,tg);T.prototype.Hc=function(a){var b=null;"canvas"===a.J()&&(b=new Ym(this));return b};T.prototype.B=function(){return this.o};
388
- T.prototype.F=function(){return this.j};T.prototype.v=function(a){this.o=void 0!==a?a:Gh;this.j=null===a?void 0:Eh(this.o);this.s()};var Zm="renderOrder";function an(){return[[-Infinity,-Infinity,Infinity,Infinity]]};function bn(a){Ac.call(this);this.i=Cb(a.projection);this.o=cn(a.attributions);this.ja=a.logo;this.ua=void 0!==a.state?a.state:"ready";this.B=void 0!==a.wrapX?a.wrapX:!1}t(bn,Ac);function cn(a){if("string"===typeof a)return[new jc({html:a})];if(a instanceof jc)return[a];if(Array.isArray(a)){for(var b=a.length,c=Array(b),d=0;d<b;d++){var e=a[d];c[d]="string"===typeof e?new jc({html:e}):e}return c}return null}k=bn.prototype;k.Ka=ja;k.Pb=function(){return this.o};k.Jb=function(){return this.ja};
389
- k.Qb=function(){return this.i};k.T=function(){return this.ua};k.yb=function(){this.s()};k.Ab=function(a){this.o=cn(a);this.s()};function dn(a,b){a.ua=b;a.s()};function U(a){a=a||{};bn.call(this,{attributions:a.attributions,logo:a.logo,projection:void 0,state:"ready",wrapX:void 0!==a.wrapX?a.wrapX:!0});this.G=ja;this.F=a.format;this.ha=void 0==a.overlaps?!0:a.overlaps;this.H=a.url;a.loader?this.G=a.loader:void 0!==this.H&&(qa(this.F,7),this.G=Yh(this.H,this.F));this.ia=a.strategy?a.strategy:an;var b=void 0!==a.useSpatialIndex?a.useSpatialIndex:!0;this.a=b?new ah:null;this.K=new ah;this.g={};this.j={};this.u={};this.v={};this.c=null;var c,d;a.features instanceof
390
- x?(c=a.features,d=c.a):Array.isArray(a.features)&&(d=a.features);b||c||(c=new x(d));d&&en(this,d);c&&fn(this,c)}t(U,bn);k=U.prototype;k.ec=function(a){var b=la(a).toString();if(gn(this,b,a)){hn(this,b,a);var c=a.N();c?(b=c.D(),this.a&&this.a.za(b,a)):this.g[b]=a;this.b(new jn("addfeature",a))}this.s()};function hn(a,b,c){a.v[b]=[w(c,"change",a.Of,a),w(c,"propertychange",a.Of,a)]}
391
- function gn(a,b,c){var d=!0,e=c.c;void 0!==e?e.toString()in a.j?d=!1:a.j[e.toString()]=c:(qa(!(b in a.u),30),a.u[b]=c);return d}k.Ec=function(a){en(this,a);this.s()};function en(a,b){var c,d,e,f,g=[],h=[],l=[];d=0;for(e=b.length;d<e;d++)f=b[d],c=la(f).toString(),gn(a,c,f)&&h.push(f);d=0;for(e=h.length;d<e;d++){f=h[d];c=la(f).toString();hn(a,c,f);var m=f.N();m?(c=m.D(),g.push(c),l.push(f)):a.g[c]=f}a.a&&a.a.load(g,l);d=0;for(e=h.length;d<e;d++)a.b(new jn("addfeature",h[d]))}
392
- function fn(a,b){var c=!1;w(a,"addfeature",function(a){c||(c=!0,b.push(a.feature),c=!1)});w(a,"removefeature",function(a){c||(c=!0,b.remove(a.feature),c=!1)});w(b,"add",function(a){c||(c=!0,this.ec(a.element),c=!1)},a);w(b,"remove",function(a){c||(c=!0,this.zb(a.element),c=!1)},a);a.c=b}
393
- k.clear=function(a){if(a){for(var b in this.v)this.v[b].forEach(nc);this.c||(this.v={},this.j={},this.u={})}else if(this.a){this.a.forEach(this.pe,this);for(var c in this.g)this.pe(this.g[c])}this.c&&this.c.clear();this.a&&this.a.clear();this.K.clear();this.g={};this.b(new jn("clear"));this.s()};k.af=function(a,b){if(this.a)return this.a.forEach(a,b);if(this.c)return this.c.forEach(a,b)};function kn(a,b,c){a.pb([b[0],b[1],b[0],b[1]],function(a){if(a.N().Na(b))return c.call(void 0,a)})}
394
- k.pb=function(a,b,c){if(this.a)return fh(this.a,a,b,c);if(this.c)return this.c.forEach(b,c)};k.bf=function(a,b,c){return this.pb(a,function(d){if(d.N().Aa(a)&&(d=b.call(c,d)))return d})};k.hf=function(){return this.c};k.Lf=function(){var a;this.c?a=this.c.a:this.a&&(a=ch(this.a),pb(this.g)||da(a,ob(this.g)));return a};k.gf=function(a){var b=[];kn(this,a,function(a){b.push(a)});return b};k.jf=function(a){return dh(this.a,a)};
395
- k.df=function(a,b){var c=a[0],d=a[1],e=null,f=[NaN,NaN],g=Infinity,h=[-Infinity,-Infinity,Infinity,Infinity],l=b?b:me;fh(this.a,h,function(a){if(l(a)){var b=a.N(),m=g;g=b.Wa(c,d,f,g);g<m&&(e=a,a=Math.sqrt(g),h[0]=c-a,h[1]=d-a,h[2]=c+a,h[3]=d+a)}});return e};k.D=function(){return this.a.D()};k.ff=function(a){a=this.j[a.toString()];return void 0!==a?a:null};k.Mf=function(){return this.F};k.Nf=function(){return this.H};
396
- k.Of=function(a){a=a.target;var b=la(a).toString(),c=a.N();c?(c=c.D(),b in this.g?(delete this.g[b],this.a&&this.a.za(c,a)):this.a&&bh(this.a,c,a)):b in this.g||(this.a&&this.a.remove(a),this.g[b]=a);c=a.c;void 0!==c?(c=c.toString(),b in this.u?(delete this.u[b],this.j[c]=a):this.j[c]!==a&&(ln(this,a),this.j[c]=a)):b in this.u||(ln(this,a),this.u[b]=a);this.s();this.b(new jn("changefeature",a))};
397
- function $m(a,b,c,d){var e=a.K;b=a.ia(b,c);var f,g;f=0;for(g=b.length;f<g;++f){var h=b[f];fh(e,h,function(a){return Oa(a.extent,h)})||(a.G.call(a,h,c,d),e.za(h,{extent:h.slice()}))}}k.zb=function(a){var b=la(a).toString();b in this.g?delete this.g[b]:this.a&&this.a.remove(a);this.pe(a);this.s()};k.pe=function(a){var b=la(a).toString();this.v[b].forEach(nc);delete this.v[b];var c=a.c;void 0!==c?delete this.j[c.toString()]:delete this.u[b];this.b(new jn("removefeature",a))};
398
- function ln(a,b){for(var c in a.j)if(a.j[c]===b){delete a.j[c];break}}function jn(a,b){vc.call(this,a);this.feature=b}t(jn,vc);function mn(a){sf.call(this,{handleDownEvent:nn,handleEvent:on,handleUpEvent:pn});this.ia=null;this.o=!1;this.Ja=a.source?a.source:null;this.Fa=a.features?a.features:null;this.Ig=a.snapTolerance?a.snapTolerance:12;this.K=a.type;this.c=qn(this.K);this.Ea=a.minPoints?a.minPoints:this.c===rn?3:2;this.wa=a.maxPoints?a.maxPoints:Infinity;this.bc=a.finishCondition?a.finishCondition:me;var b=a.geometryFunction;if(!b)if("Circle"===this.K)b=function(a,b){var c=b?b:new S([NaN,NaN]);c.qe(a[0],Math.sqrt(ke(a[0],
399
- a[1])));return c};else{var c,d=this.c;d===sn?c=B:d===tn?c=L:d===rn&&(c=C);b=function(a,b){var e=b;e?d===rn?e.aa([a[0].concat([a[0][0]])]):e.aa(a):e=new c(a);return e}}this.Ca=b;this.H=this.v=this.a=this.B=this.g=this.j=null;this.Va=a.clickTolerance?a.clickTolerance*a.clickTolerance:36;this.ua=new T({source:new U({useSpatialIndex:!1,wrapX:a.wrapX?a.wrapX:!1}),style:a.style?a.style:un()});this.Ia=a.geometryName;this.yg=a.condition?a.condition:nf;this.cc=a.freehand?me:a.freehandCondition?a.freehandCondition:
400
- of;w(this,Cc("active"),this.gg,this)}t(mn,sf);function un(){var a=Hh();return function(b){return a[b.N().J()]}}k=mn.prototype;k.setMap=function(a){sf.prototype.setMap.call(this,a);this.gg()};function on(a){this.o=this.c!==sn&&this.cc(a);var b=!this.o;this.o&&"pointerdrag"===a.type&&null!==this.g?(vn(this,a),b=!1):"pointermove"===a.type?b=wn(this,a):"dblclick"===a.type&&(b=!1);return tf.call(this,a)&&b}
401
- function nn(a){return this.o?(this.ia=a.pixel,this.j||xn(this,a),!0):this.yg(a)?(this.ia=a.pixel,!0):!1}function pn(a){var b=this.ia,c=a.pixel,d=b[0]-c[0],b=b[1]-c[1],d=d*d+b*b,b=!0,c=this.c===yn;(this.o?d>this.Va:d<=this.Va)?(wn(this,a),this.j?this.o||c?this.nc():zn(this,a)?this.bc(a)&&this.nc():vn(this,a):(xn(this,a),this.c===sn&&this.nc()),b=!1):c&&(this.j=null);return b}
402
- function wn(a,b){if(a.j){var c=b.coordinate,d=a.g.N(),e;a.c===sn?e=a.a:a.c===rn?(e=a.a[0],e=e[e.length-1],zn(a,b)&&(c=a.j.slice())):(e=a.a,e=e[e.length-1]);e[0]=c[0];e[1]=c[1];a.Ca(a.a,d);a.B&&a.B.N().aa(c);d instanceof C&&a.c!==rn?(a.v||(a.v=new Ih(new L(null))),d=d.mf(0),c=a.v.N(),c.S(d.V,d.l)):a.H&&(c=a.v.N(),c.aa(a.H));An(a)}else c=b.coordinate.slice(),a.B?a.B.N().aa(c):(a.B=new Ih(new B(c)),An(a));return!0}
403
- function zn(a,b){var c=!1;if(a.g){var d=!1,e=[a.j];a.c===tn?d=a.a.length>a.Ea:a.c===rn&&(d=a.a[0].length>a.Ea,e=[a.a[0][0],a.a[0][a.a[0].length-2]]);if(d)for(var d=b.map,f=0,g=e.length;f<g;f++){var h=e[f],l=d.$a(h),m=b.pixel,c=m[0]-l[0],l=m[1]-l[1];if(c=Math.sqrt(c*c+l*l)<=(a.o?1:a.Ig)){a.j=h;break}}}return c}
404
- function xn(a,b){var c=b.coordinate;a.j=c;a.c===sn?a.a=c.slice():a.c===rn?(a.a=[[c.slice(),c.slice()]],a.H=a.a[0]):(a.a=[c.slice(),c.slice()],a.c===yn&&(a.H=a.a));a.H&&(a.v=new Ih(new L(a.H)));c=a.Ca(a.a);a.g=new Ih;a.Ia&&a.g.md(a.Ia);a.g.Oa(c);An(a);a.b(new Bn("drawstart",a.g))}
405
- function vn(a,b){var c=b.coordinate,d=a.g.N(),e,f;a.c===tn?(a.j=c.slice(),f=a.a,f.length>=a.wa&&(a.o?f.pop():e=!0),f.push(c.slice()),a.Ca(f,d)):a.c===rn&&(f=a.a[0],f.length>=a.wa&&(a.o?f.pop():e=!0),f.push(c.slice()),e&&(a.j=f[0]),a.Ca(a.a,d));An(a);e&&a.nc()}k.Dj=function(){var a=this.g.N(),b,c;this.c===tn?(b=this.a,b.splice(-2,1),this.Ca(b,a)):this.c===rn&&(b=this.a[0],b.splice(-2,1),c=this.v.N(),c.aa(b),this.Ca(this.a,a));0===b.length&&(this.j=null);An(this)};
406
- k.nc=function(){var a=Cn(this),b=this.a,c=a.N();this.c===tn?(b.pop(),this.Ca(b,c)):this.c===rn&&(b[0].pop(),this.Ca(b,c),b=c.M());"MultiPoint"===this.K?a.Oa(new N([b])):"MultiLineString"===this.K?a.Oa(new M([b])):"MultiPolygon"===this.K&&a.Oa(new O([b]));this.b(new Bn("drawend",a));this.Fa&&this.Fa.push(a);this.Ja&&this.Ja.ec(a)};function Cn(a){a.j=null;var b=a.g;b&&(a.g=null,a.B=null,a.v=null,a.ua.la().clear(!0));return b}
407
- k.Gi=function(a){var b=a.N();this.g=a;this.a=b.M();a=this.a[this.a.length-1];this.j=a.slice();this.a.push(a.slice());An(this);this.b(new Bn("drawstart",this.g))};k.Yb=ne;function An(a){var b=[];a.g&&b.push(a.g);a.v&&b.push(a.v);a.B&&b.push(a.B);a=a.ua.la();a.clear(!0);a.Ec(b)}k.gg=function(){var a=this.u,b=this.F();a&&b||Cn(this);this.ua.setMap(b?a:null)};
408
- function qn(a){var b;"Point"===a||"MultiPoint"===a?b=sn:"LineString"===a||"MultiLineString"===a?b=tn:"Polygon"===a||"MultiPolygon"===a?b=rn:"Circle"===a&&(b=yn);return b}var sn="Point",tn="LineString",rn="Polygon",yn="Circle";function Bn(a,b){vc.call(this,a);this.feature=b}t(Bn,vc);function Dn(a){sf.call(this,{handleDownEvent:En,handleDragEvent:Fn,handleEvent:Gn,handleUpEvent:Hn});this.Va=a.condition?a.condition:rf;this.Ia=function(a){return nf(a)&&mf(a)};this.Ja=a.deleteCondition?a.deleteCondition:this.Ia;this.Fa=this.c=null;this.Ea=[0,0];this.v=this.H=!1;this.a=new ah;this.ua=void 0!==a.pixelTolerance?a.pixelTolerance:10;this.j=this.wa=!1;this.g=[];this.B=new T({source:new U({useSpatialIndex:!1,wrapX:!!a.wrapX}),style:a.style?a.style:In(),updateWhileAnimating:!0,updateWhileInteracting:!0});
409
- this.ia={Point:this.Ni,LineString:this.Gf,LinearRing:this.Gf,Polygon:this.Oi,MultiPoint:this.Li,MultiLineString:this.Ki,MultiPolygon:this.Mi,Circle:this.kk,GeometryCollection:this.Ji};this.o=a.features;this.o.forEach(this.de,this);w(this.o,"add",this.Hi,this);w(this.o,"remove",this.Ii,this);this.K=null}t(Dn,sf);k=Dn.prototype;k.de=function(a){var b=a.N();b&&b.J()in this.ia&&this.ia[b.J()].call(this,a,b);(b=this.u)&&b.c&&this.F()&&Jn(this,this.Ea,b);w(a,"change",this.Ff,this)};
410
- function Kn(a,b){a.v||(a.v=!0,a.b(new Ln("modifystart",a.o,b)))}function Mn(a,b){Nn(a,b);a.c&&!a.o.kb()&&(a.B.la().zb(a.c),a.c=null);sc(b,"change",a.Ff,a)}function Nn(a,b){var c=a.a,d=[];c.forEach(function(a){b===a.feature&&d.push(a)});for(var e=d.length-1;0<=e;--e)c.remove(d[e])}k.xb=function(a){this.c&&!a&&(this.B.la().zb(this.c),this.c=null);sf.prototype.xb.call(this,a)};k.setMap=function(a){this.B.setMap(a);sf.prototype.setMap.call(this,a)};k.Hi=function(a){this.de(a.element)};
411
- k.Ff=function(a){this.j||(a=a.target,Mn(this,a),this.de(a))};k.Ii=function(a){Mn(this,a.element)};k.Ni=function(a,b){var c=b.M(),c={feature:a,geometry:b,ka:[c,c]};this.a.za(b.D(),c)};k.Li=function(a,b){var c=b.M(),d,e,f;e=0;for(f=c.length;e<f;++e)d=c[e],d={feature:a,geometry:b,depth:[e],index:e,ka:[d,d]},this.a.za(b.D(),d)};k.Gf=function(a,b){var c=b.M(),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,ka:f},this.a.za(Fa(f),g)};
412
- k.Ki=function(a,b){var c=b.M(),d,e,f,g,h,l,m;g=0;for(h=c.length;g<h;++g)for(d=c[g],e=0,f=d.length-1;e<f;++e)l=d.slice(e,e+2),m={feature:a,geometry:b,depth:[g],index:e,ka:l},this.a.za(Fa(l),m)};k.Oi=function(a,b){var c=b.M(),d,e,f,g,h,l,m;g=0;for(h=c.length;g<h;++g)for(d=c[g],e=0,f=d.length-1;e<f;++e)l=d.slice(e,e+2),m={feature:a,geometry:b,depth:[g],index:e,ka:l},this.a.za(Fa(l),m)};
413
- k.Mi=function(a,b){var c=b.M(),d,e,f,g,h,l,m,n,p,q;l=0;for(m=c.length;l<m;++l)for(n=c[l],g=0,h=n.length;g<h;++g)for(d=n[g],e=0,f=d.length-1;e<f;++e)p=d.slice(e,e+2),q={feature:a,geometry:b,depth:[g,l],index:e,ka:p},this.a.za(Fa(p),q)};k.kk=function(a,b){var c=b.na(),d={feature:a,geometry:b,index:0,ka:[c,c]},e={feature:a,geometry:b,index:1,ka:[c,c]};d.Id=e.Id=[d,e];this.a.za(Ta(c),d);this.a.za(b.D(),e)};k.Ji=function(a,b){var c,d=b.a;for(c=0;c<d.length;++c)this.ia[d[c].J()].call(this,a,d[c])};
414
- function On(a,b){var c=a.c;c?c.N().aa(b):(c=new Ih(new B(b)),a.c=c,a.B.la().ec(c))}function Pn(a,b){return a.index-b.index}
415
- function En(a){if(!this.Va(a))return!1;Jn(this,a.pixel,a.map);this.g.length=0;this.v=!1;var b=this.c;if(b){var c=[],b=b.N().M(),d=Fa([b]),d=dh(this.a,d),e={};d.sort(Pn);for(var f=0,g=d.length;f<g;++f){var h=d[f],l=h.ka,m=la(h.feature),n=h.depth;n&&(m+="-"+n.join("-"));e[m]||(e[m]=Array(2));if("Circle"===h.geometry.J()&&1===h.index)l=Qn(b,h),ie(l,b)&&!e[m][0]&&(this.g.push([h,0]),e[m][0]=h);else if(ie(l[0],b)&&!e[m][0])this.g.push([h,0]),e[m][0]=h;else if(ie(l[1],b)&&!e[m][1]){if("LineString"!==h.geometry.J()&&
416
- "MultiLineString"!==h.geometry.J()||!e[m][0]||0!==e[m][0].index)this.g.push([h,1]),e[m][1]=h}else la(l)in this.Fa&&!e[m][0]&&!e[m][1]&&c.push([h,b])}c.length&&Kn(this,a);for(a=c.length-1;0<=a;--a)this.Rh.apply(this,c[a])}return!!this.c}
417
- function Fn(a){this.H=!1;Kn(this,a);a=a.coordinate;for(var b=0,c=this.g.length;b<c;++b){for(var d=this.g[b],e=d[0],f=e.depth,g=e.geometry,h,l=e.ka,d=d[1];a.length<g.A;)a.push(l[d][a.length]);switch(g.J()){case "Point":h=a;l[0]=l[1]=a;break;case "MultiPoint":h=g.M();h[e.index]=a;l[0]=l[1]=a;break;case "LineString":h=g.M();h[e.index+d]=a;l[d]=a;break;case "MultiLineString":h=g.M();h[f[0]][e.index+d]=a;l[d]=a;break;case "Polygon":h=g.M();h[f[0]][e.index+d]=a;l[d]=a;break;case "MultiPolygon":h=g.M();
418
- h[f[1]][f[0]][e.index+d]=a;l[d]=a;break;case "Circle":l[0]=l[1]=a,0===e.index?(this.j=!0,g.Sa(a)):(this.j=!0,g.rd(le(g.na(),a))),this.j=!1}h&&(e=g,f=h,this.j=!0,e.aa(f),this.j=!1)}On(this,a)}function Hn(a){for(var b,c,d=this.g.length-1;0<=d;--d)if(b=this.g[d][0],c=b.geometry,"Circle"===c.J()){var e=c.na(),f=b.Id[0];b=b.Id[1];f.ka[0]=f.ka[1]=e;b.ka[0]=b.ka[1]=e;bh(this.a,Ta(e),f);bh(this.a,c.D(),b)}else bh(this.a,Fa(b.ka),b);this.v&&(this.b(new Ln("modifyend",this.o,a)),this.v=!1);return!1}
419
- function Gn(a){if(!(a instanceof hd))return!0;this.K=a;var b;bd(a.map.$())[1]||"pointermove"!=a.type||this.G||(this.Ea=a.pixel,Jn(this,a.pixel,a.map));this.c&&this.Ja(a)&&(b="singleclick"==a.type&&this.H?!0:this.Vf());"singleclick"==a.type&&(this.H=!1);return tf.call(this,a)&&!b}
420
- function Jn(a,b,c){function d(a,b){return Rn(e,a)-Rn(e,b)}var e=c.Xa(b),f=Ia(Ta(e),c.$().Da()*a.ua),f=dh(a.a,f);if(0<f.length){f.sort(d);var g=f[0],h=g.ka,l=Qn(e,g),m=c.$a(l),n=le(b,m);if(n<=a.ua){b={};if("Circle"===g.geometry.J()&&1===g.index)a.wa=!0,On(a,l);else for(n=c.$a(h[0]),g=c.$a(h[1]),c=ke(m,n),m=ke(m,g),n=Math.sqrt(Math.min(c,m)),a.wa=n<=a.ua,a.wa&&(l=c>m?h[1]:h[0]),On(a,l),m=1,c=f.length;m<c;++m)if(l=f[m].ka,ie(h[0],l[0])&&ie(h[1],l[1])||ie(h[0],l[1])&&ie(h[1],l[0]))b[la(l)]=!0;else break;
421
- b[la(h)]=!0;a.Fa=b;return}}a.c&&(a.B.la().zb(a.c),a.c=null)}function Rn(a,b){var c=b.geometry;if("Circle"===c.J()&&1===b.index){var d=ke(c.na(),a),c=Math.sqrt(d)-c.Yc();return c*c}return ke(a,he(a,b.ka))}function Qn(a,b){var c=b.geometry;return"Circle"===c.J()&&1===b.index?c.Qa(a):he(a,b.ka)}
422
- k.Rh=function(a,b){for(var c=a.ka,d=a.feature,e=a.geometry,f=a.depth,g=a.index,h;b.length<e.A;)b.push(0);switch(e.J()){case "MultiLineString":h=e.M();h[f[0]].splice(g+1,0,b);break;case "Polygon":h=e.M();h[f[0]].splice(g+1,0,b);break;case "MultiPolygon":h=e.M();h[f[1]][f[0]].splice(g+1,0,b);break;case "LineString":h=e.M();h.splice(g+1,0,b);break;default:return}this.j=!0;e.aa(h);this.j=!1;h=this.a;h.remove(a);Sn(this,e,g,f,1);var l={ka:[c[0],b],feature:d,geometry:e,depth:f,index:g};h.za(Fa(l.ka),l);
423
- this.g.push([l,1]);c={ka:[b,c[1]],feature:d,geometry:e,depth:f,index:g+1};h.za(Fa(c.ka),c);this.g.push([c,0]);this.H=!0};
424
- k.Vf=function(){if(this.K&&"pointerdrag"!=this.K.type){var a=this.K;Kn(this,a);var b=this.g,c={},d,e,f,g,h,l,m,n,p;for(h=b.length-1;0<=h;--h)g=b[h],n=g[0],p=la(n.feature),n.depth&&(p+="-"+n.depth.join("-")),p in c||(c[p]={}),0===g[1]?(c[p].right=n,c[p].index=n.index):1==g[1]&&(c[p].left=n,c[p].index=n.index+1);for(p in c){m=c[p].right;h=c[p].left;g=c[p].index;l=g-1;n=void 0!==h?h:m;0>l&&(l=0);b=n.geometry;e=f=b.M();d=!1;switch(b.J()){case "MultiLineString":2<f[n.depth[0]].length&&(f[n.depth[0]].splice(g,
425
- 1),d=!0);break;case "LineString":2<f.length&&(f.splice(g,1),d=!0);break;case "MultiPolygon":e=e[n.depth[1]];case "Polygon":e=e[n.depth[0]],4<e.length&&(g==e.length-1&&(g=0),e.splice(g,1),d=!0,0===g&&(e.pop(),e.push(e[0]),l=e.length-1))}d&&(d=b,this.j=!0,d.aa(f),this.j=!1,f=[],void 0!==h&&(this.a.remove(h),f.push(h.ka[0])),void 0!==m&&(this.a.remove(m),f.push(m.ka[1])),void 0!==h&&void 0!==m&&(h={depth:n.depth,feature:n.feature,geometry:n.geometry,index:l,ka:f},this.a.za(Fa(h.ka),h)),Sn(this,b,g,n.depth,
426
- -1),this.c&&(this.B.la().zb(this.c),this.c=null))}this.b(new Ln("modifyend",this.o,a));this.v=!1;return!0}return!1};function Sn(a,b,c,d,e){fh(a.a,b.D(),function(a){a.geometry===b&&(void 0===d||void 0===a.depth||fa(a.depth,d))&&a.index>c&&(a.index+=e)})}function In(){var a=Hh();return function(){return a.Point}}function Ln(a,b,c){vc.call(this,a);this.features=b;this.mapBrowserEvent=c}t(Ln,vc);function Tn(a){cf.call(this,{handleEvent:Un});a=a?a:{};this.B=a.condition?a.condition:mf;this.v=a.addCondition?a.addCondition:ne;this.G=a.removeCondition?a.removeCondition:ne;this.H=a.toggleCondition?a.toggleCondition:of;this.j=a.multi?a.multi:!1;this.g=a.filter?a.filter:me;this.i=a.hitTolerance?a.hitTolerance:0;this.c=new T({source:new U({useSpatialIndex:!1,features:a.features,wrapX:a.wrapX}),style:a.style?a.style:Vn(),updateWhileAnimating:!0,updateWhileInteracting:!0});if(a.layers)if("function"===
427
- typeof a.layers)a=a.layers;else{var b=a.layers;a=function(a){return 0<=b.indexOf(a)}}else a=me;this.o=a;this.a={};a=this.c.la().c;w(a,"add",this.Pi,this);w(a,"remove",this.Ti,this)}t(Tn,cf);k=Tn.prototype;k.Qi=function(){return this.c.la().c};k.Ri=function(){return this.i};k.Si=function(a){a=la(a);return this.a[a]};
428
- function Un(a){if(!this.B(a))return!0;var b=this.v(a),c=this.G(a),d=this.H(a),e=!b&&!c&&!d,f=a.map,g=this.c.la().c,h=[],l=[];if(e){nb(this.a);f.Jd(a.pixel,function(a,b){if(this.g(a,b)){l.push(a);var c=la(a);this.a[c]=b;return!this.j}}.bind(this),{layerFilter:this.o,hitTolerance:this.i});for(e=g.kb()-1;0<=e;--e){var f=g.item(e),m=l.indexOf(f);-1<m?l.splice(m,1):(g.remove(f),h.push(f))}l.length&&g.ae(l)}else{f.Jd(a.pixel,function(a,e){if(this.g(a,e)){if(!b&&!d||0<=g.a.indexOf(a))(c||d)&&0<=g.a.indexOf(a)&&
429
- (h.push(a),f=la(a),delete this.a[f]);else{l.push(a);var f=la(a);this.a[f]=e}return!this.j}}.bind(this),{layerFilter:this.o,hitTolerance:this.i});for(e=h.length-1;0<=e;--e)g.remove(h[e]);g.ae(l)}(0<l.length||0<h.length)&&this.b(new Wn(Xn,l,h,a));return lf(a)}k.Ui=function(a){this.i=a};k.setMap=function(a){var b=this.u,c=this.c.la().c;b&&c.forEach(b.fg,b);cf.prototype.setMap.call(this,a);this.c.setMap(a);a&&c.forEach(a.bg,a)};
430
- function Vn(){var a=Hh();da(a.Polygon,a.LineString);da(a.GeometryCollection,a.LineString);return function(b){return b.N()?a[b.N().J()]:null}}k.Pi=function(a){var b=this.u;b&&b.bg(a.element)};k.Ti=function(a){var b=this.u;b&&b.fg(a.element)};function Wn(a,b,c,d){vc.call(this,a);this.selected=b;this.deselected=c;this.mapBrowserEvent=d}t(Wn,vc);var Xn="select";function Yn(a){Qm.call(this,a);this.o=wg();this.i=null}t(Yn,Qm);Yn.prototype.v=function(a,b,c){Sm(this,"precompose",c,a,void 0);var d=this.W();if(d){var e=b.extent,f=void 0!==e;f&&Rm(c,a,e);var e=this.F(),g=c.globalAlpha;c.globalAlpha=b.opacity;c.drawImage(d,0,0,+d.width,+d.height,Math.round(e[4]),Math.round(e[5]),Math.round(d.width*e[0]),Math.round(d.height*e[3]));c.globalAlpha=g;f&&c.restore()}Sm(this,"postcompose",c,a,void 0)};
431
- Yn.prototype.Ka=function(a,b,c,d,e){var f=this.a;return f.la().Ka(a,b.viewState.resolution,b.viewState.rotation,c,b.skippedFeatureUids,function(a){return d.call(e,a,f)})};
432
- Yn.prototype.u=function(a,b,c,d){if(this.W()){if(this.a.la().Ka!==ja)return Qm.prototype.u.apply(this,arguments);var e=yg(this.o,a.slice()),f=e,g=b.viewState.resolution/this.c;f[0]*=g;f[1]*=g;this.i||(this.i=Qc(1,1));this.i.clearRect(0,0,1,1);this.i.drawImage(this.W(),e[0],e[1],1,1,0,0,1,1);e=this.i.getImageData(0,0,1,1).data;if(0<e[3])return c.call(d,this.a,e)}};function Zn(a){Yn.call(this,a);this.I=null;this.g=wg()}t(Zn,Yn);Zn.prototype.W=function(){return this.I?this.I.W():null};Zn.prototype.F=function(){return this.g};
433
- Zn.prototype.j=function(a,b){var c=a.pixelRatio,d=a.size,e=a.viewState,f=e.center,g=e.resolution,h=this.a.la(),l=a.viewHints,m=a.extent;void 0!==b.extent&&(m=hb(m,b.extent));if(!l[0]&&!l[1]&&!cb(m)){if(l=e=h.W(m,g,c,e.projection))l=e,m=l.T(),2!=m&&3!=m&&w(l,"change",this.K,this),0==m&&(l.load(),m=l.T()),l=2==m;l&&(this.I=e)}if(this.I){var e=this.I,m=e.D(),n=e.resolution,l=e.c,p=c*n/(g*l),m=zg(this.g,c*d[0]/2,c*d[1]/2,p,p,0,l*(m[0]-f[0])/n,l*(f[1]-m[3])/n);zg(this.o,c*d[0]/2-m[4],c*d[1]/2-m[5],c/g,
434
- -c/g,0,-f[0],-f[1]);Om(a.attributions,e.i);Pm(a,h);this.c=g*c/l}return!!this.I};function $n(a,b,c,d){var e=Tb(c,b,a);c=Ab(b,d,c);b=b.rb();void 0!==b&&(c*=b);b=a.rb();void 0!==b&&(c/=b);a=Ab(a,c,e)/c;isFinite(a)&&0<a&&(c/=a);return c}function ao(a,b,c,d){a=c-a;b=d-b;var e=Math.sqrt(a*a+b*b);return[Math.round(c+a/e),Math.round(d+b/e)]}
435
- function bo(a,b,c,d,e,f,g,h,l,m,n){var p=Qc(Math.round(c*a),Math.round(c*b));if(!l.length)return p.canvas;p.scale(c,c);var q=Ga();l.forEach(function(a){Va(q,a.extent)});var u=Qc(Math.round(c*db(q)/d),Math.round(c*eb(q)/d)),D=c/d;l.forEach(function(a){u.drawImage(a.image,m,m,a.image.width-2*m,a.image.height-2*m,(a.extent[0]-q[0])*D,-(a.extent[3]-q[3])*D,db(a.extent)*D,eb(a.extent)*D)});var A=ab(g);h.c.forEach(function(a){var b=a.source,e=a.target,g=b[1][0],h=b[1][1],l=b[2][0],m=b[2][1];a=(e[0][0]-
436
- A[0])/f;var n=-(e[0][1]-A[1])/f,D=(e[1][0]-A[0])/f,I=-(e[1][1]-A[1])/f,X=(e[2][0]-A[0])/f,ka=-(e[2][1]-A[1])/f,e=b[0][0],b=b[0][1],g=g-e,h=h-b,l=l-e,m=m-b;a:{g=[[g,h,0,0,D-a],[l,m,0,0,X-a],[0,0,g,h,I-n],[0,0,l,m,ka-n]];h=g.length;for(l=0;l<h;l++){for(var m=l,za=Math.abs(g[l][l]),Na=l+1;Na<h;Na++){var kb=Math.abs(g[Na][l]);kb>za&&(za=kb,m=Na)}if(!za){g=null;break a}za=g[m];g[m]=g[l];g[l]=za;for(m=l+1;m<h;m++)for(za=-g[m][l]/g[l][l],Na=l;Na<h+1;Na++)g[m][Na]=l==Na?0:g[m][Na]+za*g[l][Na]}l=Array(h);
437
- for(m=h-1;0<=m;m--)for(l[m]=g[m][h]/g[m][m],za=m-1;0<=za;za--)g[za][h]-=g[za][m]*l[m];g=l}g&&(p.save(),p.beginPath(),l=(a+D+X)/3,m=(n+I+ka)/3,h=ao(l,m,a,n),D=ao(l,m,D,I),X=ao(l,m,X,ka),p.moveTo(D[0],D[1]),p.lineTo(h[0],h[1]),p.lineTo(X[0],X[1]),p.clip(),p.transform(g[0],g[2],g[1],g[3],a,n),p.translate(q[0]-e,q[3]-b),p.scale(d/c,-d/c),p.drawImage(u.canvas,0,0),p.restore())});n&&(p.save(),p.strokeStyle="black",p.lineWidth=1,h.c.forEach(function(a){var b=a.target;a=(b[0][0]-A[0])/f;var c=-(b[0][1]-A[1])/
438
- f,d=(b[1][0]-A[0])/f,e=-(b[1][1]-A[1])/f,g=(b[2][0]-A[0])/f,b=-(b[2][1]-A[1])/f;p.beginPath();p.moveTo(d,e);p.lineTo(a,c);p.lineTo(g,b);p.closePath();p.stroke()}),p.restore());return p.canvas};function co(a,b,c,d,e){this.a=a;this.i=b;var f={},g=Rb(this.i,this.a);this.f=function(a){var b=a[0]+"/"+a[1];f[b]||(f[b]=g(a));return f[b]};this.g=d;this.u=e*e;this.c=[];this.C=!1;this.o=this.a.b&&!!d&&!!this.a.D()&&db(d)==db(this.a.D());this.b=this.a.D()?db(this.a.D()):null;this.j=this.i.D()?db(this.i.D()):null;a=ab(c);b=$a(c);d=Za(c);c=Ya(c);e=this.f(a);var h=this.f(b),l=this.f(d),m=this.f(c);eo(this,a,b,d,c,e,h,l,m,10);if(this.C){var n=Infinity;this.c.forEach(function(a){n=Math.min(n,a.source[0][0],
439
- a.source[1][0],a.source[2][0])});this.c.forEach(function(a){if(Math.max(a.source[0][0],a.source[1][0],a.source[2][0])-n>this.b/2){var b=[[a.source[0][0],a.source[0][1]],[a.source[1][0],a.source[1][1]],[a.source[2][0],a.source[2][1]]];b[0][0]-n>this.b/2&&(b[0][0]-=this.b);b[1][0]-n>this.b/2&&(b[1][0]-=this.b);b[2][0]-n>this.b/2&&(b[2][0]-=this.b);Math.max(b[0][0],b[1][0],b[2][0])-Math.min(b[0][0],b[1][0],b[2][0])<this.b/2&&(a.source=b)}},this)}f={}}
440
- function eo(a,b,c,d,e,f,g,h,l,m){var n=Fa([f,g,h,l]),p=a.b?db(n)/a.b:null,q=a.b,u=a.a.b&&.5<p&&1>p,D=!1;if(0<m){if(a.i.a&&a.j)var A=Fa([b,c,d,e]),D=D|.25<db(A)/a.j;!u&&a.a.a&&p&&(D|=.25<p)}if(D||!a.g||ib(n,a.g)){if(!(D||isFinite(f[0])&&isFinite(f[1])&&isFinite(g[0])&&isFinite(g[1])&&isFinite(h[0])&&isFinite(h[1])&&isFinite(l[0])&&isFinite(l[1])))if(0<m)D=!0;else return;if(0<m&&(D||(n=a.f([(b[0]+d[0])/2,(b[1]+d[1])/2]),q=u?(xa(f[0],q)+xa(h[0],q))/2-xa(n[0],q):(f[0]+h[0])/2-n[0],n=(f[1]+h[1])/2-n[1],
441
- D=q*q+n*n>a.u),D)){Math.abs(b[0]-d[0])<=Math.abs(b[1]-d[1])?(u=[(c[0]+d[0])/2,(c[1]+d[1])/2],q=a.f(u),n=[(e[0]+b[0])/2,(e[1]+b[1])/2],p=a.f(n),eo(a,b,c,u,n,f,g,q,p,m-1),eo(a,n,u,d,e,p,q,h,l,m-1)):(u=[(b[0]+c[0])/2,(b[1]+c[1])/2],q=a.f(u),n=[(d[0]+e[0])/2,(d[1]+e[1])/2],p=a.f(n),eo(a,b,u,n,e,f,q,p,l,m-1),eo(a,u,c,d,n,q,g,h,p,m-1));return}if(u){if(!a.o)return;a.C=!0}a.c.push({source:[f,h,l],target:[b,d,e]});a.c.push({source:[f,g,h],target:[b,c,d]})}}
442
- function fo(a){var b=Ga();a.c.forEach(function(a){a=a.source;Ha(b,a[0]);Ha(b,a[1]);Ha(b,a[2])});return b};function go(a,b,c,d,e,f){this.u=b;this.o=a.D();var g=b.D(),h=g?hb(c,g):c,g=$n(a,b,fb(h),d);this.j=new co(a,b,h,this.o,.5*g);this.a=d;this.f=c;a=fo(this.j);this.C=(this.Ta=f(a,g,e))?this.Ta.c:1;this.xc=this.g=null;e=2;f=[];this.Ta&&(e=0,f=this.Ta.i);hm.call(this,c,d,this.C,e,f)}t(go,hm);go.prototype.ra=function(){1==this.state&&(nc(this.xc),this.xc=null);hm.prototype.ra.call(this)};go.prototype.W=function(){return this.g};
443
- go.prototype.vc=function(){var a=this.Ta.T();2==a&&(this.g=bo(db(this.f)/this.a,eb(this.f)/this.a,this.C,this.Ta.resolution,0,this.a,this.f,this.j,[{extent:this.Ta.D(),image:this.Ta.W()}],0));this.state=a;this.s()};go.prototype.load=function(){if(0==this.state){this.state=1;this.s();var a=this.Ta.T();2==a||3==a?this.vc():(this.xc=w(this.Ta,"change",function(){var a=this.Ta.T();if(2==a||3==a)nc(this.xc),this.xc=null,this.vc()},this),this.Ta.load())}};function ho(a){bn.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,state:a.state});this.F=void 0!==a.resolutions?a.resolutions:null;this.a=null;this.wa=0}t(ho,bn);
444
- ho.prototype.W=function(a,b,c,d){var e=this.i;if(e&&d&&!Qb(e,d)){if(this.a){if(this.wa==this.f&&Qb(this.a.u,d)&&this.a.resolution==b&&this.a.c==c&&Ua(this.a.D(),a))return this.a;uc(this.a);this.a=null}this.a=new go(e,d,a,b,c,function(a,b,c){return this.u(a,b,c,e)}.bind(this));this.wa=this.f;return this.a}e&&(d=e);return this.u(a,b,c,d)};ho.prototype.v=function(a){a=a.target;switch(a.T()){case 1:this.b(new io(jo,a));break;case 2:this.b(new io(ko,a));break;case 3:this.b(new io(lo,a))}};
445
- function mo(a,b){a.W().src=b}function io(a,b){vc.call(this,a);this.image=b}t(io,vc);var jo="imageloadstart",ko="imageloadend",lo="imageloaderror";function no(a){ho.call(this,{attributions:a.attributions,logo:a.logo,projection:a.projection,resolutions:a.resolutions,state:a.state});this.Fa=a.canvasFunction;this.K=null;this.ha=0;this.Ia=void 0!==a.ratio?a.ratio:1.5}t(no,ho);no.prototype.u=function(a,b,c,d){this.F&&(b=this.F[ca(this.F,b,0)]);var e=this.K;if(e&&this.ha==this.f&&e.resolution==b&&e.c==c&&Oa(e.D(),a))return e;a=a.slice();jb(a,this.Ia);(d=this.Fa(a,b,c,[db(a)/b*c,eb(a)/b*c],d))&&(e=new jm(a,b,c,this.o,d));this.K=e;this.ha=this.f;return e};function oo(a){this.c=a.source;this.Va=wg();this.g=Qc();this.j=[0,0];this.Ja=void 0==a.renderBuffer?100:a.renderBuffer;this.G=null;no.call(this,{attributions:a.attributions,canvasFunction:this.Ea.bind(this),logo:a.logo,projection:a.projection,ratio:a.ratio,resolutions:a.resolutions,state:this.c.T()});this.ia=null;this.H=void 0;a=a.style;this.ia=void 0!==a?a:Gh;this.H=a?Eh(this.ia):void 0;this.s();w(this.c,"change",this.cc,this)}t(oo,no);
446
- oo.prototype.Ea=function(a,b,c,d,e){var f=new Bm(.5*b/c,a,b,this.c.ha,this.Ja);$m(this.c,a,b,e);var g=!1;this.c.pb(a,function(a){var d;if(!(d=g)){var e;(d=a.i)?e=d.call(a,b):this.H&&(e=this.H(a,b));if(e){var h,p=!1;Array.isArray(e)||(e=[e]);d=0;for(h=e.length;d<h;++d)p=Wm(f,a,e[d],Vm(b,c),this.bc,this)||p;d=p}else d=!1}g=d},this);Fm(f);if(g)return null;this.j[0]!=d[0]||this.j[1]!=d[1]?(this.g.canvas.width=d[0],this.g.canvas.height=d[1],this.j[0]=d[0],this.j[1]=d[1]):this.g.clearRect(0,0,d[0],d[1]);
447
- a=po(this,fb(a),b,c,d);f.ma(this.g,c,a,0,{});this.G=f;return this.g.canvas};oo.prototype.Ka=function(a,b,c,d,e,f){if(this.G){var g={};return this.G.Ka(a,b,0,d,e,function(a){var b=la(a).toString();if(!(b in g))return g[b]=!0,f(a)})}};function po(a,b,c,d,e){c=d/c;return zg(a.Va,e[0]/2,e[1]/2,c,-c,0,-b[0],-b[1])}oo.prototype.bc=function(){this.s()};oo.prototype.cc=function(){dn(this,this.c.T())};function qo(a){tg.call(this,a?a:{})}t(qo,tg);qo.prototype.Hc=function(a){var b=null;"canvas"===a.J()&&(b=new Zn(this));return b};function ro(a){Yn.call(this,a);this.B=Qc();this.g=null;this.C=[];this.ia=Ga();this.ua=new ra(0,0,0,0);this.G=wg()}t(ro,Yn);function so(a,b){var c=b.T(),d=a.a.vf();return 2==c||4==c||3==c&&!d}
448
- ro.prototype.j=function(a,b){var c=a.pixelRatio,d=a.size,e=a.viewState,f=e.projection,g=e.resolution,h=e.center,l=this.a,e=l.la(),m=e.f,n=e.sb(f),p=n.qc(g,0),q=n.La(p),u=Math.round(g/q)||1,D=a.extent;void 0!==b.extent&&(D=hb(D,b.extent));if(cb(D))return!1;var A=bc(n,D,q),I;I=n.Ub(p);var R=n.La(p),W=Ea(n.jb(p),n.j);I=Ra(I[0]+A.O*W[0]*R,I[1]+A.U*W[1]*R,I[0]+(A.R+1)*W[0]*R,I[1]+(A.X+1)*W[1]*R,void 0);R=e.G;W={};W[p]={};var ma=Km(e,f,W),Ca=this.ia,Da=this.ua,Aa=!1,v,na,Ba;for(na=A.O;na<=A.R;++na)for(Ba=
449
- A.U;Ba<=A.X;++Ba){v=to(e,p,na,Ba,c,f);if(!so(this,v))a:if(v.f){var X=v.f;do{if(2==X.T()){v=X;break a}X=X.f}while(X)}if(so(this,v))2==v.T()&&(W[p][v.bb.toString()]=v,Aa||-1!=this.C.indexOf(v)||(Aa=!0));else{a:{for(var X=n,ka=v.bb,za=ma,Na=Da,kb=X.ib(ka,Ca),ka=ka[0]-1;ka>=X.minZoom;){if(za.call(null,ka,ac(X,kb,ka,Na))){X=!0;break a}--ka}X=!1}X||(X=n,v=v.bb,za=Da,v[0]<X.maxZoom?(Na=X.ib(v,Ca),v=ac(X,Na,v[0]+1,za)):v=null,v&&ma(p+1,v))}}v=a.viewHints;if(!(this.c&&16<Date.now()-a.time&&(v[0]||v[1])||!Aa&&
450
- this.g&&Oa(this.g,D)&&this.ha==m)||u!=this.H){na=uo(e,p,f);v=Math.round((A.R-A.O+1)*na[0]/u);na=Math.round((A.X-A.U+1)*na[0]/u);Aa=this.B;Ba=Aa.canvas;ma=e.Qd(f);Ba.width!=v||Ba.height!=na?(this.H=u,Ba.width=v,Ba.height=na):(Aa.clearRect(0,0,v,na),u=this.H);this.C.length=0;Da=Object.keys(W).map(Number);Da.sort(ba);for(var Ib,gc,Vb,za=0,Na=Da.length;za<Na;++za){v=Da[za];X=uo(e,v,f);na=n.La(v);kb=na/q;ka=R*e.kf(f);Ib=W[v];for(var Qa in Ib){v=Ib[Qa];Ba=n.ib(v.bb,Ca);na=(Ba[0]-I[0])/q*R/u;Ba=(I[3]-Ba[3])/
451
- q*R/u;gc=X[0]*kb/u;Vb=X[1]*kb/u;ma||Aa.clearRect(na,Ba,gc,Vb);var Wb=ka,Pc=v.W();Pc&&this.B.drawImage(Pc,Wb,Wb,Pc.width-2*Wb,Pc.height-2*Wb,na,Ba,gc,Vb);this.C.push(v)}}this.ha=m;this.c=q*c/R*u;this.g=I}Qa=this.c/g;Qa=zg(this.G,c*d[0]/2,c*d[1]/2,Qa,Qa,0,(this.g[0]-h[0])/this.c*c,(h[1]-this.g[3])/this.c*c);zg(this.o,c*d[0]/2-Qa[4],c*d[1]/2-Qa[5],c/g,-c/g,0,-h[0],-h[1]);d=a.usedTiles;g=la(e).toString();h=p.toString();g in d?h in d[g]?(d=d[g][h],A.O<d.O&&(d.O=A.O),A.R>d.R&&(d.R=A.R),A.U<d.U&&(d.U=A.U),
452
- A.X>d.X&&(d.X=A.X)):d[g][h]=A:(d[g]={},d[g][h]=A);l=l.sf();A=la(e).toString();A in a.wantedTiles||(a.wantedTiles[A]={});var d=a.wantedTiles[A],g=a.tileQueue,h=n.minZoom,Xb;for(I=p;I>=h;--I)for(Xb=ac(n,D,I,Xb),m=n.La(I),q=Xb.O;q<=Xb.R;++q)for(u=Xb.U;u<=Xb.X;++u)p-I<=l?(Qa=to(e,I,q,u,c,f),0==Qa.T()&&(d[Qa.vb()]=!0,Qa.vb()in g.a||g.j([Qa,A,dc(n,Qa.bb),m]))):e.hg(I,q,u,f);Nm(a,e);Pm(a,e);return 0<this.C.length};ro.prototype.W=function(){return this.B.canvas};ro.prototype.F=function(){return this.G};function V(a){a=a?a:{};var b=mb({},a);delete b.preload;delete b.useInterimTilesOnError;tg.call(this,b);this.If(void 0!==a.preload?a.preload:0);this.Jf(void 0!==a.useInterimTilesOnError?a.useInterimTilesOnError:!0)}t(V,tg);k=V.prototype;k.Hc=function(a){var b=null;"canvas"===a.J()&&(b=new ro(this));return b};k.sf=function(){return this.get("preload")};k.If=function(a){this.set("preload",a)};k.vf=function(){return this.get("useInterimTilesOnError")};
453
- k.Jf=function(a){this.set("useInterimTilesOnError",a)};function vo(a,b,c){function d(){delete window[f];e.parentNode.removeChild(e)}var e=document.createElement("script"),f="olc_"+la(b);e.async=!0;e.src=a+(-1==a.indexOf("?")?"?":"&")+"callback="+f;var g=setTimeout(function(){d();c&&c()},1E4);window[f]=function(a){clearTimeout(g);d();b(a)};document.getElementsByTagName("head")[0].appendChild(e)};function wo(a,b,c,d,e,f,g,h,l,m,n){km.call(this,e,0);this.B=void 0!==n?n:!1;this.v=g;this.u=h;this.o=null;this.c=b;this.g=d;this.j=f?f:e;this.a=[];this.Zb=null;this.i=0;f=d.ib(this.j);h=this.g.D();e=this.c.D();f=h?hb(f,h):f;if(bb(f))if((h=a.D())&&(e?e=hb(e,h):e=h),d=$n(a,c,fb(f),d.La(this.j[0])),!isFinite(d)||0>=d)this.state=4;else if(this.C=new co(a,c,f,e,d*(void 0!==m?m:.5)),this.C.c.length)if(this.i=b.qc(d),c=fo(this.C),e&&(a.b?(c[1]=ua(c[1],e[1],e[3]),c[3]=ua(c[3],e[1],e[3])):c=hb(c,e)),bb(c)){a=
454
- ac(b,c,this.i);for(b=a.O;b<=a.R;b++)for(c=a.U;c<=a.X;c++)(m=l(this.i,b,c,g))&&this.a.push(m);this.a.length||(this.state=4)}else this.state=4;else this.state=4;else this.state=4}t(wo,km);wo.prototype.ra=function(){1==this.state&&(this.Zb.forEach(nc),this.Zb=null);km.prototype.ra.call(this)};wo.prototype.W=function(){return this.o};
455
- wo.prototype.vc=function(){var a=[];this.a.forEach(function(b){b&&2==b.T()&&a.push({extent:this.c.ib(b.bb),image:b.W()})},this);this.a.length=0;if(a.length){var b=this.j[0],c=this.g.jb(b),d="number"===typeof c?c:c[0],c="number"===typeof c?c:c[1],b=this.g.La(b),e=this.c.La(this.i),f=this.g.ib(this.j);this.o=bo(d,c,this.v,e,this.c.D(),b,f,this.C,a,this.u,this.B);this.state=2}else this.state=3;this.s()};
456
- wo.prototype.load=function(){if(0==this.state){this.state=1;this.s();var a=0;this.Zb=[];this.a.forEach(function(b){var c=b.T();if(0==c||1==c){a++;var d;d=w(b,"change",function(){var c=b.T();if(2==c||3==c||4==c)nc(d),a--,a||(this.Zb.forEach(nc),this.Zb=null,this.vc())},this);this.Zb.push(d)}},this);this.a.forEach(function(a){0==a.T()&&a.load()});a||setTimeout(this.vc.bind(this),0)}};function xo(a,b){var c=/\{z\}/g,d=/\{x\}/g,e=/\{y\}/g,f=/\{-y\}/g;return function(g){if(g)return a.replace(c,g[0].toString()).replace(d,g[1].toString()).replace(e,function(){return(-g[2]-1).toString()}).replace(f,function(){var a=b.f?b.f[g[0]]:null;qa(a,55);return(a.X-a.U+1+g[2]).toString()})}}function yo(a,b){for(var c=a.length,d=Array(c),e=0;e<c;++e)d[e]=xo(a[e],b);return zo(d)}function zo(a){return 1===a.length?a[0]:function(b,c,d){if(b)return a[xa((b[1]<<b[0])+b[2],a.length)](b,c,d)}}
457
- function Ao(){};function Bo(a){gh.call(this);this.i=void 0!==a?a:2048}t(Bo,gh);function Co(a){return a.c>a.i}Bo.prototype.Gb=function(a){for(var b,c;Co(this);){b=this.b.$b;c=b.bb[0].toString();var d;if(d=c in a)b=b.bb,d=sa(a[c],b[1],b[2]);if(d)break;else uc(this.pop())}};function Do(a){bn.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,state:a.state,wrapX:a.wrapX});this.ia=void 0!==a.opaque?a.opaque:!1;this.G=void 0!==a.tilePixelRatio?a.tilePixelRatio:1;this.tileGrid=void 0!==a.tileGrid?a.tileGrid:null;this.a=new Bo(a.cacheSize);this.ha=[0,0];this.ub=""}t(Do,bn);k=Do.prototype;k.Kf=function(){return Co(this.a)};k.Gb=function(a,b){var c=this.pc(a);c&&c.Gb(b)};
458
- function Lm(a,b,c,d,e){b=a.pc(b);if(!b)return!1;for(var f=!0,g,h,l=d.O;l<=d.R;++l)for(var m=d.U;m<=d.X;++m)g=a.Pc(c,l,m),h=!1,b.a.hasOwnProperty(g)&&(g=b.get(g),(h=2===g.T())&&(h=!1!==e(g))),h||(f=!1);return f}k.kf=function(){return 0};k.Pc=function(a,b,c){return a+"/"+b+"/"+c};k.Qd=function(){return this.ia};k.Vd=function(){return this.tileGrid};k.sb=function(a){return this.tileGrid?this.tileGrid:ec(a)};k.pc=function(a){var b=this.i;return b&&!Qb(b,a)?null:this.a};
459
- function uo(a,b,c){var d=a.sb(c);c=a.G;b=Ea(d.jb(b),a.ha);1==c?a=b:(a=a.ha,void 0===a&&(a=[0,0]),a[0]=b[0]*c+.5|0,a[1]=b[1]*c+.5|0);return a}function Eo(a,b,c){var d=void 0!==c?c:a.i;c=a.sb(d);if(a.B&&d.a){var e=b;b=e[0];a=dc(c,e);d=fc(d);La(d,a)?b=e:(e=db(d),a[0]+=e*Math.ceil((d[0]-a[0])/e),b=c.Ud(a,b))}e=b[0];d=b[1];a=b[2];if(c.minZoom>e||e>c.maxZoom)c=!1;else{var f=c.D();c=(c=f?ac(c,f,e):c.f?c.f[e]:null)?sa(c,d,a):!0}return c?b:null}k.yb=function(){this.a.clear();this.s()};k.hg=ja;
460
- function Fo(a,b){vc.call(this,a);this.tile=b}t(Fo,vc);function Go(a){Do.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,extent:a.extent,logo:a.logo,opaque:a.opaque,projection:a.projection,state:a.state,tileGrid:a.tileGrid,tilePixelRatio:a.tilePixelRatio,wrapX:a.wrapX});this.tileLoadFunction=a.tileLoadFunction;this.tileUrlFunction=this.j?this.j.bind(this):Ao;this.urls=null;a.urls?this.td(a.urls):a.url&&this.uc(a.url);a.tileUrlFunction&&this.Wb(a.tileUrlFunction)}t(Go,Do);k=Go.prototype;k.Wd=function(){return this.tileLoadFunction};k.Xd=function(){return this.tileUrlFunction};
461
- k.Yd=function(){return this.urls};k.Xi=function(a){a=a.target;switch(a.T()){case 1:this.b(new Fo("tileloadstart",a));break;case 2:this.b(new Fo("tileloadend",a));break;case 3:this.b(new Fo("tileloaderror",a))}};k.ye=function(a){this.a.clear();this.tileLoadFunction=a;this.s()};k.Wb=function(a,b){this.tileUrlFunction=a;"undefined"!==typeof b?this.ub!==b&&(this.ub=b,this.s()):this.s()};
462
- k.uc=function(a){var b=[],c=/\{([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 if(c=c=/\{(\d+)-(\d+)\}/.exec(a))for(d=parseInt(c[2],10),e=parseInt(c[1],10);e<=d;e++)b.push(a.replace(c[0],e.toString()));else b.push(a);b=this.urls=b;this.Wb(this.j?this.j.bind(this):yo(b,this.tileGrid),a)};k.td=function(a){this.urls=a;var b=a.join("\n");this.Wb(this.j?this.j.bind(this):yo(a,this.tileGrid),b)};
463
- k.hg=function(a,b,c){a=this.Pc(a,b,c);this.a.a.hasOwnProperty(a)&&this.a.get(a)};function Ho(a){Go.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,extent:a.extent,logo:a.logo,opaque:a.opaque,projection:a.projection,state:a.state,tileGrid:a.tileGrid,tileLoadFunction:a.tileLoadFunction?a.tileLoadFunction:Io,tilePixelRatio:a.tilePixelRatio,tileUrlFunction:a.tileUrlFunction,url:a.url,urls:a.urls,wrapX:a.wrapX});this.crossOrigin=void 0!==a.crossOrigin?a.crossOrigin:null;this.tileClass=a.tileClass?a.tileClass:lm;this.c={};this.u={};this.wa=a.reprojectionErrorThreshold;
464
- this.v=!1}t(Ho,Go);k=Ho.prototype;k.Kf=function(){if(Co(this.a))return!0;for(var a in this.c)if(Co(this.c[a]))return!0;return!1};k.Gb=function(a,b){var c=this.pc(a);this.a.Gb(this.a==c?b:{});for(var d in this.c){var e=this.c[d];e.Gb(e==c?b:{})}};k.kf=function(a){return this.i&&a&&Qb(this.i,a),0};k.Qd=function(a){return this.i&&a&&!Qb(this.i,a)?!1:Go.prototype.Qd.call(this,a)};
465
- k.sb=function(a){var b=this.i;return!this.tileGrid||b&&!Qb(b,a)?(b=la(a).toString(),b in this.u||(this.u[b]=ec(a)),this.u[b]):this.tileGrid};k.pc=function(a){var b=this.i;if(!b||Qb(b,a))return this.a;a=la(a).toString();a in this.c||(this.c[a]=new Bo);return this.c[a]};function Jo(a,b,c,d,e,f,g){b=[b,c,d];e=(c=Eo(a,b,f))?a.tileUrlFunction(c,e,f):void 0;e=new a.tileClass(b,void 0!==e?0:4,void 0!==e?e:"",a.crossOrigin,a.tileLoadFunction);e.key=g;w(e,"change",a.Xi,a);return e}
466
- function to(a,b,c,d,e,f){if(a.i&&f&&!Qb(a.i,f)){e=a.pc(f);d=[b,c,d];var g;b=a.Pc.apply(a,d);e.a.hasOwnProperty(b)&&(g=e.get(b));c=a.ub;if(g&&g.key==c)return g;var h=a.i,l=a.sb(h),m=a.sb(f),n=Eo(a,d,f);a=new wo(h,l,f,m,d,n,a.G,0,function(a,b,c,d){return Ko(this,a,b,c,d,h)}.bind(a),a.wa,a.v);a.key=c;g?(a.f=g,e.replace(b,a)):e.set(b,a);return a}return Ko(a,b,c,d,e,f)}
467
- function Ko(a,b,c,d,e,f){var g,h=a.Pc(b,c,d),l=a.ub;if(a.a.a.hasOwnProperty(h)){if(g=a.a.get(h),g.key!=l){var m=g;g=Jo(a,b,c,d,e,f,l);0==m.T()?g.f=m.f:g.f=m;if(g.f){b=g.f;c=g;do{if(2==b.T()){b.f=null;break}else 1==b.T()?c=b:0==b.T()?c.f=b.f:c=b;b=c.f}while(b)}a.a.replace(h,g)}}else g=Jo(a,b,c,d,e,f,l),a.a.set(h,g);return g}k.te=function(a){if(this.v!=a){this.v=a;for(var b in this.c)this.c[b].clear();this.s()}};k.xe=function(a,b){var c=Cb(a);c&&(c=la(c).toString(),c in this.u||(this.u[c]=b))};
468
- function Io(a,b){a.W().src=b};function Y(a){a=a||{};var b=void 0!==a.projection?a.projection:"EPSG:3857",c=void 0!==a.tileGrid?a.tileGrid:ic({extent:fc(b),maxZoom:a.maxZoom,minZoom:a.minZoom,tileSize:a.tileSize});Ho.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,crossOrigin:a.crossOrigin,logo:a.logo,opaque:a.opaque,projection:b,reprojectionErrorThreshold:a.reprojectionErrorThreshold,tileGrid:c,tileLoadFunction:a.tileLoadFunction,tilePixelRatio:a.tilePixelRatio,tileUrlFunction:a.tileUrlFunction,url:a.url,urls:a.urls,
469
- wrapX:void 0!==a.wrapX?a.wrapX:!0})}t(Y,Ho);function Z(a){this.H=a.account;this.K=a.map||"";this.g=a.config||{};this.F={};Y.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,crossOrigin:a.crossOrigin,logo:a.logo,maxZoom:void 0!==a.maxZoom?a.maxZoom:18,minZoom:a.minZoom,projection:a.projection,state:"loading",wrapX:a.wrapX});Lo(this)}t(Z,Y);k=Z.prototype;k.Ng=function(){return this.g};k.jk=function(a){mb(this.g,a);Lo(this)};k.Mj=function(a){this.g=a||{};Lo(this)};
470
- function Lo(a){var b=JSON.stringify(a.g);if(a.F[b])Mo(a,a.F[b]);else{var c="https://"+a.H+".cartodb.com/api/v1/map";a.K&&(c+="/named/"+a.K);var d=new XMLHttpRequest;d.addEventListener("load",a.xh.bind(a,b));d.addEventListener("error",a.wh.bind(a));d.open("POST",c);d.setRequestHeader("Content-type","application/json");d.send(JSON.stringify(a.g))}}
471
- k.xh=function(a,b){var c=b.target;if(!c.status||200<=c.status&&300>c.status){var d;try{d=JSON.parse(c.responseText)}catch(e){dn(this,"error");return}Mo(this,d);this.F[a]=d;dn(this,"ready")}else dn(this,"error")};k.wh=function(){dn(this,"error")};function Mo(a,b){a.uc("https://"+b.cdn_url.https+"/"+a.H+"/api/v1/map/"+b.layergroupid+"/{z}/{x}/{y}.png")};function No(a){var b=a.imageExtent,c=void 0!==a.crossOrigin?a.crossOrigin:null,d=a.imageLoadFunction?a.imageLoadFunction:mo;ho.call(this,{attributions:a.attributions,logo:a.logo,projection:Cb(a.projection)});this.I=new im(b,void 0,1,this.o,a.url,c,d);this.c=a.imageSize?a.imageSize:null;w(this.I,"change",this.v,this)}t(No,ho);No.prototype.u=function(a){return ib(a,this.I.D())?this.I:null};
472
- No.prototype.v=function(a){if(2==this.I.T()){var b=this.I.D(),c=this.I.W(),d,e;this.c?(d=this.c[0],e=this.c[1]):(d=c.width,e=c.height);b=Math.ceil(db(b)/(eb(b)/e));if(b!=d){var b=Qc(b,e),f=b.canvas;b.drawImage(c,0,0,d,e,0,0,f.width,f.height);this.I.se(f)}}ho.prototype.v.call(this,a)};(function(){var a={},b={Y:a};(function(c){if("object"===typeof a&&"undefined"!==typeof b)b.Y=c();else{var d;"undefined"!==typeof window?d=window:"undefined"!==typeof global?d=global:"undefined"!==typeof self?d=self:d=this;d.Dk=c()}})(function(){return function d(a,b,g){function e(h,l){if(!b[h]){if(!a[h]){var m="function"==typeof require&&require;if(!l&&m)return m(h,!0);if(f)return f(h,!0);m=Error("Cannot find module '"+h+"'");throw m.code="MODULE_NOT_FOUND",m;}m=b[h]={Y:{}};a[h][0].call(m.Y,function(b){var d=
473
- a[h][1][b];return e(d?d:b)},m,m.Y,d,a,b,g)}return b[h].Y}for(var f="function"==typeof require&&require,m=0;m<g.length;m++)e(g[m]);return e}({1:[function(a,b,f){a=a("./processor");f.kg=a},{"./processor":2}],2:[function(a,b){function d(a){var b=!0;try{new ImageData(10,10)}catch(q){b=!1}return function(d){var e=d.buffers,f=d.meta,g=d.width,h=d.height,l=e.length,m=e[0].byteLength;if(d.imageOps){m=Array(l);for(d=0;d<l;++d){var n=m,p=d,q;q=new Uint8ClampedArray(e[d]);var Aa=g,v=h;q=b?new ImageData(q,Aa,
474
- v):{data:q,width:Aa,height:v};n[p]=q}g=a(m,f).data}else{g=new Uint8ClampedArray(m);h=Array(l);n=Array(l);for(d=0;d<l;++d)h[d]=new Uint8ClampedArray(e[d]),n[d]=[0,0,0,0];for(e=0;e<m;e+=4){for(d=0;d<l;++d)p=h[d],n[d][0]=p[e],n[d][1]=p[e+1],n[d][2]=p[e+2],n[d][3]=p[e+3];d=a(n,f);g[e]=d[0];g[e+1]=d[1];g[e+2]=d[2];g[e+3]=d[3]}}return g.buffer}}function e(a,b){var e=Object.keys(a.lib||{}).map(function(b){return"var "+b+" = "+a.lib[b].toString()+";"}).concat(["var __minion__ = ("+d.toString()+")(",a.operation.toString(),
475
- ");",'self.addEventListener("message", function(event) {'," var buffer = __minion__(event.data);"," self.postMessage({buffer: buffer, meta: event.data.meta}, [buffer]);","});"]),e=URL.createObjectURL(new Blob(e,{type:"text/javascript"})),e=new Worker(e);e.addEventListener("message",b);return e}function h(a,b){var e=d(a.operation);return{postMessage:function(a){setTimeout(function(){b({data:{buffer:e(a),meta:a.meta}})},0)}}}function l(a){this.Cd=!!a.Qh;var b;0===a.threads?b=0:this.Cd?b=1:b=a.threads||
476
- 1;var d=[];if(b)for(var f=0;f<b;++f)d[f]=e(a,this.Pe.bind(this,f));else d[0]=h(a,this.Pe.bind(this,0));this.Dc=d;this.dc=[];this.tg=a.vj||Infinity;this.Bc=0;this.Cb={};this.Dd=null}var m=a("./util").hi;l.prototype.tj=function(a,b,d){this.rg({inputs:a,Af:b,Fb:d});this.Le()};l.prototype.rg=function(a){for(this.dc.push(a);this.dc.length>this.tg;)this.dc.shift().Fb(null,null)};l.prototype.Le=function(){if(0===this.Bc&&0<this.dc.length){var a=this.Dd=this.dc.shift(),b=a.inputs[0].width,d=a.inputs[0].height,
477
- e=a.inputs.map(function(a){return a.data.buffer}),f=this.Dc.length;this.Bc=f;if(1===f)this.Dc[0].postMessage({buffers:e,meta:a.Af,imageOps:this.Cd,width:b,height:d},e);else for(var g=4*Math.ceil(a.inputs[0].data.length/4/f),h=0;h<f;++h){for(var l=h*g,m=[],ma=0,Ca=e.length;ma<Ca;++ma)m.push(e[h].slice(l,l+g));this.Dc[h].postMessage({buffers:m,meta:a.Af,imageOps:this.Cd,width:b,height:d},m)}}};l.prototype.Pe=function(a,b){this.Bk||(this.Cb[a]=b.data,--this.Bc,0===this.Bc&&this.ug())};l.prototype.ug=
478
- function(){var a=this.Dd,b=this.Dc.length,d,e;if(1===b)d=new Uint8ClampedArray(this.Cb[0].buffer),e=this.Cb[0].meta;else{var f=a.inputs[0].data.length;d=new Uint8ClampedArray(f);e=Array(f);for(var f=4*Math.ceil(f/4/b),g=0;g<b;++g){var h=g*f;d.set(new Uint8ClampedArray(this.Cb[g].buffer),h);e[g]=this.Cb[g].meta}}this.Dd=null;this.Cb={};a.Fb(null,m(d,a.inputs[0].width,a.inputs[0].height),e);this.Le()};b.Y=l},{"./util":3}],3:[function(a,b,f){var d=!0;try{new ImageData(10,10)}catch(l){d=!1}var e=document.createElement("canvas").getContext("2d");
479
- f.hi=function(a,b,f){if(d)return new ImageData(a,b,f);b=e.createImageData(b,f);b.data.set(a);return b}},{}]},{},[1])(1)});$g=b.Y})();function Oo(a){this.K=null;this.Ia=void 0!==a.operationType?a.operationType:"pixel";this.Ja=void 0!==a.threads?a.threads:1;this.c=Po(a.sources);for(var b=0,c=this.c.length;b<c;++b)w(this.c[b],"change",this.s,this);this.g=Qc();this.Ea=new Zd(function(){return 1},this.s.bind(this));for(var b=Qo(this.c),c={},d=0,e=b.length;d<e;++d)c[la(b[d].layer)]=b[d];this.j=this.G=null;this.ia={animate:!1,attributions:{},coordinateToPixelTransform:wg(),extent:null,focus:null,index:0,layerStates:c,layerStatesArray:b,
480
- logos:{},pixelRatio:1,pixelToCoordinateTransform:wg(),postRenderFunctions:[],size:[0,0],skippedFeatureUids:{},tileQueue:this.Ea,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{}};ho.call(this,{});a.operation&&this.H(a.operation,a.lib)}t(Oo,ho);Oo.prototype.H=function(a,b){this.K=new $g.kg({operation:a,Qh:"image"===this.Ia,vj:1,lib:b,threads:this.Ja});this.s()};function Ro(a,b,c){var d=a.G;return!d||a.f!==d.Kj||c!==d.resolution||!Ua(b,d.extent)}
481
- Oo.prototype.W=function(a,b,c,d){c=!0;for(var e,f=0,g=this.c.length;f<g;++f)if(e=this.c[f].a.la(),"ready"!==e.T()){c=!1;break}if(!c)return null;a=a.slice();if(!Ro(this,a,b))return this.j;c=this.g.canvas;e=Math.round(db(a)/b);f=Math.round(eb(a)/b);if(e!==c.width||f!==c.height)c.width=e,c.height=f;e=mb({},this.ia);e.viewState=mb({},e.viewState);var f=fb(a),g=Math.round(db(a)/b),h=Math.round(eb(a)/b);e.extent=a;e.focus=fb(a);e.size[0]=g;e.size[1]=h;g=e.viewState;g.center=f;g.projection=d;g.resolution=
482
- b;this.j=d=new jm(a,b,1,this.o,c,this.ha.bind(this,e));this.G={extent:a,resolution:b,Kj:this.f};return d};
483
- Oo.prototype.ha=function(a,b){for(var c=this.c.length,d=Array(c),e=0;e<c;++e){var f;f=this.c[e];var g=a,h=a.layerStatesArray[e];if(f.j(g,h)){var l=g.size[0],m=g.size[1];if(So){var n=So.canvas;n.width!==l||n.height!==m?So=Qc(l,m):So.clearRect(0,0,l,m)}else So=Qc(l,m);f.v(g,h,So);f=So.getImageData(0,0,l,m)}else f=null;if(f)d[e]=f;else{d=null;break}}d&&(c={},this.b(new To(Uo,a,c)),this.K.tj(d,c,this.Fa.bind(this,a,b)));$d(a.tileQueue,16,16)};
484
- Oo.prototype.Fa=function(a,b,c,d,e){c?b(c):d&&(this.b(new To(Vo,a,e)),Ro(this,a.extent,a.viewState.resolution/a.pixelRatio)||this.g.putImageData(d,0,0),b(null))};var So=null;function Qo(a){return a.map(function(a){return hg(a.a)})}function Po(a){for(var b=a.length,c=Array(b),d=0;d<b;++d){var e=d,f=a[d],g=null;f instanceof Do?(f=new V({source:f}),g=new ro(f)):f instanceof ho&&(f=new qo({source:f}),g=new Zn(f));c[e]=g}return c}
485
- function To(a,b,c){vc.call(this,a);this.extent=b.extent;this.resolution=b.viewState.resolution/b.pixelRatio;this.data=c}t(To,vc);Oo.prototype.u=function(){return null};var Uo="beforeoperations",Vo="afteroperations";function Wo(a){Ho.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,crossOrigin:a.crossOrigin,projection:Cb("EPSG:3857"),reprojectionErrorThreshold:a.reprojectionErrorThreshold,state:"loading",tileLoadFunction:a.tileLoadFunction,wrapX:void 0!==a.wrapX?a.wrapX:!0});if(a.jsonp)vo(a.url,this.F.bind(this),this.g.bind(this));else{var b=new XMLHttpRequest;b.addEventListener("load",this.K.bind(this));b.addEventListener("error",this.H.bind(this));b.open("GET",a.url);b.send()}}t(Wo,Ho);
486
- Wo.prototype.K=function(a){a=a.target;if(!a.status||200<=a.status&&300>a.status){var b;try{b=JSON.parse(a.responseText)}catch(c){this.g();return}this.F(b)}else this.g()};Wo.prototype.H=function(){this.g()};
487
- Wo.prototype.F=function(a){var b=Cb("EPSG:4326"),c=this.i,d;if(a.bounds){var e=Bb(b,c);d=lb(a.bounds,e)}var f=a.minzoom||0,e=a.maxzoom||22;this.tileGrid=c=ic({extent:fc(c),maxZoom:e,minZoom:f});this.tileUrlFunction=yo(a.tiles,c);if(void 0!==a.attribution&&!this.o){b=void 0!==d?d:b.D();d={};for(var g;f<=e;++f)g=f.toString(),d[g]=[ac(c,b,f)];this.Ab([new jc({html:a.attribution,tileRanges:d})])}dn(this,"ready")};Wo.prototype.g=function(){dn(this,"error")};function Xo(a){this.o=a.matrixIds;Yb.call(this,{extent:a.extent,origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes,sizes:a.sizes})}t(Xo,Yb);Xo.prototype.C=function(){return this.o};function Yo(a,b){this.b=b;this.f=[{x:0,y:0,width:a,height:a}];this.c={};this.a=Qc(a,a);this.i=this.a.canvas}Yo.prototype.get=function(a){return this.c[a]||null};
488
- Yo.prototype.add=function(a,b,c,d,e){var f,g,h;g=0;for(h=this.f.length;g<h;++g)if(f=this.f[g],f.width>=b+this.b&&f.height>=c+this.b)return h={offsetX:f.x+this.b,offsetY:f.y+this.b,image:this.i},this.c[a]=h,d.call(e,this.a,f.x+this.b,f.y+this.b),a=g,b+=this.b,d=c+this.b,f.width-b>f.height-d?(c={x:f.x+b,y:f.y,width:f.width-b,height:f.height},b={x:f.x,y:f.y+d,width:b,height:f.height-d},Zo(this,a,c,b)):(c={x:f.x+b,y:f.y,width:f.width-b,height:d},b={x:f.x,y:f.y+d,width:f.width,height:f.height-d},Zo(this,
489
- a,c,b)),h;return null};function Zo(a,b,c,d){b=[b,1];0<c.width&&0<c.height&&b.push(c);0<d.width&&0<d.height&&b.push(d);a.f.splice.apply(a.f,b)};function $o(a){a=a||{};this.f=void 0!==a.initialSize?a.initialSize:256;this.a=void 0!==a.maxSize?a.maxSize:2048;this.b=void 0!==a.space?a.space:1;this.i=[new Yo(this.f,this.b)];this.c=this.f;this.g=[new Yo(this.c,this.b)]}$o.prototype.add=function(a,b,c,d,e,f){if(b+this.b>this.a||c+this.b>this.a)return null;d=ap(this,!1,a,b,c,d,f);if(!d)return null;a=ap(this,!0,a,b,c,e?e:ja,f);return{offsetX:d.offsetX,offsetY:d.offsetY,image:d.image,Ph:a.image}};
490
- function ap(a,b,c,d,e,f,g){var h=b?a.g:a.i,l,m,n;m=0;for(n=h.length;m<n;++m){l=h[m];if(l=l.add(c,d,e,f,g))return l;l||m!==n-1||(b?(l=Math.min(2*a.c,a.a),a.c=l):(l=Math.min(2*a.f,a.a),a.f=l),l=new Yo(l,a.b),h.push(l),++n)}return null};r("ol.Attribution",jc);r("ol.Collection",x);x.prototype.clear=x.prototype.clear;x.prototype.extend=x.prototype.ae;x.prototype.forEach=x.prototype.forEach;x.prototype.getArray=x.prototype.ji;x.prototype.item=x.prototype.item;x.prototype.getLength=x.prototype.kb;x.prototype.insertAt=x.prototype.Vc;x.prototype.pop=x.prototype.pop;x.prototype.push=x.prototype.push;x.prototype.remove=x.prototype.remove;x.prototype.removeAt=x.prototype.oe;x.prototype.setAt=x.prototype.Lj;x.prototype.get=x.prototype.get;
491
- x.prototype.getKeys=x.prototype.fa;x.prototype.getProperties=x.prototype.Z;x.prototype.set=x.prototype.set;x.prototype.setProperties=x.prototype.L;x.prototype.unset=x.prototype.ga;x.prototype.changed=x.prototype.s;x.prototype.dispatchEvent=x.prototype.b;x.prototype.getRevision=x.prototype.ba;x.prototype.on=x.prototype.ca;x.prototype.once=x.prototype.once;x.prototype.un=x.prototype.da;x.prototype.unByKey=x.prototype.ea;r("ol.Feature",Ih);Ih.prototype.clone=Ih.prototype.clone;
492
- Ih.prototype.getGeometry=Ih.prototype.N;Ih.prototype.getId=Ih.prototype.ki;Ih.prototype.getGeometryName=Ih.prototype.Sg;Ih.prototype.getStyle=Ih.prototype.li;Ih.prototype.getStyleFunction=Ih.prototype.mi;Ih.prototype.setGeometry=Ih.prototype.Oa;Ih.prototype.setStyle=Ih.prototype.Bf;Ih.prototype.setId=Ih.prototype.od;Ih.prototype.setGeometryName=Ih.prototype.md;Ih.prototype.get=Ih.prototype.get;Ih.prototype.getKeys=Ih.prototype.fa;Ih.prototype.getProperties=Ih.prototype.Z;Ih.prototype.set=Ih.prototype.set;
493
- Ih.prototype.setProperties=Ih.prototype.L;Ih.prototype.unset=Ih.prototype.ga;Ih.prototype.changed=Ih.prototype.s;Ih.prototype.dispatchEvent=Ih.prototype.b;Ih.prototype.getRevision=Ih.prototype.ba;Ih.prototype.on=Ih.prototype.ca;Ih.prototype.once=Ih.prototype.once;Ih.prototype.un=Ih.prototype.da;Ih.prototype.unByKey=Ih.prototype.ea;r("ol.Map",F);F.prototype.addControl=F.prototype.zg;F.prototype.addInteraction=F.prototype.Ag;F.prototype.addLayer=F.prototype.Bg;F.prototype.addOverlay=F.prototype.Cg;
494
- F.prototype.forEachFeatureAtPixel=F.prototype.Jd;F.prototype.forEachLayerAtPixel=F.prototype.ti;F.prototype.hasFeatureAtPixel=F.prototype.Oh;F.prototype.getEventCoordinate=F.prototype.Pg;F.prototype.getEventPixel=F.prototype.Md;F.prototype.getTarget=F.prototype.Td;F.prototype.getTargetElement=F.prototype.oc;F.prototype.getCoordinateFromPixel=F.prototype.Xa;F.prototype.getControls=F.prototype.Og;F.prototype.getOverlays=F.prototype.fh;F.prototype.getOverlayById=F.prototype.eh;
495
- F.prototype.getInteractions=F.prototype.Tg;F.prototype.getLayerGroup=F.prototype.Ib;F.prototype.getLayers=F.prototype.ui;F.prototype.getPixelFromCoordinate=F.prototype.$a;F.prototype.getSize=F.prototype.Nb;F.prototype.getView=F.prototype.$;F.prototype.getViewport=F.prototype.mh;F.prototype.renderSync=F.prototype.Ij;F.prototype.render=F.prototype.render;F.prototype.removeControl=F.prototype.Bj;F.prototype.removeInteraction=F.prototype.Cj;F.prototype.removeLayer=F.prototype.Ej;
496
- F.prototype.removeOverlay=F.prototype.Fj;F.prototype.setLayerGroup=F.prototype.Qj;F.prototype.setSize=F.prototype.ue;F.prototype.setTarget=F.prototype.Cf;F.prototype.setView=F.prototype.Zj;F.prototype.updateSize=F.prototype.Ce;F.prototype.get=F.prototype.get;F.prototype.getKeys=F.prototype.fa;F.prototype.getProperties=F.prototype.Z;F.prototype.set=F.prototype.set;F.prototype.setProperties=F.prototype.L;F.prototype.unset=F.prototype.ga;F.prototype.changed=F.prototype.s;F.prototype.dispatchEvent=F.prototype.b;
497
- F.prototype.getRevision=F.prototype.ba;F.prototype.on=F.prototype.ca;F.prototype.once=F.prototype.once;F.prototype.un=F.prototype.da;F.prototype.unByKey=F.prototype.ea;zc.prototype.changed=zc.prototype.s;zc.prototype.dispatchEvent=zc.prototype.b;zc.prototype.getRevision=zc.prototype.ba;zc.prototype.on=zc.prototype.ca;zc.prototype.once=zc.prototype.once;zc.prototype.un=zc.prototype.da;zc.prototype.unByKey=zc.prototype.ea;r("ol.Overlay",jh);jh.prototype.getElement=jh.prototype.Ld;
498
- jh.prototype.getId=jh.prototype.vi;jh.prototype.getMap=jh.prototype.Xc;jh.prototype.getOffset=jh.prototype.qf;jh.prototype.getPosition=jh.prototype.Df;jh.prototype.getPositioning=jh.prototype.rf;jh.prototype.setElement=jh.prototype.Yf;jh.prototype.setMap=jh.prototype.setMap;jh.prototype.setOffset=jh.prototype.$f;jh.prototype.setPosition=jh.prototype.Ef;jh.prototype.setPositioning=jh.prototype.ag;jh.prototype.get=jh.prototype.get;jh.prototype.getKeys=jh.prototype.fa;jh.prototype.getProperties=jh.prototype.Z;
499
- jh.prototype.set=jh.prototype.set;jh.prototype.setProperties=jh.prototype.L;jh.prototype.unset=jh.prototype.ga;jh.prototype.changed=jh.prototype.s;jh.prototype.dispatchEvent=jh.prototype.b;jh.prototype.getRevision=jh.prototype.ba;jh.prototype.on=jh.prototype.ca;jh.prototype.once=jh.prototype.once;jh.prototype.un=jh.prototype.da;jh.prototype.unByKey=jh.prototype.ea;r("ol.View",E);E.prototype.animate=E.prototype.animate;E.prototype.constrainCenter=E.prototype.ob;E.prototype.constrainResolution=E.prototype.constrainResolution;
500
- E.prototype.constrainRotation=E.prototype.constrainRotation;E.prototype.getCenter=E.prototype.na;E.prototype.calculateExtent=E.prototype.Ue;E.prototype.getMaxResolution=E.prototype.wi;E.prototype.getMinResolution=E.prototype.xi;E.prototype.getProjection=E.prototype.yi;E.prototype.getResolution=E.prototype.Da;E.prototype.getResolutions=E.prototype.zi;E.prototype.getRotation=E.prototype.Ha;E.prototype.getZoom=E.prototype.oh;E.prototype.fit=E.prototype.Kg;E.prototype.centerOn=E.prototype.Jg;
501
- E.prototype.rotate=E.prototype.rotate;E.prototype.setCenter=E.prototype.Sa;E.prototype.setResolution=E.prototype.Bb;E.prototype.setRotation=E.prototype.be;E.prototype.setZoom=E.prototype.bk;E.prototype.get=E.prototype.get;E.prototype.getKeys=E.prototype.fa;E.prototype.getProperties=E.prototype.Z;E.prototype.set=E.prototype.set;E.prototype.setProperties=E.prototype.L;E.prototype.unset=E.prototype.ga;E.prototype.changed=E.prototype.s;E.prototype.dispatchEvent=E.prototype.b;E.prototype.getRevision=E.prototype.ba;
502
- E.prototype.on=E.prototype.ca;E.prototype.once=E.prototype.once;E.prototype.un=E.prototype.da;E.prototype.unByKey=E.prototype.ea;r("ol.control.ZoomSlider",sh);r("ol.control.defaults",dd);r("ol.easing.easeIn",Vc);r("ol.easing.easeOut",Wc);r("ol.easing.inAndOut",Xc);r("ol.easing.linear",Yc);r("ol.easing.upAndDown",function(a){return.5>a?Xc(2*a):1-Xc(2*(a-.5))});r("ol.events.condition.altKeyOnly",function(a){a=a.originalEvent;return a.altKey&&!(a.metaKey||a.ctrlKey)&&!a.shiftKey});
503
- r("ol.events.condition.altShiftKeysOnly",jf);r("ol.events.condition.always",me);r("ol.events.condition.click",function(a){return"click"==a.type});r("ol.events.condition.never",ne);r("ol.events.condition.pointerMove",lf);r("ol.events.condition.singleClick",mf);r("ol.events.condition.doubleClick",function(a){return"dblclick"==a.type});r("ol.events.condition.noModifierKeys",nf);r("ol.events.condition.platformModifierKeyOnly",function(a){a=a.originalEvent;return!a.altKey&&(md?a.metaKey:a.ctrlKey)&&!a.shiftKey});
504
- r("ol.events.condition.shiftKeyOnly",of);r("ol.events.condition.targetNotEditable",pf);r("ol.events.condition.mouseOnly",qf);r("ol.events.condition.primaryAction",rf);vc.prototype.type=vc.prototype.type;vc.prototype.target=vc.prototype.target;vc.prototype.preventDefault=vc.prototype.preventDefault;vc.prototype.stopPropagation=vc.prototype.stopPropagation;r("ol.extent.boundingExtent",Fa);r("ol.extent.buffer",Ia);r("ol.extent.containsCoordinate",La);r("ol.extent.containsExtent",Oa);
505
- r("ol.extent.containsXY",Ma);r("ol.extent.createEmpty",Ga);r("ol.extent.equals",Ua);r("ol.extent.extend",Va);r("ol.extent.getBottomLeft",Ya);r("ol.extent.getBottomRight",Za);r("ol.extent.getCenter",fb);r("ol.extent.getHeight",eb);r("ol.extent.getIntersection",hb);r("ol.extent.getSize",function(a){return[a[2]-a[0],a[3]-a[1]]});r("ol.extent.getTopLeft",ab);r("ol.extent.getTopRight",$a);r("ol.extent.getWidth",db);r("ol.extent.intersects",ib);r("ol.extent.isEmpty",cb);r("ol.extent.applyTransform",lb);
506
- r("ol.format.GeoJSON",oi);oi.prototype.readFeature=oi.prototype.je;oi.prototype.readFeatures=oi.prototype.jd;oi.prototype.readGeometry=oi.prototype.le;oi.prototype.readProjection=oi.prototype.kd;oi.prototype.writeFeature=oi.prototype.De;oi.prototype.writeFeatureObject=oi.prototype.b;oi.prototype.writeFeatures=oi.prototype.Ee;oi.prototype.writeFeaturesObject=oi.prototype.c;oi.prototype.writeGeometry=oi.prototype.Fe;oi.prototype.writeGeometryObject=oi.prototype.i;r("ol.format.WKT",gl);
507
- gl.prototype.readFeature=gl.prototype.je;gl.prototype.readFeatures=gl.prototype.jd;gl.prototype.readGeometry=gl.prototype.le;gl.prototype.writeFeature=gl.prototype.De;gl.prototype.writeFeatures=gl.prototype.Ee;gl.prototype.writeGeometry=gl.prototype.Fe;r("ol.geom.Circle",S);S.prototype.clone=S.prototype.clone;S.prototype.getCenter=S.prototype.na;S.prototype.getRadius=S.prototype.Yc;S.prototype.getType=S.prototype.J;S.prototype.intersectsExtent=S.prototype.Aa;S.prototype.setCenter=S.prototype.Sa;
508
- S.prototype.setCenterAndRadius=S.prototype.qe;S.prototype.setRadius=S.prototype.rd;S.prototype.transform=S.prototype.Ra;r("ol.geom.Geometry",oe);oe.prototype.getClosestPoint=oe.prototype.Qa;oe.prototype.intersectsCoordinate=oe.prototype.Na;oe.prototype.getExtent=oe.prototype.D;oe.prototype.rotate=oe.prototype.rotate;oe.prototype.scale=oe.prototype.scale;oe.prototype.simplify=oe.prototype.Za;oe.prototype.transform=oe.prototype.Ra;r("ol.geom.GeometryCollection",P);P.prototype.clone=P.prototype.clone;
509
- P.prototype.getGeometries=P.prototype.Nd;P.prototype.getType=P.prototype.J;P.prototype.intersectsExtent=P.prototype.Aa;P.prototype.setGeometries=P.prototype.Zf;P.prototype.applyTransform=P.prototype.Eb;P.prototype.translate=P.prototype.translate;r("ol.geom.LinearRing",z);z.prototype.clone=z.prototype.clone;z.prototype.getArea=z.prototype.Ci;z.prototype.getCoordinates=z.prototype.M;z.prototype.getType=z.prototype.J;z.prototype.setCoordinates=z.prototype.aa;r("ol.geom.LineString",L);
510
- L.prototype.appendCoordinate=L.prototype.Dg;L.prototype.clone=L.prototype.clone;L.prototype.forEachSegment=L.prototype.Lg;L.prototype.getCoordinateAtM=L.prototype.Ai;L.prototype.getCoordinates=L.prototype.M;L.prototype.getCoordinateAt=L.prototype.ef;L.prototype.getLength=L.prototype.Bi;L.prototype.getType=L.prototype.J;L.prototype.intersectsExtent=L.prototype.Aa;L.prototype.setCoordinates=L.prototype.aa;r("ol.geom.MultiLineString",M);M.prototype.appendLineString=M.prototype.Eg;M.prototype.clone=M.prototype.clone;
511
- M.prototype.getCoordinateAtM=M.prototype.Di;M.prototype.getCoordinates=M.prototype.M;M.prototype.getLineString=M.prototype.Zg;M.prototype.getLineStrings=M.prototype.Qc;M.prototype.getType=M.prototype.J;M.prototype.intersectsExtent=M.prototype.Aa;M.prototype.setCoordinates=M.prototype.aa;r("ol.geom.MultiPoint",N);N.prototype.appendPoint=N.prototype.Gg;N.prototype.clone=N.prototype.clone;N.prototype.getCoordinates=N.prototype.M;N.prototype.getPoint=N.prototype.gh;N.prototype.getPoints=N.prototype.ce;
512
- N.prototype.getType=N.prototype.J;N.prototype.intersectsExtent=N.prototype.Aa;N.prototype.setCoordinates=N.prototype.aa;r("ol.geom.MultiPolygon",O);O.prototype.appendPolygon=O.prototype.Hg;O.prototype.clone=O.prototype.clone;O.prototype.getArea=O.prototype.Ei;O.prototype.getCoordinates=O.prototype.M;O.prototype.getInteriorPoints=O.prototype.Vg;O.prototype.getPolygon=O.prototype.hh;O.prototype.getPolygons=O.prototype.Rd;O.prototype.getType=O.prototype.J;O.prototype.intersectsExtent=O.prototype.Aa;
513
- O.prototype.setCoordinates=O.prototype.aa;r("ol.geom.Point",B);B.prototype.clone=B.prototype.clone;B.prototype.getCoordinates=B.prototype.M;B.prototype.getType=B.prototype.J;B.prototype.intersectsExtent=B.prototype.Aa;B.prototype.setCoordinates=B.prototype.aa;r("ol.geom.Polygon",C);C.prototype.appendLinearRing=C.prototype.Fg;C.prototype.clone=C.prototype.clone;C.prototype.getArea=C.prototype.Fi;C.prototype.getCoordinates=C.prototype.M;C.prototype.getInteriorPoint=C.prototype.Ug;
514
- C.prototype.getLinearRingCount=C.prototype.$g;C.prototype.getLinearRing=C.prototype.mf;C.prototype.getLinearRings=C.prototype.Pd;C.prototype.getType=C.prototype.J;C.prototype.intersectsExtent=C.prototype.Aa;C.prototype.setCoordinates=C.prototype.aa;r("ol.geom.Polygon.circular",function(a,b,c,d){var e=d?d:32;d=[];var f;for(f=0;f<e;++f)da(d,a.offset(b,c,2*Math.PI*f/e));d.push(d[0],d[1]);a=new C(null);a.S("XY",d,[d.length]);return a});r("ol.geom.Polygon.fromExtent",Ue);
515
- r("ol.geom.Polygon.fromCircle",function(a,b,c){var d=b?b:32,e=a.A,f=a.V;b=new C(null,f);for(var d=e*(d+1),e=Array(d),g=0;g<d;g++)e[g]=0;b.S(f,e,[e.length]);f=a.na();a=a.Yc();var d=b.l,e=b.V,g=b.A,h=b.cb(),l=d.length/g-1;c=c?c:0;for(var m,n,p=0;p<=l;++p)n=p*g,m=c+2*xa(p,l)*Math.PI/l,d[n]=f[0]+a*Math.cos(m),d[n+1]=f[1]+a*Math.sin(m);b.S(e,d,h);return b});r("ol.geom.SimpleGeometry",y);y.prototype.getFirstCoordinate=y.prototype.eb;y.prototype.getLastCoordinate=y.prototype.fb;y.prototype.getLayout=y.prototype.gb;
516
- y.prototype.applyTransform=y.prototype.Eb;y.prototype.translate=y.prototype.translate;oe.prototype.get=oe.prototype.get;oe.prototype.getKeys=oe.prototype.fa;oe.prototype.getProperties=oe.prototype.Z;oe.prototype.set=oe.prototype.set;oe.prototype.setProperties=oe.prototype.L;oe.prototype.unset=oe.prototype.ga;oe.prototype.changed=oe.prototype.s;oe.prototype.dispatchEvent=oe.prototype.b;oe.prototype.getRevision=oe.prototype.ba;oe.prototype.on=oe.prototype.ca;oe.prototype.once=oe.prototype.once;
517
- oe.prototype.un=oe.prototype.da;oe.prototype.unByKey=oe.prototype.ea;y.prototype.getClosestPoint=y.prototype.Qa;y.prototype.intersectsCoordinate=y.prototype.Na;y.prototype.getExtent=y.prototype.D;y.prototype.rotate=y.prototype.rotate;y.prototype.scale=y.prototype.scale;y.prototype.simplify=y.prototype.Za;y.prototype.transform=y.prototype.Ra;y.prototype.get=y.prototype.get;y.prototype.getKeys=y.prototype.fa;y.prototype.getProperties=y.prototype.Z;y.prototype.set=y.prototype.set;
518
- y.prototype.setProperties=y.prototype.L;y.prototype.unset=y.prototype.ga;y.prototype.changed=y.prototype.s;y.prototype.dispatchEvent=y.prototype.b;y.prototype.getRevision=y.prototype.ba;y.prototype.on=y.prototype.ca;y.prototype.once=y.prototype.once;y.prototype.un=y.prototype.da;y.prototype.unByKey=y.prototype.ea;S.prototype.getFirstCoordinate=S.prototype.eb;S.prototype.getLastCoordinate=S.prototype.fb;S.prototype.getLayout=S.prototype.gb;S.prototype.rotate=S.prototype.rotate;S.prototype.scale=S.prototype.scale;
519
- S.prototype.getClosestPoint=S.prototype.Qa;S.prototype.intersectsCoordinate=S.prototype.Na;S.prototype.getExtent=S.prototype.D;S.prototype.simplify=S.prototype.Za;S.prototype.get=S.prototype.get;S.prototype.getKeys=S.prototype.fa;S.prototype.getProperties=S.prototype.Z;S.prototype.set=S.prototype.set;S.prototype.setProperties=S.prototype.L;S.prototype.unset=S.prototype.ga;S.prototype.changed=S.prototype.s;S.prototype.dispatchEvent=S.prototype.b;S.prototype.getRevision=S.prototype.ba;
520
- S.prototype.on=S.prototype.ca;S.prototype.once=S.prototype.once;S.prototype.un=S.prototype.da;S.prototype.unByKey=S.prototype.ea;P.prototype.getClosestPoint=P.prototype.Qa;P.prototype.intersectsCoordinate=P.prototype.Na;P.prototype.getExtent=P.prototype.D;P.prototype.rotate=P.prototype.rotate;P.prototype.scale=P.prototype.scale;P.prototype.simplify=P.prototype.Za;P.prototype.transform=P.prototype.Ra;P.prototype.get=P.prototype.get;P.prototype.getKeys=P.prototype.fa;P.prototype.getProperties=P.prototype.Z;
521
- P.prototype.set=P.prototype.set;P.prototype.setProperties=P.prototype.L;P.prototype.unset=P.prototype.ga;P.prototype.changed=P.prototype.s;P.prototype.dispatchEvent=P.prototype.b;P.prototype.getRevision=P.prototype.ba;P.prototype.on=P.prototype.ca;P.prototype.once=P.prototype.once;P.prototype.un=P.prototype.da;P.prototype.unByKey=P.prototype.ea;z.prototype.getFirstCoordinate=z.prototype.eb;z.prototype.getLastCoordinate=z.prototype.fb;z.prototype.getLayout=z.prototype.gb;z.prototype.rotate=z.prototype.rotate;
522
- z.prototype.scale=z.prototype.scale;z.prototype.getClosestPoint=z.prototype.Qa;z.prototype.intersectsCoordinate=z.prototype.Na;z.prototype.getExtent=z.prototype.D;z.prototype.simplify=z.prototype.Za;z.prototype.transform=z.prototype.Ra;z.prototype.get=z.prototype.get;z.prototype.getKeys=z.prototype.fa;z.prototype.getProperties=z.prototype.Z;z.prototype.set=z.prototype.set;z.prototype.setProperties=z.prototype.L;z.prototype.unset=z.prototype.ga;z.prototype.changed=z.prototype.s;
523
- z.prototype.dispatchEvent=z.prototype.b;z.prototype.getRevision=z.prototype.ba;z.prototype.on=z.prototype.ca;z.prototype.once=z.prototype.once;z.prototype.un=z.prototype.da;z.prototype.unByKey=z.prototype.ea;L.prototype.getFirstCoordinate=L.prototype.eb;L.prototype.getLastCoordinate=L.prototype.fb;L.prototype.getLayout=L.prototype.gb;L.prototype.rotate=L.prototype.rotate;L.prototype.scale=L.prototype.scale;L.prototype.getClosestPoint=L.prototype.Qa;L.prototype.intersectsCoordinate=L.prototype.Na;
524
- L.prototype.getExtent=L.prototype.D;L.prototype.simplify=L.prototype.Za;L.prototype.transform=L.prototype.Ra;L.prototype.get=L.prototype.get;L.prototype.getKeys=L.prototype.fa;L.prototype.getProperties=L.prototype.Z;L.prototype.set=L.prototype.set;L.prototype.setProperties=L.prototype.L;L.prototype.unset=L.prototype.ga;L.prototype.changed=L.prototype.s;L.prototype.dispatchEvent=L.prototype.b;L.prototype.getRevision=L.prototype.ba;L.prototype.on=L.prototype.ca;L.prototype.once=L.prototype.once;
525
- L.prototype.un=L.prototype.da;L.prototype.unByKey=L.prototype.ea;M.prototype.getFirstCoordinate=M.prototype.eb;M.prototype.getLastCoordinate=M.prototype.fb;M.prototype.getLayout=M.prototype.gb;M.prototype.rotate=M.prototype.rotate;M.prototype.scale=M.prototype.scale;M.prototype.getClosestPoint=M.prototype.Qa;M.prototype.intersectsCoordinate=M.prototype.Na;M.prototype.getExtent=M.prototype.D;M.prototype.simplify=M.prototype.Za;M.prototype.transform=M.prototype.Ra;M.prototype.get=M.prototype.get;
526
- M.prototype.getKeys=M.prototype.fa;M.prototype.getProperties=M.prototype.Z;M.prototype.set=M.prototype.set;M.prototype.setProperties=M.prototype.L;M.prototype.unset=M.prototype.ga;M.prototype.changed=M.prototype.s;M.prototype.dispatchEvent=M.prototype.b;M.prototype.getRevision=M.prototype.ba;M.prototype.on=M.prototype.ca;M.prototype.once=M.prototype.once;M.prototype.un=M.prototype.da;M.prototype.unByKey=M.prototype.ea;N.prototype.getFirstCoordinate=N.prototype.eb;N.prototype.getLastCoordinate=N.prototype.fb;
527
- N.prototype.getLayout=N.prototype.gb;N.prototype.rotate=N.prototype.rotate;N.prototype.scale=N.prototype.scale;N.prototype.getClosestPoint=N.prototype.Qa;N.prototype.intersectsCoordinate=N.prototype.Na;N.prototype.getExtent=N.prototype.D;N.prototype.simplify=N.prototype.Za;N.prototype.transform=N.prototype.Ra;N.prototype.get=N.prototype.get;N.prototype.getKeys=N.prototype.fa;N.prototype.getProperties=N.prototype.Z;N.prototype.set=N.prototype.set;N.prototype.setProperties=N.prototype.L;
528
- N.prototype.unset=N.prototype.ga;N.prototype.changed=N.prototype.s;N.prototype.dispatchEvent=N.prototype.b;N.prototype.getRevision=N.prototype.ba;N.prototype.on=N.prototype.ca;N.prototype.once=N.prototype.once;N.prototype.un=N.prototype.da;N.prototype.unByKey=N.prototype.ea;O.prototype.getFirstCoordinate=O.prototype.eb;O.prototype.getLastCoordinate=O.prototype.fb;O.prototype.getLayout=O.prototype.gb;O.prototype.rotate=O.prototype.rotate;O.prototype.scale=O.prototype.scale;
529
- O.prototype.getClosestPoint=O.prototype.Qa;O.prototype.intersectsCoordinate=O.prototype.Na;O.prototype.getExtent=O.prototype.D;O.prototype.simplify=O.prototype.Za;O.prototype.transform=O.prototype.Ra;O.prototype.get=O.prototype.get;O.prototype.getKeys=O.prototype.fa;O.prototype.getProperties=O.prototype.Z;O.prototype.set=O.prototype.set;O.prototype.setProperties=O.prototype.L;O.prototype.unset=O.prototype.ga;O.prototype.changed=O.prototype.s;O.prototype.dispatchEvent=O.prototype.b;
530
- O.prototype.getRevision=O.prototype.ba;O.prototype.on=O.prototype.ca;O.prototype.once=O.prototype.once;O.prototype.un=O.prototype.da;O.prototype.unByKey=O.prototype.ea;B.prototype.getFirstCoordinate=B.prototype.eb;B.prototype.getLastCoordinate=B.prototype.fb;B.prototype.getLayout=B.prototype.gb;B.prototype.rotate=B.prototype.rotate;B.prototype.scale=B.prototype.scale;B.prototype.getClosestPoint=B.prototype.Qa;B.prototype.intersectsCoordinate=B.prototype.Na;B.prototype.getExtent=B.prototype.D;
531
- B.prototype.simplify=B.prototype.Za;B.prototype.transform=B.prototype.Ra;B.prototype.get=B.prototype.get;B.prototype.getKeys=B.prototype.fa;B.prototype.getProperties=B.prototype.Z;B.prototype.set=B.prototype.set;B.prototype.setProperties=B.prototype.L;B.prototype.unset=B.prototype.ga;B.prototype.changed=B.prototype.s;B.prototype.dispatchEvent=B.prototype.b;B.prototype.getRevision=B.prototype.ba;B.prototype.on=B.prototype.ca;B.prototype.once=B.prototype.once;B.prototype.un=B.prototype.da;
532
- B.prototype.unByKey=B.prototype.ea;C.prototype.getFirstCoordinate=C.prototype.eb;C.prototype.getLastCoordinate=C.prototype.fb;C.prototype.getLayout=C.prototype.gb;C.prototype.rotate=C.prototype.rotate;C.prototype.scale=C.prototype.scale;C.prototype.getClosestPoint=C.prototype.Qa;C.prototype.intersectsCoordinate=C.prototype.Na;C.prototype.getExtent=C.prototype.D;C.prototype.simplify=C.prototype.Za;C.prototype.transform=C.prototype.Ra;C.prototype.get=C.prototype.get;C.prototype.getKeys=C.prototype.fa;
533
- C.prototype.getProperties=C.prototype.Z;C.prototype.set=C.prototype.set;C.prototype.setProperties=C.prototype.L;C.prototype.unset=C.prototype.ga;C.prototype.changed=C.prototype.s;C.prototype.dispatchEvent=C.prototype.b;C.prototype.getRevision=C.prototype.ba;C.prototype.on=C.prototype.ca;C.prototype.once=C.prototype.once;C.prototype.un=C.prototype.da;C.prototype.unByKey=C.prototype.ea;r("ol.inherits",t);r("ol.interaction.DoubleClickZoom",gf);gf.prototype.getActive=gf.prototype.F;
534
- gf.prototype.getMap=gf.prototype.ha;gf.prototype.setActive=gf.prototype.xb;gf.prototype.get=gf.prototype.get;gf.prototype.getKeys=gf.prototype.fa;gf.prototype.getProperties=gf.prototype.Z;gf.prototype.set=gf.prototype.set;gf.prototype.setProperties=gf.prototype.L;gf.prototype.unset=gf.prototype.ga;gf.prototype.changed=gf.prototype.s;gf.prototype.dispatchEvent=gf.prototype.b;gf.prototype.getRevision=gf.prototype.ba;gf.prototype.on=gf.prototype.ca;gf.prototype.once=gf.prototype.once;
535
- gf.prototype.un=gf.prototype.da;gf.prototype.unByKey=gf.prototype.ea;r("ol.interaction.Draw",mn);mn.prototype.removeLastPoint=mn.prototype.Dj;mn.prototype.finishDrawing=mn.prototype.nc;mn.prototype.extend=mn.prototype.Gi;mn.prototype.getActive=mn.prototype.F;mn.prototype.getMap=mn.prototype.ha;mn.prototype.setActive=mn.prototype.xb;mn.prototype.get=mn.prototype.get;mn.prototype.getKeys=mn.prototype.fa;mn.prototype.getProperties=mn.prototype.Z;mn.prototype.set=mn.prototype.set;
536
- mn.prototype.setProperties=mn.prototype.L;mn.prototype.unset=mn.prototype.ga;mn.prototype.changed=mn.prototype.s;mn.prototype.dispatchEvent=mn.prototype.b;mn.prototype.getRevision=mn.prototype.ba;mn.prototype.on=mn.prototype.ca;mn.prototype.once=mn.prototype.once;mn.prototype.un=mn.prototype.da;mn.prototype.unByKey=mn.prototype.ea;r("ol.interaction.Modify",Dn);Dn.prototype.removePoint=Dn.prototype.Vf;Dn.prototype.getActive=Dn.prototype.F;Dn.prototype.getMap=Dn.prototype.ha;
537
- Dn.prototype.setActive=Dn.prototype.xb;Dn.prototype.get=Dn.prototype.get;Dn.prototype.getKeys=Dn.prototype.fa;Dn.prototype.getProperties=Dn.prototype.Z;Dn.prototype.set=Dn.prototype.set;Dn.prototype.setProperties=Dn.prototype.L;Dn.prototype.unset=Dn.prototype.ga;Dn.prototype.changed=Dn.prototype.s;Dn.prototype.dispatchEvent=Dn.prototype.b;Dn.prototype.getRevision=Dn.prototype.ba;Dn.prototype.on=Dn.prototype.ca;Dn.prototype.once=Dn.prototype.once;Dn.prototype.un=Dn.prototype.da;
538
- Dn.prototype.unByKey=Dn.prototype.ea;r("ol.interaction.Select",Tn);Tn.prototype.getFeatures=Tn.prototype.Qi;Tn.prototype.getHitTolerance=Tn.prototype.Ri;Tn.prototype.getLayer=Tn.prototype.Si;Tn.prototype.setHitTolerance=Tn.prototype.Ui;Tn.prototype.setMap=Tn.prototype.setMap;Tn.prototype.getActive=Tn.prototype.F;Tn.prototype.getMap=Tn.prototype.ha;Tn.prototype.setActive=Tn.prototype.xb;Tn.prototype.get=Tn.prototype.get;Tn.prototype.getKeys=Tn.prototype.fa;Tn.prototype.getProperties=Tn.prototype.Z;
539
- Tn.prototype.set=Tn.prototype.set;Tn.prototype.setProperties=Tn.prototype.L;Tn.prototype.unset=Tn.prototype.ga;Tn.prototype.changed=Tn.prototype.s;Tn.prototype.dispatchEvent=Tn.prototype.b;Tn.prototype.getRevision=Tn.prototype.ba;Tn.prototype.on=Tn.prototype.ca;Tn.prototype.once=Tn.prototype.once;Tn.prototype.un=Tn.prototype.da;Tn.prototype.unByKey=Tn.prototype.ea;r("ol.interaction.defaults",fg);r("ol.interaction.defaults",fg);r("ol.layer.Group",ig);ig.prototype.getLayers=ig.prototype.Ob;
540
- ig.prototype.setLayers=ig.prototype.Hf;ig.prototype.getExtent=ig.prototype.D;ig.prototype.getMaxResolution=ig.prototype.rc;ig.prototype.getMinResolution=ig.prototype.sc;ig.prototype.getOpacity=ig.prototype.tc;ig.prototype.getVisible=ig.prototype.tb;ig.prototype.getZIndex=ig.prototype.ta;ig.prototype.setExtent=ig.prototype.Zc;ig.prototype.setMaxResolution=ig.prototype.pd;ig.prototype.setMinResolution=ig.prototype.qd;ig.prototype.setOpacity=ig.prototype.$c;ig.prototype.setVisible=ig.prototype.ad;
541
- ig.prototype.setZIndex=ig.prototype.Xb;ig.prototype.get=ig.prototype.get;ig.prototype.getKeys=ig.prototype.fa;ig.prototype.getProperties=ig.prototype.Z;ig.prototype.set=ig.prototype.set;ig.prototype.setProperties=ig.prototype.L;ig.prototype.unset=ig.prototype.ga;ig.prototype.changed=ig.prototype.s;ig.prototype.dispatchEvent=ig.prototype.b;ig.prototype.getRevision=ig.prototype.ba;ig.prototype.on=ig.prototype.ca;ig.prototype.once=ig.prototype.once;ig.prototype.un=ig.prototype.da;
542
- ig.prototype.unByKey=ig.prototype.ea;r("ol.layer.Image",qo);qo.prototype.getSource=qo.prototype.la;qo.prototype.setMap=qo.prototype.setMap;qo.prototype.setSource=qo.prototype.sd;qo.prototype.getExtent=qo.prototype.D;qo.prototype.getMaxResolution=qo.prototype.rc;qo.prototype.getMinResolution=qo.prototype.sc;qo.prototype.getOpacity=qo.prototype.tc;qo.prototype.getVisible=qo.prototype.tb;qo.prototype.getZIndex=qo.prototype.ta;qo.prototype.setExtent=qo.prototype.Zc;qo.prototype.setMaxResolution=qo.prototype.pd;
543
- qo.prototype.setMinResolution=qo.prototype.qd;qo.prototype.setOpacity=qo.prototype.$c;qo.prototype.setVisible=qo.prototype.ad;qo.prototype.setZIndex=qo.prototype.Xb;qo.prototype.get=qo.prototype.get;qo.prototype.getKeys=qo.prototype.fa;qo.prototype.getProperties=qo.prototype.Z;qo.prototype.set=qo.prototype.set;qo.prototype.setProperties=qo.prototype.L;qo.prototype.unset=qo.prototype.ga;qo.prototype.changed=qo.prototype.s;qo.prototype.dispatchEvent=qo.prototype.b;qo.prototype.getRevision=qo.prototype.ba;
544
- qo.prototype.on=qo.prototype.ca;qo.prototype.once=qo.prototype.once;qo.prototype.un=qo.prototype.da;qo.prototype.unByKey=qo.prototype.ea;r("ol.layer.Tile",V);V.prototype.getPreload=V.prototype.sf;V.prototype.getSource=V.prototype.la;V.prototype.setPreload=V.prototype.If;V.prototype.getUseInterimTilesOnError=V.prototype.vf;V.prototype.setUseInterimTilesOnError=V.prototype.Jf;V.prototype.setMap=V.prototype.setMap;V.prototype.setSource=V.prototype.sd;V.prototype.getExtent=V.prototype.D;
545
- V.prototype.getMaxResolution=V.prototype.rc;V.prototype.getMinResolution=V.prototype.sc;V.prototype.getOpacity=V.prototype.tc;V.prototype.getVisible=V.prototype.tb;V.prototype.getZIndex=V.prototype.ta;V.prototype.setExtent=V.prototype.Zc;V.prototype.setMaxResolution=V.prototype.pd;V.prototype.setMinResolution=V.prototype.qd;V.prototype.setOpacity=V.prototype.$c;V.prototype.setVisible=V.prototype.ad;V.prototype.setZIndex=V.prototype.Xb;V.prototype.get=V.prototype.get;V.prototype.getKeys=V.prototype.fa;
546
- V.prototype.getProperties=V.prototype.Z;V.prototype.set=V.prototype.set;V.prototype.setProperties=V.prototype.L;V.prototype.unset=V.prototype.ga;V.prototype.changed=V.prototype.s;V.prototype.dispatchEvent=V.prototype.b;V.prototype.getRevision=V.prototype.ba;V.prototype.on=V.prototype.ca;V.prototype.once=V.prototype.once;V.prototype.un=V.prototype.da;V.prototype.unByKey=V.prototype.ea;r("ol.layer.Vector",T);T.prototype.getSource=T.prototype.la;T.prototype.getStyle=T.prototype.B;
547
- T.prototype.getStyleFunction=T.prototype.F;T.prototype.setStyle=T.prototype.v;T.prototype.setMap=T.prototype.setMap;T.prototype.setSource=T.prototype.sd;T.prototype.getExtent=T.prototype.D;T.prototype.getMaxResolution=T.prototype.rc;T.prototype.getMinResolution=T.prototype.sc;T.prototype.getOpacity=T.prototype.tc;T.prototype.getVisible=T.prototype.tb;T.prototype.getZIndex=T.prototype.ta;T.prototype.setExtent=T.prototype.Zc;T.prototype.setMaxResolution=T.prototype.pd;T.prototype.setMinResolution=T.prototype.qd;
548
- T.prototype.setOpacity=T.prototype.$c;T.prototype.setVisible=T.prototype.ad;T.prototype.setZIndex=T.prototype.Xb;T.prototype.get=T.prototype.get;T.prototype.getKeys=T.prototype.fa;T.prototype.getProperties=T.prototype.Z;T.prototype.set=T.prototype.set;T.prototype.setProperties=T.prototype.L;T.prototype.unset=T.prototype.ga;T.prototype.changed=T.prototype.s;T.prototype.dispatchEvent=T.prototype.b;T.prototype.getRevision=T.prototype.ba;T.prototype.on=T.prototype.ca;T.prototype.once=T.prototype.once;
549
- T.prototype.un=T.prototype.da;T.prototype.unByKey=T.prototype.ea;r("ol.proj.METERS_PER_UNIT",tb);r("ol.proj.setProj4",function(a){ub=a});r("ol.proj.getPointResolution",Ab);r("ol.proj.addEquivalentProjections",Db);r("ol.proj.addProjection",Mb);r("ol.proj.addCoordinateTransforms",Ob);r("ol.proj.fromLonLat",function(a,b){return Tb(a,"EPSG:4326",void 0!==b?b:"EPSG:3857")});r("ol.proj.toLonLat",function(a,b){return Tb(a,void 0!==b?b:"EPSG:3857","EPSG:4326")});r("ol.proj.get",Cb);
550
- r("ol.proj.equivalent",Qb);r("ol.proj.getTransform",Rb);r("ol.proj.transform",Tb);r("ol.proj.transformExtent",Ub);r("ol.proj.common.add",sg);r("ol.proj.Projection",vb);vb.prototype.getCode=vb.prototype.Mg;vb.prototype.getExtent=vb.prototype.D;vb.prototype.getUnits=vb.prototype.lh;vb.prototype.getMetersPerUnit=vb.prototype.rb;vb.prototype.getWorldExtent=vb.prototype.nh;vb.prototype.isGlobal=vb.prototype.Sh;vb.prototype.setGlobal=vb.prototype.Pj;vb.prototype.setExtent=vb.prototype.Wi;
551
- vb.prototype.setWorldExtent=vb.prototype.ak;vb.prototype.setGetPointResolution=vb.prototype.Oj;r("ol.proj.Units.METERS_PER_UNIT",tb);Jg.prototype.drawCircle=Jg.prototype.mc;Jg.prototype.setStyle=Jg.prototype.ee;Jg.prototype.drawGeometry=Jg.prototype.Ic;Jg.prototype.drawFeature=Jg.prototype.Xe;r("ol.source.CartoDB",Z);Z.prototype.getConfig=Z.prototype.Ng;Z.prototype.updateConfig=Z.prototype.jk;Z.prototype.setConfig=Z.prototype.Mj;Z.prototype.setRenderReprojectionEdges=Z.prototype.te;
552
- Z.prototype.setTileGridForProjection=Z.prototype.xe;Z.prototype.getTileLoadFunction=Z.prototype.Wd;Z.prototype.getTileUrlFunction=Z.prototype.Xd;Z.prototype.getUrls=Z.prototype.Yd;Z.prototype.setTileLoadFunction=Z.prototype.ye;Z.prototype.setTileUrlFunction=Z.prototype.Wb;Z.prototype.setUrl=Z.prototype.uc;Z.prototype.setUrls=Z.prototype.td;Z.prototype.getTileGrid=Z.prototype.Vd;Z.prototype.refresh=Z.prototype.yb;Z.prototype.getAttributions=Z.prototype.Pb;Z.prototype.getLogo=Z.prototype.Jb;
553
- Z.prototype.getProjection=Z.prototype.Qb;Z.prototype.getState=Z.prototype.T;Z.prototype.setAttributions=Z.prototype.Ab;Z.prototype.get=Z.prototype.get;Z.prototype.getKeys=Z.prototype.fa;Z.prototype.getProperties=Z.prototype.Z;Z.prototype.set=Z.prototype.set;Z.prototype.setProperties=Z.prototype.L;Z.prototype.unset=Z.prototype.ga;Z.prototype.changed=Z.prototype.s;Z.prototype.dispatchEvent=Z.prototype.b;Z.prototype.getRevision=Z.prototype.ba;Z.prototype.on=Z.prototype.ca;Z.prototype.once=Z.prototype.once;
554
- Z.prototype.un=Z.prototype.da;Z.prototype.unByKey=Z.prototype.ea;r("ol.source.ImageStatic",No);r("ol.source.ImageVector",oo);r("ol.source.Raster",Oo);Oo.prototype.setOperation=Oo.prototype.H;Oo.prototype.getAttributions=Oo.prototype.Pb;Oo.prototype.getLogo=Oo.prototype.Jb;Oo.prototype.getProjection=Oo.prototype.Qb;Oo.prototype.getState=Oo.prototype.T;Oo.prototype.refresh=Oo.prototype.yb;Oo.prototype.setAttributions=Oo.prototype.Ab;Oo.prototype.get=Oo.prototype.get;Oo.prototype.getKeys=Oo.prototype.fa;
555
- Oo.prototype.getProperties=Oo.prototype.Z;Oo.prototype.set=Oo.prototype.set;Oo.prototype.setProperties=Oo.prototype.L;Oo.prototype.unset=Oo.prototype.ga;Oo.prototype.changed=Oo.prototype.s;Oo.prototype.dispatchEvent=Oo.prototype.b;Oo.prototype.getRevision=Oo.prototype.ba;Oo.prototype.on=Oo.prototype.ca;Oo.prototype.once=Oo.prototype.once;Oo.prototype.un=Oo.prototype.da;Oo.prototype.unByKey=Oo.prototype.ea;r("ol.source.TileJSON",Wo);r("ol.source.Vector",U);r("ol.source.Vector",U);
556
- U.prototype.addFeature=U.prototype.ec;U.prototype.addFeatures=U.prototype.Ec;U.prototype.clear=U.prototype.clear;U.prototype.forEachFeature=U.prototype.af;U.prototype.forEachFeatureInExtent=U.prototype.pb;U.prototype.forEachFeatureIntersectingExtent=U.prototype.bf;U.prototype.getFeaturesCollection=U.prototype.hf;U.prototype.getFeatures=U.prototype.Lf;U.prototype.getFeaturesAtCoordinate=U.prototype.gf;U.prototype.getFeaturesInExtent=U.prototype.jf;U.prototype.getClosestFeatureToCoordinate=U.prototype.df;
557
- U.prototype.getExtent=U.prototype.D;U.prototype.getFeatureById=U.prototype.ff;U.prototype.getFormat=U.prototype.Mf;U.prototype.getUrl=U.prototype.Nf;U.prototype.removeFeature=U.prototype.zb;U.prototype.getAttributions=U.prototype.Pb;U.prototype.getLogo=U.prototype.Jb;U.prototype.getProjection=U.prototype.Qb;U.prototype.getState=U.prototype.T;U.prototype.refresh=U.prototype.yb;U.prototype.setAttributions=U.prototype.Ab;U.prototype.get=U.prototype.get;U.prototype.getKeys=U.prototype.fa;
558
- U.prototype.getProperties=U.prototype.Z;U.prototype.set=U.prototype.set;U.prototype.setProperties=U.prototype.L;U.prototype.unset=U.prototype.ga;U.prototype.changed=U.prototype.s;U.prototype.dispatchEvent=U.prototype.b;U.prototype.getRevision=U.prototype.ba;U.prototype.on=U.prototype.ca;U.prototype.once=U.prototype.once;U.prototype.un=U.prototype.da;U.prototype.unByKey=U.prototype.ea;U.prototype.addFeature=U.prototype.ec;U.prototype.addFeatures=U.prototype.Ec;U.prototype.clear=U.prototype.clear;
559
- U.prototype.forEachFeature=U.prototype.af;U.prototype.forEachFeatureInExtent=U.prototype.pb;U.prototype.forEachFeatureIntersectingExtent=U.prototype.bf;U.prototype.getFeaturesCollection=U.prototype.hf;U.prototype.getFeatures=U.prototype.Lf;U.prototype.getFeaturesAtCoordinate=U.prototype.gf;U.prototype.getFeaturesInExtent=U.prototype.jf;U.prototype.getClosestFeatureToCoordinate=U.prototype.df;U.prototype.getExtent=U.prototype.D;U.prototype.getFeatureById=U.prototype.ff;U.prototype.getFormat=U.prototype.Mf;
560
- U.prototype.getUrl=U.prototype.Nf;U.prototype.removeFeature=U.prototype.zb;U.prototype.getAttributions=U.prototype.Pb;U.prototype.getLogo=U.prototype.Jb;U.prototype.getProjection=U.prototype.Qb;U.prototype.getState=U.prototype.T;U.prototype.refresh=U.prototype.yb;U.prototype.setAttributions=U.prototype.Ab;U.prototype.get=U.prototype.get;U.prototype.getKeys=U.prototype.fa;U.prototype.getProperties=U.prototype.Z;U.prototype.set=U.prototype.set;U.prototype.setProperties=U.prototype.L;
561
- U.prototype.unset=U.prototype.ga;U.prototype.changed=U.prototype.s;U.prototype.dispatchEvent=U.prototype.b;U.prototype.getRevision=U.prototype.ba;U.prototype.on=U.prototype.ca;U.prototype.once=U.prototype.once;U.prototype.un=U.prototype.da;U.prototype.unByKey=U.prototype.ea;r("ol.source.XYZ",Y);r("ol.source.XYZ",Y);Y.prototype.setRenderReprojectionEdges=Y.prototype.te;Y.prototype.setTileGridForProjection=Y.prototype.xe;Y.prototype.getTileLoadFunction=Y.prototype.Wd;
562
- Y.prototype.getTileUrlFunction=Y.prototype.Xd;Y.prototype.getUrls=Y.prototype.Yd;Y.prototype.setTileLoadFunction=Y.prototype.ye;Y.prototype.setTileUrlFunction=Y.prototype.Wb;Y.prototype.setUrl=Y.prototype.uc;Y.prototype.setUrls=Y.prototype.td;Y.prototype.getTileGrid=Y.prototype.Vd;Y.prototype.refresh=Y.prototype.yb;Y.prototype.getAttributions=Y.prototype.Pb;Y.prototype.getLogo=Y.prototype.Jb;Y.prototype.getProjection=Y.prototype.Qb;Y.prototype.getState=Y.prototype.T;Y.prototype.setAttributions=Y.prototype.Ab;
563
- Y.prototype.get=Y.prototype.get;Y.prototype.getKeys=Y.prototype.fa;Y.prototype.getProperties=Y.prototype.Z;Y.prototype.set=Y.prototype.set;Y.prototype.setProperties=Y.prototype.L;Y.prototype.unset=Y.prototype.ga;Y.prototype.changed=Y.prototype.s;Y.prototype.dispatchEvent=Y.prototype.b;Y.prototype.getRevision=Y.prototype.ba;Y.prototype.on=Y.prototype.ca;Y.prototype.once=Y.prototype.once;Y.prototype.un=Y.prototype.da;Y.prototype.unByKey=Y.prototype.ea;Y.prototype.setRenderReprojectionEdges=Y.prototype.te;
564
- Y.prototype.setTileGridForProjection=Y.prototype.xe;Y.prototype.getTileLoadFunction=Y.prototype.Wd;Y.prototype.getTileUrlFunction=Y.prototype.Xd;Y.prototype.getUrls=Y.prototype.Yd;Y.prototype.setTileLoadFunction=Y.prototype.ye;Y.prototype.setTileUrlFunction=Y.prototype.Wb;Y.prototype.setUrl=Y.prototype.uc;Y.prototype.setUrls=Y.prototype.td;Y.prototype.getTileGrid=Y.prototype.Vd;Y.prototype.refresh=Y.prototype.yb;Y.prototype.getAttributions=Y.prototype.Pb;Y.prototype.getLogo=Y.prototype.Jb;
565
- Y.prototype.getProjection=Y.prototype.Qb;Y.prototype.getState=Y.prototype.T;Y.prototype.setAttributions=Y.prototype.Ab;Y.prototype.get=Y.prototype.get;Y.prototype.getKeys=Y.prototype.fa;Y.prototype.getProperties=Y.prototype.Z;Y.prototype.set=Y.prototype.set;Y.prototype.setProperties=Y.prototype.L;Y.prototype.unset=Y.prototype.ga;Y.prototype.changed=Y.prototype.s;Y.prototype.dispatchEvent=Y.prototype.b;Y.prototype.getRevision=Y.prototype.ba;Y.prototype.on=Y.prototype.ca;Y.prototype.once=Y.prototype.once;
566
- Y.prototype.un=Y.prototype.da;Y.prototype.unByKey=Y.prototype.ea;r("ol.style.AtlasManager",$o);r("ol.style.Circle",Ah);Ah.prototype.setRadius=Ah.prototype.rd;r("ol.style.Fill",Bh);Bh.prototype.clone=Bh.prototype.clone;Bh.prototype.getColor=Bh.prototype.a;Bh.prototype.setColor=Bh.prototype.c;r("ol.style.Icon",ij);ij.prototype.clone=ij.prototype.clone;ij.prototype.getAnchor=ij.prototype.Hb;ij.prototype.getColor=ij.prototype.Yi;ij.prototype.getImage=ij.prototype.W;ij.prototype.getOrigin=ij.prototype.Rb;
567
- ij.prototype.getSrc=ij.prototype.Zi;ij.prototype.getSize=ij.prototype.mb;ij.prototype.load=ij.prototype.load;r("ol.style.Image",xh);xh.prototype.getOpacity=xh.prototype.dd;xh.prototype.getRotateWithView=xh.prototype.ed;xh.prototype.getRotation=xh.prototype.fd;xh.prototype.getScale=xh.prototype.gd;xh.prototype.getSnapToPixel=xh.prototype.Sc;xh.prototype.setOpacity=xh.prototype.Sb;xh.prototype.setRotation=xh.prototype.hd;xh.prototype.setScale=xh.prototype.Tb;r("ol.style.RegularShape",yh);
568
- yh.prototype.clone=yh.prototype.clone;yh.prototype.getAnchor=yh.prototype.Hb;yh.prototype.getAngle=yh.prototype.Qf;yh.prototype.getFill=yh.prototype.sa;yh.prototype.getImage=yh.prototype.W;yh.prototype.getOrigin=yh.prototype.Rb;yh.prototype.getPoints=yh.prototype.Rf;yh.prototype.getRadius=yh.prototype.Sf;yh.prototype.getRadius2=yh.prototype.tf;yh.prototype.getSize=yh.prototype.mb;yh.prototype.getStroke=yh.prototype.oa;r("ol.style.Stroke",Yg);Yg.prototype.clone=Yg.prototype.clone;
569
- Yg.prototype.getColor=Yg.prototype.$i;Yg.prototype.getLineCap=Yg.prototype.Wg;Yg.prototype.getLineDash=Yg.prototype.aj;Yg.prototype.getLineDashOffset=Yg.prototype.Xg;Yg.prototype.getLineJoin=Yg.prototype.Yg;Yg.prototype.getMiterLimit=Yg.prototype.ah;Yg.prototype.getWidth=Yg.prototype.bj;Yg.prototype.setColor=Yg.prototype.cj;Yg.prototype.setLineCap=Yg.prototype.Rj;Yg.prototype.setLineDash=Yg.prototype.setLineDash;Yg.prototype.setLineDashOffset=Yg.prototype.Sj;Yg.prototype.setLineJoin=Yg.prototype.Tj;
570
- Yg.prototype.setMiterLimit=Yg.prototype.Uj;Yg.prototype.setWidth=Yg.prototype.$j;r("ol.style.Style",Ch);Ch.prototype.clone=Ch.prototype.clone;Ch.prototype.getGeometry=Ch.prototype.N;Ch.prototype.getGeometryFunction=Ch.prototype.Rg;Ch.prototype.getFill=Ch.prototype.sa;Ch.prototype.setFill=Ch.prototype.re;Ch.prototype.getImage=Ch.prototype.W;Ch.prototype.setImage=Ch.prototype.se;Ch.prototype.getStroke=Ch.prototype.oa;Ch.prototype.setStroke=Ch.prototype.ve;Ch.prototype.getText=Ch.prototype.xa;
571
- Ch.prototype.setText=Ch.prototype.we;Ch.prototype.getZIndex=Ch.prototype.ta;Ch.prototype.setGeometry=Ch.prototype.Oa;Ch.prototype.setZIndex=Ch.prototype.Xb;r("ol.style.Text",jj);jj.prototype.clone=jj.prototype.clone;jj.prototype.getFont=jj.prototype.Qg;jj.prototype.getOffsetX=jj.prototype.bh;jj.prototype.getOffsetY=jj.prototype.dh;jj.prototype.getFill=jj.prototype.sa;jj.prototype.getRotateWithView=jj.prototype.dj;jj.prototype.getRotation=jj.prototype.ej;jj.prototype.getScale=jj.prototype.fj;
572
- jj.prototype.getStroke=jj.prototype.oa;jj.prototype.getText=jj.prototype.xa;jj.prototype.getTextAlign=jj.prototype.ih;jj.prototype.getTextBaseline=jj.prototype.jh;jj.prototype.setFont=jj.prototype.Nj;jj.prototype.setOffsetX=jj.prototype.Vj;jj.prototype.setOffsetY=jj.prototype.Wj;jj.prototype.setFill=jj.prototype.re;jj.prototype.setRotation=jj.prototype.gj;jj.prototype.setScale=jj.prototype.hj;jj.prototype.setStroke=jj.prototype.ve;jj.prototype.setText=jj.prototype.we;jj.prototype.setTextAlign=jj.prototype.Xj;
573
- jj.prototype.setTextBaseline=jj.prototype.Yj;yh.prototype.getOpacity=yh.prototype.dd;yh.prototype.getRotateWithView=yh.prototype.ed;yh.prototype.getRotation=yh.prototype.fd;yh.prototype.getScale=yh.prototype.gd;yh.prototype.getSnapToPixel=yh.prototype.Sc;yh.prototype.setOpacity=yh.prototype.Sb;yh.prototype.setRotation=yh.prototype.hd;yh.prototype.setScale=yh.prototype.Tb;Ah.prototype.clone=Ah.prototype.clone;Ah.prototype.getAngle=Ah.prototype.Qf;Ah.prototype.getFill=Ah.prototype.sa;
574
- Ah.prototype.getPoints=Ah.prototype.Rf;Ah.prototype.getRadius=Ah.prototype.Sf;Ah.prototype.getRadius2=Ah.prototype.tf;Ah.prototype.getStroke=Ah.prototype.oa;Ah.prototype.getOpacity=Ah.prototype.dd;Ah.prototype.getRotateWithView=Ah.prototype.ed;Ah.prototype.getRotation=Ah.prototype.fd;Ah.prototype.getScale=Ah.prototype.gd;Ah.prototype.getSnapToPixel=Ah.prototype.Sc;Ah.prototype.setOpacity=Ah.prototype.Sb;Ah.prototype.setRotation=Ah.prototype.hd;Ah.prototype.setScale=Ah.prototype.Tb;
575
- ij.prototype.getOpacity=ij.prototype.dd;ij.prototype.getRotateWithView=ij.prototype.ed;ij.prototype.getRotation=ij.prototype.fd;ij.prototype.getScale=ij.prototype.gd;ij.prototype.getSnapToPixel=ij.prototype.Sc;ij.prototype.setOpacity=ij.prototype.Sb;ij.prototype.setRotation=ij.prototype.hd;ij.prototype.setScale=ij.prototype.Tb;r("ol.tilegrid.createXYZ",ic);r("ol.tilegrid.TileGrid",Yb);Yb.prototype.forEachTileCoord=Yb.prototype.cf;Yb.prototype.getMaxZoom=Yb.prototype.nf;Yb.prototype.getMinZoom=Yb.prototype.pf;
576
- Yb.prototype.getOrigin=Yb.prototype.Ub;Yb.prototype.getResolution=Yb.prototype.La;Yb.prototype.getResolutions=Yb.prototype.Tf;Yb.prototype.getTileCoordExtent=Yb.prototype.ib;Yb.prototype.getTileCoordForCoordAndResolution=Yb.prototype.uf;Yb.prototype.getTileCoordForCoordAndZ=Yb.prototype.Ud;Yb.prototype.getTileSize=Yb.prototype.jb;Yb.prototype.getZForResolution=Yb.prototype.qc;r("ol.tilegrid.WMTS",Xo);Xo.prototype.getMatrixIds=Xo.prototype.C;
577
- r("ol.tilegrid.WMTS.createFromCapabilitiesMatrixSet",function(a,b,c){var d=[],e=[],f=[],g=[],h=[],l=void 0!==c?c:[];c=Cb(a.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"));var m=c.rb(),n="ne"==c.g.substr(0,2);a.TileMatrix.sort(function(a,b){return b.ScaleDenominator-a.ScaleDenominator});a.TileMatrix.forEach(function(a){var b;0<l.length?b=ea(l,function(b){return a.Identifier==b.TileMatrix}):b=!0;if(b){e.push(a.Identifier);b=2.8E-4*a.ScaleDenominator/m;var c=a.TileWidth,p=a.TileHeight;
578
- n?f.push([a.TopLeftCorner[1],a.TopLeftCorner[0]]):f.push(a.TopLeftCorner);d.push(b);g.push(c==p?c:[c,p]);h.push([a.MatrixWidth,-a.MatrixHeight])}});return new Xo({extent:b,origins:f,resolutions:d,matrixIds:e,tileSizes:g,sizes:h})});Xo.prototype.forEachTileCoord=Xo.prototype.cf;Xo.prototype.getMaxZoom=Xo.prototype.nf;Xo.prototype.getMinZoom=Xo.prototype.pf;Xo.prototype.getOrigin=Xo.prototype.Ub;Xo.prototype.getResolution=Xo.prototype.La;Xo.prototype.getResolutions=Xo.prototype.Tf;
579
- Xo.prototype.getTileCoordExtent=Xo.prototype.ib;Xo.prototype.getTileCoordForCoordAndResolution=Xo.prototype.uf;Xo.prototype.getTileCoordForCoordAndZ=Xo.prototype.Ud;Xo.prototype.getTileSize=Xo.prototype.jb;Xo.prototype.getZForResolution=Xo.prototype.qc;
580
- return OPENLAYERS.ol;
581
- }));
582
-