MeshCentral/public/scripts/ol-min.js

1 line
477 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!function(t,e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define([],e):t.ol=e()}(this,function(){var r={},n=this;function t(t,e){var o,i=r;(t=t.split("."))[0]in(i=i||n)||!i.execScript||i.execScript("var "+t[0]);for(;t.length&&(o=t.shift());)t.length||void 0===e?i=i[o]&&i[o]!==Object.prototype[o]?i[o]:i[o]={}:i[o]=e}function D(t,e){return e<t?1:t<e?-1:0}function d(t,e){return 0<=t.indexOf(e)}function v(t,e,o){var i=t.length;if(t[0]<=e)return 0;if(!(e<=t[i-1]))if(0<o){for(o=1;o<i;++o)if(t[o]<e)return o-1}else if(o<0){for(o=1;o<i;++o)if(t[o]<=e)return o}else for(o=1;o<i;++o){if(t[o]==e)return o;if(t[o]<e)return t[o-1]-e<e-t[o]?o-1:o}return i-1}function c(t,e){var o=Array.isArray(e)?e:[e],i=o.length;for(e=0;e<i;e++)t[t.length]=o[e]}function s(t,e){-1<(e=t.indexOf(e))&&t.splice(e,1)}function b(t,e){for(var o,i=t.length>>>0,r=0;r<i;r++)if(e(o=t[r],r,t))return o;return null}function U(t,e){var o=t.length;if(o===e.length){for(var i=0;i<o;i++)if(t[i]!==e[i])return;return 1}}function h(t){for(var o=hs,e=t.length,i=Array(t.length),r=0;r<e;r++)i[r]={index:r,value:t[r]};for(i.sort(function(t,e){return o(t.value,e.value)||t.index-e.index}),r=0;r<t.length;r++)t[r]=i[r].value}function m(o,i){var r;return o.every(function(t,e){return!i(t,r=e,o)})?-1:r}function e(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t}function w(){}function G(t){return t.Vo||(t.Vo=++o)}var o=0;function a(t){this.message="Assertion failed. See https://openlayers.org/en/v4.2.0/doc/errors/#"+t+" for details.",this.code=t,this.name="AssertionError"}function O(t,e){if(!t)throw new a(e)}function B(t,e,o,i){this.ca=t,this.$=e,this.da=o,this.ia=i}function p(t,e,o){return t.ca<=e&&e<=t.$&&t.da<=o&&o<=t.ia}function C(t,e){return t.ca<=e.$&&t.$>=e.ca&&t.da<=e.ia&&t.ia>=e.da}function x(t,e,o){return Math.min(Math.max(t,e),o)}e(a,Error);var i="cosh"in Math?Math.cosh:function(t){return((t=Math.exp(t))+1/t)/2};function S(t,e,o,i,r,n){var s,a=r-o,p=n-i;return(a||p)&&(1<(s=((t-o)*a+(e-i)*p)/(a*a+p*p))?(o=r,i=n):0<s&&(o+=a*s,i+=p*s)),y(t,e,o,i)}function y(t,e,o,i){return(t=o-t)*t+(e=i-e)*e}function M(t){return t*Math.PI/180}function L(t,e){return(t%=e)*e<0?t+e:t}function f(t,e,o){return t+o*(e-t)}function l(t,e,o){return(o=void 0===o?[0,0]:o)[0]=t[0]+2*e,o[1]=t[1]+2*e,o}function u(t,e,o){return(o=void 0===o?[0,0]:o)[0]=t[0]*e+.5|0,o[1]=t[1]*e+.5|0,o}function X(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:e[0]=e[1]=t,e)}function P(t){for(var e=V(),o=0,i=t.length;o<i;++o)z(e,t[o]);return e}function A(t,e,o){return o?(o[0]=t[0]-e,o[1]=t[1]-e,o[2]=t[2]+e,o[3]=t[3]+e,o):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function g(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function E(t,e,o){return(e=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0)*e+(t=o<t[1]?t[1]-o:t[3]<o?o-t[3]:0)*t}function T(t,e){return j(t,e[0],e[1])}function N(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function j(t,e,o){return t[0]<=e&&e<=t[2]&&t[1]<=o&&o<=t[3]}function R(t,e){var o=t[1],i=t[2],r=t[3],n=e[0];e=e[1];var s=0;return n<t[0]?s|=16:i<n&&(s|=4),e<o?s|=8:r<e&&(s|=2),s=s||1}function V(){return[1/0,1/0,-1/0,-1/0]}function F(t,e,o,i,r){return r?(r[0]=t,r[1]=e,r[2]=o,r[3]=i,r):[t,e,o,i]}function I(t){return F(1/0,1/0,-1/0,-1/0,t)}function k(t,e){var o=t[0];return F(o,t=t[1],o,t,e)}function W(t,e,o,i,r){return Y(r=I(r),t,e,o,i)}function Z(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function K(t,e){return e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t}function z(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function Y(t,e,o,i,r){for(;o<i;o+=r){var n=t,s=e[o],a=e[o+1];n[0]=Math.min(n[0],s),n[1]=Math.min(n[1],a),n[2]=Math.max(n[2],s),n[3]=Math.max(n[3],a)}return t}function H(t,e,o){var i;return((i=e.call(o,J(t)))||(i=e.call(o,_(t)))||(i=e.call(o,it(t)))||!!(i=e.call(o,ot(t))))&&i}function q(t){var e=0;return e=!st(t)?rt(t)*tt(t):e}function J(t){return[t[0],t[1]]}function _(t){return[t[2],t[1]]}function $(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function Q(t,e,o,i,r){var n=e*i[0]/2;i=e*i[1]/2,e=Math.cos(o);var s=Math.sin(o);o=n*e,n*=s,e*=i;var a=t[0],p=t[1];t=a-o+(h=i*s),i=a-o-h,s=a+o-h,o=a+o+h;var h=p-n-e,a=p-n+e,l=p+n+e,n=p+n-e;return F(Math.min(t,i,s,o),Math.min(h,a,l,n),Math.max(t,i,s,o),Math.max(h,a,l,n),r)}function tt(t){return t[3]-t[1]}function et(t,e,o){return o=o||V(),nt(t,e)&&(o[0]=(t[0]>e[0]?t:e)[0],o[1]=(t[1]>e[1]?t:e)[1],o[2]=(t[2]<e[2]?t:e)[2],o[3]=(t[3]<e[3]?t:e)[3]),o}function ot(t){return[t[0],t[3]]}function it(t){return[t[2],t[3]]}function rt(t){return t[2]-t[0]}function nt(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function st(t){return t[2]<t[0]||t[3]<t[1]}function at(t,e){var o=(t[2]-t[0])/2*(e-1);e=(t[3]-t[1])/2*(e-1),t[0]-=o,t[2]+=o,t[1]-=e,t[3]+=e}function pt(t,e,o){e(t=[t[0],t[1],t[0],t[3],t[2],t[1],t[2],t[3]],t,2);var i=[t[0],t[2],t[4],t[6]],r=[t[1],t[3],t[5],t[7]];return F(e=Math.min.apply(null,i),t=Math.min.apply(null,r),Math.max.apply(null,i),Math.max.apply(null,r),o)}var ht="function"==typeof Object.assign?Object.assign:function(t,e){if(!t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(t),i=1,r=arguments.length;i<r;++i){var n=arguments[i];if(null!=n)for(var s in n)n.hasOwnProperty(s)&&(o[s]=n[s])}return o};function lt(t){for(var e in t)delete t[e]}function ut(t){var e,o=[];for(e in t)o.push(t[e]);return o}function ct(t){for(var e in t)return!1;return!e}function ft(t){this.radius=t}ft.prototype.a=function(t){for(var e=0,o=t.length,i=t[o-1][0],r=t[o-1][1],n=0;n<o;n++)var s=t[n][0],a=t[n][1],e=e+M(s-i)*(2+Math.sin(M(r))+Math.sin(M(a))),i=s,r=a;return e*this.radius*this.radius/2},ft.prototype.b=function(t,e){var o=M(t[1]),i=M(e[1]),r=(i-o)/2;return t=M(e[0]-t[0])/2,o=Math.sin(r)*Math.sin(r)+Math.sin(t)*Math.sin(t)*Math.cos(o)*Math.cos(i),2*this.radius*Math.atan2(Math.sqrt(o),Math.sqrt(1-o))},ft.prototype.offset=function(t,e,o){var i=M(t[1]);e/=this.radius;var r=Math.asin(Math.sin(i)*Math.cos(e)+Math.cos(i)*Math.sin(e)*Math.cos(o));return[180*(M(t[0])+Math.atan2(Math.sin(o)*Math.sin(e)*Math.cos(i),Math.cos(e)-Math.sin(i)*Math.sin(r)))/Math.PI,180*r/Math.PI]};var yt=new ft(6370997),gt={};gt.degrees=2*Math.PI*yt.radius/360,gt.ft=.3048,gt.m=1,gt["us-ft"]=1200/3937;var dt=null;function vt(t){this.mb=t.code,this.a=t.units,this.f=void 0!==t.extent?t.extent:null,this.g=void 0!==t.worldExtent?t.worldExtent:null,this.b=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.c=void 0!==t.global&&t.global,this.i=!(!this.c||!this.f),this.o=t.getPointResolution,this.j=null,this.l=t.metersPerUnit;var e=t.code,o=dt||window.proj4;"function"!=typeof o||void 0!==(e=o.defs(e))&&(void 0!==e.axis&&void 0===t.axisOrientation&&(this.b=e.axis),void 0===t.metersPerUnit&&(this.l=e.to_meter),void 0===t.units&&(this.a=e.units))}function bt(t){vt.call(this,{code:t,units:"m",extent:wt,global:!0,worldExtent:xt,getPointResolution:function(t,e){return t/i(e[1]/6378137)}})}(Mu=vt.prototype).Jk=function(){return this.mb},Mu.G=function(){return this.f},Mu.Un=function(){return this.a},Mu.sc=function(){return this.l||gt[this.a]},Mu.tl=function(){return this.g},Mu.dm=function(){return this.c},Mu.$p=function(t){this.c=t,this.i=!(!t||!this.f)},Mu.Vn=function(t){this.f=t,this.i=!(!this.c||!t)},Mu.kq=function(t){this.g=t},Mu.Zp=function(t){this.o=t},e(bt,vt);var mt=6378137*Math.PI,wt=[-mt,-mt,mt,mt],xt=[-180,-85,180,85],St="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(t){return new bt(t)});function Mt(t,e,o){var i=t.length;o=1<o?o:2,void 0===e&&(e=2<o?t.slice():Array(i));for(var r=0;r<i;r+=o){e[r]=mt*t[r]/180;var n=6378137*Math.log(Math.tan(Math.PI*(t[r+1]+90)/360));mt<n?n=mt:n<-mt&&(n=-mt),e[r+1]=n}return e}function Pt(t,e,o){var i=t.length;o=1<o?o:2,void 0===e&&(e=2<o?t.slice():Array(i));for(var r=0;r<i;r+=o)e[r]=180*t[r]/mt,e[r+1]=360*Math.atan(Math.exp(t[r+1]/6378137))/Math.PI-90;return e}var At=new ft(6378137);function Et(t,e){vt.call(this,{code:t,units:"degrees",extent:Tt,axisOrientation:e,global:!0,metersPerUnit:jt,worldExtent:Tt})}e(Et,vt);var Tt=[-180,-90,180,90],jt=Math.PI*At.radius/180,Ct=[new Et("CRS:84"),new Et("EPSG:4326","neu"),new Et("urn:ogc:def:crs:EPSG::4326","neu"),new Et("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new Et("urn:ogc:def:crs:OGC:1.3:CRS84"),new Et("urn:ogc:def:crs:OGC:2:84"),new Et("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new Et("urn:x-ogc:def:crs:EPSG:4326","neu")],Lt={},Rt={};function It(t,e,o){t=t.mb,e=e.mb,t in Rt||(Rt[t]={}),Rt[t][e]=o}function Nt(t,e){var o;return o=t in Rt&&e in Rt[t]?Rt[t][e]:o}function Ft(t,e,o){var i=(t=Bt(t)).o;return i?e=i(e,o):"degrees"!=t.a&&(e=(i=Wt(t,Bt("EPSG:4326")))(e=[o[0]-e/2,o[1],o[0]+e/2,o[1],o[0],o[1]-e/2,o[0],o[1]+e/2],e,2),e=(yt.b(e.slice(0,2),e.slice(2,4))+yt.b(e.slice(4,6),e.slice(6,8)))/2,void 0!==(t=t.sc())&&(e/=t)),e}function kt(t){t.forEach(Dt),t.forEach(function(e){t.forEach(function(t){e!==t&&It(e,t,Kt)})})}function Dt(t){It(Lt[t.mb]=t,t,Kt)}function Ot(t){return t?"string"==typeof t?Bt(t):t:Bt("EPSG:3857")}function Ut(t,e,o,i){It(t=Bt(t),e=Bt(e),Gt(o)),It(e,t,Gt(i))}function Gt(s){return function(t,e,o){var i,r=t.length;for(o=void 0!==o?o:2,e=void 0!==e?e:Array(r),i=0;i<r;i+=o){var n=s([t[i],t[i+1]]);for(e[i]=n[0],e[i+1]=n[1],n=o-1;2<=n;--n)e[i+n]=t[i+n]}return e}}function Bt(t){var e,o=null;return t instanceof vt?o=t:"string"==typeof t&&(o=Lt[t]||null,e=dt||window.proj4,o||"function"!=typeof e||void 0===e.defs(t)||Dt(o=new vt({code:t}))),o}function Xt(t,e){if(t===e)return!0;var o=t.a===e.a;return(t.mb===e.mb||Wt(t,e)===Kt)&&o}function Vt(t,e){return Wt(t=Bt(t),e=Bt(e))}function Wt(t,e){var o,i,r,n=t.mb,s=e.mb,a=Nt(n,s);return a||"function"==typeof(o=dt||window.proj4)&&(i=o.defs(n),r=o.defs(s),void 0!==i&&void 0!==r&&(i===r?kt([e,t]):Ut(e,t,(a=o(s,n)).forward,a.inverse),a=Nt(n,s))),a=a||Zt}function Zt(t,e){if(void 0!==e&&t!==e){for(var o=0,i=t.length;o<i;++o)e[o]=t[o];t=e}return t}function Kt(t,e){if(void 0!==e){for(var o=0,i=t.length;o<i;++o)e[o]=t[o];t=e}else t=t.slice();return t}function zt(t,e,o){return Vt(e,o)(t,void 0,t.length)}function Yt(t,e,o){return pt(t,e=Vt(e,o))}function Ht(){kt(St),kt(Ct),Ct.forEach(function(e){St.forEach(function(t){It(e,t,Mt),It(t,e,Pt)})})}function qt(t,e,o,i){return void 0!==i?(i[0]=t,i[1]=e,i[2]=o,i):[t,e,o]}function Jt(t){var o,i;this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.b=t.resolutions,O((o=this.b,i=function(t,e){return e-t}||D,o.every(function(t,e){return!e||!(0<(t=i(o[e-1],t))||0===t)})),17),this.maxZoom=this.b.length-1,this.i=void 0!==t.origin?t.origin:null,this.c=null,void 0!==t.origins&&(this.c=t.origins,O(this.c.length==this.b.length,20));var e=t.extent;void 0===e||this.i||this.c||(this.i=ot(e)),O(!this.i&&this.c||this.i&&!this.c,18),this.f=null,void 0!==t.tileSizes&&(this.f=t.tileSizes,O(this.f.length==this.b.length,19)),this.g=void 0!==t.tileSize?t.tileSize:this.f?null:256,O(!this.g&&this.f||this.g&&!this.f,22),this.v=void 0!==e?e:null,this.a=null,this.j=[0,0],void 0!==t.sizes?this.a=t.sizes.map(function(t){return new B(Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1))},this):e&&function(t,e){for(var o=t.b.length,i=Array(o),r=t.minZoom;r<o;++r)i[r]=ee(t,e,r);t.a=i}(this,e)}Ht();var _t=[0,0,0];function $t(t,e,o,i,r){for(r=t.Aa(e,r),e=e[0]-1;e>=t.minZoom;){if(o.call(null,e,ee(t,r,e,i)))return!0;--e}return!1}function Qt(t,e,o,i){return e[0]<t.maxZoom?(i=t.Aa(e,i),ee(t,i,e[0]+1,o)):null}function te(t,e,o,i){ie(t,e[0],e[1],o,!1,_t);var r=_t[1],n=_t[2];return ie(t,e[2],e[3],o,!0,_t),t=_t[1],e=_t[2],void 0!==i?(i.ca=r,i.$=t,i.da=n,i.ia=e):i=new B(r,t,n,e),i}function ee(t,e,o,i){return te(t,e,t.Da(o),i)}function oe(t,e){var o=t.Pc(e[0]),i=t.Da(e[0]);return t=X(t.gb(e[0]),t.j),[o[0]+(e[1]+.5)*t[0]*i,o[1]+(e[2]+.5)*t[1]*i]}function ie(t,e,o,i,r,n){var s=t.tc(i),a=i/t.Da(s),p=t.Pc(s);return t=X(t.gb(s),t.j),e=a*Math.floor((e-p[0])/i+(r?.5:0))/t[0],o=a*Math.floor((o-p[1])/i+(r?0:.5))/t[1],o=r?(e=Math.ceil(e)-1,Math.ceil(o)-1):(e=Math.floor(e),Math.floor(o)),qt(s,e,o,n)}function re(t){var e=t.j;return e||(e=ae(t),t.j=e),e}function ne(t){var e={};return ht(e,t||{}),void 0===e.extent&&(e.extent=Bt("EPSG:3857").G()),e.resolutions=se(e.extent,e.maxZoom,e.tileSize),delete e.maxZoom,new Jt(e)}function se(t,e,o){e=void 0!==e?e:42;var i=tt(t);for(t=rt(t),o=X(void 0!==o?o:256),o=Math.max(t/o[0],i/o[1]),e+=1,i=Array(e),t=0;t<e;++t)i[t]=o/Math.pow(2,t);return i}function ae(t,e,o){return e=se(t=pe(t),e,o),new Jt({extent:t,origin:ot(t),resolutions:e,tileSize:o})}function pe(t){var e=(t=Bt(t)).G();return e=!e?F(-(t=180*gt.degrees/t.sc()),-t,t,t):e}function he(t){this.b=t.html,this.a=t.tileRanges||null}function le(t){return t}function ue(i){return i.mh=function(t){var e=i.listener,o=i.lh||i.target;return i.nh&&me(i),e.call(o,t)}}function ce(t,e,o,i){for(var r,n=0,s=t.length;n<s;++n)if((r=t[n]).listener===e&&r.lh===o)return i&&(r.deleteIndex=n),r}function fe(t,e){return(t=t.fb)?t[e]:void 0}function ye(t){return t.fb||(t.fb={})}function ge(t,e){var o=fe(t,e);if(o){for(var i=0,r=o.length;i<r;++i)t.removeEventListener(e,o[i].mh),lt(o[i]);o.length=0,(o=t.fb)&&(delete o[e],Object.keys(o).length||delete t.fb)}}function de(t,e,o,i,r){var n=ye(t),s=n[e];return(n=ce(s=s||(n[e]=[]),o,i,!1))?r||(n.nh=!1):(t.addEventListener(e,ue(n={lh:i,nh:!!r,listener:o,target:t,type:e})),s.push(n)),n}function ve(t,e,o,i){return de(t,e,o,i,!0)}function be(t,e,o,i){(t=fe(t,e))&&(o=ce(t,o,i,!0))&&me(o)}function me(t){var e,o;t&&t.target&&(t.target.removeEventListener(t.type,t.mh),(e=fe(t.target,t.type))&&(-1!==(o="deleteIndex"in t?t.deleteIndex:e.indexOf(t))&&e.splice(o,1),e.length||ge(t.target,t.type)),lt(t))}function we(t){for(var e in ye(t))ge(t,e)}function xe(){}function Se(t){t.Jb||(t.Jb=!0,t.ka())}function Me(t){this.type=t,this.target=null}function Pe(t){t.stopPropagation()}function Ae(){this.Ua={},this.ra={},this.oa={}}function Ee(t,e){return e?e in t.oa:0<Object.keys(t.oa).length}function Te(){Ae.call(this),this.i=0}function je(t){Te.call(this),G(this),this.S={},void 0!==t&&this.H(t)}(Mu=Jt.prototype).Rf=function(t,e,o){for(var i=(t=ee(this,t,e)).ca,r=t.$;i<=r;++i)for(var n=t.da,s=t.ia;n<=s;++n)o([e,i,n])},Mu.G=function(){return this.v},Mu.Ti=function(){return this.maxZoom},Mu.Ui=function(){return this.minZoom},Mu.Pc=function(t){return this.i||this.c[t]},Mu.Da=function(t){return this.b[t]},Mu.Vi=function(){return this.b},Mu.Aa=function(t,e){var o=this.Pc(t[0]),i=this.Da(t[0]),r=X(this.gb(t[0]),this.j),n=o[0]+t[1]*r[0]*i;return F(n,t=o[1]+t[2]*r[1]*i,n+r[0]*i,t+r[1]*i,e)},Mu.Be=function(t,e,o){return ie(this,t[0],t[1],e,!1,o)},Mu.bg=function(t,e,o){return ie(this,t[0],t[1],this.Da(e),!1,o)},Mu.gb=function(t){return this.g||this.f[t]},Mu.tc=function(t,e){return x(v(this.b,t,e||0),this.minZoom,this.maxZoom)},xe.prototype.Jb=!(he.prototype.i=function(){return this.b}),xe.prototype.ka=w,Me.prototype.preventDefault=Me.prototype.stopPropagation=function(){this.qp=!0},e(Ae,xe),Ae.prototype.addEventListener=function(t,e){var o=this.oa[t];-1===(o=o||(this.oa[t]=[])).indexOf(e)&&o.push(e)},Ae.prototype.b=function(t){var e="string"==typeof t?new Me(t):t;t=e.type;var o=(e.target=this).oa[t];if(o){t in this.ra||(this.ra[t]=0,this.Ua[t]=0),++this.ra[t];for(var i=0,r=o.length;i<r;++i)if(!1===o[i].call(this,e)||e.qp){var n=!1;break}if(--this.ra[t],!this.ra[t]){for(e=this.Ua[t],delete this.Ua[t];e--;)this.removeEventListener(t,w);delete this.ra[t]}return n}},Ae.prototype.ka=function(){we(this)},Ae.prototype.removeEventListener=function(t,e){var o=this.oa[t];o&&(e=o.indexOf(e),t in this.Ua?(o[e]=w,++this.Ua[t]):(o.splice(e,1),o.length||delete this.oa[t]))},e(Te,Ae),(Mu=Te.prototype).s=function(){++this.i,this.b("change")},Mu.L=function(){return this.i},Mu.J=function(t,e,o){if(Array.isArray(t)){for(var i=t.length,r=Array(i),n=0;n<i;++n)r[n]=de(this,t[n],e,o);return r}return de(this,t,e,o)},Mu.once=function(t,e,o){if(Array.isArray(t)){for(var i=t.length,r=Array(i),n=0;n<i;++n)r[n]=ve(this,t[n],e,o);return r}return ve(this,t,e,o)},Mu.K=function(t,e,o){if(Array.isArray(t))for(var i=0,r=t.length;i<r;++i)be(this,t[i],e,o);else be(this,t,e,o)},e(je,Te);var Ce={};function Le(t){return Ce.hasOwnProperty(t)?Ce[t]:Ce[t]="change:"+t}function Re(t,e,o){var i=Le(e);t.b(new Ie(i,e,o)),t.b(new Ie("propertychange",e,o))}function Ie(t,e,o){Me.call(this,t),this.key=e,this.oldValue=o}function Ne(t,e){if(je.call(this),this.c=!!(e||{}).unique,this.a=t||[],this.c)for(t=0,e=this.a.length;t<e;++t)ke(this,this.a[t],t);Fe(this)}function Fe(t){t.set(De,t.a.length)}function ke(t,e,o){for(var i=0,r=t.a.length;i<r;++i)if(t.a[i]===e&&i!==o)throw new a(58)}(Mu=je.prototype).get=function(t){var e;return e=this.S.hasOwnProperty(t)?this.S[t]:e},Mu.O=function(){return Object.keys(this.S)},Mu.N=function(){return ht({},this.S)},Mu.set=function(t,e,o){o?this.S[t]=e:(o=this.S[t])!==(this.S[t]=e)&&Re(this,t,o)},Mu.H=function(t,e){for(var o in t)this.set(o,t[o],e)},Mu.P=function(t,e){var o;t in this.S&&(o=this.S[t],delete this.S[t],e||Re(this,t,o))},e(Ie,Me),e(Ne,je),(Mu=Ne.prototype).clear=function(){for(;0<this.dc();)this.pop()},Mu.fg=function(t){for(var e=0,o=t.length;e<o;++e)this.push(t[e]);return this},Mu.forEach=function(t,e){this.a.forEach(t,e)},Mu.tm=function(){return this.a},Mu.item=function(t){return this.a[t]},Mu.dc=function(){return this.get(De)},Mu.He=function(t,e){this.c&&ke(this,e),this.a.splice(t,0,e),Fe(this),this.b(new Oe("add",e))},Mu.pop=function(){return this.Hg(this.dc()-1)},Mu.push=function(t){this.c&&ke(this,t);var e=this.dc();return this.He(e,t),this.dc()},Mu.remove=function(t){for(var e=this.a,o=0,i=e.length;o<i;++o)if(e[o]===t)return this.Hg(o)},Mu.Hg=function(t){var e=this.a[t];return this.a.splice(t,1),Fe(this),this.b(new Oe("remove",e)),e},Mu.Wp=function(t,e){var o=this.dc();if(t<o)this.c&&ke(this,e,t),o=this.a[t],this.a[t]=e,this.b(new Oe("remove",o)),this.b(new Oe("add",e));else{for(;o<t;++o)this.He(o,void 0);this.He(t,e)}};var De="length";function Oe(t,e){Me.call(this,t),this.element=e}e(Oe,Me);var Ue=/^#(?:[0-9a-f]{3}){1,2}$/i,Ge=/^([a-z]*)$/i;function Be(t){return Array.isArray(t)?t:Ze(t)}function Xe(t){var e;return t="string"!=typeof t?"rgba("+(e=(e=t[0])!=(0|e)?e+.5|0:e)+","+(e=(e=t[1])!=(0|e)?e+.5|0:e)+","+(e=(e=t[2])!=(0|e)?e+.5|0:e)+","+(void 0===t[3]?1:t[3])+")":t}var Ve,We,Ze=(Ve={},We=0,function(t){if(Ve.hasOwnProperty(t))var e=Ve[t];else{if(1024<=We)for(var o in e=0,Ve)3&e++||(delete Ve[o],--We);var i,r;Ge.exec(e=t)&&((o=document.createElement("div")).style.color=e,document.body.appendChild(o),e=getComputedStyle(o).color,document.body.removeChild(o)),Ue.exec(e)?(O(3==(r=e.length-1)||6==r,54),i=3==r?1:2,r=parseInt(e.substr(1+0*i,i),16),o=parseInt(e.substr(1+i,i),16),e=parseInt(e.substr(1+2*i,i),16),1==i&&(r=(r<<4)+r,o=(o<<4)+o,e=(e<<4)+e),r=[r,o,e,1]):e.indexOf("rgba(")?e.indexOf("rgb(")?O(!1,14):((e=e.slice(4,-1).split(",").map(Number)).push(1),r=Ke(e)):r=Ke(e=e.slice(5,-1).split(",").map(Number)),Ve[t]=e=r,++We}return e});function Ke(t){var e=[];return e[0]=x(t[0]+.5|0,0,255),e[1]=x(t[1]+.5|0,0,255),e[2]=x(t[2]+.5|0,0,255),e[3]=x(t[3],0,1),e}function ze(t){return"string"==typeof t||t instanceof CanvasPattern||t instanceof CanvasGradient?t:Xe(t)}function Ye(t,e){var o=document.createElement("CANVAS");return t&&(o.width=t),e&&(o.height=e),o.getContext("2d")}function He(t,e){var o=e.parentNode;o&&o.replaceChild(t,e)}function qe(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function Je(t){je.call(this),this.element=t.element||null,this.a=this.R=null,this.v=[],this.render=t.render||w,t.target&&this.f(t.target)}function _e(t){t=t||{},this.I=document.createElement("UL"),this.u=document.createElement("LI"),this.I.appendChild(this.u),this.u.style.display="none",this.c=void 0===t.collapsed||t.collapsed,this.o=void 0===t.collapsible||t.collapsible,this.o||(this.c=!1);var e=void 0!==t.className?t.className:"ol-attribution",o=void 0!==t.tipLabel?t.tipLabel:"Attributions",i=void 0!==t.collapseLabel?t.collapseLabel:"»";"string"==typeof i?(this.D=document.createElement("span"),this.D.textContent=i):this.D=i,"string"==typeof(i=void 0!==t.label?t.label:"i")?(this.C=document.createElement("span"),this.C.textContent=i):this.C=i;var r=this.o&&!this.c?this.D:this.C;(i=document.createElement("button")).setAttribute("type","button"),i.title=o,i.appendChild(r),de(i,"click",this.Vm,this),(o=document.createElement("div")).className=e+" ol-unselectable ol-control"+(this.c&&this.o?" ol-collapsed":"")+(this.o?"":" ol-uncollapsible"),o.appendChild(this.I),o.appendChild(i),Je.call(this,{element:o,render:t.render||$e,target:t.target}),this.B=!0,this.l={},this.j={},this.T={}}function $e(t){if(t=t.frameState){var e,o,i,r,n,s,a,p=t.layerStatesArray,h=ht({},t.attributions),l={},u={},c=t.viewState.projection,f=0;for(a=p.length;f<a;f++)if(o=p[f].layer.ha()){var y=G(o).toString();if(i=o.j)for(var g=0,d=i.length;g<d;g++){var v=i[g],b=G(v).toString();if(!(b in h)){if(e=t.usedTiles[y])t:{var m=void 0,w=v,x=M=o.Ta(c),S=c;if(w.a){for(m in e)if(m in w.a)for(var M=e[m],P=0,A=w.a[m].length;P<A;++P){var E=w.a[m][P];if(C(E,M)){m=!0;break t}var T=ee(x,pe(S),parseInt(m,10)),j=T.$-T.ca+1;if((M.ca<T.ca||M.$>T.$)&&(C(E,new B(L(M.ca,j),L(M.$,j),M.da,M.ia))||M.$-M.ca+1>j&&C(E,T))){m=!0;break t}}m=!1}else m=!0}else m=!1;m?(b in l&&delete l[b],(m=v.b)in u||(u[m]=!0,h[b]=v)):l[b]=v}}}for(r in f=(a=[h,l])[0],a=a[1],this.l)r in f?(this.j[r]||(this.l[r].style.display="",this.j[r]=!0),delete f[r]):r in a?(this.j[r]&&(this.l[r].style.display="none",delete this.j[r]),delete a[r]):(qe(this.l[r]),delete this.l[r],delete this.j[r]);for(r in f)g=document.createElement("LI"),g.innerHTML=f[r].b,this.I.appendChild(g),this.l[r]=g,this.j[r]=!0;for(r in a)g=document.createElement("LI"),g.innerHTML=a[r].b,g.style.display="none",this.I.appendChild(g),this.l[r]=g;for(s in r=!ct(this.j)||!ct(t.logos),this.B!=r&&(this.element.style.display=r?"":"none",this.B=r),r&&ct(this.j)?this.element.classList.add("ol-logo-only"):this.element.classList.remove("ol-logo-only"),t=t.logos,r=this.T)s in t||(qe(r[s]),delete r[s]);for(n in t)(a=t[n])instanceof HTMLElement&&(this.u.appendChild(a),r[n]=a),n in r||((s=new Image).src=n,""===a?f=s:((f=document.createElement("a")).href=a,f.appendChild(s)),this.u.appendChild(f),r[n]=f);this.u.style.display=ct(t)?"none":""}else this.B&&(this.element.style.display="none",this.B=!1)}function Qe(t){t.element.classList.toggle("ol-collapsed"),t.c?He(t.D,t.C):He(t.C,t.D),t.c=!t.c}function to(t){return Math.pow(t,3)}function eo(t){return 1-to(1-t)}function oo(t){return 3*t*t-2*t*t*t}function io(t){return t}function ro(t){var e=void 0!==(t=t||{}).className?t.className:"ol-rotate",o=void 0!==t.label?t.label:"⇧";this.c=null,"string"==typeof o?(this.c=document.createElement("span"),this.c.className="ol-compass",this.c.textContent=o):(this.c=o,this.c.classList.add("ol-compass"));var i=t.tipLabel||"Reset rotation";(o=document.createElement("button")).className=e+"-reset",o.setAttribute("type","button"),o.title=i,o.appendChild(this.c),de(o,"click",ro.prototype.D,this),(i=document.createElement("div")).className=e+" ol-unselectable ol-control",i.appendChild(o),e=t.render||no,this.o=t.resetNorth||void 0,Je.call(this,{element:i,render:e,target:t.target}),this.l=void 0!==t.duration?t.duration:250,this.j=void 0===t.autoHide||t.autoHide,this.u=void 0,this.j&&this.element.classList.add("ol-hidden")}function no(t){var e,o;(t=t.frameState)&&((t=t.viewState.rotation)!=this.u&&(e="rotate("+t+"rad)",this.j&&((o=this.element.classList.contains("ol-hidden"))||t?o&&t&&this.element.classList.remove("ol-hidden"):this.element.classList.add("ol-hidden")),this.c.style.msTransform=e,this.c.style.webkitTransform=e,this.c.style.transform=e),this.u=t)}function so(t){var e=void 0!==(t=t||{}).className?t.className:"ol-zoom",o=void 0!==t.delta?t.delta:1,i=void 0!==t.zoomInLabel?t.zoomInLabel:"+",r=void 0!==t.zoomOutLabel?t.zoomOutLabel:"",n=void 0!==t.zoomInTipLabel?t.zoomInTipLabel:"Zoom in",s=void 0!==t.zoomOutTipLabel?t.zoomOutTipLabel:"Zoom out",a=document.createElement("button");a.className=e+"-in",a.setAttribute("type","button"),a.title=n,a.appendChild("string"==typeof i?document.createTextNode(i):i),de(a,"click",so.prototype.j.bind(this,o)),(i=document.createElement("button")).className=e+"-out",i.setAttribute("type","button"),i.title=s,i.appendChild("string"==typeof r?document.createTextNode(r):r),de(i,"click",so.prototype.j.bind(this,-o)),(o=document.createElement("div")).className=e+" ol-unselectable ol-control",o.appendChild(a),o.appendChild(i),Je.call(this,{element:o,target:t.target}),this.c=void 0!==t.duration?t.duration:250}function ao(t){t=t||{};var e=new Ne;return void 0!==t.zoom&&!t.zoom||e.push(new so(t.zoomOptions)),void 0!==t.rotate&&!t.rotate||e.push(new ro(t.rotateOptions)),void 0!==t.attribution&&!t.attribution||e.push(new _e(t.attributionOptions)),e}function po(t){this.c=void 0!==(t=t||{}).className?t.className:"ol-full-screen";var e=void 0!==t.label?t.label:"⤢";this.o="string"==typeof e?document.createTextNode(e):e,e=void 0!==t.labelActive?t.labelActive:"×",this.l="string"==typeof e?document.createTextNode(e):e;var o=t.tipLabel||"Toggle full-screen";(e=document.createElement("button")).className=this.c+"-"+lo(),e.setAttribute("type","button"),e.title=o,e.appendChild(this.o),de(e,"click",this.C,this),(o=document.createElement("div")).className=this.c+" ol-unselectable ol-control "+(ho()?"":"ol-unsupported"),o.appendChild(e),Je.call(this,{element:o,target:t.target}),this.D=void 0!==t.keys&&t.keys,this.j=t.source}function ho(){var t=document.body;return t.webkitRequestFullscreen||t.mozRequestFullScreen&&document.mozFullScreenEnabled||t.msRequestFullscreen&&document.msFullscreenEnabled||t.requestFullscreen&&document.fullscreenEnabled}function lo(){return!!(document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement||document.fullscreenElement)}function uo(t){t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen&&t.webkitRequestFullscreen()}e(Je,je),Je.prototype.ka=function(){qe(this.element),je.prototype.ka.call(this)},Je.prototype.g=function(){return this.a},Je.prototype.setMap=function(t){this.a&&qe(this.element);for(var e=0,o=this.v.length;e<o;++e)me(this.v[e]);this.v.length=0,(this.a=t)&&((this.R||t.D).appendChild(this.element),this.render!==w&&this.v.push(de(t,"postrender",this.render,this)),t.render())},Je.prototype.f=function(t){this.R="string"==typeof t?document.getElementById(t):t},e(_e,Je),(Mu=_e.prototype).Vm=function(t){t.preventDefault(),Qe(this)},Mu.Um=function(){return this.o},Mu.Xm=function(t){this.o!==t&&(this.o=t,this.element.classList.toggle("ol-uncollapsible"),!t&&this.c&&Qe(this))},Mu.Wm=function(t){this.o&&this.c!==t&&Qe(this)},Mu.Tm=function(){return this.c},e(ro,Je),ro.prototype.D=function(t){t.preventDefault(),this.o?this.o():(t=this.a.Z())&&void 0!==t.Qa()&&(0<this.l?t.animate({rotation:0,duration:this.l,easing:eo}):t.Oe(0))},e(so,Je),so.prototype.j=function(t,e){var o;e.preventDefault(),!(e=this.a.Z())||(o=e.Pa())&&(t=e.constrainResolution(o,t),0<this.c?(e.Ic()&&e.ed(),e.animate({resolution:t,duration:this.c,easing:eo})):e.Vc(t))},e(po,Je),po.prototype.C=function(t){t.preventDefault(),ho()&&(t=this.a)&&(lo()?document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen():(t=this.j?"string"==typeof this.j?document.getElementById(this.j):this.j:t.jd(),this.D?t.mozRequestFullScreenWithKeys?t.mozRequestFullScreenWithKeys():t.webkitRequestFullscreen?t.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):uo(t):uo(t)))},po.prototype.u=function(){var t=this.element.firstElementChild,e=this.a;lo()?(t.className=this.c+"-true",He(this.l,this.o)):(t.className=this.c+"-false",He(this.o,this.l)),e&&e.Ad()},po.prototype.setMap=function(t){Je.prototype.setMap.call(this,t),t&&this.v.push(de(document,fo(),this.u,this))};var co,fo=function(){var t;return co||((t=document.body).webkitRequestFullscreen?co="webkitfullscreenchange":t.mozRequestFullScreen?co="mozfullscreenchange":t.msRequestFullscreen?co="MSFullscreenChange":t.requestFullscreen&&(co="fullscreenchange")),co};function yo(t){t=t||{};var e=document.createElement("DIV");e.className=void 0!==t.className?t.className:"ol-mouse-position",Je.call(this,{element:e,render:t.render||go,target:t.target}),de(this,Le(bo),this.Ym,this),t.coordinateFormat&&this.kj(t.coordinateFormat),t.projection&&this.$h(t.projection),this.u=void 0!==t.undefinedHTML?t.undefinedHTML:"",this.l=e.innerHTML,this.o=this.j=this.c=null}function go(t){(t=t.frameState)?this.c!=t.viewState.projection&&(this.c=t.viewState.projection,this.j=null):this.c=null,vo(this,this.o)}function vo(t,e){var o,i=t.u;e&&t.c&&(t.j||(o=t.Zh(),t.j=o?Wt(t.c,o):Zt),(e=t.a.Wa(e))&&(t.j(e,e),i=(i=t.xh())?i(e):e.toString())),t.l&&i==t.l||(t.element.innerHTML=i,t.l=i)}e(yo,Je),(Mu=yo.prototype).Ym=function(){this.j=null},Mu.xh=function(){return this.get(mo)},Mu.Zh=function(){return this.get(bo)},Mu.Ll=function(t){this.o=this.a.xe(t),vo(this,this.o)},Mu.Ml=function(){vo(this,null),this.o=null},Mu.setMap=function(t){Je.prototype.setMap.call(this,t),t&&(t=t.a,this.v.push(de(t,"mousemove",this.Ll,this),de(t,"mouseout",this.Ml,this)))},Mu.kj=function(t){this.set(mo,t)},Mu.$h=function(t){this.set(bo,Bt(t))};var bo="projection",mo="coordinateFormat";function wo(t,e,o){Me.call(this,t),this.map=e,this.frameState=void 0!==o?o:null}function xo(t,e,o,i,r){wo.call(this,t,e,r),this.originalEvent=o,this.pixel=e.xe(o),this.coordinate=e.Wa(this.pixel),this.dragging=void 0!==i&&i}e(wo,Me),e(xo,wo),xo.prototype.preventDefault=function(){wo.prototype.preventDefault.call(this),this.originalEvent.preventDefault()},xo.prototype.stopPropagation=function(){wo.prototype.stopPropagation.call(this),this.originalEvent.stopPropagation()};var So=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function Mo(t,e){for(var o,i=So.length,r=0;r<i;++r)try{if(o=t.getContext(So[r],e))return o}catch(t){}return null}var Po="undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"",Ao=-1!==Po.indexOf("firefox"),Eo=-1!==Po.indexOf("safari")&&-1==Po.indexOf("chrom"),To=-1!==Po.indexOf("webkit")&&-1==Po.indexOf("edge"),jo=-1!==Po.indexOf("macintosh"),Co=window.devicePixelRatio||1,Lo=!1,Ro=function(){if(!("HTMLCanvasElement"in window))return!1;try{var t=document.createElement("CANVAS").getContext("2d");return!!t&&(void 0!==t.setLineDash&&(Lo=!0),!0)}catch(t){return!1}}(),Io="DeviceOrientationEvent"in window,No="geolocation"in navigator,Fo="ontouchstart"in window,ko="PointerEvent"in window,Do=!!navigator.msPointerEnabled,Oo=!1,Po=[];if("WebGLRenderingContext"in window)try{var Uo=Mo(document.createElement("CANVAS"),{failIfMajorPerformanceCaveat:!0});Uo&&(Oo=!0,Xy=Uo.getParameter(Uo.MAX_TEXTURE_SIZE),Po=Uo.getSupportedExtensions())}catch(t){}var Go=Oo,Bo=Po,Xo=Xy,Vo={Iq:"singleclick",xq:"click",yq:"dblclick",Bq:"pointerdrag",Eq:"pointermove",Aq:"pointerdown",Hq:"pointerup",Gq:"pointerover",Fq:"pointerout",Cq:"pointerenter",Dq:"pointerleave",zq:"pointercancel"};function Wo(t,e,o,i,r){xo.call(this,t,e,o.b,i,r),this.b=o}function Zo(t,e){this.b=t,this.f=e}function Ko(t){Zo.call(this,t,{mousedown:this.fm,mousemove:this.gm,mouseup:this.jm,mouseover:this.im,mouseout:this.hm}),this.a=t.i,this.i=[]}function zo(t,e){t=t.i;var o=e.clientX;e=e.clientY;for(var i,r=0,n=t.length;r<n&&(i=t[r]);r++){var s=Math.abs(e-i[1]);if(Math.abs(o-i[0])<=25&&s<=25)return 1}}function Yo(t){var e=ri(t,t),o=e.preventDefault;return e.preventDefault=function(){t.preventDefault(),o()},e.pointerId=1,e.isPrimary=!0,e.pointerType="mouse",e}function Ho(t){Zo.call(this,t,{MSPointerDown:this.om,MSPointerMove:this.pm,MSPointerUp:this.sm,MSPointerOut:this.qm,MSPointerOver:this.rm,MSPointerCancel:this.nm,MSGotPointerCapture:this.lm,MSLostPointerCapture:this.mm}),this.a=t.i,this.i=["","unavailable","touch","pen","mouse"]}function qo(t,e){var o=e;return"number"==typeof e.pointerType&&((o=ri(e,e)).pointerType=t.i[e.pointerType]),o}function Jo(t){Zo.call(this,t,{pointerdown:this.ip,pointermove:this.jp,pointerup:this.mp,pointerout:this.kp,pointerover:this.lp,pointercancel:this.hp,gotpointercapture:this.ul,lostpointercapture:this.em})}function _o(t,e,o){var i;Me.call(this,t),this.b=e,this.buttons=function(t){if(t.buttons||$o)t=t.buttons;else switch(t.which){case 1:t=1;break;case 2:t=4;break;case 3:t=2;break;default:t=0}return t}(t=o||{}),this.pressure=(i=t,o=this.buttons,i.pressure||(o?.5:0)),this.bubbles="bubbles"in t&&t.bubbles,this.cancelable="cancelable"in t&&t.cancelable,this.view="view"in t?t.view:null,this.detail="detail"in t?t.detail:null,this.screenX="screenX"in t?t.screenX:0,this.screenY="screenY"in t?t.screenY:0,this.clientX="clientX"in t?t.clientX:0,this.clientY="clientY"in t?t.clientY:0,this.ctrlKey="ctrlKey"in t&&t.ctrlKey,this.altKey="altKey"in t&&t.altKey,this.shiftKey="shiftKey"in t&&t.shiftKey,this.metaKey="metaKey"in t&&t.metaKey,this.button="button"in t?t.button:0,this.relatedTarget="relatedTarget"in t?t.relatedTarget:null,this.pointerId="pointerId"in t?t.pointerId:0,this.width="width"in t?t.width:0,this.height="height"in t?t.height:0,this.tiltX="tiltX"in t?t.tiltX:0,this.tiltY="tiltY"in t?t.tiltY:0,this.pointerType="pointerType"in t?t.pointerType:"",this.isPrimary="isPrimary"in t&&t.isPrimary,e.preventDefault&&(this.preventDefault=function(){e.preventDefault()})}e(Wo,xo),e(Ko,Zo),(Mu=Ko.prototype).fm=function(t){var e;zo(this,t)||(1..toString()in this.a&&this.cancel(t),e=Yo(t),this.a[1..toString()]=t,pi(this.b,"pointerdown",e,t))},Mu.gm=function(t){var e;zo(this,t)||(e=Yo(t),pi(this.b,"pointermove",e,t))},Mu.jm=function(t){var e;zo(this,t)||(e=this.a[1..toString()])&&e.button===t.button&&(e=Yo(t),pi(this.b,"pointerup",e,t),delete this.a[1..toString()])},Mu.im=function(t){var e;zo(this,t)||(e=Yo(t),ai(this.b,e,t))},Mu.hm=function(t){var e;zo(this,t)||(e=Yo(t),si(this.b,e,t))},Mu.cancel=function(t){var e=Yo(t);this.b.cancel(e,t),delete this.a[1..toString()]},e(Ho,Zo),(Mu=Ho.prototype).om=function(t){this.a[t.pointerId.toString()]=t;var e=qo(this,t);pi(this.b,"pointerdown",e,t)},Mu.pm=function(t){var e=qo(this,t);pi(this.b,"pointermove",e,t)},Mu.sm=function(t){var e=qo(this,t);pi(this.b,"pointerup",e,t),delete this.a[t.pointerId.toString()]},Mu.qm=function(t){var e=qo(this,t);si(this.b,e,t)},Mu.rm=function(t){var e=qo(this,t);ai(this.b,e,t)},Mu.nm=function(t){var e=qo(this,t);this.b.cancel(e,t),delete this.a[t.pointerId.toString()]},Mu.mm=function(t){this.b.b(new _o("lostpointercapture",t,t))},Mu.lm=function(t){this.b.b(new _o("gotpointercapture",t,t))},e(Jo,Zo),(Mu=Jo.prototype).ip=function(t){hi(this.b,t)},Mu.jp=function(t){hi(this.b,t)},Mu.mp=function(t){hi(this.b,t)},Mu.kp=function(t){hi(this.b,t)},Mu.lp=function(t){hi(this.b,t)},Mu.hp=function(t){hi(this.b,t)},Mu.em=function(t){hi(this.b,t)},Mu.ul=function(t){hi(this.b,t)},e(_o,Me);var $o=!1;try{$o=1===new MouseEvent("click",{buttons:1}).buttons}catch(t){}function Qo(t,e){Zo.call(this,t,{touchstart:this.rq,touchmove:this.qq,touchend:this.pq,touchcancel:this.oq}),this.a=t.i,this.j=e,this.i=void 0,this.g=0,this.c=void 0}function ti(t,e,o){function i(){e.preventDefault()}for(var r,n,s=Array.prototype.slice.call(e.changedTouches),a=s.length,p=0;p<a;++p){var h=(r=t,h=e,n=s[p],(h=ri(h,n)).pointerId=n.identifier+2,h.bubbles=!0,h.cancelable=!0,h.detail=r.g,h.button=0,h.buttons=1,h.width=n.webkitRadiusX||n.radiusX||0,h.height=n.webkitRadiusY||n.radiusY||0,h.pressure=n.webkitForce||n.force||.5,h.isPrimary=r.i===n.identifier,h.pointerType="touch",h.clientX=n.clientX,h.clientY=n.clientY,h.screenX=n.screenX,h.screenY=n.screenY,h);h.preventDefault=i,o.call(t,e,h)}}function ei(t,e){var o,i=t.j.i;e=e.changedTouches[0],t.i===e.identifier&&(o=[e.clientX,e.clientY],i.push(o),setTimeout(function(){s(i,o)},2500))}function oi(t){Ae.call(this),this.g=t,this.i={},this.f={},this.a=[],ko?ii(this,new Jo(this)):Do?ii(this,new Ho(this)):(ii(this,t=new Ko(this)),Fo&&ii(this,new Qo(this,t))),t=this.a.length;for(var e,o,i=0;i<t;i++)e=this.a[i],o=this,Object.keys(e.f).forEach(function(t){de(this.g,t,this.c,this)},o)}function ii(t,o){var e=Object.keys(o.f);e&&(e.forEach(function(t){var e=o.f[t];e&&(this.f[t]=e.bind(o))},t),t.a.push(o))}function ri(t,e){for(var o,i={},r=0,n=li.length;r<n;r++)i[o=li[r][0]]=t[o]||e[o]||li[r][1];return i}function ni(t,e,o){e.bubbles=!1,pi(t,"pointerleave",e,o)}function si(t,e,o){t.out(e,o);var i=e.target,r=e.relatedTarget;i&&r&&i.contains(r)||ni(t,e,o)}function ai(t,e,o){e.bubbles=!0,pi(t,"pointerover",e,o);var i=e.target,r=e.relatedTarget;i&&r&&i.contains(r)||(e.bubbles=!1,pi(t,"pointerenter",e,o))}function pi(t,e,o,i){t.b(new _o(e,i,o))}function hi(t,e){t.b(new _o(e.type,e,e))}e(Qo,Zo),(Mu=Qo.prototype).ij=function(){this.g=0,this.c=void 0},Mu.rq=function(t){var e=t.touches,o=Object.keys(this.a),i=o.length;if(i>=e.length){for(var r=[],n=0;n<i;++n){var s,a=o[n],p=this.a[a];if(!(s=1==a))t:{for(var h=e.length,l=0;l<h;l++)if((s=e[l]).identifier===a-2){s=!0;break t}s=!1}s||r.push(p.out)}for(n=0;n<r.length;++n)this.Kf(t,r[n])}e=t.changedTouches[0],(!(o=Object.keys(this.a).length)||1===o&&1..toString()in this.a)&&(this.i=e.identifier,void 0!==this.c&&clearTimeout(this.c)),ei(this,t),this.g++,ti(this,t,this.cp)},Mu.cp=function(t,e){this.a[e.pointerId]={target:e.target,out:e,Wi:e.target};var o=this.b;e.bubbles=!0,pi(o,"pointerover",e,t),o=this.b,e.bubbles=!1,pi(o,"pointerenter",e,t),pi(this.b,"pointerdown",e,t)},Mu.qq=function(t){t.preventDefault(),ti(this,t,this.km)},Mu.km=function(t,e){var o,i,r=this.a[e.pointerId];r&&(o=r.out,i=r.Wi,pi(this.b,"pointermove",e,t),o&&i!==e.target&&(o.relatedTarget=e.target,e.relatedTarget=i,o.target=i,e.target?(si(this.b,o,t),ai(this.b,e,t)):(e.target=i,e.relatedTarget=null,this.Kf(t,e))),r.out=e,r.Wi=e.target)},Mu.pq=function(t){ei(this,t),ti(this,t,this.sq)},Mu.sq=function(t,e){pi(this.b,"pointerup",e,t),this.b.out(e,t),ni(this.b,e,t),delete this.a[e.pointerId],e.isPrimary&&(this.i=void 0,this.c=setTimeout(this.ij.bind(this),200))},Mu.oq=function(t){ti(this,t,this.Kf)},Mu.Kf=function(t,e){this.b.cancel(e,t),this.b.out(e,t),ni(this.b,e,t),delete this.a[e.pointerId],e.isPrimary&&(this.i=void 0,this.c=setTimeout(this.ij.bind(this),200))},e(oi,Ae),oi.prototype.c=function(t){var e=this.f[t.type];e&&e(t)},oi.prototype.out=function(t,e){t.bubbles=!0,pi(this,"pointerout",t,e)},oi.prototype.cancel=function(t,e){pi(this,"pointercancel",t,e)};var li=[["bubbles",!(oi.prototype.ka=function(){for(var t,e,o=this.a.length,i=0;i<o;i++)t=this.a[i],e=this,Object.keys(t.f).forEach(function(t){be(this.g,t,this.c,this)},e);Ae.prototype.ka.call(this)})],["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 ui(t,e){Ae.call(this),this.i=t,this.j=0,this.o=!1,this.f=[],this.D=e?e*Co:Co,this.c=null,t=this.i.a,this.S=0,this.u={},this.g=new oi(t),this.a=null,this.l=de(this.g,"pointerdown",this.Ol,this),this.v=de(this.g,"pointermove",this.Lp,this)}function ci(t,e){"pointerup"==e.type||"pointercancel"==e.type?delete t.u[e.pointerId]:"pointerdown"==e.type&&(t.u[e.pointerId]=!0),t.S=Object.keys(t.u).length}function fi(t,e){return Math.abs(e.clientX-t.c.clientX)>t.D||Math.abs(e.clientY-t.c.clientY)>t.D}function yi(t,e){this.l=t,this.c=e,this.b=[],this.i=[],this.a={}}function gi(t){var e=t.b,o=t.i,i=e[0];return 1==e.length?(e.length=0,o.length=0):(e[0]=e.pop(),o[0]=o.pop(),di(t,0)),e=t.c(i),delete t.a[e],i}function di(t,e){for(var o=t.b,i=t.i,r=o.length,n=o[e],s=i[e],a=e;e<r>>1;){var p=2*e+1,h=2*e+2,p=h<r&&i[h]<i[p]?h:p;o[e]=o[p],i[e]=i[p],e=p}o[e]=n,i[e]=s,vi(t,a,e)}function vi(t,e,o){var i=t.b;t=t.i;for(var r=i[o],n=t[o];e<o;){var s=o-1>>1;if(!(t[s]>n))break;i[o]=i[s],t[o]=t[s],o=s}i[o]=r,t[o]=n}function bi(t){for(var e=t.l,o=t.b,i=t.i,r=0,n=o.length,s=0;s<n;++s){var a=o[s],p=e(a);1/0==p?delete t.a[t.c(a)]:(i[r]=p,o[r++]=a)}for(o.length=r,i.length=r,e=(t.b.length>>1)-1;0<=e;e--)di(t,e)}function mi(e,t){yi.call(this,function(t){return e.apply(null,t)},function(t){return t[0].bb()}),this.v=t,this.j=0,this.g={}}function wi(t,e,o){for(var i,r,n=0;t.j<e&&n<o&&0<t.b.length;)r=(i=gi(t)[0]).bb(),0!==i.getState()||r in t.g||(t.g[r]=!0,++t.j,++n,i.load())}function xi(t){if(void 0!==t)return 0}function Si(t,e){if(void 0!==t)return t+e}function Mi(t,e){return 2<(e=-1===(e=(t=void 0!==e?t.toFixed(e):""+t).indexOf("."))?t.length:e)?t:Array(3-e).join("0")+t}function Pi(t){t=(""+t).split(".");for(var e=["1","3"],o=0;o<Math.max(t.length,e.length);o++){var i=parseInt(t[o]||"0",10),r=parseInt(e[o]||"0",10);if(r<i)return 1;if(i<r)return-1}return 0}function Ai(t,e){return t[0]+=e[0],t[1]+=e[1],t}function Ei(t,e){var o=t[0];t=t[1];var i=e[0],r=e[1];e=i[0];var i=i[1],n=r[0],s=n-e,a=(r=r[1])-i;return o=(o=s||a?(s*(o-e)+a*(t-i))/(s*s+a*a||0):0)<=0?(t=e,i):1<=o?(t=n,r):(t=e+o*s,i+o*a),[t,o]}function Ti(t,e,o){e=L(e+180,360)-180;var i=Math.abs(3600*e);o=o||0;var r=Math.pow(10,o),n=Math.floor(i/3600),s=Math.floor((i-3600*n)/60);return 60<=(i=Math.ceil((i-3600*n-60*s)*r)/r)&&(i=0,s+=1),60<=s&&(s=0,n+=1),n+"° "+Mi(s)+" "+Mi(i,o)+"″"+(e?" "+t.charAt(e<0?1:0):"")}function ji(t,e,o){return t?e.replace("{x}",t[0].toFixed(o)).replace("{y}",t[1].toFixed(o)):""}function Ci(t,e){for(var o=!0,i=t.length-1;0<=i;--i)if(t[i]!=e[i]){o=!1;break}return o}function Li(t,e){var o=Math.cos(e);e=Math.sin(e);var i=t[1]*o+t[0]*e;return t[0]=t[0]*o-t[1]*e,t[1]=i,t}function Ri(t,e){t[0]*=e,t[1]*=e}function Ii(t,e){var o=t[0]-e[0];return o*o+(t=t[1]-e[1])*t}function Ni(t,e){return Math.sqrt(Ii(t,e))}function Fi(t,e){return Ii(t,Ei(t,e))}function ki(t,e){return ji(t,"{x}, {y}",e)}function Di(){return!0}function Oi(){return!1}function Ui(){je.call(this),this.l=V(),this.v=-1,this.f={},this.o=this.g=0}function Gi(t,e,o,i,r,n){for(var s=n||[],a=0;e<o;e+=i){var p=t[e],h=t[e+1];s[a++]=r[0]*p+r[2]*h+r[4],s[a++]=r[1]*p+r[3]*h+r[5]}return n&&s.length!=a&&(s.length=a),s}function Bi(t,e,o,i,r,n,s){for(var a,p=s||[],h=0;e<o;e+=i)for(p[h++]=t[e]+r,p[h++]=t[e+1]+n,a=e+2;a<e+i;++a)p[h++]=t[a];return s&&p.length!=h&&(p.length=h),p}function Xi(){Ui.call(this),this.ja="XY",this.a=2,this.A=null}function Vi(t){var e;return"XY"==t?e=2:"XYZ"==t||"XYM"==t?e=3:"XYZM"==t&&(e=4),e}function Wi(t,e,o){t.a=Vi(e),t.ja=e,t.A=o}function Zi(t,e,o,i){if(e)o=Vi(e);else{for(e=0;e<i;++e){if(!o.length)return t.ja="XY",void(t.a=2);o=o[0]}var r;2==(o=o.length)?r="XY":3==o?r="XYZ":4==o&&(r="XYZM"),e=r}t.ja=e,t.a=o}function Ki(t,e,o,i){for(var r=0,n=t[o-i],s=t[o-i+1];e<o;e+=i)var a=t[e],p=t[e+1],r=r+(s*a-n*p),n=a,s=p;return r/2}function zi(t,e,o,i){for(var r=0,n=0,s=o.length;n<s;++n){var a=o[n],r=r+Ki(t,e,a,i);e=a}return r}function Yi(t,e,o,i,r,n,s){var a=t[e],p=t[e+1],h=t[o]-a,l=t[o+1]-p;if(h||l)if(1<(n=((r-a)*h+(n-p)*l)/(h*h+l*l)))e=o;else if(0<n){for(r=0;r<i;++r)s[r]=f(t[e+r],t[o+r],n);return void(s.length=i)}for(r=0;r<i;++r)s[r]=t[e+r];s.length=i}function Hi(t,e,o,i,r){var n=t[e],s=t[e+1];for(e+=i;e<o;e+=i){var a=t[e],p=t[e+1];r<(n=y(n,s,a,p))&&(r=n),n=a,s=p}return r}function qi(t,e,o,i,r){for(var n=0,s=o.length;n<s;++n){var a=o[n];r=Hi(t,e,a,i,r),e=a}return r}function Ji(t,e,o,i,r,n,s,a,p,h,l){if(e==o)return h;if(!r){var u=y(s,a,t[e],t[e+1]);if(u<h){for(l=0;l<i;++l)p[l]=t[e+l];return p.length=i,u}return h}for(var c=l||[NaN,NaN],f=e+i;f<o;)if(Yi(t,f-i,f,i,s,a,c),(u=y(s,a,c[0],c[1]))<h){for(h=u,l=0;l<i;++l)p[l]=c[l];f+=p.length=i}else f+=i*Math.max((Math.sqrt(u)-Math.sqrt(h))/r|0,1);if(n&&(Yi(t,o-i,e,i,s,a,c),(u=y(s,a,c[0],c[1]))<h)){for(h=u,l=0;l<i;++l)p[l]=c[l];p.length=i}return h}function _i(t,e,o,i,r,n,s,a,p,h,l){l=l||[NaN,NaN];for(var u=0,c=o.length;u<c;++u){var f=o[u];h=Ji(t,e,f,i,r,n,s,a,p,h,l),e=f}return h}function $i(t,e){for(var o=0,i=0,r=e.length;i<r;++i)t[o++]=e[i];return o}function Qi(t,e,o,i){for(var r=0,n=o.length;r<n;++r)for(var s=o[r],a=0;a<i;++a)t[e++]=s[a];return e}function tr(t,e,o,i,r){r=r||[];for(var n=0,s=0,a=o.length;s<a;++s)e=Qi(t,e,o[s],i),r[n++]=e;return r.length=n,r}function er(t,e,o,i,r){r=void 0!==r?r:[];for(var n=0;e<o;e+=i)r[n++]=t.slice(e,e+i);return r.length=n,r}function or(t,e,o,i,r){r=void 0!==r?r:[];for(var n=0,s=0,a=o.length;s<a;++s){var p=o[s];r[n++]=er(t,e,p,i,r[n]),e=p}return r.length=n,r}function ir(t,e,o,i,r,n,s){var a=(o-e)/i;if(a<3){for(;e<o;e+=i)n[s++]=t[e],n[s++]=t[e+1];return s}var p=Array(a);p[0]=1,p[a-1]=1,o=[e,o-i];for(var h=0;0<o.length;){for(var l=o.pop(),u=o.pop(),c=0,f=t[u],y=t[u+1],g=t[l],d=t[l+1],v=u+i;v<l;v+=i){var b=S(t[v],t[v+1],f,y,g,d);c<b&&(h=v,c=b)}r<c&&(p[(h-e)/i]=1,u+i<h&&o.push(u,h),h+i<l&&o.push(h,l))}for(v=0;v<a;++v)p[v]&&(n[s++]=t[e+v*i],n[s++]=t[e+v*i+1]);return s}function rr(t,e,o,i,r,n,s,a){for(var p=0,h=o.length;p<h;++p){var l=o[p];t:{var u=t,c=l,f=i,y=r,g=n,d=s;if(e!=c){var v=y*Math.round(u[e]/y),b=y*Math.round(u[e+1]/y);e+=f,g[d++]=v,g[d++]=b;do{var m=y*Math.round(u[e]/y);if(s=y*Math.round(u[e+1]/y),(e+=f)==c){g[d++]=m,g[d++]=s,s=d;break t}}while(m==v&&s==b);for(;e<c;){var w,x,S,M,P=y*Math.round(u[e]/y),A=y*Math.round(u[e+1]/y);e+=f,P==m&&A==s||((w=m-v)*(M=A-b)==(x=s-b)*(S=P-v)&&(w<0&&S<w||w==S||0<w&&w<S)&&(x<0&&M<x||x==M||0<x&&x<M)||(v=g[d++]=m,b=g[d++]=s),m=P,s=A)}g[d++]=m,g[d++]=s}s=d}a.push(s),e=l}return s}function nr(t,e){Xi.call(this),this.c=this.j=-1,this.ma(t,e)}function sr(t,e,o){Wi(t,e,o),t.s()}function ar(t,e){Xi.call(this),this.ma(t,e)}function pr(t,e,o,i,r,n){for(var s=0,a=t[o-i],p=t[o-i+1];e<o;e+=i){var h=t[e],l=t[e+1];p<=n?n<l&&0<(h-a)*(n-p)-(r-a)*(l-p)&&s++:l<=n&&(h-a)*(n-p)-(r-a)*(l-p)<0&&s--,a=h,p=l}return s}function hr(t,e,o,i,r,n){if(!o.length||!pr(t,e,o[0],i,r,n))return!1;var s;for(e=1,s=o.length;e<s;++e)if(pr(t,o[e-1],o[e],i,r,n))return!1;return!0}function lr(t,e,o,i,r,n,s){for(var a=r[n+1],p=[],h=o[0],l=t[h-i],u=t[h-i+1],c=e;c<h;c+=i){var f=t[c],y=t[c+1];(a<=u&&y<=a||u<=a&&a<=y)&&p.push(l=(a-u)/(y-u)*(f-l)+l),l=f,u=y}for(h=NaN,u=-1/0,p.sort(D),l=p[0],c=1,y=p.length;c<y;++c){var f=p[c],g=Math.abs(f-l);u<g&&(hr(t,e,o,i,l=(l+f)/2,a)&&(h=l,u=g)),l=f}return isNaN(h)&&(h=r[n]),s?(s.push(h,a),s):[h,a]}function ur(t,e,o,i,r,n){for(var s,a=[t[e],t[e+1]],p=[];e+i<o;e+=i){if(p[0]=t[e+i],p[1]=t[e+i+1],s=r.call(n,a,p))return s;a[0]=p[0],a[1]=p[1]}return!1}function cr(t,e,o,i,l){var r=Y(V(),t,e,o,i);return!!nt(l,r)&&(!!(N(l,r)||r[0]>=l[0]&&r[2]<=l[2]||r[1]>=l[1]&&r[3]<=l[3])||ur(t,e,o,i,function(t,e){var o,i,r,n,s,a=!1,p=R(l,t),h=R(l,e);return 1===p||1===h?a=!0:(o=l[0],i=l[1],r=l[2],n=l[3],s=e[0],t=((e=e[1])-t[1])/(s-t[0]),(a=!(a=!(a=2&h&&!(2&p)?o<=(a=s-(e-n)/t)&&a<=r:a)&&4&h&&!(4&p)?i<=(a=e-(s-r)*t)&&a<=n:a)&&8&h&&!(8&p)?o<=(a=s-(e-i)/t)&&a<=r:a)||!(16&h)||16&p||(a=i<=(a=e-(s-o)*t)&&a<=n)),a}))}function fr(t,e,o,i,r){var n=o[0];if(!(cr(t,e,n,i,r)||pr(t,e,n,i,r[0],r[1])||pr(t,e,n,i,r[0],r[3])||pr(t,e,n,i,r[2],r[1])||pr(t,e,n,i,r[2],r[3])))return!1;if(1===o.length)return!0;for(e=1,n=o.length;e<n;++e)if(function(e,o,i,r,t){return!H(t,function(t){return!pr(e,o,i,r,t[0],t[1])})}(t,o[e-1],o[e],i,r))return!1;return!0}function yr(t,e,o,i){for(var r=0,n=t[o-i],s=t[o-i+1];e<o;e+=i)var a=t[e],p=t[e+1],r=r+(a-n)*(p+s),n=a,s=p;return 0<r}function gr(t,e,o,i){var r=0;i=void 0!==i&&i;for(var n=0,s=e.length;n<s;++n){var a=e[n],r=yr(t,r,a,o);if(n){if(i&&!r||!i&&r)return}else if(i&&r||!i&&!r)return;r=a}return 1}function dr(t,e,o,i,r){r=void 0!==r&&r;for(var n=0,s=o.length;n<s;++n){var a=o[n],p=yr(t,e,a,i);if(n?r&&!p||!r&&p:r&&p||!r&&!p)for(var p=t,h=a,l=i;e<h-l;){for(var u=0;u<l;++u){var c=p[e+u];p[e+u]=p[h-l+u],p[h-l+u]=c}e+=l,h-=l}e=a}return e}function vr(t,e,o,i){for(var r=0,n=0,s=e.length;n<s;++n)r=dr(t,r,e[n],o,i);return r}function br(t,e){Xi.call(this),this.c=[],this.u=-1,this.D=null,this.I=this.C=this.B=-1,this.j=null,this.ma(t,e)}function mr(t){var e;return t.u!=t.i&&(e=$(t.G()),t.D=lr(t.ec(),0,t.c,t.a,e,0),t.u=t.i),t.D}function wr(t,e,o,i){var r,n=i||32;for(i=[],r=0;r<n;++r)c(i,t.offset(e,o,2*Math.PI*r/n));return i.push(i[0],i[1]),(t=new br(null)).ba("XY",i,[i.length]),t}function xr(t){var e=t[0],o=t[1],i=t[2],e=[e,o,e,t=t[3],i,t,i,o,e,o];return(o=new br(null)).ba("XY",e,[e.length]),o}function Sr(t,e,o){for(var i=e||32,r=t.qa(),n=new br(null,e=t.ja),i=r*(i+1),r=Array(i),s=0;s<i;s++)r[s]=0;return n.ba(e,r,[r.length]),Mr(n,t.wa(),t.pd(),o),n}function Mr(t,e,o,i){var r=t.ga(),n=t.ja,s=t.qa(),a=t.Bb(),p=r.length/s-1;i=i||0;for(var h,l,u=0;u<=p;++u)l=u*s,h=i+2*L(u,p)*Math.PI/p,r[l]=e[0]+o*Math.cos(h),r[1+l]=e[1]+o*Math.sin(h);t.ba(n,r,a)}function Pr(t){je.call(this),t=ht({},t),this.o=[0,0],this.c=[],this.wf=this.wf.bind(this),this.v=Ot(t.projection),Ar(this,t)}function Ar(t,e){var o={};o.center=void 0!==e.center?e.center:null;var i,r,n,s,a,p,h,l,u,c,f,y=void 0!==e.minZoom?e.minZoom:0,g=void 0!==e.maxZoom?e.maxZoom:28,d=void 0!==e.zoomFactor?e.zoomFactor:2;g=void 0!==e.resolutions?(i=(g=e.resolutions)[0],r=g[g.length-1],l=g,function(t,e,o){if(void 0!==t)return(t=x((t=v(l,t,o))+e,0,l.length-1))!=(e=Math.floor(t))&&e<l.length-1?l[e]/Math.pow(l[e]/l[e+1],t-e):l[e]}):(s=(n=((r=(i=Ot(e.projection)).G())?Math.max(rt(r),tt(r)):360*gt.degrees/i.sc())/256/Math.pow(2,0))/Math.pow(2,28),void 0!==(i=e.maxResolution)?y=0:i=n/Math.pow(d,y),void 0===(r=e.minResolution)&&(r=void 0!==e.maxZoom?void 0!==e.maxResolution?i/Math.pow(d,g):n/Math.pow(d,g):s),g=y+Math.floor(Math.log(i/r)/Math.log(d)),r=i/Math.pow(d,g-y),a=d,p=i,h=g-y,function(t,e,o){if(void 0!==t)return t=Math.max(Math.floor(Math.log(p/t)/Math.log(a)+(-o/2+.5))+e,0),void 0!==h&&(t=Math.min(t,h)),p/Math.pow(a,t)}),t.a=i,t.f=r,t.C=d,t.j=e.resolutions,t.l=y,y=void 0===e.enableRotation||e.enableRotation?void 0===(y=e.constrainRotation)||!0===y?(c=M(5),function(t,e){if(void 0!==t)return Math.abs(t+e)<=c?0:t+e}):!1!==y&&"number"==typeof y?(d=y,u=2*Math.PI/d,function(t,e){if(void 0!==t)return Math.floor((t+e)/u+.5)*u}):Si:xi,t.g={center:void 0!==e.extent?(f=e.extent,function(t){if(t)return[x(t[0],f[0],f[2]),x(t[1],f[1],f[3])]}):le,resolution:g,rotation:y},void 0!==e.resolution?o.resolution=e.resolution:void 0!==e.zoom&&(o.resolution=t.constrainResolution(t.a,e.zoom-t.l)),o.rotation=void 0!==e.rotation?e.rotation:0,t.H(o),t.D=e}function Er(t,e){var o=ht({},t.D);return void 0!==o.resolution?o.resolution=t.Pa():o.zoom=t.Hh(),o.center=t.wa(),o.rotation=t.Qa(),ht({},o,e)}function Tr(t,e,o){var i,r=t.wa();return void 0!==r&&(Li(i=[r[0]-o[0],r[1]-o[1]],e-t.Qa()),Ai(i,o)),i}function jr(t,e,o){var i,r=t.wa();return t=t.Pa(),i=void 0!==r&&void 0!==t?[o[0]-e*(o[0]-r[0])/t,o[1]-e*(o[1]-r[1])/t]:i}function Cr(t){var e=[100,100];return t='.ol-viewport[data-view="'+G(t)+'"]',(t=document.querySelector(t))&&(t=getComputedStyle(t),e[0]=parseInt(t.width,10),e[1]=parseInt(t.height,10)),e}function Lr(t,e){return void 0!==e?(e[0]=t.o[0],e[1]=t.o[1],e):t.o.slice()}function Rr(t){return t.wa()&&void 0!==t.Pa()}function Ir(t,e,o){t.o[e]+=o,t.s()}function Nr(t,e,o){this.f=t,this.c=e,this.g=o,this.b=[],this.a=this.i=0}function Fr(t){t.b.length=0,t.i=0,t.a=0}function kr(t){je.call(this),this.v=null,this.Ha(!0),this.handleEvent=t.handleEvent}function Dr(t,e,o,i){var r,n;void 0!==e&&(r=t.Qa(),n=t.wa(),void 0!==r&&n&&0<i?t.animate({rotation:e,anchor:o,duration:i,easing:eo}):t.rotate(e,o))}function Or(t,e,o,i){var r,n=t.Pa();e=t.constrainResolution(n,e,0),o&&void 0!==e&&e!==n&&(r=t.wa(),o=jr(t,e,o),o=t.Ec(o),o=[(e*r[0]-n*o[0])/(e-n),(e*r[1]-n*o[1])/(e-n)]),Ur(t,e,o,i)}function Ur(t,e,o,i){var r,n;e&&(r=t.Pa(),n=t.wa(),void 0!==r&&n&&e!==r&&i?t.animate({resolution:e,anchor:o,duration:i,easing:eo}):(o&&(o=jr(t,e,o),t.ob(o)),t.Vc(e)))}function Gr(t){this.a=(t=t||{}).delta||1,kr.call(this,{handleEvent:Br}),this.g=void 0!==t.duration?t.duration:250}function Br(t){var e=!1,o=t.originalEvent;return"dblclick"==t.type&&(e=t.coordinate,o=o.shiftKey?-this.a:this.a,Or(t.map.Z(),o,e,this.g),t.preventDefault(),e=!0),!e}function Xr(t){return(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey}function Vr(t){return!((t=t.originalEvent).button||To&&jo&&t.ctrlKey)}function Wr(t){return"pointermove"==t.type}function Zr(t){return"singleclick"==t.type}function Kr(t){return!(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey}function zr(t){return!(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey}function Yr(t){return"INPUT"!==(t=t.originalEvent.target.tagName)&&"SELECT"!==t&&"TEXTAREA"!==t}function Hr(t){return O(t.b,56),"mouse"==t.b.pointerType}function qr(t){return(t=t.b).isPrimary&&0===t.button}function Jr(t){kr.call(this,{handleEvent:(t=t||{}).handleEvent||$r}),this.yf=t.handleDownEvent||Oi,this.If=t.handleDragEvent||w,this.Jf=t.handleMoveEvent||w,this.sk=t.handleUpEvent||Oi,this.D=!1,this.na={},this.o=[]}function _r(t){for(var e=t.length,o=0,i=0,r=0;r<e;r++)o+=t[r].clientX,i+=t[r].clientY;return[o/e,i/e]}function $r(t){if(!(t instanceof Wo))return!0;var e=!1,o=t.type;return"pointerdown"!==o&&"pointerdrag"!==o&&"pointerup"!==o||(o=t.b,"pointerup"==t.type?delete this.na[o.pointerId]:("pointerdown"==t.type||o.pointerId in this.na)&&(this.na[o.pointerId]=o),this.o=ut(this.na)),this.D?"pointerdrag"==t.type?this.If(t):"pointerup"==t.type&&(this.D=this.sk(t)&&0<this.o.length):"pointerdown"==t.type?(this.D=t=this.yf(t),e=this.Xc(t)):"pointermove"==t.type&&this.Jf(t),!e}function Qr(t){Jr.call(this,{handleDownEvent:on,handleDragEvent:tn,handleUpEvent:en}),this.a=(t=t||{}).kinetic,this.g=null,this.u=t.condition||Kr,this.j=!1}function tn(t){var e,o,i=this.o,r=_r(i);i.length==this.l?(this.a&&this.a.b.push(r[0],r[1],Date.now()),this.g&&(Ri(o=[o=this.g[0]-r[0],r[1]-this.g[1]],(e=(t=t.map.Z()).getState()).resolution),Li(o,e.rotation),Ai(o,e.center),o=t.Ec(o),t.ob(o))):this.a&&Fr(this.a),this.g=r,this.l=i.length}function en(t){var e,o,i,r=t.map;return t=r.Z(),this.o.length?(this.a&&Fr(this.a),!(this.g=null)):(!this.j&&this.a&&function(t){if(!(t.b.length<6)){var e=Date.now()-t.g,o=t.b.length-3;if(!(t.b[2+o]<e)){for(var i=o-3;0<i&&t.b[i+2]>e;)i-=3;if(!((e=t.b[2+o]-t.b[i+2])<1e3/60)){var r=t.b[o]-t.b[i],o=t.b[1+o]-t.b[i+1];return t.i=Math.atan2(o,r),t.a=Math.sqrt(r*r+o*o)/e,t.a>t.c}}}}(this.a)&&(e=((e=this.a).c-e.a)/e.f,o=this.a.i,i=t.wa(),i=r.Ja(i),r=r.Wa([i[0]-e*Math.cos(o),i[1]-e*Math.sin(o)]),t.animate({center:t.Ec(r),duration:500,easing:eo})),Ir(t,1,-1),!1)}function on(t){if(0<this.o.length&&this.u(t)){var e=t.map.Z();return this.g=null,this.D||Ir(e,1,1),Lr(e)[0]&&e.ob(t.frameState.viewState.center),this.a&&Fr(this.a),this.j=1<this.o.length,!0}return!1}function rn(t){t=t||{},Jr.call(this,{handleDownEvent:an,handleDragEvent:nn,handleUpEvent:sn}),this.g=t.condition||Xr,this.a=void 0,this.j=void 0!==t.duration?t.duration:250}function nn(t){var e,o,i;!Hr(t)||(e=(o=t.map).Z()).g.rotation!==xi&&(o=o.Ob(),t=t.pixel,t=Math.atan2(o[1]/2-t[1],t[0]-o[0]/2),void 0!==this.a&&(o=t-this.a,i=e.Qa(),Dr(e,i-o)),this.a=t)}function sn(t){if(!Hr(t))return!0;Ir(t=t.map.Z(),1,-1);var e=t.Qa(),o=this.j,e=t.constrainRotation(e,0);return Dr(t,e,void 0,o),!1}function an(t){return!!(Hr(t)&&Vr(t)&&this.g(t))&&(Ir(t.map.Z(),1,1),!(this.a=void 0))}function pn(t){this.Gc=null,this.a=document.createElement("div"),this.a.style.position="absolute",this.a.className="ol-box "+t,this.i=this.c=this.b=null}function hn(t){var e=t.c,o=t.i;(t=t.a.style).left=Math.min(e[0],o[0])+"px",t.top=Math.min(e[1],o[1])+"px",t.width=Math.abs(o[0]-e[0])+"px",t.height=Math.abs(o[1]-e[1])+"px"}function ln(t){var e=t.c,o=t.i;(e=[e,[e[0],o[1]],o,[o[0],e[1]]].map(t.b.Wa,t.b))[4]=e[0].slice(),t.Gc?t.Gc.ma([e]):t.Gc=new br([e])}function un(t){Jr.call(this,{handleDownEvent:gn,handleDragEvent:fn,handleUpEvent:yn}),this.a=new pn((t=t||{}).className||"ol-dragbox"),this.u=void 0!==t.minArea?t.minArea:64,this.g=null,this.C=t.condition||Di,this.l=t.boxEndCondition||cn}function cn(t,e,o){return(t=o[0]-e[0])*t+(e=o[1]-e[1])*e>=this.u}function fn(t){var e,o;Hr(t)&&(e=this.a,o=t.pixel,e.c=this.g,e.i=o,ln(e),hn(e),this.b(new mn(vn,t.coordinate,t)))}function yn(t){return!Hr(t)||(this.a.setMap(null),this.l(t,this.g,t.pixel)&&(this.j(t),this.b(new mn(bn,t.coordinate,t))),!1)}function gn(t){if(Hr(t)&&Vr(t)&&this.C(t)){this.g=t.pixel,this.a.setMap(t.map);var e=this.a,o=this.g;return e.c=this.g,e.i=o,ln(e),hn(e),this.b(new mn(dn,t.coordinate,t)),!0}return!1}e(ui,Ae),(Mu=ui.prototype).Jh=function(t){ci(this,t);var e,o=new Wo("pointerup",this.i,t);this.b(o),this.o||t.button||(e=(o=this).c,t=new Wo("click",o.i,e),o.b(t),o.j?(clearTimeout(o.j),o.j=0,t=new Wo("dblclick",o.i,e),o.b(t)):o.j=setTimeout(function(){this.j=0;var t=new Wo("singleclick",this.i,e);this.b(t)}.bind(o),250)),this.S||(this.f.forEach(me),this.f.length=0,this.o=!1,this.c=null,Se(this.a),this.a=null)},Mu.Ol=function(t){ci(this,t);var e=new Wo("pointerdown",this.i,t);this.b(e),this.c=t,this.f.length||(this.a=new oi(document),this.f.push(de(this.a,"pointermove",this.Hm,this),de(this.a,"pointerup",this.Jh,this),de(this.g,"pointercancel",this.Jh,this)))},Mu.Hm=function(t){var e;fi(this,t)&&(this.o=!0,e=new Wo("pointerdrag",this.i,t,this.o),this.b(e)),t.preventDefault()},Mu.Lp=function(t){this.b(new Wo(t.type,this.i,t,!(!this.c||!fi(this,t))))},Mu.ka=function(){this.v&&(me(this.v),this.v=null),this.l&&(me(this.l),this.l=null),this.f.forEach(me),this.f.length=0,this.a&&(Se(this.a),this.a=null),this.g&&(Se(this.g),this.g=null),Ae.prototype.ka.call(this)},yi.prototype.clear=function(){this.b.length=0,this.i.length=0,lt(this.a)},yi.prototype.f=function(t){O(!(this.c(t)in this.a),31);var e=this.l(t);return 1/0!=e&&(this.b.push(t),this.i.push(e),this.a[this.c(t)]=!0,vi(this,0,this.b.length-1),!0)},e(mi,yi),mi.prototype.f=function(t){var e=yi.prototype.f.call(this,t);return e&&de(t[0],"change",this.o,this),e},mi.prototype.o=function(t){var e=(t=t.target).getState();2!==e&&3!==e&&4!==e&&5!==e||(be(t,"change",this.o,this),(t=t.bb())in this.g&&(delete this.g[t],--this.j),this.v())},e(Ui,je),(Mu=Ui.prototype).Ab=function(t,e){return this.Kb(t[0],t[1],e=e||[NaN,NaN],1/0),e},Mu.sb=function(t){return this.Mc(t[0],t[1])},Mu.Mc=Oi,Mu.G=function(t){this.v!=this.i&&(this.l=this.se(this.l),this.v=this.i);var e=this.l;return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3]):t=e,t},Mu.Rb=function(t){return this.Vd(t*t)},Mu.tb=function(t,e){return this.Dc(Vt(t,e)),this},e(Xi,Ui),(Mu=Xi.prototype).Mc=Oi,Mu.se=function(t){return W(this.A,0,this.A.length,this.a,t)},Mu.ac=function(){return this.A.slice(0,this.a)},Mu.ga=function(){return this.A},Mu.bc=function(){return this.A.slice(this.A.length-this.a)},Mu.cc=function(){return this.ja},Mu.Vd=function(t){if(this.o!=this.i&&(lt(this.f),this.g=0,this.o=this.i),t<0||this.g&&t<=this.g)return this;var e=t.toString();if(this.f.hasOwnProperty(e))return this.f[e];var o=this.hd(t);return o.ga().length<this.A.length?this.f[e]=o:(this.g=t,this)},Mu.hd=function(){return this},Mu.qa=function(){return this.a},Mu.Dc=function(t){this.A&&(t(this.A,this.A,this.a),this.s())},Mu.rotate=function(t,e){var o=this.ga();if(o){var i=o.length,r=this.qa(),n=o||[],s=Math.cos(t);t=Math.sin(t);var a=e[0];e=e[1];for(var p=0,h=0;h<i;h+=r){var l=o[h]-a,u=o[h+1]-e;for(n[p++]=a+l*s-u*t,n[p++]=e+l*t+u*s,l=h+2;l<h+r;++l)n[p++]=o[l]}o&&n.length!=p&&(n.length=p),this.s()}},Mu.scale=function(t,e,o){var i=e;if(void 0===i&&(i=t),a=(a=o)||$(this.G()),o=this.ga()){e=o.length;for(var r=this.qa(),n=o||[],s=a[0],a=a[1],p=0,h=0;h<e;h+=r){var l=o[h]-s,u=o[h+1]-a;for(n[p++]=s+t*l,n[p++]=a+i*u,l=h+2;l<h+r;++l)n[p++]=o[l]}o&&n.length!=p&&(n.length=p),this.s()}},Mu.translate=function(t,e){var o=this.ga();o&&(Bi(o,0,o.length,this.qa(),t,e,o),this.s())},e(nr,Xi),(Mu=nr.prototype).clone=function(){var t=new nr(null);return sr(t,this.ja,this.A.slice()),t},Mu.Kb=function(t,e,o,i){return i<E(this.G(),t,e)?i:(this.c!=this.i&&(this.j=Math.sqrt(Hi(this.A,0,this.A.length,this.a,0)),this.c=this.i),Ji(this.A,0,this.A.length,this.a,this.j,!0,t,e,o,i))},Mu.qn=function(){return Ki(this.A,0,this.A.length,this.a)},Mu.X=function(){return er(this.A,0,this.A.length,this.a)},Mu.hd=function(t){var e=[];return e.length=ir(this.A,0,this.A.length,this.a,t,e,0),sr(t=new nr(null),"XY",e),t},Mu.U=function(){return"LinearRing"},Mu.Xa=function(){},Mu.ma=function(t,e){t?(Zi(this,e,t,1),this.A||(this.A=[]),this.A.length=Qi(this.A,0,t,this.a),this.s()):sr(this,"XY",null)},e(ar,Xi),(Mu=ar.prototype).clone=function(){var t=new ar(null);return t.ba(this.ja,this.A.slice()),t},Mu.Kb=function(t,e,o,i){var r=this.A;if((t=y(t,e,r[0],r[1]))<i){for(i=this.a,e=0;e<i;++e)o[e]=r[e];return o.length=i,t}return i},Mu.X=function(){return this.A?this.A.slice():[]},Mu.se=function(t){return k(this.A,t)},Mu.U=function(){return"Point"},Mu.Xa=function(t){return j(t,this.A[0],this.A[1])},Mu.ma=function(t,e){t?(Zi(this,e,t,0),this.A||(this.A=[]),this.A.length=$i(this.A,t),this.s()):this.ba("XY",null)},Mu.ba=function(t,e){Wi(this,t,e),this.s()},e(br,Xi),(Mu=br.prototype).pk=function(t){this.A?c(this.A,t.ga()):this.A=t.ga().slice(),this.c.push(this.A.length),this.s()},Mu.clone=function(){var t=new br(null);return t.ba(this.ja,this.A.slice(),this.c.slice()),t},Mu.Kb=function(t,e,o,i){return i<E(this.G(),t,e)?i:(this.C!=this.i&&(this.B=Math.sqrt(qi(this.A,0,this.c,this.a,0)),this.C=this.i),_i(this.A,0,this.c,this.a,this.B,!0,t,e,o,i))},Mu.Mc=function(t,e){return hr(this.ec(),0,this.c,this.a,t,e)},Mu.tn=function(){return zi(this.ec(),0,this.c,this.a)},Mu.X=function(t){var e;return void 0!==t?dr(e=this.ec().slice(),0,this.c,this.a,t):e=this.A,or(e,0,this.c,this.a)},Mu.Bb=function(){return this.c},Mu.Tk=function(){return new ar(mr(this))},Mu.Zk=function(){return this.c.length},Mu.Ch=function(t){if(t<0||this.c.length<=t)return null;var e=new nr(null);return sr(e,this.ja,this.A.slice(t?this.c[t-1]:0,this.c[t])),e},Mu.Sd=function(){for(var t=this.ja,e=this.A,o=this.c,i=[],r=0,n=0,s=o.length;n<s;++n){var a=o[n],p=new nr(null);sr(p,t,e.slice(r,a)),i.push(p),r=a}return i},Mu.ec=function(){var t;return this.I!=this.i&&(gr(t=this.A,this.c,this.a)?this.j=t:(this.j=t.slice(),this.j.length=dr(this.j,0,this.c,this.a)),this.I=this.i),this.j},Mu.hd=function(t){var e=[],o=[];return e.length=rr(this.A,0,this.c,this.a,Math.sqrt(t),e,0,o),(t=new br(null)).ba("XY",e,o),t},Mu.U=function(){return"Polygon"},Mu.Xa=function(t){return fr(this.ec(),0,this.c,this.a,t)},Mu.ma=function(t,e){t?(Zi(this,e,t,2),this.A||(this.A=[]),t=tr(this.A,0,t,this.a,this.c),this.A.length=t.length?t[t.length-1]:0,this.s()):this.ba("XY",null,this.c)},Mu.ba=function(t,e,o){Wi(this,t,e),this.c=o,this.s()},e(Pr,je),(Mu=Pr.prototype).animate=function(t){var e,o=Date.now(),i=this.wa().slice(),r=this.Pa(),n=this.Qa(),s=arguments.length;1<s&&"function"==typeof arguments[s-1]&&(e=arguments[s-1],--s);for(var a=[],p=0;p<s;++p){var h=arguments[p],l={start:o,complete:!1,anchor:h.anchor,duration:void 0!==h.duration?h.duration:1e3,easing:h.easing||oo};h.center&&(l.Rg=i,l.Tg=h.center,i=l.Tg),void 0!==h.zoom?(l.tf=r,l.zd=this.constrainResolution(this.a,h.zoom-this.l,0),r=l.zd):h.resolution&&(l.tf=r,l.zd=h.resolution,r=l.zd),void 0!==h.rotation&&(l.Sg=n,l.uf=h.rotation,n=l.uf),l.callback=e,o+=l.duration,a.push(l)}this.c.push(a),Ir(this,0,1),this.wf()},Mu.Ic=function(){return 0<Lr(this)[0]},Mu.Rk=function(){return 0<Lr(this)[1]},Mu.ed=function(){Ir(this,0,-Lr(this)[0]);for(var t=0,e=this.c.length;t<e;++t){var o=this.c[t];o[0].callback&&o[0].callback(!1)}this.c.length=0},Mu.wf=function(){if(void 0!==this.u&&(cancelAnimationFrame(this.u),this.u=void 0),this.Ic()){for(var t=Date.now(),e=!1,o=this.c.length-1;0<=o;--o){for(var i=this.c[o],r=!0,n=0,s=i.length;n<s;++n){var a=i[n];if(!a.complete){var p,h,e=t-a.start;if(1<=(e=0<a.duration?e/a.duration:1)?(a.complete=!0,e=1):r=!1,e=a.easing(e),a.Rg&&(p=a.Rg[0],h=a.Rg[1],this.set("center",[p+e*(a.Tg[0]-p),h+e*(a.Tg[1]-h)])),a.tf&&a.zd&&(p=1===e?a.zd:a.tf+e*(a.zd-a.tf),a.anchor&&this.set("center",jr(this,p,a.anchor)),this.set("resolution",p)),void 0!==a.Sg&&void 0!==a.uf&&(e=1===e?a.uf:a.Sg+e*(a.uf-a.Sg),a.anchor&&this.set("center",Tr(this,e,a.anchor)),this.set("rotation",e)),e=!0,!a.complete)break}}r&&(this.c[o]=null,Ir(this,0,-1),(i=i[0].callback)&&i(!0))}this.c=this.c.filter(Boolean),e&&void 0===this.u&&(this.u=requestAnimationFrame(this.wf))}},Mu.Ec=function(t){return this.g.center(t)},Mu.constrainResolution=function(t,e,o){return this.g.resolution(t,e||0,o||0)},Mu.constrainRotation=function(t,e){return this.g.rotation(t,e||0)},Mu.wa=function(){return this.get("center")},Mu.dd=function(t){t=t||Cr(this);var e=this.wa();O(e,1);var o=this.Pa();O(void 0!==o,2);var i=this.Qa();return O(void 0!==i,3),Q(e,o,i,t)},Mu.Nm=function(){return this.a},Mu.Pm=function(){return this.f},Mu.Om=function(){return this.Ce(this.f)},Mu.eq=function(t){Ar(this,Er(this,{maxZoom:t}))},Mu.Qm=function(){return this.Ce(this.a)},Mu.fq=function(t){Ar(this,Er(this,{minZoom:t}))},Mu.Rm=function(){return this.v},Mu.Pa=function(){return this.get("resolution")},Mu.Sm=function(){return this.j},Mu.ze=function(t,e){return e=e||Cr(this),Math.max(rt(t)/e[0],tt(t)/e[1])},Mu.Qa=function(){return this.get("rotation")},Mu.getState=function(){var t=this.wa(),e=this.v,o=this.Pa(),i=this.Qa();return{center:t.slice(),projection:void 0!==e?e:null,resolution:o,rotation:i}},Mu.Hh=function(){var t,e=this.Pa();return t=void 0!==e?this.Ce(e):t},Mu.Ce=function(t){if(t>=this.f&&t<=this.a){var e=this.l||0;if(this.j){if(e+=i=v(this.j,t,1),i==this.j.length-1)return e;var o=this.j[i],i=o/this.j[i+1]}else o=this.a,i=this.C;e+=Math.log(o/t)/Math.log(i)}return e},Mu.Qf=function(t,e){var o=(o=(e=e||{}).size)||Cr(this);t instanceof Xi?"Circle"===t.U()?(f=xr(t=t.G())).rotate(this.Qa(),$(t)):f=t:(O(Array.isArray(t),24),O(!st(t),25),f=xr(t));var i=e.padding||[0,0,0,0],r=void 0===e.constrainResolution||e.constrainResolution,n=void 0!==e.nearest&&e.nearest,s=void 0!==e.minResolution?e.minResolution:void 0!==e.maxZoom?this.constrainResolution(this.a,e.maxZoom-this.l,0):0,a=f.ga(),p=this.Qa();t=Math.cos(-p);for(var p=Math.sin(-p),h=1/0,l=1/0,u=-1/0,c=-1/0,f=f.qa(),y=0,g=a.length;y<g;y+=f)var d=a[y]*t-a[y+1]*p,v=a[y]*p+a[y+1]*t,h=Math.min(h,d),l=Math.min(l,v),u=Math.max(u,d),c=Math.max(c,v);o=this.ze([h,l,u,c],[o[0]-i[1]-i[3],o[1]-i[0]-i[2]]),o=isNaN(o)?s:Math.max(o,s),r&&(s=this.constrainResolution(o,0,0),o=s=!n&&s<o?this.constrainResolution(s,-1,0):s),t=[(s=(h+u)/2+(i[1]-i[3])/2*o)*t-(i=(l+c)/2+(i[0]-i[2])/2*o)*(p=-p),i*t+s*p],i=e.callback||w,void 0!==e.duration?this.animate({resolution:o,center:t,duration:e.duration,easing:e.easing},i):(this.Vc(o),this.ob(t),setTimeout(i.bind(void 0,!0),0))},Mu.uk=function(t,e,o){var i=this.Qa(),r=Math.cos(-i),i=Math.sin(-i),n=t[0]*r-t[1]*i;t=t[1]*r+t[0]*i;var s=this.Pa(),n=n+(e[0]/2-o[0])*s;t+=(o[1]-e[1]/2)*s,this.ob([n*r-t*(i=-i),t*r+n*i])},Mu.rotate=function(t,e){void 0!==e&&(e=Tr(this,t,e),this.ob(e)),this.Oe(t)},Mu.ob=function(t){this.set("center",t),this.Ic()&&this.ed()},Mu.Vc=function(t){this.set("resolution",t),this.Ic()&&this.ed()},Mu.Oe=function(t){this.set("rotation",t),this.Ic()&&this.ed()},Mu.lq=function(t){t=this.constrainResolution(this.a,t-this.l,0),this.Vc(t)},e(kr,je),kr.prototype.c=function(){return this.get("active")},kr.prototype.f=function(){return this.v},kr.prototype.Ha=function(t){this.set("active",t)},kr.prototype.setMap=function(t){this.v=t},e(Gr,kr),e(Jr,kr),Jr.prototype.Xc=function(t){return t},e(Qr,Jr),Qr.prototype.Xc=Oi,e(rn,Jr),rn.prototype.Xc=Oi,e(pn,xe),pn.prototype.ka=function(){this.setMap(null)},pn.prototype.setMap=function(t){var e;this.b&&(this.b.C.removeChild(this.a),(e=this.a.style).left=e.top=e.width=e.height="inherit"),(this.b=t)&&this.b.C.appendChild(this.a)},pn.prototype.V=function(){return this.Gc},e(un,Jr),un.prototype.V=function(){return this.a.V()},un.prototype.j=w;var dn="boxstart",vn="boxdrag",bn="boxend";function mn(t,e,o){Me.call(this,t),this.coordinate=e,this.mapBrowserEvent=o}function wn(t){var e=(t=t||{}).condition||zr;this.B=void 0!==t.duration?t.duration:200,this.I=void 0!==t.out&&t.out,un.call(this,{condition:e,className:t.className||"ol-dragzoom"})}function xn(t){kr.call(this,{handleEvent:Sn}),t=t||{},this.a=function(t){return Kr(t)&&Yr(t)},this.g=t.condition||this.a,this.j=void 0!==t.duration?t.duration:100,this.o=void 0!==t.pixelDelta?t.pixelDelta:128}function Sn(t){var e,o,i,r,n=!1;return"keydown"==t.type&&(e=t.originalEvent.keyCode,!this.g(t)||40!=e&&37!=e&&39!=e&&38!=e||(o=(n=t.map.Z()).Pa()*this.o,r=i=0,40==e?r=-o:37==e?i=-o:39==e?i=o:r=o,Li(o=[i,r],n.Qa()),e=this.j,(i=n.wa())&&(o=n.Ec([i[0]+o[0],i[1]+o[1]]),e?n.animate({duration:e,easing:io,center:o}):n.ob(o)),t.preventDefault(),n=!0)),!n}function Mn(t){kr.call(this,{handleEvent:Pn}),this.g=(t=t||{}).condition||Yr,this.a=t.delta||1,this.j=void 0!==t.duration?t.duration:100}function Pn(t){var e,o=!1;return"keydown"!=t.type&&"keypress"!=t.type||(e=t.originalEvent.charCode,!this.g(t)||43!=e&&45!=e||(o=43==e?this.a:-this.a,Or(e=t.map.Z(),o,void 0,this.j),t.preventDefault(),o=!0)),!o}function An(t){kr.call(this,{handleEvent:En}),t=t||{},this.j=0,this.D=void 0!==t.duration?t.duration:250,this.na=void 0!==t.timeout?t.timeout:80,this.C=void 0===t.useAnchor||t.useAnchor,this.R=t.constrainResolution||!1,this.a=null,this.l=this.o=this.u=this.g=void 0}function En(t){if("wheel"!==(o=t.type)&&"mousewheel"!==o)return!0;t.preventDefault();var e,o=t.map,i=t.originalEvent;if(this.C&&(this.a=t.coordinate),"wheel"==t.type?(e=i.deltaY,Ao&&i.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(e/=Co),i.deltaMode===WheelEvent.DOM_DELTA_LINE&&(e*=40)):"mousewheel"==t.type&&(e=-i.wheelDeltaY,Eo&&(e/=3)),0===e)return!1;if(t=Date.now(),void 0===this.g&&(this.g=t),(!this.o||400<t-this.g)&&(this.o=Math.abs(e)<4?Tn:jn),this.o!==Tn)return this.j+=e,e=Math.max(this.na-(t-this.g),0),clearTimeout(this.u),this.u=setTimeout(this.I.bind(this,o),e),!1;o=o.Z(),this.l?clearTimeout(this.l):Ir(o,1,1),this.l=setTimeout(this.B.bind(this),400);var r,i=o.Pa()*Math.pow(2,e/300),n=o.f,s=o.a,a=0;return i<n?(i=Math.max(i,n/1.5),a=1):s<i&&(i=Math.min(i,1.5*s),a=-1),this.a&&(r=jr(o,i,this.a),o.ob(o.Ec(r))),o.Vc(i),!a&&this.R&&o.animate({resolution:o.constrainResolution(i,0<e?-1:1),easing:eo,anchor:this.a,duration:this.D}),0<a?o.animate({resolution:n,easing:eo,anchor:this.a,duration:500}):a<0&&o.animate({resolution:s,easing:eo,anchor:this.a,duration:500}),this.g=t,!1}e(mn,Me),e(wn,un),wn.prototype.j=function(){var t=(r=this.v).Z(),e=r.Ob(),o=this.V().G();if(this.I){for(var i=t.dd(e),o=[r.Ja(J(o)),r.Ja(it(o))],r=I(void 0),n=0,s=o.length;n<s;++n)z(r,o[n]);at(i,1/(o=t.ze(r,e))),o=i}e=t.constrainResolution(t.ze(o,e)),i=$(o),i=t.Ec(i),t.animate({resolution:e,center:i,duration:this.B,easing:eo})},e(xn,kr),e(Mn,kr),e(An,kr),An.prototype.B=function(){this.l=void 0,Ir(this.v.Z(),1,-1)},An.prototype.I=function(t){(t=t.Z()).Ic()&&t.ed(),Or(t,-x(this.j,-1,1),this.a,this.D),this.o=void 0,this.j=0,this.a=null,this.u=this.g=void 0},An.prototype.T=function(t){(this.C=t)||(this.a=null)};var Tn="trackpad",jn="wheel";function Cn(t){Jr.call(this,{handleDownEvent:In,handleDragEvent:Ln,handleUpEvent:Rn}),t=t||{},this.g=null,this.j=void 0,this.a=!1,this.l=0,this.C=void 0!==t.threshold?t.threshold:.3,this.u=void 0!==t.duration?t.duration:250}function Ln(t){var e,o=0,i=this.o[0],r=this.o[1],i=Math.atan2(r.clientY-i.clientY,r.clientX-i.clientX);void 0!==this.j&&(o=i-this.j,this.l+=o,!this.a&&Math.abs(this.l)>this.C&&(this.a=!0)),this.j=i,(i=(t=t.map).Z()).g.rotation!==xi&&(r=t.a.getBoundingClientRect(),(e=_r(this.o))[0]-=r.left,e[1]-=r.top,this.g=t.Wa(e),this.a&&(r=i.Qa(),t.render(),Dr(i,r+o,this.g)))}function Rn(t){var e,o,i;return!(this.o.length<2)||(Ir(t=t.map.Z(),1,-1),this.a&&(i=t.Qa(),e=this.g,o=this.u,i=t.constrainRotation(i,0),Dr(t,i,e,o)),!1)}function In(t){return 2<=this.o.length&&(t=t.map,this.g=null,this.j=void 0,this.a=!1,this.l=0,this.D||Ir(t.Z(),1,1),!0)}function Nn(t){Jr.call(this,{handleDownEvent:Dn,handleDragEvent:Fn,handleUpEvent:kn}),this.l=(t=t||{}).constrainResolution||!1,this.g=null,this.u=void 0!==t.duration?t.duration:400,this.a=void 0,this.j=1}function Fn(t){var e=1,o=this.o[0],i=this.o[1],r=o.clientX-i.clientX,o=o.clientY-i.clientY,r=Math.sqrt(r*r+o*o);void 0!==this.a&&(e=this.a/r),this.a=r;var i=(r=(t=t.map).Z()).Pa(),n=r.a,s=r.f;n<(o=i*e)?(e=n/i,o=n):o<s&&(e=s/i,o=s),1!=e&&(this.j=e),e=t.a.getBoundingClientRect(),(i=_r(this.o))[0]-=e.left,i[1]-=e.top,this.g=t.Wa(i),t.render(),Ur(r,o,this.g)}function kn(t){if(this.o.length<2){Ir(t=t.map.Z(),1,-1);var e,o,i=t.Pa();return(this.l||i<t.f||i>t.a)&&(e=this.g,o=this.u,i=t.constrainResolution(i,0,this.j-1),Ur(t,i,e,o)),!1}return!0}function Dn(t){return 2<=this.o.length&&(t=t.map,this.g=null,this.a=void 0,this.j=1,this.D||Ir(t.Z(),1,1),!0)}function On(t){t=t||{};var e=new Ne,o=new Nr(-.005,.05,100);return void 0!==t.altShiftDragRotate&&!t.altShiftDragRotate||e.push(new rn),void 0!==t.doubleClickZoom&&!t.doubleClickZoom||e.push(new Gr({delta:t.zoomDelta,duration:t.zoomDuration})),void 0!==t.dragPan&&!t.dragPan||e.push(new Qr({kinetic:o})),void 0!==t.pinchRotate&&!t.pinchRotate||e.push(new Cn),void 0!==t.pinchZoom&&!t.pinchZoom||e.push(new Nn({constrainResolution:t.constrainResolution,duration:t.zoomDuration})),void 0!==t.keyboard&&!t.keyboard||(e.push(new xn),e.push(new Mn({delta:t.zoomDelta,duration:t.zoomDuration}))),void 0!==t.mouseWheelZoom&&!t.mouseWheelZoom||e.push(new An({constrainResolution:t.constrainResolution,duration:t.zoomDuration})),void 0!==t.shiftDragZoom&&!t.shiftDragZoom||e.push(new wn({duration:t.zoomDuration})),e}function Un(t){je.call(this);var e=ht({},t);e.opacity=void 0!==t.opacity?t.opacity:1,e.visible=void 0===t.visible||t.visible,e.zIndex=void 0!==t.zIndex?t.zIndex:0,e.maxResolution=void 0!==t.maxResolution?t.maxResolution:1/0,e.minResolution=void 0!==t.minResolution?t.minResolution:0,this.H(e),this.a={layer:this,Je:!0}}function Gn(t){return t.a.opacity=x(t.hc(),0,1),t.a.yj=t.$f(),t.a.visible=t.Mb(),t.a.extent=t.G(),t.a.zIndex=t.Ba(),t.a.maxResolution=t.fc(),t.a.minResolution=Math.max(t.gc(),0),t.a}function Bn(t){var e=t||{};delete(t=ht({},e)).layers,e=e.layers,Un.call(this,t),this.f=[],this.c={},de(this,Le(Xn),this.Hl,this),e?Array.isArray(e)?e=new Ne(e.slice(),{unique:!0}):O(e instanceof Ne,43):e=new Ne(void 0,{unique:!0}),this.xi(e)}e(Cn,Jr),Cn.prototype.Xc=Oi,e(Nn,Jr),Nn.prototype.Xc=Oi,e(Un,je),(Mu=Un.prototype).G=function(){return this.get("extent")},Mu.fc=function(){return this.get("maxResolution")},Mu.gc=function(){return this.get("minResolution")},Mu.hc=function(){return this.get("opacity")},Mu.Mb=function(){return this.get("visible")},Mu.Ba=function(){return this.get("zIndex")},Mu.vc=function(t){this.set("extent",t)},Mu.Ac=function(t){this.set("maxResolution",t)},Mu.Bc=function(t){this.set("minResolution",t)},Mu.wc=function(t){this.set("opacity",t)},Mu.xc=function(t){this.set("visible",t)},Mu.Vb=function(t){this.set("zIndex",t)},e(Bn,Un),(Mu=Bn.prototype).Fd=function(){},Mu.Fe=function(){this.Mb()&&this.s()},Mu.Hl=function(){this.f.forEach(me),this.f.length=0;var t=this.qd();for(e in this.f.push(de(t,"add",this.Gl,this),de(t,"remove",this.Il,this)),this.c)this.c[e].forEach(me);lt(this.c);for(var e=0,o=(t=t.a).length;e<o;e++){var i=t[e];this.c[G(i).toString()]=[de(i,"propertychange",this.Fe,this),de(i,"change",this.Fe,this)]}this.s()},Mu.Gl=function(t){var e=G(t=t.element).toString();this.c[e]=[de(t,"propertychange",this.Fe,this),de(t,"change",this.Fe,this)],this.s()},Mu.Il=function(t){t=G(t.element).toString(),this.c[t].forEach(me),delete this.c[t],this.s()},Mu.qd=function(){return this.get(Xn)},Mu.xi=function(t){this.set(Xn,t)},Mu.Yf=function(t){var e,o=void 0!==t?t:[],i=o.length;for(this.qd().forEach(function(t){t.Yf(o)}),t=Gn(this),e=o.length;i<e;i++){var r=o[i];r.opacity*=t.opacity,r.visible=r.visible&&t.visible,r.maxResolution=Math.min(r.maxResolution,t.maxResolution),r.minResolution=Math.max(r.minResolution,t.minResolution),void 0!==t.extent&&(r.extent=void 0!==r.extent?et(r.extent,t.extent):t.extent)}return o},Mu.$f=function(){return"ready"};var Xn="layers";function Vn(t){var e=ht({},t);delete e.source,Un.call(this,e),this.v=this.l=this.o=null,t.map&&this.setMap(t.map),de(this,Le("source"),this.Ul,this),this.Wc(t.source||null)}function Wn(t,e){return t.visible&&e>=t.minResolution&&e<t.maxResolution}function Zn(){this.b={},this.a=0}e(Vn,Un),(Mu=Vn.prototype).Yf=function(t){return(t=t||[]).push(Gn(this)),t},Mu.ha=function(){return this.get("source")||null},Mu.$f=function(){var t=this.ha();return t?t.getState():"undefined"},Mu.Tn=function(){this.s()},Mu.Ul=function(){this.v&&(me(this.v),this.v=null);var t=this.ha();t&&(this.v=de(t,"change",this.Tn,this)),this.s()},Mu.setMap=function(t){this.o&&(me(this.o),this.o=null),t||this.s(),this.l&&(me(this.l),this.l=null),t&&(this.o=de(t,"precompose",function(t){var e=Gn(this);e.Je=!1,e.zIndex=1/0,t.frameState.layerStatesArray.push(e),t.frameState.layerStates[G(this)]=e},this),this.l=de(this,"change",t.render,t),this.s())},Mu.Wc=function(t){this.set("source",t)},Zn.prototype.clear=function(){this.b={},this.a=0},Zn.prototype.get=function(t,e,o){return(t=e+":"+t+":"+(o?Xe(o):"null"))in this.b?this.b[t]:null},Zn.prototype.set=function(t,e,o,i){this.b[e+":"+t+":"+(o?Xe(o):"null")]=i,++this.a};var Kn=new Zn,zn=Array(6);function Yn(){return[1,0,0,1,0,0]}function Hn(t){return Jn(t,1,0,0,1,0,0)}function qn(t,e){var o=t[0],i=t[1],r=t[2],n=t[3],s=t[4],a=t[5],p=e[0],h=e[1],l=e[2],u=e[3],c=e[4];return e=e[5],t[0]=o*p+r*h,t[1]=i*p+n*h,t[2]=o*l+r*u,t[3]=i*l+n*u,t[4]=o*c+r*e+s,t[5]=i*c+n*e+a,t}function Jn(t,e,o,i,r,n,s){return t[0]=e,t[1]=o,t[2]=i,t[3]=r,t[4]=n,t[5]=s,t}function _n(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function $n(t,e){var o=e[0],i=e[1];return e[0]=t[0]*o+t[2]*i+t[4],e[1]=t[1]*o+t[3]*i+t[5],e}function Qn(t,e){var o=Math.cos(e);e=Math.sin(e),qn(t,Jn(zn,o,e,-e,o,0,0))}function ts(t,e,o){return qn(t,Jn(zn,e,0,0,o,0,0))}function es(t,e,o){qn(t,Jn(zn,1,0,0,1,e,o))}function os(t,e,o,i,r,n,s,a){var p=Math.sin(n);return n=Math.cos(n),t[0]=i*n,t[1]=r*p,t[2]=-i*p,t[3]=r*n,t[4]=s*i*n-a*i*p+e,t[5]=s*r*p+a*r*n+o,t}function is(t){var e=t[0]*t[3]-t[1]*t[2];O(!!e,32);var o=t[0],i=t[1],r=t[2],n=t[3],s=t[4],a=t[5];return t[0]=n/e,t[1]=-i/e,t[2]=-r/e,t[3]=o/e,t[4]=(r*a-n*s)/e,t[5]=-(o*a-i*s)/e,t}function rs(t,e){this.o=e,this.c={},this.v={}}function ns(t){var e=t.viewState,o=t.coordinateToPixelTransform,i=t.pixelToCoordinateTransform;os(o,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),is(_n(i,o))}function ss(){if(32<Kn.a){var t,e=0;for(t in Kn.b){var o=Kn.b[t];3&e++||Ee(o)||(delete Kn.b[t],--Kn.a)}}}function as(t,e){var o=G(e).toString();return o in t.c?t.c[o]:(e=e.Fd(t),t.c[o]=e,t.v[o]=de(e,"change",t.Fl,t),e)}function ps(t,e){for(var o in t.c)if(!(o in e.layerStates)){e.postRenderFunctions.push(t.Rp.bind(t));break}}function hs(t,e){return t.zIndex-e.zIndex}function ls(t,e,o,i,r){Me.call(this,t),this.vectorContext=e,this.frameState=o,this.context=i,this.glContext=r}e(rs,xe),(Mu=rs.prototype).ka=function(){for(var t in this.c)Se(this.c[t])},Mu.Ea=function(t,r,e,n,s,o,i){function a(t,e){var o=G(t).toString(),i=r.layerStates[G(e)].Je;if(!(o in r.skippedFeatureUids)||i)return n.call(s,t,i?e:null)}var p,h,l=(c=r.viewState).resolution,u=c.projection,c=t;for(u.i&&(h=rt(u=u.G()),((y=t[0])<u[0]||y>u[2])&&(c=[y+h*Math.ceil((u[0]-y)/h),t[1]])),h=(u=r.layerStatesArray).length-1;0<=h;--h){var f=u[h],y=f.layer;if(Wn(f,l)&&o.call(i,y)&&(f=as(this,y),p=y.ha()?f.Ea(y.ha().u?c:t,r,e,a,s):p))return p}},Mu.Ei=function(t,e,o,i,r){return void 0!==this.Ea(t,e,o,Di,this,i,r)},Mu.Fl=function(){this.o.render()},Mu.Jg=w,Mu.Rp=function(t,e){for(var o in this.c)e&&o in e.layerStates||(o=this.c[t=o],delete this.c[t],me(this.v[t]),delete this.v[t],Se(o))},e(ls,Me);var us=[0,0,0,1],cs=[],fs=[0,0,0,1];function ys(t,e,o,i){e&&(t.translate(o,i),t.rotate(e),t.translate(-o,-i))}function gs(){}function ds(t,e,o,i,r){this.i=t,this.u=e,this.c=o,this.S=i,this.Yb=r,this.M=this.b=this.a=this.Ua=this.R=this.I=null,this.na=this.T=this.l=this.B=this.C=this.D=0,this.fa=!1,this.f=this.fb=0,this.pa=!1,this.oa=0,this.Ia="",this.va=this.Jb=0,this.Sa=!1,this.j=this.$a=0,this.ra=this.o=this.g=null,this.v=[],this.xb=Yn()}function vs(t,e,o){if(t.M){e=Gi(e,0,o,2,t.S,t.v),o=t.i;var i=t.xb,r=o.globalAlpha;1!=t.l&&(o.globalAlpha=r*t.l);var n=t.fb;t.fa&&(n+=t.Yb);for(var s=0,a=e.length;s<a;s+=2){var p,h,l=e[s]-t.D,u=e[s+1]-t.C;t.pa&&(l=Math.round(l),u=Math.round(u)),!n&&1==t.f||(os(i,p=l+t.D,h=u+t.C,t.f,t.f,n,-p,-h),o.setTransform.apply(o,i)),o.drawImage(t.M,t.T,t.na,t.oa,t.B,l,u,t.oa,t.B)}!n&&1==t.f||o.setTransform(1,0,0,1,0,0),1!=t.l&&(o.globalAlpha=r)}}function bs(t,e,o,i){var r=0;if(t.ra&&""!==t.Ia){t.g&&xs(t,t.g),t.o&&Ss(t,t.o);var n=t.ra,s=t.i;for((p=t.Ua)?(p.font!=n.font&&(p.font=s.font=n.font),p.textAlign!=n.textAlign&&(p.textAlign=s.textAlign=n.textAlign),p.textBaseline!=n.textBaseline&&(p.textBaseline=s.textBaseline=n.textBaseline)):(s.font=n.font,s.textAlign=n.textAlign,s.textBaseline=n.textBaseline,t.Ua={font:n.font,textAlign:n.textAlign,textBaseline:n.textBaseline}),e=Gi(e,r,o,i,t.S,t.v),n=t.i,s=t.$a,t.Sa&&(s+=t.Yb);r<o;r+=i){var a,p=e[r]+t.Jb,h=e[r+1]+t.va;!s&&1==t.j||(a=os(t.xb,p,h,t.j,t.j,s,-p,-h),n.setTransform.apply(n,a)),t.o&&n.strokeText(t.Ia,p,h),t.g&&n.fillText(t.Ia,p,h)}!s&&1==t.j||n.setTransform(1,0,0,1,0,0)}}function ms(t,e,o,i,r,n){var s=t.i;for(t=Gi(e,o,i,r,t.S,t.v),s.moveTo(t[0],t[1]),e=t.length,n&&(e-=2),o=2;o<e;o+=2)s.lineTo(t[o],t[o+1]);return n&&s.closePath(),i}function ws(t,e,o,i,r){for(var n=0,s=i.length;n<s;++n)o=ms(t,e,o,i[n],r,!0);return o}function xs(t,e){var o=t.i,i=t.I;i?i.fillStyle!=e.fillStyle&&(i.fillStyle=o.fillStyle=e.fillStyle):(o.fillStyle=e.fillStyle,t.I={fillStyle:e.fillStyle})}function Ss(t,e){var o=t.i,i=t.R;i?(i.lineCap!=e.lineCap&&(i.lineCap=o.lineCap=e.lineCap),Lo&&!U(i.lineDash,e.lineDash)&&o.setLineDash(i.lineDash=e.lineDash),i.lineJoin!=e.lineJoin&&(i.lineJoin=o.lineJoin=e.lineJoin),i.lineWidth!=e.lineWidth&&(i.lineWidth=o.lineWidth=e.lineWidth),i.miterLimit!=e.miterLimit&&(i.miterLimit=o.miterLimit=e.miterLimit),i.strokeStyle!=e.strokeStyle&&(i.strokeStyle=o.strokeStyle=e.strokeStyle)):(o.lineCap=e.lineCap,Lo&&o.setLineDash(e.lineDash),o.lineJoin=e.lineJoin,o.lineWidth=e.lineWidth,o.miterLimit=e.miterLimit,o.strokeStyle=e.strokeStyle,t.R={lineCap:e.lineCap,lineDash:e.lineDash,lineJoin:e.lineJoin,lineWidth:e.lineWidth,miterLimit:e.miterLimit,strokeStyle:e.strokeStyle})}function Ms(t,e){rs.call(this,0,e),this.i=Ye(),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",t.insertBefore(this.b,t.childNodes[0]||null),this.a=!0,this.f=Yn()}function Ps(t,e,o){var i,r,n,s,a,p=t.o,h=t.i;Ee(p,e)&&(i=o.extent,r=o.pixelRatio,n=o.viewState.rotation,s=o.viewState,a=o.pixelRatio/s.resolution,t=os(t.f,t.b.width/2,t.b.height/2,a,-a,-s.rotation,-s.center[0],-s.center[1]),p.b(new ls(e,new ds(h,r,i,t,n),o,h,null)))}(Mu=gs.prototype).zb=function(){},Mu.rd=function(){},Mu.Zb=function(){},Mu.te=function(){},Mu.ue=function(){},Mu.mc=function(){},Mu.nc=function(){},Mu.oc=function(){},Mu.pc=function(){},Mu.qc=function(){},Mu.rc=function(){},Mu.yc=function(){},Mu.Ma=function(){},Mu.Ub=function(){},Mu.Cb=function(){},e(ds,gs),(Mu=ds.prototype).Zb=function(t){var e,o,i;nt(this.c,t.G())&&((this.a||this.b)&&(this.a&&xs(this,this.a),this.b&&Ss(this,this.b),e=this.S,o=this.v,o=(e=(i=t.ga())?Gi(i,0,i.length,t.qa(),e,o):null)[2]-e[0],i=e[3]-e[1],o=Math.sqrt(o*o+i*i),(i=this.i).beginPath(),i.arc(e[0],e[1],o,0,2*Math.PI),this.a&&i.fill(),this.b&&i.stroke()),""!==this.Ia&&bs(this,t.wa(),2,2))},Mu.rd=function(t){this.Ma(t.Fa(),t.Ga()),this.Ub(t.Y()),this.Cb(t.Na())},Mu.zb=function(t){switch(t.U()){case"Point":this.qc(t);break;case"LineString":this.mc(t);break;case"Polygon":this.rc(t);break;case"MultiPoint":this.oc(t);break;case"MultiLineString":this.nc(t);break;case"MultiPolygon":this.pc(t);break;case"GeometryCollection":this.ue(t);break;case"Circle":this.Zb(t)}},Mu.te=function(t,e){(t=(0,e.Za)(t))&&nt(this.c,t.G())&&(this.rd(e),this.zb(t))},Mu.ue=function(t){for(var e=0,o=(t=t.a).length;e<o;++e)this.zb(t[e])},Mu.qc=function(t){var e=t.ga();t=t.qa(),this.M&&vs(this,e,e.length),""!==this.Ia&&bs(this,e,e.length,t)},Mu.oc=function(t){var e=t.ga();t=t.qa(),this.M&&vs(this,e,e.length),""!==this.Ia&&bs(this,e,e.length,t)},Mu.mc=function(t){var e,o;nt(this.c,t.G())&&(this.b&&(Ss(this,this.b),e=this.i,o=t.ga(),e.beginPath(),ms(this,o,0,o.length,t.qa(),!1),e.stroke()),""!==this.Ia&&bs(this,t=hl(t),2,2))},Mu.nc=function(t){var e=t.G();if(nt(this.c,e)){if(this.b){Ss(this,this.b);var e=this.i,o=t.ga(),i=0,r=t.Bb(),n=t.qa();e.beginPath();for(var s=0,a=r.length;s<a;++s)i=ms(this,o,i,r[s],n,!1);e.stroke()}""!==this.Ia&&bs(this,t=ul(t),t.length,2)}},Mu.rc=function(t){var e;nt(this.c,t.G())&&((this.b||this.a)&&(this.a&&xs(this,this.a),this.b&&Ss(this,this.b),(e=this.i).beginPath(),ws(this,t.ec(),0,t.Bb(),t.qa()),this.a&&e.fill(),this.b&&e.stroke()),""!==this.Ia&&bs(this,t=mr(t),2,2))},Mu.pc=function(t){if(nt(this.c,t.G())){if(this.b||this.a){this.a&&xs(this,this.a),this.b&&Ss(this,this.b);var e=this.i,o=dl(t),i=0,r=t.c,n=t.qa();e.beginPath();for(var s=0,a=r.length;s<a;++s)i=ws(this,o,i,r[s],n);this.a&&e.fill(),this.b&&e.stroke()}""!==this.Ia&&bs(this,t=gl(t),t.length,2)}},Mu.Ma=function(t,e){var o,i,r,n,s;t?(t=t.b,this.a={fillStyle:ze(t||us)}):this.a=null,e?(t=e.a,o=e.f,i=e.i,r=e.g,n=e.j,s=e.c,e=e.o,this.b={lineCap:void 0!==o?o:"round",lineDash:i||cs,lineDashOffset:r||0,lineJoin:void 0!==n?n:"round",lineWidth:this.u*(void 0!==s?s:1),miterLimit:void 0!==e?e:10,strokeStyle:ze(t||fs)}):this.b=null},Mu.Ub=function(t){var e,o,i,r;t?(e=t.Hc(),o=t.Y(1),i=t.Oc(),r=t.ic(),this.D=e[0],this.C=e[1],this.B=r[1],this.M=o,this.l=t.f,this.T=i[0],this.na=i[1],this.fa=t.l,this.fb=t.g,this.f=t.a,this.pa=t.v,this.oa=r[0]):this.M=null},Mu.Cb=function(t){var e,o,i,r,n,s,a,p;t?((e=t.Fa())?(e=e.b,this.g={fillStyle:ze(e||us)}):this.g=null,(a=t.Ga())?(e=a.a,o=a.f,i=a.i,r=a.g,n=a.j,s=a.c,a=a.o,this.o={lineCap:void 0!==o?o:"round",lineDash:i||cs,lineDashOffset:r||0,lineJoin:void 0!==n?n:"round",lineWidth:void 0!==s?s:1,miterLimit:void 0!==a?a:10,strokeStyle:ze(e||fs)}):this.o=null,e=t.a,o=t.i,i=t.c,r=t.o,n=t.f,s=t.b,a=t.Na(),p=t.g,t=t.j,this.ra={font:void 0!==e?e:"10px sans-serif",textAlign:void 0!==p?p:"center",textBaseline:void 0!==t?t:"middle"},this.Ia=void 0!==a?a:"",this.Jb=void 0!==o?this.u*o:0,this.va=void 0!==i?this.u*i:0,this.Sa=void 0!==r&&r,this.$a=void 0!==n?n:0,this.j=this.u*(void 0!==s?s:1)):this.Ia=""},e(Ms,rs),Ms.prototype.U=function(){return"canvas"},Ms.prototype.Jg=function(t){if(t){var e=this.i,o=t.pixelRatio,i=Math.round(t.size[0]*o),r=Math.round(t.size[1]*o);this.b.width!=i||this.b.height!=r?(this.b.width=i,this.b.height=r):e.clearRect(0,0,i,r),o=t.viewState.rotation,ns(t),Ps(this,"precompose",t);var n=t.layerStatesArray;h(n),o&&(e.save(),ys(e,o,i/2,r/2));for(var i=t.viewState.resolution,r=0,s=n.length;r<s;++r){var a=n[r],p=as(this,p=a.layer);Wn(a,i)&&"ready"==a.yj&&p.sd(t,a)&&p.S(t,a,e)}o&&e.restore(),Ps(this,"postcompose",t),this.a||(this.b.style.display="",this.a=!0),ps(this,t),t.postRenderFunctions.push(ss)}else this.a&&(this.b.style.display="none",this.a=!1)},Ms.prototype.Di=function(t,e,o,i,r,n){var s=e.viewState.resolution,a=e.layerStatesArray,p=a.length;for(t=$n(e.pixelToCoordinateTransform,t.slice()),--p;0<=p;--p){var h=a[p],l=h.layer;if(Wn(h,s)&&r.call(n,l)&&(h=as(this,l).u(t,e,o,i)))return h}};var As=["Polygon","Circle","LineString","Image","Text"];function Es(){}function Ts(t){this.b=t}function js(t){this.b=t}function Cs(t){this.b=t}function Ls(){this.b="precision mediump float;varying vec2 a;varying vec2 b;varying float c;varying float d;uniform float m;uniform vec4 n;uniform vec4 o;uniform vec2 p;void main(void){vec2 windowCenter=vec2((a.x+1.0)/2.0*p.x*d,(a.y+1.0)/2.0*p.y*d);vec2 windowOffset=vec2((b.x+1.0)/2.0*p.x*d,(b.y+1.0)/2.0*p.y*d);float radius=length(windowCenter-windowOffset);float dist=length(windowCenter-gl_FragCoord.xy);if(dist>radius+c){if(o.a==0.0){gl_FragColor=n;}else{gl_FragColor=o;}gl_FragColor.a=gl_FragColor.a-(dist-(radius+c));}else if(n.a==0.0){gl_FragColor=o;if(dist<radius-c){gl_FragColor.a=gl_FragColor.a-(radius-c-dist);}} else{gl_FragColor=n;float strokeDist=radius-c;float antialias=2.0*d;if(dist>strokeDist){gl_FragColor=o;}else if(dist>=strokeDist-antialias){float step=smoothstep(strokeDist-antialias,strokeDist,dist);gl_FragColor=mix(n,o,step);}} gl_FragColor.a=gl_FragColor.a*m;if(gl_FragColor.a<=0.0){discard;}}"}e(js,Ts),js.prototype.U=function(){return 35632},e(Cs,Ts),Cs.prototype.U=function(){return 35633},e(Ls,js);var Rs=new Ls;function Is(){this.b="varying vec2 a;varying vec2 b;varying float c;varying float d;attribute vec2 e;attribute float f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;uniform float k;uniform float l;void main(void){mat4 offsetMatrix=i*j;a=vec4(h*vec4(e,0.0,1.0)).xy;d=l;float lineWidth=k*l;c=lineWidth/2.0;if(lineWidth==0.0){lineWidth=2.0*l;}vec2 offset;float radius=g+3.0*l;if(f==0.0){offset=vec2(-1.0,1.0);}else if(f==1.0){offset=vec2(-1.0,-1.0);}else if(f==2.0){offset=vec2(1.0,-1.0);}else{offset=vec2(1.0,1.0);}gl_Position=h*vec4(e+offset*radius,0.0,1.0)+offsetMatrix*vec4(offset*lineWidth,0.0,0.0);b=vec4(h*vec4(e.x+g,e.y,0.0,1.0)).xy;if(distance(a,b)>20000.0){gl_Position=vec4(a,0.0,1.0);}}"}e(Is,Cs);var Ns=new Is;function Fs(t,e){this.B=t.getUniformLocation(e,"n"),this.oa=t.getUniformLocation(e,"k"),this.c=t.getUniformLocation(e,"j"),this.f=t.getUniformLocation(e,"i"),this.a=t.getUniformLocation(e,"m"),this.ra=t.getUniformLocation(e,"l"),this.i=t.getUniformLocation(e,"h"),this.I=t.getUniformLocation(e,"p"),this.R=t.getUniformLocation(e,"o"),this.j=t.getAttribLocation(e,"f"),this.b=t.getAttribLocation(e,"e"),this.S=t.getAttribLocation(e,"g")}function ks(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function Ds(t,e){return t[0]=e[0],t[1]=e[1],t[4]=e[2],t[5]=e[3],t[12]=e[4],t[13]=e[5],t}function Os(t,e){this.origin=$(e),this.xb=Yn(),this.Sa=Yn(),this.$a=Yn(),this.Jb=ks(),this.b=[],this.o=null,this.i=[],this.f=[],this.a=[],this.l=null,this.g=void 0}function Us(t,e,o,i){t.drawElements(4,i-o,e.g?5125:5123,o*(e.g?4:2))}e(Os,gs),Os.prototype.La=function(t,e,o,i,r,n,s,a,p,h,l){var u,c,f,y,g,d,v,b,m=t.b;this.g&&(u=m.isEnabled(m.STENCIL_TEST),c=m.getParameter(m.STENCIL_FUNC),f=m.getParameter(m.STENCIL_VALUE_MASK),y=m.getParameter(m.STENCIL_REF),g=m.getParameter(m.STENCIL_WRITEMASK),d=m.getParameter(m.STENCIL_FAIL),v=m.getParameter(m.STENCIL_PASS_DEPTH_PASS),b=m.getParameter(m.STENCIL_PASS_DEPTH_FAIL),m.enable(m.STENCIL_TEST),m.clear(m.STENCIL_BUFFER_BIT),m.stencilMask(255),m.stencilFunc(m.ALWAYS,1,255),m.stencilOp(m.KEEP,m.KEEP,m.REPLACE),this.g.La(t,e,o,i,r,n,s,a,p,h,l),m.stencilMask(0),m.stencilFunc(m.NOTEQUAL,1,255)),ta(t,34962,this.l),ta(t,34963,this.o),n=this.rf(m,t,r,n);var w,x=Hn(this.xb);return ts(x,2/(o*r[0]),2/(o*r[1])),Qn(x,-i),es(x,-(e[0]-this.origin[0]),-(e[1]-this.origin[1])),ts(e=Hn(this.$a),2/r[0],2/r[1]),r=Hn(this.Sa),i&&Qn(r,-i),m.uniformMatrix4fv(n.i,!1,Ds(this.Jb,x)),m.uniformMatrix4fv(n.f,!1,Ds(this.Jb,e)),m.uniformMatrix4fv(n.c,!1,Ds(this.Jb,r)),m.uniform1f(n.a,s),p?w=t=h?this.ve(m,t,a,p,l):(m.clear(m.COLOR_BUFFER_BIT|m.DEPTH_BUFFER_BIT),this.Od(m,t,a,!0),(t=p(null))?t:void 0):this.Od(m,t,a,!1),this.sf(m,n),this.g&&(u||m.disable(m.STENCIL_TEST),m.clear(m.STENCIL_BUFFER_BIT),m.stencilFunc(c,y,f),m.stencilMask(g),m.stencilOp(d,b,v)),w};var Gs=[0,0,0,1],Bs=[],Xs=[0,0,0,1];function Vs(t,e,o,i,r,n){return(t=(o-t)*(n-e)-(r-t)*(i-e))<=Ws&&-Ws<=t?void 0:0<t}var Ws=Number.EPSILON||2220446049250313e-31;function Zs(t){this.b=void 0!==t?t:[],this.a=Ks}var Ks=35044;function zs(t,e){Os.call(this,0,e),this.v=null,this.j=[],this.u=[],this.S=0,this.c={fillColor:null,strokeColor:null,lineDash:null,lineDashOffset:void 0,lineWidth:void 0,s:!1}}function Ys(t,e,o,i){e.uniform4fv(t.v.R,o),e.uniform1f(t.v.oa,i)}function Hs(){this.b="precision mediump float;varying vec2 a;varying float b;uniform float k;uniform sampler2D l;void main(void){vec4 texColor=texture2D(l,a);gl_FragColor.rgb=texColor.rgb;float alpha=texColor.a*b*k;if(alpha==0.0){discard;}gl_FragColor.a=alpha;}"}e(zs,Os),(Mu=zs.prototype).Zb=function(t,e){var o=t.pd(),i=t.qa();if(o){this.i.push(this.b.length),this.f.push(e),this.c.s&&(this.u.push(this.b.length),this.c.s=!1),this.S=o,t=Bi(t=t.ga(),0,2,i,-this.origin[0],-this.origin[1]),e=this.a.length;for(var o=this.b.length,r=e/4,n=0;n<2;n+=i)this.a[e++]=t[n],this.a[e++]=t[n+1],this.a[e++]=0,this.a[e++]=this.S,this.a[e++]=t[n],this.a[e++]=t[n+1],this.a[e++]=1,this.a[e++]=this.S,this.a[e++]=t[n],this.a[e++]=t[n+1],this.a[e++]=2,this.a[e++]=this.S,this.a[e++]=t[n],this.a[e++]=t[n+1],this.a[e++]=3,this.a[e++]=this.S,this.b[o++]=r,this.b[o++]=r+1,this.b[o++]=r+2,this.b[o++]=r+2,this.b[o++]=r+3,this.b[o++]=r,r+=4}else this.c.s&&(this.j.pop(),this.j.length&&(i=this.j[this.j.length-1],this.c.fillColor=i[0],this.c.strokeColor=i[1],this.c.lineWidth=i[2],this.c.s=!1))},Mu.Db=function(){this.l=new Zs(this.a),this.o=new Zs(this.b),this.i.push(this.b.length),!this.u.length&&0<this.j.length&&(this.j=[]),this.b=this.a=null},Mu.Eb=function(t){var e=this.l,o=this.o;return function(){ea(t,e),ea(t,o)}},Mu.rf=function(t,e,o,i){var r,n=ra(e,Rs,Ns);return this.v?r=this.v:this.v=r=new Fs(t,n),e.Qc(n),t.enableVertexAttribArray(r.b),t.vertexAttribPointer(r.b,2,5126,!1,16,0),t.enableVertexAttribArray(r.j),t.vertexAttribPointer(r.j,1,5126,!1,16,8),t.enableVertexAttribArray(r.S),t.vertexAttribPointer(r.S,1,5126,!1,16,12),t.uniform2fv(r.I,o),t.uniform1f(r.ra,i),r},Mu.sf=function(t,e){t.disableVertexAttribArray(e.b),t.disableVertexAttribArray(e.j),t.disableVertexAttribArray(e.S)},Mu.Od=function(t,e,o){if(ct(o)){var i=this.i[this.i.length-1];for(o=this.u.length-1;0<=o;--o){var r=this.u[o],n=this.j[o];t.uniform4fv(this.v.B,n[0]),Ys(this,t,n[1],n[2]),Us(t,e,r,i),i=r}}else for(var s=this.i.length-2,n=i=this.i[s+1],r=this.u.length-1;0<=r;--r){var a=this.j[r];for(t.uniform4fv(this.v.B,a[0]),Ys(this,t,a[1],a[2]),a=this.u[r];0<=s&&this.i[s]>=a;){var p=this.i[s];o[G(this.f[s]).toString()]&&(i!==n&&Us(t,e,i,n),n=p),s--,i=p}i!==n&&Us(t,e,i,n),i=n=a}},Mu.ve=function(t,e,o,i,r){for(var n,s=this.i.length-2,a=this.i[s+1],p=this.u.length-1;0<=p;--p){var h=this.j[p];for(t.uniform4fv(this.v.B,h[0]),Ys(this,t,h[1],h[2]),n=this.u[p];0<=s&&this.i[s]>=n;){var h=this.i[s],l=this.f[s];if(void 0===o[G(l).toString()]&&l.V()&&(void 0===r||nt(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),Us(t,e,h,a),a=i(l)))return a;s--,a=h}}},Mu.Ma=function(t,e){var o;e=e?(o=e.i,this.c.lineDash=o||Bs,o=e.g,this.c.lineDashOffset=o||0,o=!((o=e.a)instanceof CanvasGradient||o instanceof CanvasPattern)&&Be(o).map(function(t,e){return 3!=e?t/255:t})||Xs,void 0!==(e=e.c)?e:1):(o=[0,0,0,0],0),t=!((t=t?t.b:[0,0,0,0])instanceof CanvasGradient||t instanceof CanvasPattern)&&Be(t).map(function(t,e){return 3!=e?t/255:t})||Gs,this.c.strokeColor&&U(this.c.strokeColor,o)&&this.c.fillColor&&U(this.c.fillColor,t)&&this.c.lineWidth===e||(this.c.s=!0,this.c.fillColor=t,this.c.strokeColor=o,this.c.lineWidth=e,this.j.push([t,o,e]))},e(Hs,js);var qs=new Hs;function Js(){this.b="varying vec2 a;varying float b;attribute vec2 c;attribute vec2 d;attribute vec2 e;attribute float f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;void main(void){mat4 offsetMatrix=i;if(g==1.0){offsetMatrix=i*j;}vec4 offsets=offsetMatrix*vec4(e,0.0,0.0);gl_Position=h*vec4(c,0.0,1.0)+offsets;a=d;b=f;}"}e(Js,Cs);var _s=new Js;function $s(t,e){this.c=t.getUniformLocation(e,"j"),this.f=t.getUniformLocation(e,"i"),this.a=t.getUniformLocation(e,"k"),this.i=t.getUniformLocation(e,"h"),this.v=t.getAttribLocation(e,"e"),this.u=t.getAttribLocation(e,"f"),this.b=t.getAttribLocation(e,"c"),this.D=t.getAttribLocation(e,"g"),this.C=t.getAttribLocation(e,"d")}function Qs(t,e){this.j=t,this.b=e,this.a={},this.c={},this.i={},this.l=this.v=this.f=this.o=null,(this.g=d(Bo,"OES_element_index_uint"))&&e.getExtension("OES_element_index_uint"),de(this.j,"webglcontextlost",this.Xo,this),de(this.j,"webglcontextrestored",this.Yo,this)}function ta(t,e,o){var i,r,n=t.b,s=o.b,a=String(G(o));a in t.a?n.bindBuffer(e,t.a[a].buffer):(i=n.createBuffer(),n.bindBuffer(e,i),34962==e?r=new Float32Array(s):34963==e&&(r=new(t.g?Uint32Array:Uint16Array)(s)),n.bufferData(e,r,o.a),t.a[a]={lc:o,buffer:i})}function ea(t,e){var o=t.b;e=String(G(e));var i=t.a[e];o.isContextLost()||o.deleteBuffer(i.buffer),delete t.a[e]}function oa(t){var e,o,i,r;return t.f||(o=(e=t.b).createFramebuffer(),e.bindFramebuffer(e.FRAMEBUFFER,o),i=sa(e,1,1),r=e.createRenderbuffer(),e.bindRenderbuffer(e.RENDERBUFFER,r),e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_COMPONENT16,1,1),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,i,0),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,r),e.bindTexture(e.TEXTURE_2D,null),e.bindRenderbuffer(e.RENDERBUFFER,null),e.bindFramebuffer(e.FRAMEBUFFER,null),t.f=o,t.v=i,t.l=r),t.f}function ia(t,e){var o=String(G(e));if(o in t.c)return t.c[o];var i=t.b,r=i.createShader(e.U());return i.shaderSource(r,e.b),i.compileShader(r),t.c[o]=r}function ra(t,e,o){var i=G(e)+"/"+G(o);if(i in t.i)return t.i[i];var r=t.b,n=r.createProgram();return r.attachShader(n,ia(t,e)),r.attachShader(n,ia(t,o)),r.linkProgram(n),t.i[i]=n}function na(t,e,o){var i=t.createTexture();return t.bindTexture(t.TEXTURE_2D,i),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),void 0!==e&&t.texParameteri(3553,10242,e),void 0!==o&&t.texParameteri(3553,10243,o),i}function sa(t,e,o){var i=na(t,void 0,void 0);return t.texImage2D(t.TEXTURE_2D,0,t.RGBA,e,o,0,t.RGBA,t.UNSIGNED_BYTE,null),i}function aa(t,e){var o=na(t,33071,33071);return t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e),o}function pa(t,e){Os.call(this,0,e),this.C=this.D=void 0,this.S=[],this.v=[],this.oa=void 0,this.j=[],this.c=[],this.I=this.ra=void 0,this.B=null,this.fb=this.fa=this.na=this.T=this.Ua=this.R=void 0,this.va=[],this.u=[],this.pa=void 0}function ha(t,e,o,i){for(var r=t.D,n=t.C,s=t.oa,a=t.ra,p=t.I,h=t.R,l=t.Ua,u=t.T,c=t.na?1:0,f=-t.fa,y=t.fb,g=t.pa,d=Math.cos(f),f=Math.sin(f),v=t.b.length,b=t.a.length,m=0;m<o;m+=i){var w=e[m]-t.origin[0],x=e[m+1]-t.origin[1],S=b/8,M=-y*r,P=-y*(s-n);t.a[b++]=w,t.a[b++]=x,t.a[b++]=M*d-P*f,t.a[b++]=M*f+P*d,t.a[b++]=l/p,t.a[b++]=(u+s)/a,t.a[b++]=h,t.a[b++]=c,M=y*(g-r),P=-y*(s-n),t.a[b++]=w,t.a[b++]=x,t.a[b++]=M*d-P*f,t.a[b++]=M*f+P*d,t.a[b++]=(l+g)/p,t.a[b++]=(u+s)/a,t.a[b++]=h,t.a[b++]=c,M=y*(g-r),P=y*n,t.a[b++]=w,t.a[b++]=x,t.a[b++]=M*d-P*f,t.a[b++]=M*f+P*d,t.a[b++]=(l+g)/p,t.a[b++]=u/a,t.a[b++]=h,t.a[b++]=c,M=-y*r,P=y*n,t.a[b++]=w,t.a[b++]=x,t.a[b++]=M*d-P*f,t.a[b++]=M*f+P*d,t.a[b++]=l/p,t.a[b++]=u/a,t.a[b++]=h,t.a[b++]=c,t.b[v++]=S,t.b[v++]=1+S,t.b[v++]=2+S,t.b[v++]=S,t.b[v++]=2+S,t.b[v++]=3+S}}function la(t,e,o,i){for(var r=e.length,n=0;n<r;++n){var s=e[n],a=G(s).toString();a in o?s=o[a]:(s=aa(i,s),o[a]=s),t[n]=s}}function ua(t,e,o){var i=e-o;return t[0]===t[i]&&t[1]===t[1+i]&&3<+e/o&&!!Ki(t,0,e,o)}function ca(){this.b="precision mediump float;varying float a;varying vec2 b;varying float c;uniform float m;uniform vec4 n;uniform vec2 o;uniform float p;void main(void){if(a>0.0){vec2 windowCoords=vec2((b.x+1.0)/2.0*o.x*p,(b.y+1.0)/2.0*o.y*p);if(length(windowCoords-gl_FragCoord.xy)>c*p){discard;}} gl_FragColor=n;float alpha=n.a*m;if(alpha==0.0){discard;}gl_FragColor.a=alpha;}"}e(Qs,xe),(Mu=Qs.prototype).ka=function(){we(this.j);var t=this.b;if(!t.isContextLost()){for(var e in this.a)t.deleteBuffer(this.a[e].buffer);for(e in this.i)t.deleteProgram(this.i[e]);for(e in this.c)t.deleteShader(this.c[e]);t.deleteFramebuffer(this.f),t.deleteRenderbuffer(this.l),t.deleteTexture(this.v)}},Mu.Wo=function(){return this.b},Mu.Xo=function(){lt(this.a),lt(this.c),lt(this.i),this.l=this.v=this.f=this.o=null},Mu.Yo=function(){},Mu.Qc=function(t){return t!=this.o&&(this.b.useProgram(t),this.o=t,!0)},e(pa,Os),(Mu=pa.prototype).Eb=function(o){var i=this.l,r=this.o,n=this.va,s=this.u,a=o.b;return function(){if(!a.isContextLost()){for(var t=0,e=n.length;t<e;++t)a.deleteTexture(n[t]);for(t=0,e=s.length;t<e;++t)a.deleteTexture(s[t])}ea(o,i),ea(o,r)}},Mu.oc=function(t,e){this.i.push(this.b.length),this.f.push(e),ha(this,e=t.ga(),e.length,t.qa())},Mu.qc=function(t,e){this.i.push(this.b.length),this.f.push(e),ha(this,e=t.ga(),e.length,t.qa())},Mu.Db=function(t){t=t.b,this.S.push(this.b.length),this.v.push(this.b.length),this.l=new Zs(this.a),this.o=new Zs(this.b);var e={};la(this.va,this.j,e,t),la(this.u,this.c,e,t),this.oa=this.C=this.D=void 0,this.c=this.j=null,this.I=this.ra=void 0,this.b=null,this.fb=this.fa=this.na=this.T=this.Ua=this.R=void 0,this.a=null,this.pa=void 0},Mu.rf=function(t,e){var o,i=ra(e,qs,_s);return this.B?o=this.B:this.B=o=new $s(t,i),e.Qc(i),t.enableVertexAttribArray(o.b),t.vertexAttribPointer(o.b,2,5126,!1,32,0),t.enableVertexAttribArray(o.v),t.vertexAttribPointer(o.v,2,5126,!1,32,8),t.enableVertexAttribArray(o.C),t.vertexAttribPointer(o.C,2,5126,!1,32,16),t.enableVertexAttribArray(o.u),t.vertexAttribPointer(o.u,1,5126,!1,32,24),t.enableVertexAttribArray(o.D),t.vertexAttribPointer(o.D,1,5126,!1,32,28),o},Mu.sf=function(t,e){t.disableVertexAttribArray(e.b),t.disableVertexAttribArray(e.v),t.disableVertexAttribArray(e.C),t.disableVertexAttribArray(e.u),t.disableVertexAttribArray(e.D)},Mu.Od=function(t,e,o,i){var r=i?this.u:this.va;if(i=i?this.v:this.S,ct(o))for(var n=r.length,s=o=0;o<n;++o){t.bindTexture(3553,r[o]);var a=i[o];Us(t,e,s,a),s=a}else for(s=n=0,a=r.length;s<a;++s){t.bindTexture(3553,r[s]);for(var p=0<s?i[s-1]:0,h=i[s],l=p;n<this.i.length&&this.i[n]<=h;){p=void 0!==o[G(this.f[n]).toString()]?(l!==p&&Us(t,e,l,p),l=n===this.i.length-1?h:this.i[n+1]):n===this.i.length-1?h:this.i[n+1];n++}l!==p&&Us(t,e,l,p)}},Mu.ve=function(t,e,o,i,r){for(var n=this.i.length-1,s=this.u.length-1;0<=s;--s){t.bindTexture(3553,this.u[s]);for(var a=0<s?this.v[s-1]:0,p=this.v[s];0<=n&&this.i[n]>=a;){var h=this.i[n],l=this.f[n];if(void 0===o[G(l).toString()]&&l.V()&&(void 0===r||nt(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),Us(t,e,h,p),p=i(l)))return p;p=h,n--}}},Mu.Ub=function(t){var e=t.Hc(),o=t.Y(1),i=t.ye(),r=t.qg(1),n=t.f,s=t.Oc(),a=t.l,p=t.g,h=t.ic();t=t.a,this.j.length?G(this.j[this.j.length-1])!=G(o)&&(this.S.push(this.b.length),this.j.push(o)):this.j.push(o),this.c.length?G(this.c[this.c.length-1])!=G(r)&&(this.v.push(this.b.length),this.c.push(r)):this.c.push(r),this.D=e[0],this.C=e[1],this.oa=h[1],this.ra=i[1],this.I=i[0],this.R=n,this.Ua=s[0],this.T=s[1],this.fa=p,this.na=a,this.fb=t,this.pa=h[0]},e(ca,js);var fa=new ca;function ya(){this.b="varying float a;varying vec2 b;varying float c;attribute vec2 d;attribute vec2 e;attribute vec2 f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;uniform float k;uniform float l;bool nearlyEquals(in float value,in float ref){float epsilon=0.000000000001;return value>=ref-epsilon&&value<=ref+epsilon;}void alongNormal(out vec2 offset,in vec2 nextP,in float turnDir,in float direction){vec2 dirVect=nextP-e;vec2 normal=normalize(vec2(-turnDir*dirVect.y,turnDir*dirVect.x));offset=k/2.0*normal*direction;}void miterUp(out vec2 offset,out float round,in bool isRound,in float direction){float halfWidth=k/2.0;vec2 tangent=normalize(normalize(f-e)+normalize(e-d));vec2 normal=vec2(-tangent.y,tangent.x);vec2 dirVect=f-e;vec2 tmpNormal=normalize(vec2(-dirVect.y,dirVect.x));float miterLength=abs(halfWidth/dot(normal,tmpNormal));offset=normal*direction*miterLength;round=0.0;if(isRound){round=1.0;}else if(miterLength>l+k){offset=halfWidth*tmpNormal*direction;}} bool miterDown(out vec2 offset,in vec4 projPos,in mat4 offsetMatrix,in float direction){bool degenerate=false;vec2 tangent=normalize(normalize(f-e)+normalize(e-d));vec2 normal=vec2(-tangent.y,tangent.x);vec2 dirVect=d-e;vec2 tmpNormal=normalize(vec2(-dirVect.y,dirVect.x));vec2 longOffset,shortOffset,longVertex;vec4 shortProjVertex;float halfWidth=k/2.0;if(length(f-e)>length(d-e)){longOffset=tmpNormal*direction*halfWidth;shortOffset=normalize(vec2(dirVect.y,-dirVect.x))*direction*halfWidth;longVertex=f;shortProjVertex=h*vec4(d,0.0,1.0);}else{shortOffset=tmpNormal*direction*halfWidth;longOffset=normalize(vec2(dirVect.y,-dirVect.x))*direction*halfWidth;longVertex=d;shortProjVertex=h*vec4(f,0.0,1.0);}vec4 p1=h*vec4(longVertex,0.0,1.0)+offsetMatrix*vec4(longOffset,0.0,0.0);vec4 p2=projPos+offsetMatrix*vec4(longOffset,0.0,0.0);vec4 p3=shortProjVertex+offsetMatrix*vec4(-shortOffset,0.0,0.0);vec4 p4=shortProjVertex+offsetMatrix*vec4(shortOffset,0.0,0.0);float denom=(p4.y-p3.y)*(p2.x-p1.x)-(p4.x-p3.x)*(p2.y-p1.y);float firstU=((p4.x-p3.x)*(p1.y-p3.y)-(p4.y-p3.y)*(p1.x-p3.x))/denom;float secondU=((p2.x-p1.x)*(p1.y-p3.y)-(p2.y-p1.y)*(p1.x-p3.x))/denom;float epsilon=0.000000000001;if(firstU>epsilon&&firstU<1.0-epsilon&&secondU>epsilon&&secondU<1.0-epsilon){shortProjVertex.x=p1.x+firstU*(p2.x-p1.x);shortProjVertex.y=p1.y+firstU*(p2.y-p1.y);offset=shortProjVertex.xy;degenerate=true;}else{float miterLength=abs(halfWidth/dot(normal,tmpNormal));offset=normal*direction*miterLength;}return degenerate;}void squareCap(out vec2 offset,out float round,in bool isRound,in vec2 nextP,in float turnDir,in float direction){round=0.0;vec2 dirVect=e-nextP;vec2 firstNormal=normalize(dirVect);vec2 secondNormal=vec2(turnDir*firstNormal.y*direction,-turnDir*firstNormal.x*direction);vec2 hypotenuse=normalize(firstNormal-secondNormal);vec2 normal=vec2(turnDir*hypotenuse.y*direction,-turnDir*hypotenuse.x*direction);float length=sqrt(c*c*2.0);offset=normal*length;if(isRound){round=1.0;}} void main(void){bool degenerate=false;float direction=float(sign(g));mat4 offsetMatrix=i*j;vec2 offset;vec4 projPos=h*vec4(e,0.0,1.0);bool round=nearlyEquals(mod(g,2.0),0.0);a=0.0;c=k/2.0;b=projPos.xy;if(nearlyEquals(mod(g,3.0),0.0)||nearlyEquals(mod(g,17.0),0.0)){alongNormal(offset,f,1.0,direction);}else if(nearlyEquals(mod(g,5.0),0.0)||nearlyEquals(mod(g,13.0),0.0)){alongNormal(offset,d,-1.0,direction);}else if(nearlyEquals(mod(g,23.0),0.0)){miterUp(offset,a,round,direction);}else if(nearlyEquals(mod(g,19.0),0.0)){degenerate=miterDown(offset,projPos,offsetMatrix,direction);}else if(nearlyEquals(mod(g,7.0),0.0)){squareCap(offset,a,round,f,1.0,direction);}else if(nearlyEquals(mod(g,11.0),0.0)){squareCap(offset,a,round,d,-1.0,direction);}if(!degenerate){vec4 offsets=offsetMatrix*vec4(offset,0.0,0.0);gl_Position=projPos+offsets;}else{gl_Position=vec4(offset,0.0,1.0);}}"}e(ya,Cs);var ga=new ya;function da(t,e){this.B=t.getUniformLocation(e,"n"),this.oa=t.getUniformLocation(e,"k"),this.R=t.getUniformLocation(e,"l"),this.c=t.getUniformLocation(e,"j"),this.f=t.getUniformLocation(e,"i"),this.a=t.getUniformLocation(e,"m"),this.ra=t.getUniformLocation(e,"p"),this.i=t.getUniformLocation(e,"h"),this.I=t.getUniformLocation(e,"o"),this.g=t.getAttribLocation(e,"g"),this.o=t.getAttribLocation(e,"d"),this.l=t.getAttribLocation(e,"f"),this.b=t.getAttribLocation(e,"e")}function va(t,e){Os.call(this,0,e),this.v=null,this.u=[],this.j=[],this.c={strokeColor:null,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0,s:!1}}function ba(t,e,o,i){for(var r=t.a.length,n=t.b.length,s="bevel"===t.c.lineJoin?0:"miter"===t.c.lineJoin?1:2,a="butt"===t.c.lineCap?0:"square"===t.c.lineCap?1:2,p=ua(e,o,i),h=n,l=1,u=0;u<o;u+=i){var c,f=r/7,y=g,g=c||[e[u],e[u+1]];if(u){if(u===o-i){p?c=d:(r=ma(t,y=y||[0,0],g,[0,0],l*Aa*(a||1),r),r=ma(t,y,g,[0,0],-l*Aa*(a||1),r),t.b[n++]=f,t.b[n++]=h-1,t.b[n++]=h,t.b[n++]=h,t.b[n++]=f+1,t.b[n++]=f,a&&(r=ma(t,y,g,[0,0],l*Ta*a,r),r=ma(t,y,g,[0,0],-l*Ta*a,r),t.b[n++]=f+2,t.b[n++]=f,t.b[n++]=f+1,t.b[n++]=f+1,t.b[n++]=f+3,t.b[n++]=f+2));break}c=[e[u+i],e[u+i+1]]}else{if(c=[e[u+i],e[u+i+1]],+o==2*i&&U(g,c))break;if(!p){a&&(r=ma(t,[0,0],g,c,l*Ea*a,r),r=ma(t,[0,0],g,c,-l*Ea*a,r),t.b[n++]=f+2,t.b[n++]=f,t.b[n++]=f+1,t.b[n++]=f+1,t.b[n++]=f+3,t.b[n++]=f+2),r=ma(t,[0,0],g,c,l*Pa*(a||1),r),h=(r=ma(t,[0,0],g,c,-l*Pa*(a||1),r))/7-1;continue}var y=[e[o-2*i],e[o-2*i+1]],d=c}var v=Vs(y[0],y[1],g[0],g[1],c[0],c[1])?-1:1,r=ma(t,y,g,c,v*ja*(s||1),r);r=ma(t,y,g,c,v*Ca*(s||1),r),r=ma(t,y,g,c,-v*La*(s||1),r),0<u&&(t.b[n++]=f,t.b[n++]=h-1,t.b[n++]=h,t.b[n++]=f+2,t.b[n++]=f,t.b[n++]=0<l*v?h:h-1),t.b[n++]=f,t.b[n++]=f+2,t.b[n++]=f+1,h=f+2,l=v,s&&(r=ma(t,y,g,c,v*Ra*s,r),t.b[n++]=f+1,t.b[n++]=f+3,t.b[n++]=f)}p&&(f=f||r/7,r=ma(t,y,g,c,(v=yr([y[0],y[1],g[0],g[1],c[0],c[1]],0,6,2)?1:-1)*ja*(s||1),r),ma(t,y,g,c,-v*La*(s||1),r),t.b[n++]=f,t.b[n++]=h-1,t.b[n++]=h,t.b[n++]=f+1,t.b[n++]=f,t.b[n++]=0<l*v?h:h-1)}function ma(t,e,o,i,r,n){return t.a[n++]=e[0],t.a[n++]=e[1],t.a[n++]=o[0],t.a[n++]=o[1],t.a[n++]=i[0],t.a[n++]=i[1],t.a[n++]=r,n}function wa(t,e,o,i){return!((o-=e)<2*i)&&(o!==2*i||!U([t[e],t[e+1]],[t[e+i],t[e+i+1]]))}function xa(t,e,o,i){var r;if(ua(e,e.length,i)||(e.push(e[0]),e.push(e[1])),ba(t,e,e.length,i),o.length)for(e=0,r=o.length;e<r;++e)ua(o[e],o[e].length,i)||(o[e].push(o[e][0]),o[e].push(o[e][1])),ba(t,o[e],o[e].length,i)}function Sa(t,e,o){o=void 0===o?t.b.length:o,t.i.push(o),t.f.push(e),t.c.s&&(t.j.push(o),t.c.s=!1)}function Ma(t,e,o,i,r){e.uniform4fv(t.v.B,o),e.uniform1f(t.v.oa,i),e.uniform1f(t.v.R,r)}e(va,Os),(Mu=va.prototype).mc=function(t,e){var o=t.ga();t=t.qa(),wa(o,0,o.length,t)&&(o=Bi(o,0,o.length,t,-this.origin[0],-this.origin[1]),this.c.s&&(this.j.push(this.b.length),this.c.s=!1),this.i.push(this.b.length),this.f.push(e),ba(this,o,o.length,t))},Mu.nc=function(t,e){var o=this.b.length,i=t.Bb();i.unshift(0);var r=t.ga();if(t=t.qa(),1<i.length)for(var n,s=1,a=i.length;s<a;++s)wa(r,i[s-1],i[s],t)&&ba(this,n=Bi(r,i[s-1],i[s],t,-this.origin[0],-this.origin[1]),n.length,t);this.b.length>o&&(this.i.push(o),this.f.push(e),this.c.s&&(this.j.push(o),this.c.s=!1))},Mu.Db=function(){this.l=new Zs(this.a),this.o=new Zs(this.b),this.i.push(this.b.length),!this.j.length&&0<this.u.length&&(this.u=[]),this.b=this.a=null},Mu.Eb=function(t){var e=this.l,o=this.o;return function(){ea(t,e),ea(t,o)}},Mu.rf=function(t,e,o,i){var r,n=ra(e,fa,ga);return this.v?r=this.v:this.v=r=new da(t,n),e.Qc(n),t.enableVertexAttribArray(r.o),t.vertexAttribPointer(r.o,2,5126,!1,28,0),t.enableVertexAttribArray(r.b),t.vertexAttribPointer(r.b,2,5126,!1,28,8),t.enableVertexAttribArray(r.l),t.vertexAttribPointer(r.l,2,5126,!1,28,16),t.enableVertexAttribArray(r.g),t.vertexAttribPointer(r.g,1,5126,!1,28,24),t.uniform2fv(r.I,o),t.uniform1f(r.ra,i),r},Mu.sf=function(t,e){t.disableVertexAttribArray(e.o),t.disableVertexAttribArray(e.b),t.disableVertexAttribArray(e.l),t.disableVertexAttribArray(e.g)},Mu.Od=function(t,e,o,i){var r=t.getParameter(t.DEPTH_FUNC),n=t.getParameter(t.DEPTH_WRITEMASK);if(i||(t.enable(t.DEPTH_TEST),t.depthMask(!0),t.depthFunc(t.NOTEQUAL)),ct(o)){var s=this.i[this.i.length-1];for(o=this.j.length-1;0<=o;--o){var a=this.j[o],p=this.u[o];Ma(this,t,p[0],p[1],p[2]),Us(t,e,a,s),t.clear(t.DEPTH_BUFFER_BIT),s=a}}else for(var h=this.i.length-2,p=s=this.i[h+1],a=this.j.length-1;0<=a;--a){var l=this.u[a];for(Ma(this,t,l[0],l[1],l[2]),l=this.j[a];0<=h&&this.i[h]>=l;){var u=this.i[h];o[G(this.f[h]).toString()]&&(s!==p&&(Us(t,e,s,p),t.clear(t.DEPTH_BUFFER_BIT)),p=u),h--,s=u}s!==p&&(Us(t,e,s,p),t.clear(t.DEPTH_BUFFER_BIT)),s=p=l}i||(t.disable(t.DEPTH_TEST),t.clear(t.DEPTH_BUFFER_BIT),t.depthMask(n),t.depthFunc(r))},Mu.ve=function(t,e,o,i,r){for(var n,s=this.i.length-2,a=this.i[s+1],p=this.j.length-1;0<=p;--p)for(Ma(this,t,(h=this.u[p])[0],h[1],h[2]),n=this.j[p];0<=s&&this.i[s]>=n;){var h=this.i[s],l=this.f[s];if(void 0===o[G(l).toString()]&&l.V()&&(void 0===r||nt(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),Us(t,e,h,a),a=i(l)))return a;s--,a=h}},Mu.Ma=function(t,e){t=e.f,this.c.lineCap=void 0!==t?t:"round",t=e.i,this.c.lineDash=t||Bs,t=e.g,this.c.lineDashOffset=t||0,t=e.j,this.c.lineJoin=void 0!==t?t:"round",t=!((t=e.a)instanceof CanvasGradient||t instanceof CanvasPattern)&&Be(t).map(function(t,e){return 3!=e?t/255:t})||Xs;var o=void 0!==(o=e.c)?o:1;e=void 0!==(e=e.o)?e:10,this.c.strokeColor&&U(this.c.strokeColor,t)&&this.c.lineWidth===o&&this.c.miterLimit===e||(this.c.s=!0,this.c.strokeColor=t,this.c.lineWidth=o,this.c.miterLimit=e,this.u.push([t,o,e]))};var Pa=3,Aa=5,Ea=7,Ta=11,ja=13,Ca=17,La=19,Ra=23;function Ia(){this.b="precision mediump float;uniform vec4 e;uniform float f;void main(void){gl_FragColor=e;float alpha=e.a*f;if(alpha==0.0){discard;}gl_FragColor.a=alpha;}"}e(Ia,js);var Na=new Ia;function Fa(){this.b="attribute vec2 a;uniform mat4 b;uniform mat4 c;uniform mat4 d;void main(void){gl_Position=b*vec4(a,0.0,1.0);}"}e(Fa,Cs);var ka=new Fa;function Da(t,e){this.B=t.getUniformLocation(e,"e"),this.c=t.getUniformLocation(e,"d"),this.f=t.getUniformLocation(e,"c"),this.a=t.getUniformLocation(e,"f"),this.i=t.getUniformLocation(e,"b"),this.b=t.getAttribLocation(e,"a")}function Oa(t){this.a=void 0!==(t=t||{}).color?t.color:null,this.f=t.lineCap,this.i=void 0!==t.lineDash?t.lineDash:null,this.g=t.lineDashOffset,this.j=t.lineJoin,this.o=t.miterLimit,this.c=t.width,this.b=void 0}function Ua(t){this.b=this.a=this.i=void 0,this.f=void 0===t||t,this.c=0}function Ga(t){var e,o,i=t.b;i&&(e=i.next,o=i.ub,e&&(e.ub=o),o&&(o.next=e),t.b=e||o,t.i===t.a?(t.b=void 0,t.i=void 0,t.a=void 0):t.i===i?t.i=t.b:t.a===i&&(t.a=o?t.b.ub:t.b),t.c--)}function Ba(t){if(t.b=t.i,t.b)return t.b.data}function Xa(t){if(t.b&&t.b.next)return t.b=t.b.next,t.b.data}function Va(t){if(t.b&&t.b.next)return t.b.next.data}function Wa(t){if(t.b&&t.b.ub)return t.b=t.b.ub,t.b.data}function Za(t){if(t.b&&t.b.ub)return t.b.ub.data}function Ka(t){if(t.b)return t.b.data}(Mu=Oa.prototype).clone=function(){var t=this.a;return new Oa({color:t&&t.slice?t.slice():t||void 0,lineCap:this.f,lineDash:this.i?this.i.slice():void 0,lineDashOffset:this.g,lineJoin:this.j,miterLimit:this.o,width:this.c})},Mu.No=function(){return this.a},Mu.Vk=function(){return this.f},Mu.Oo=function(){return this.i},Mu.Wk=function(){return this.g},Mu.Xk=function(){return this.j},Mu.bl=function(){return this.o},Mu.Po=function(){return this.c},Mu.Qo=function(t){this.a=t,this.b=void 0},Mu.aq=function(t){this.f=t,this.b=void 0},Mu.setLineDash=function(t){this.i=t,this.b=void 0},Mu.bq=function(t){this.g=t,this.b=void 0},Mu.cq=function(t){this.j=t,this.b=void 0},Mu.gq=function(t){this.o=t,this.b=void 0},Mu.jq=function(t){this.c=t,this.b=void 0},Ua.prototype.concat=function(t){var e;t.b&&(this.b?(e=this.b.next,this.b.next=t.i,t.i.ub=this.b,e.ub=t.a,t.a.next=e,this.c+=t.c):(this.b=t.b,this.i=t.i,this.a=t.a,this.c=t.c),t.b=void 0,t.i=void 0,t.a=void 0,t.c=0)};var za,Ya={$d:function(){}};function Ha(t,e,o){var i=t[e];t[e]=t[o],t[o]=i}function qa(t,e){return t<e?-1:e<t?1:0}function Ja(t,e){if(!(this instanceof Ja))return new Ja(t,e);this.Hf=Math.max(4,t||9),this.fh=Math.max(2,Math.ceil(.4*this.Hf)),e&&this.ek(e),this.clear()}function _a(t,e){$a(t,0,t.children.length,e,t)}function $a(t,e,o,i,r){(r=r||sp(null)).ca=1/0,r.da=1/0,r.$=-1/0,r.ia=-1/0;for(var n;e<o;e++)n=t.children[e],Qa(r,t.ib?i(n):n);return r}function Qa(t,e){t.ca=Math.min(t.ca,e.ca),t.da=Math.min(t.da,e.da),t.$=Math.max(t.$,e.$),t.ia=Math.max(t.ia,e.ia)}function tp(t,e){return t.ca-e.ca}function ep(t,e){return t.da-e.da}function op(t){return(t.$-t.ca)*(t.ia-t.da)}function ip(t){return t.$-t.ca+(t.ia-t.da)}function rp(t,e){return t.ca<=e.ca&&t.da<=e.da&&e.$<=t.$&&e.ia<=t.ia}function np(t,e){return e.ca<=t.$&&e.da<=t.ia&&e.$>=t.ca&&e.ia>=t.da}function sp(t){return{children:t,height:1,ib:!0,ca:1/0,da:1/0,$:-1/0,ia:-1/0}}function ap(t,e,o,i,r){for(var n,s=[e,o];s.length;)(o=s.pop())-(e=s.pop())<=i||(n=e+Math.ceil((o-e)/i/2)*i,za(t,n,e,o,r),s.push(e,n,n,o))}function pp(t){this.a=Ya.$d(t),this.b={}}function hp(t,e,o){var i=t.b[G(o)];Z([i.ca,i.da,i.$,i.ia],e)||(t.remove(o),t.Ca(e,o))}function lp(t){return t.a.all().map(function(t){return t.value})}function up(t,e){return t.a.search({ca:e[0],da:e[1],$:e[2],ia:e[3]}).map(function(t){return t.value})}function cp(t,e,o,i){return fp(up(t,e),o,i)}function fp(t,e,o){for(var i,r=0,n=t.length;r<n&&!(i=e.call(o,t[r]));r++);return i}function yp(t,e){Os.call(this,0,e),this.g=new va(0,e),this.v=null,this.u=[],this.c=[],this.j={fillColor:null,s:!1}}function gp(t,e,o,i){var r=new Ua,n=new pp;if(e=dp(t,e,i,r,n,!0),o.length){for(var s=[],a=0,p=o.length;a<p;++a){var h={list:new Ua,$:void 0,Mg:new pp};s.push(h),h.$=dp(t,o[a],i,h.list,h.Mg,!1)}for(s.sort(function(t,e){return e.$[0]===t.$[0]?t.$[1]-e.$[1]:e.$[0]-t.$[0]}),a=0;a<s.length;++a){p=i=Ba(o=s[a].list);do{if(Ap(p,n).length){var l=!0;break}}while(i!==(p=Xa(o)));l||(vp(o,s[a].Mg,!0),function(t,e,o,i,r){for(var n=Ba(t);n.W.x!==e;)n=Xa(t);e=n.W,i={x:i,y:e.y,hb:-1};var s,a=1/0,p=Ap({aa:e,W:i},r,!0),h=0;for(s=p.length;h<s;++h){var l,u=p[h],c=Ep(e,i,u.aa,u.W,!0),f=Math.abs(e.x-c[0]);f<a&&void 0!==Vs(e.x,e.y,u.aa.x,u.aa.y,u.W.x,u.W.y)&&(a=f,l={x:c[0],y:c[1],hb:-1},n=u)}if(1/0===a)return!1;if(p=n.W,0<a&&(n=Pp(e,l,n.W,r)).length)for(l=1/0,h=0,s=n.length;h<s;++h)a=n[h],((u=Math.atan2(e.y-a.y,i.x-a.x))<l||u===l&&a.x<p.x)&&(l=u,p=a);for(n=Ba(o);n.W.x!==p.x||n.W.y!==p.y;)n=Xa(o);return i={x:e.x,y:e.y,hb:e.hb,Fb:void 0},h={x:n.W.x,y:n.W.y,hb:n.W.hb,Fb:void 0},Va(t).aa=i,Sp(e,n.W,t,r),Sp(h,i,t,r),n.W=h,t.f&&t.b&&(t.i=t.b,t.a=t.b.ub),o.concat(t),!0}(o,s[a].$[0],r,e[0],n)&&(n.concat(s[a].Mg),vp(r,n,!1)))}}else vp(r,n,!1);!function t(e,o,i){for(var r=!1,n=wp(o,i);3<o.c;)if(n){if(!bp(e,o,i,n,r)&&!vp(o,i,r)&&!mp(e,o,i,!0))break}else if(!bp(e,o,i,n,r)&&!vp(o,i,r)&&!mp(e,o,i)){if(!(n=wp(o,i))){n=e,s=a=Ba(r=o);do{if((p=Ap(s,i)).length){for(a=p[0],p=Ep(s.aa,s.W,a.aa,a.W),p=xp(n,p[0],p[1],n.a.length/2),h=new Ua,l=new pp,Sp(p,s.W,h,l),s.W=p,hp(i,[Math.min(s.aa.x,p.x),Math.min(s.aa.y,p.y),Math.max(s.aa.x,p.x),Math.max(s.aa.y,p.y)],s),s=Xa(r);s!==a;)Sp(s.aa,s.W,h,l),i.remove(s),Ga(r),s=Ka(r);Sp(a.aa,p,h,l),a.aa=p,hp(i,[Math.min(a.W.x,p.x),Math.min(a.W.y,p.y),Math.max(a.W.x,p.x),Math.max(a.W.y,p.y)],a),vp(r,i,!1),t(n,r,i),vp(h,l,!1),t(n,h,l);break}}while((s=Xa(r))!==a);break}for(var r=o,s=2*r.c,a=Array(s),p=Ba(r),h=p,l=0;a[l++]=h.aa.x,a[l++]=h.aa.y,(h=Xa(r))!==p;);r=!yr(a,0,s,2),vp(o,i,r)}3===o.c&&(n=e.b.length,e.b[n++]=Za(o).aa.hb,e.b[n++]=Ka(o).aa.hb,e.b[n++]=Va(o).aa.hb)}(t,r,n)}function dp(t,e,o,i,r,n){var s,a=t.a.length/2,p=[],h=[];if(n===yr(e,0,e.length,o)){var l=s=xp(t,e[0],e[1],a++);n=e[0];for(var u=e[1],c=o,f=e.length;c<f;c+=o){var y=xp(t,e[c],e[c+1],a++);h.push(Sp(l,y,i)),p.push([Math.min(l.x,y.x),Math.min(l.y,y.y),Math.max(l.x,y.x),Math.max(l.y,y.y)]),e[c]>n&&(n=e[c],u=e[c+1]),l=y}}else for(l=s=xp(t,e[c=e.length-o],e[c+1],a++),n=e[c],u=e[c+1],c-=o,f=0;f<=c;c-=o)y=xp(t,e[c],e[c+1],a++),h.push(Sp(l,y,i)),p.push([Math.min(l.x,y.x),Math.min(l.y,y.y),Math.max(l.x,y.x),Math.max(l.y,y.y)]),e[c]>n&&(n=e[c],u=e[c+1]),l=y;return h.push(Sp(y,s,i)),p.push([Math.min(l.x,y.x),Math.min(l.y,y.y),Math.max(l.x,y.x),Math.max(l.y,y.y)]),r.load(p,h),[n,u]}function vp(t,e,o){var i=Ba(t),r=i,n=Xa(t),s=!1;do{var a=o?Vs(n.W.x,n.W.y,r.W.x,r.W.y,r.aa.x,r.aa.y):Vs(r.aa.x,r.aa.y,r.W.x,r.W.y,n.W.x,n.W.y)}while(void 0===a?(Mp(r,n,t,e),s=!0,n===i&&(i=Va(t)),n=r,Wa(t)):r.W.Fb!==a&&(r.W.Fb=a,s=!0),r=n,n=Xa(t),r!==i);return s}function bp(t,e,o,i,r){var n=t.b.length,s=Ba(e),a=Za(e),p=s,h=Xa(e),l=Va(e),u=!1;do{var c,f=p.aa,y=p.W,g=h.W}while(!1===y.Fb&&(c=r?Tp(l.W,g,y,f,a.aa):Tp(a.aa,f,y,g,l.W),!i&&Ap({aa:f,W:g},o).length||!c||Pp(f,y,g,o,!0).length||!i&&!1!==f.Fb&&!1!==g.Fb&&yr([a.aa.x,a.aa.y,f.x,f.y,y.x,y.y,g.x,g.y,l.W.x,l.W.y],0,10,2)!==!r||(t.b[n++]=f.hb,t.b[n++]=y.hb,t.b[n++]=g.hb,Mp(p,h,e,o),h===s&&(s=l),u=!0)),a=Za(e),p=Ka(e),h=Xa(e),l=Va(e),p!==s&&3<e.c);return u}function mp(t,e,o,i){var r=Ba(e);Xa(e);var n=r,s=Xa(e),a=!1;do{var p=Ep(n.aa,n.W,s.aa,s.W,i);if(p){var a=t.b.length,h=t.a.length/2,l=Wa(e);Ga(e),o.remove(l);var u=l===r;if(i?(u=p[0]===n.aa.x&&p[1]===n.aa.y?(Wa(e),p=n.aa,s.aa=p,o.remove(n),u||n===r):(p=s.W,n.W=p,o.remove(s),u||s===r),Ga(e)):(p=xp(t,p[0],p[1],h),n.W=p,s.aa=p,hp(o,[Math.min(n.aa.x,n.W.x),Math.min(n.aa.y,n.W.y),Math.max(n.aa.x,n.W.x),Math.max(n.aa.y,n.W.y)],n),hp(o,[Math.min(s.aa.x,s.W.x),Math.min(s.aa.y,s.W.y),Math.max(s.aa.x,s.W.x),Math.max(s.aa.y,s.W.y)],s)),t.b[a++]=l.aa.hb,t.b[a++]=l.W.hb,t.b[a++]=p.hb,a=!0,u)break}}while(n=Za(e),s=Xa(e),n!==r);return a}function wp(t,e){var o=Ba(t),i=o;do{if(Ap(i,e).length)return!1}while((i=Xa(t))!==o);return!0}function xp(t,e,o,i){var r=t.a.length;return{x:t.a[r++]=e,y:t.a[+r]=o,hb:i,Fb:void 0}}function Sp(t,e,o,i){var r,n={aa:t,W:e},s={ub:void 0,next:void 0,data:n},a=o.b;return a?(r=a.next,s.ub=a,s.next=r,a.next=s,r&&(r.ub=s),a===o.a&&(o.a=s)):(o.i=s,o.a=s,o.f&&((s.next=s).ub=s)),o.b=s,o.c++,i&&i.Ca([Math.min(t.x,e.x),Math.min(t.y,e.y),Math.max(t.x,e.x),Math.max(t.y,e.y)],n),n}function Mp(t,e,o,i){Ka(o)===e&&(Ga(o),t.W=e.W,i.remove(e),hp(i,[Math.min(t.aa.x,t.W.x),Math.min(t.aa.y,t.W.y),Math.max(t.aa.x,t.W.x),Math.max(t.aa.y,t.W.y)],t))}function Pp(t,e,o,i,r){var n,s,a=[],p=up(i,[Math.min(t.x,e.x,o.x),Math.min(t.y,e.y,o.y),Math.max(t.x,e.x,o.x),Math.max(t.y,e.y,o.y)]);for(i=0,n=p.length;i<n;++i)for(s in p[i]){var h=p[i][s];"object"!=typeof h||r&&!h.Fb||h.x===t.x&&h.y===t.y||h.x===e.x&&h.y===e.y||h.x===o.x&&h.y===o.y||-1!==a.indexOf(h)||!pr([t.x,t.y,e.x,e.y,o.x,o.y],0,6,2,h.x,h.y)||a.push(h)}return a}function Ap(t,e,o){for(var i=t.aa,r=t.W,n=[],s=0,a=(e=up(e,[Math.min(i.x,r.x),Math.min(i.y,r.y),Math.max(i.x,r.x),Math.max(i.y,r.y)])).length;s<a;++s){var p=e[s];t!==p&&(o||p.aa!==r||p.W!==i)&&Ep(i,r,p.aa,p.W,o)&&n.push(p)}return n}function Ep(t,e,o,i,r){var n=(i.y-o.y)*(e.x-t.x)-(i.x-o.x)*(e.y-t.y);if(n&&(i=((i.x-o.x)*(t.y-o.y)-(i.y-o.y)*(t.x-o.x))/n,o=((e.x-t.x)*(t.y-o.y)-(e.y-t.y)*(t.x-o.x))/n,!r&&Ws<i&&i<1-Ws&&Ws<o&&o<1-Ws||r&&0<=i&&i<=1&&0<=o&&o<=1))return[t.x+i*(e.x-t.x),t.y+i*(e.y-t.y)]}function Tp(t,e,o,i,r){if(void 0===e.Fb||void 0===i.Fb)return!1;var n=(o.x-i.x)*(e.y-i.y)>(o.y-i.y)*(e.x-i.x);return r=(r.x-i.x)*(e.y-i.y)<(r.y-i.y)*(e.x-i.x),t=(t.x-e.x)*(i.y-e.y)>(t.y-e.y)*(i.x-e.x),o=(o.x-e.x)*(i.y-e.y)<(o.y-e.y)*(i.x-e.x),e=e.Fb?o||t:o&&t,(i.Fb?r||n:r&&n)&&e}function jp(){}function Cp(t,e,o){this.f=e,this.g=t,this.c=o,this.a={}}function Lp(t,e){var o,i=[];for(o in t.a){var r,n=t.a[o];for(r in n)i.push(n[r].Eb(e))}return function(){for(var t,e=i.length,o=0;o<e;o++)t=i[o].apply(this,arguments);return t}}function Rp(t,e,o,i,r,n,s,a,p,h,l){var u=Ip,c=Object.keys(t.a).map(Number);c.sort(function(t,e){return e-t});for(var f=0,y=c.length;f<y;++f)for(var g=t.a[c[f].toString()],d=As.length-1;0<=d;--d){var v=g[As[d]];if(void 0!==v&&(v=v.La(e,o,i,r,u,n,s,a,p,h,l)))return v}}Po=Ya.$d=Ya.$d||{},za=function t(e,o,i,r,n){for(i=i||0,r=r||e.length-1,n=n||qa;i<r;){var s,a,p,h;for(600<r-i&&(s=r-i+1,a=o-i+1,h=Math.log(s),p=.5*Math.exp(2*h/3),h=.5*Math.sqrt(h*p*(s-p)/s)*(a-s/2<0?-1:1),t(e,o,Math.max(i,Math.floor(o-a*p/s+h)),Math.min(r,Math.floor(o+(s-a)*p/s+h)),n)),s=e[o],p=r,Ha(e,a=i,o),0<n(e[r],s)&&Ha(e,i,r);a<p;){for(Ha(e,a,p),a++,p--;n(e[a],s)<0;)a++;for(;0<n(e[p],s);)p--}0===n(e[i],s)?Ha(e,i,p):Ha(e,++p,r),p<=o&&(i=p+1),o<=p&&(r=p-1)}},Ja.prototype={all:function(){return this.$g(this.data,[])},search:function(t){var e=this.data,o=[],i=this.wb;if(!np(t,e))return o;for(var r,n,s,a,p=[];e;){for(r=0,n=e.children.length;r<n;r++)s=e.children[r],np(t,a=e.ib?i(s):s)&&(e.ib?o.push(s):rp(t,a)?this.$g(s,o):p.push(s));e=p.pop()}return o},load:function(t){if(!t||!t.length)return this;if(t.length<this.fh){for(var e=0,o=t.length;e<o;e++)this.Ca(t[e]);return this}return t=this.bh(t.slice(),0,t.length-1,0),this.data.children.length?this.data.height===t.height?this.hh(this.data,t):(this.data.height<t.height&&(e=this.data,this.data=t,t=e),this.eh(t,this.data.height-t.height-1,!0)):this.data=t,this},Ca:function(t){return t&&this.eh(t,this.data.height-1),this},clear:function(){return this.data=sp([]),this},remove:function(t,e){if(!t)return this;for(var o,i,r,n=this.data,s=this.wb(t),a=[],p=[];n||a.length;){if(n||(n=a.pop(),i=a[a.length-1],o=p.pop(),r=!0),n.ib){t:{var h=t,l=n.children,u=e;if(u){for(var c=0;c<l.length;c++)if(u(h,l[c])){h=c;break t}h=-1}else h=l.indexOf(h)}if(-1!==h){n.children.splice(h,1),a.push(n),this.ck(a);break}}r||n.ib||!rp(n,s)?i?(o++,n=i.children[o],r=!1):n=null:(a.push(n),p.push(o),n=(i=n).children[o=0])}return this},wb:function(t){return t},Lf:tp,Mf:ep,toJSON:function(){return this.data},$g:function(t,e){for(var o=[];t;)t.ib?e.push.apply(e,t.children):o.push.apply(o,t.children),t=o.pop();return e},bh:function(t,e,o,i){var r,n=o-e+1,s=this.Hf;if(n<=s){var a=sp(t.slice(e,o+1));return _a(a,this.wb),a}for(i||(i=Math.ceil(Math.log(n)/Math.log(s)),s=Math.ceil(n/Math.pow(s,i-1))),(a=sp([])).ib=!1,a.height=i,ap(t,e,o,s=(n=Math.ceil(n/s))*Math.ceil(Math.sqrt(s)),this.Lf);e<=o;e+=s){var p=Math.min(e+s-1,o);for(ap(t,e,p,n,this.Mf),r=e;r<=p;r+=n){var h=Math.min(r+n-1,p);a.children.push(this.bh(t,r,h,i-1))}}return _a(a,this.wb),a},bk:function(t,e,o,i){for(var r,n,s,a,p,h,l,u;i.push(e),!e.ib&&i.length-1!==o;){for(l=u=1/0,r=0,n=e.children.length;r<n;r++)p=op(s=e.children[r]),(h=(Math.max(s.$,t.$)-Math.min(s.ca,t.ca))*(Math.max(s.ia,t.ia)-Math.min(s.da,t.da))-p)<u?(u=h,l=p<l?p:l,a=s):h===u&&p<l&&(l=p,a=s);e=a||e.children[0]}return e},eh:function(t,e,o){var i=this.wb;o=o?t:i(t);var r=this.bk(o,this.data,e,i=[]);for(r.children.push(t),Qa(r,o);0<=e&&i[e].children.length>this.Hf;)this.jk(i,e),e--;this.Zj(o,i,e)},jk:function(t,e){var o=t[e],i=o.children.length,r=this.fh;this.$j(o,r,i),i=this.ak(o,r,i),(i=sp(o.children.splice(i,o.children.length-i))).height=o.height,i.ib=o.ib,_a(o,this.wb),_a(i,this.wb),e?t[e-1].children.push(i):this.hh(o,i)},hh:function(t,e){this.data=sp([t,e]),this.data.height=t.height+1,this.data.ib=!1,_a(this.data,this.wb)},ak:function(t,e,o){for(var i=s=1/0,r=e;r<=o-e;r++){var n,s,a=$a(t,0,r,this.wb),p=$a(t,r,o,this.wb),h=Math.max(0,Math.min(a.$,p.$)-Math.max(a.ca,p.ca))*Math.max(0,Math.min(a.ia,p.ia)-Math.max(a.da,p.da)),a=op(a)+op(p);h<i?(i=h,n=r,s=a<s?a:s):h===i&&a<s&&(s=a,n=r)}return n},$j:function(t,e,o){var i=t.ib?this.Lf:tp,r=t.ib?this.Mf:ep;this.ah(t,e,o,i)<(e=this.ah(t,e,o,r))&&t.children.sort(i)},ah:function(t,e,o,i){t.children.sort(i);for(var r=$a(t,0,e,i=this.wb),n=$a(t,o-e,o,i),s=ip(r)+ip(n),a=e;a<o-e;a++){var p=t.children[a];Qa(r,t.ib?i(p):p),s+=ip(r)}for(a=o-e-1;e<=a;a--)p=t.children[a],Qa(n,t.ib?i(p):p),s+=ip(n);return s},Zj:function(t,e,o){for(;0<=o;o--)Qa(e[o],t)},ck:function(t){for(var e,o=t.length-1;0<=o;o--)0===t[o].children.length?0<o?(e=t[o-1].children).splice(e.indexOf(t[o]),1):this.clear():_a(t[o],this.wb)},ek:function(t){var e=["return a"," - b",";"];this.Lf=new Function("a","b",e.join(t[0])),this.Mf=new Function("a","b",e.join(t[1])),this.wb=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}},Po.default=Ja,Ya.$d=Ya.$d.default,(Mu=pp.prototype).Ca=function(t,e){t={ca:t[0],da:t[1],$:t[2],ia:t[3],value:e},this.a.Ca(t),this.b[G(e)]=t},Mu.load=function(t,e){for(var o=Array(e.length),i=0,r=e.length;i<r;i++){var n=t[i],s=e[i],n={ca:n[0],da:n[1],$:n[2],ia:n[3],value:s};o[i]=n,this.b[G(s)]=n}this.a.load(o)},Mu.remove=function(t){t=G(t);var e=this.b[t];return delete this.b[t],null!==this.a.remove(e)},Mu.forEach=function(t,e){return fp(lp(this),t,e)},Mu.clear=function(){this.a.clear(),this.b={}},Mu.G=function(t){var e=this.a.data;return F(e.ca,e.da,e.$,e.ia,t)},Mu.concat=function(t){for(var e in this.a.load(t.a.all()),t.b)this.b[0|e]=t.b[0|e]},e(yp,Os),(Mu=yp.prototype).pc=function(t,e){var o=t.c,i=t.qa(),r=this.b.length,n=this.g.b.length;t=t.ga();for(var s=c=0,a=o.length;s<a;++s){var p=o[s];if(0<p.length){var h=Bi(t,c,p[0],i,-this.origin[0],-this.origin[1]);if(h.length){for(var l,u=[],c=1,f=p.length;c<f;++c)p[c]!==p[c-1]&&(l=Bi(t,p[c-1],p[c],i,-this.origin[0],-this.origin[1]),u.push(l));xa(this.g,h,u,i),gp(this,h,u,i)}}c=p[p.length-1]}this.b.length>r&&(this.i.push(r),this.f.push(e),this.j.s&&(this.c.push(r),this.j.s=!1)),this.g.b.length>n&&Sa(this.g,e,n)},Mu.rc=function(t,e){var o=t.Bb(),i=t.qa();if(0<o.length){var r=Bi(t=t.ga().map(Number),0,o[0],i,-this.origin[0],-this.origin[1]);if(r.length){for(var n,s=[],a=1,p=o.length;a<p;++a)o[a]!==o[a-1]&&(n=Bi(t,o[a-1],o[a],i,-this.origin[0],-this.origin[1]),s.push(n));this.i.push(this.b.length),this.f.push(e),this.j.s&&(this.c.push(this.b.length),this.j.s=!1),Sa(this.g,e),xa(this.g,r,s,i),gp(this,r,s,i)}}},Mu.Db=function(t){this.l=new Zs(this.a),this.o=new Zs(this.b),this.i.push(this.b.length),this.g.Db(t),!this.c.length&&0<this.u.length&&(this.u=[]),this.b=this.a=null},Mu.Eb=function(t){var e=this.l,o=this.o,i=this.g.Eb(t);return function(){ea(t,e),ea(t,o),i()}},Mu.rf=function(t,e){var o,i=ra(e,Na,ka);return this.v?o=this.v:this.v=o=new Da(t,i),e.Qc(i),t.enableVertexAttribArray(o.b),t.vertexAttribPointer(o.b,2,5126,!1,8,0),o},Mu.sf=function(t,e){t.disableVertexAttribArray(e.b)},Mu.Od=function(t,e,o,i){var r=t.getParameter(t.DEPTH_FUNC),n=t.getParameter(t.DEPTH_WRITEMASK);if(i||(t.enable(t.DEPTH_TEST),t.depthMask(!0),t.depthFunc(t.NOTEQUAL)),ct(o)){var s=this.i[this.i.length-1];for(o=this.c.length-1;0<=o;--o){var a=this.c[o],p=this.u[o];t.uniform4fv(this.v.B,p),Us(t,e,a,s),s=a}}else for(var h=this.i.length-2,p=s=this.i[h+1],a=this.c.length-1;0<=a;--a){var l=this.u[a];for(t.uniform4fv(this.v.B,l),l=this.c[a];0<=h&&this.i[h]>=l;){var u=this.i[h];o[G(this.f[h]).toString()]&&(s!==p&&(Us(t,e,s,p),t.clear(t.DEPTH_BUFFER_BIT)),p=u),h--,s=u}s!==p&&(Us(t,e,s,p),t.clear(t.DEPTH_BUFFER_BIT)),s=p=l}i||(t.disable(t.DEPTH_TEST),t.clear(t.DEPTH_BUFFER_BIT),t.depthMask(n),t.depthFunc(r))},Mu.ve=function(t,e,o,i,r){for(var n,s=this.i.length-2,a=this.i[s+1],p=this.c.length-1;0<=p;--p){var h=this.u[p];for(t.uniform4fv(this.v.B,h),n=this.c[p];0<=s&&this.i[s]>=n;){var h=this.i[s],l=this.f[s];if(void 0===o[G(l).toString()]&&l.V()&&(void 0===r||nt(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),Us(t,e,h,a),a=i(l)))return a;s--,a=h}}},Mu.Ma=function(t,e){t=!((t=t?t.b:[0,0,0,0])instanceof CanvasGradient||t instanceof CanvasPattern)&&Be(t).map(function(t,e){return 3!=e?t/255:t})||Gs,this.j.fillColor&&U(t,this.j.fillColor)||(this.j.fillColor=t,this.j.s=!0,this.u.push(t)),e?this.g.Ma(null,e):this.g.Ma(null,new Oa({color:[0,0,0,0],lineWidth:0}))},jp.prototype.La=function(){},e(Cp,Es),Cp.prototype.b=function(t,e){var o=void 0!==t?t.toString():"0";return void 0===(t=this.a[o])&&(this.a[o]=t={}),void 0===(o=t[e])&&(o=new Np[e](this.g,this.f),t[e]=o),o},Cp.prototype.i=function(){return ct(this.a)},Cp.prototype.La=function(t,e,o,i,r,n,s,a){var p=Object.keys(this.a).map(Number);p.sort(D);for(var h=0,l=p.length;h<l;++h)for(var u=this.a[p[h].toString()],c=0,f=As.length;c<f;++c){var y=u[As[c]];void 0!==y&&y.La(t,e,o,i,r,n,s,a,void 0,!1)}},Cp.prototype.Ea=function(t,e,o,i,r,n,s,a,p,h){var l,u=e.b;return u.bindFramebuffer(u.FRAMEBUFFER,oa(e)),Rp(this,e,t,i,r,s,a,p,function(t){var e=new Uint8Array(4);if(u.readPixels(0,0,1,1,u.RGBA,u.UNSIGNED_BYTE,e),0<e[3]&&(t=h(t)))return t},!0,l=void 0!==this.c?A(k(t),i*this.c):l)};var Ip=[1,1],Np={Circle:zs,Image:pa,LineString:va,Polygon:yp,Text:jp};function Fp(t,e,o,i,r,n,s){this.b=t,this.i=e,this.a=n,this.c=s,this.j=r,this.g=i,this.f=o,this.o=this.l=this.v=null}function kp(){this.c=0,this.b={},this.i=this.a=null}function Dp(t,e){rs.call(this,0,e),this.b=document.createElement("CANVAS"),this.b.style.width="100%",this.b.style.height="100%",this.b.style.display="block",this.b.className="ol-unselectable",t.insertBefore(this.b,t.childNodes[0]||null),this.S=this.D=0,this.C=Ye(),this.l=!0,this.i=Mo(this.b,{antialias:!0,depth:!0,failIfMajorPerformanceCaveat:!0,preserveDrawingBuffer:!1,stencil:!0}),this.f=new Qs(this.b,this.i),de(this.b,"webglcontextlost",this.Yn,this),de(this.b,"webglcontextrestored",this.Zn,this),this.a=new kp,this.u=null,this.j=new yi(function(t){var e=t[1];t=t[2];var o=e[0]-this.u[0],e=e[1]-this.u[1];return 65536*Math.log(t)+Math.sqrt(o*o+e*e)/t}.bind(this),function(t){return t[0].bb()}),this.B=function(){var t;return this.j.b.length&&(bi(this.j),Op(this,(t=gi(this.j))[0],t[3],t[4])),!1}.bind(this),this.g=0,Gp(this)}function Op(t,e,o,i){var r,n,s,a=t.i,p=e.bb();t.a.b.hasOwnProperty(p)?(t=t.a.get(p),a.bindTexture(3553,t.Ib),9729!=t.Ph&&(a.texParameteri(3553,10240,9729),t.Ph=9729),9729!=t.Rh&&(a.texParameteri(3553,10241,9729),t.Rh=9729)):(r=a.createTexture(),a.bindTexture(3553,r),0<i?(n=t.C.canvas,s=t.C,t.D!==o[0]||t.S!==o[1]?(n.width=o[0],n.height=o[1],t.D=o[0],t.S=o[1]):s.clearRect(0,0,o[0],o[1]),s.drawImage(e.Y(),i,i,o[0],o[1],0,0,o[0],o[1]),a.texImage2D(3553,0,6408,6408,5121,n)):a.texImage2D(3553,0,6408,6408,5121,e.Y()),a.texParameteri(3553,10240,9729),a.texParameteri(3553,10241,9729),a.texParameteri(3553,10242,33071),a.texParameteri(3553,10243,33071),t.a.set(p,{Ib:r,Ph:9729,Rh:9729}))}function Up(t,e,o){var i,r=t.o;Ee(r,e)&&(t=t.f,i=o.viewState,r.b(new ls(e,new Fp(t,i.center,i.resolution,i.rotation,o.size,o.extent,o.pixelRatio),o,null,t)))}function Gp(t){(t=t.i).activeTexture(33984),t.blendFuncSeparate(770,771,1,771),t.disable(2884),t.disable(2929),t.disable(3089),t.disable(2960)}e(Fp,gs),(Mu=Fp.prototype).rd=function(t){this.Ma(t.Fa(),t.Ga()),this.Ub(t.Y())},Mu.zb=function(t){switch(t.U()){case"Point":this.qc(t,null);break;case"LineString":this.mc(t,null);break;case"Polygon":this.rc(t,null);break;case"MultiPoint":this.oc(t,null);break;case"MultiLineString":this.nc(t,null);break;case"MultiPolygon":this.pc(t,null);break;case"GeometryCollection":this.ue(t,null);break;case"Circle":this.Zb(t,null)}},Mu.te=function(t,e){(t=(0,e.Za)(t))&&nt(this.a,t.G())&&(this.rd(e),this.zb(t))},Mu.ue=function(t){for(var e=0,o=(t=t.a).length;e<o;++e)this.zb(t[e])},Mu.qc=function(t,e){var o=this.b,i=new Cp(1,this.a).b(0,"Image");i.Ub(this.v),i.qc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},Mu.oc=function(t,e){var o=this.b,i=new Cp(1,this.a).b(0,"Image");i.Ub(this.v),i.oc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},Mu.mc=function(t,e){var o=this.b,i=new Cp(1,this.a).b(0,"LineString");i.Ma(null,this.o),i.mc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},Mu.nc=function(t,e){var o=this.b,i=new Cp(1,this.a).b(0,"LineString");i.Ma(null,this.o),i.nc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},Mu.rc=function(t,e){var o=this.b,i=new Cp(1,this.a).b(0,"Polygon");i.Ma(this.l,this.o),i.rc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},Mu.pc=function(t,e){var o=this.b,i=new Cp(1,this.a).b(0,"Polygon");i.Ma(this.l,this.o),i.pc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},Mu.Zb=function(t,e){var o=this.b,i=new Cp(1,this.a).b(0,"Circle");i.Ma(this.l,this.o),i.Zb(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},Mu.Ub=function(t){this.v=t},Mu.Ma=function(t,e){this.l=t,this.o=e},(Mu=kp.prototype).clear=function(){this.c=0,this.b={},this.i=this.a=null},Mu.forEach=function(t,e){for(var o=this.a;o;)t.call(e,o.Yc,o.uc,this),o=o.Nb},Mu.get=function(t){return O(!!(t=this.b[t]),15),t===this.i?t.Yc:(t===this.a?(this.a=this.a.Nb,this.a.vd=null):(t.Nb.vd=t.vd,t.vd.Nb=t.Nb),t.Nb=null,t.vd=this.i,(this.i=this.i.Nb=t).Yc)},Mu.pop=function(){var t=this.a;return delete this.b[t.uc],t.Nb&&(t.Nb.vd=null),this.a=t.Nb,this.a||(this.i=null),--this.c,t.Yc},Mu.replace=function(t,e){this.get(t),this.b[t].Yc=e},Mu.set=function(t,e){O(!(t in this.b),16),e={uc:t,Nb:null,vd:this.i,Yc:e},this.i?this.i.Nb=e:this.a=e,this.i=e,this.b[t]=e,++this.c},e(Dp,rs),(Mu=Dp.prototype).ka=function(){var e=this.i;e.isContextLost()||this.a.forEach(function(t){t&&e.deleteTexture(t.Ib)}),Se(this.f),rs.prototype.ka.call(this)},Mu.xk=function(t,e){t=this.i;for(var o;1024<this.a.c-this.g;){if(o=this.a.a.Yc)t.deleteTexture(o.Ib);else{if(+this.a.a.uc==e.index)break;--this.g}this.a.pop()}},Mu.U=function(){return"webgl"},Mu.Yn=function(t){for(var e in t.preventDefault(),this.a.clear(),this.g=0,t=this.c)t[e].mg()},Mu.Zn=function(){Gp(this),this.o.render()},Mu.Jg=function(t){var e=this.f,o=this.i;if(o.isContextLost())return!1;if(!t)return this.l&&(this.b.style.display="none",this.l=!1),!1;this.u=t.focus,this.a.set((-t.index).toString(),null),++this.g,Up(this,"precompose",t);var i=[],r=t.layerStatesArray;h(r);for(var n=t.viewState.resolution,s=0,a=r.length;s<a;++s){var p=r[s];!Wn(p,n)||"ready"!=p.yj||as(this,p.layer).ng(t,p,e)&&i.push(p)}for(r=t.size[0]*t.pixelRatio,n=t.size[1]*t.pixelRatio,this.b.width==r&&this.b.height==n||(this.b.width=r,this.b.height=n),o.bindFramebuffer(36160,null),o.clearColor(0,0,0,0),o.clear(16384),o.enable(3042),o.viewport(0,0,this.b.width,this.b.height),s=0,a=i.length;s<a;++s)as(this,(p=i[s]).layer).Gi(t,p,e);this.l||(this.b.style.display="",this.l=!0),ns(t),1024<this.a.c-this.g&&t.postRenderFunctions.push(this.xk.bind(this)),this.j.b.length&&(t.postRenderFunctions.push(this.B),t.animate=!0),Up(this,"postcompose",t),ps(this,t),t.postRenderFunctions.push(ss)},Mu.Ea=function(t,e,o,i,r,n,s){if(this.i.isContextLost())return!1;for(var a=e.viewState,p=e.layerStatesArray,h=p.length-1;0<=h;--h){var l=p[h],u=l.layer;if(Wn(l,a.resolution)&&n.call(s,u)&&(l=as(this,u).Ea(t,e,o,i,r)))return l}},Mu.Ei=function(t,e,o,i,r){if(o=!1,this.i.isContextLost())return!1;for(var n=e.viewState,s=e.layerStatesArray,a=s.length-1;0<=a;--a){var p=s[a],h=p.layer;if(Wn(p,n.resolution)&&i.call(r,h)&&(o=as(this,h).Ue(t,e)))return!0}return o},Mu.Di=function(t,e,o,i,r){if(this.i.isContextLost())return!1;for(var n=e.viewState,s=e.layerStatesArray,a=s.length-1;0<=a;--a){var p=s[a],h=p.layer;if(Wn(p,n.resolution)&&r.call(i,h)&&(p=as(this,h).lg(t,e,o,i)))return p}};var Bp=["canvas","webgl"];function Xp(t){je.call(this);var e=function(t){var e=null;void 0!==t.keyboardEventTarget&&(e="string"==typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);var o={},i={};void 0===t.logo||"boolean"==typeof t.logo&&t.logo?i["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"]="https://openlayers.org/":"string"==typeof(s=t.logo)?i[s]="":s instanceof HTMLElement?i[G(s).toString()]=s:s&&(O("string"==typeof s.href,44),O("string"==typeof s.src,45),i[s.src]=s.href);s=t.layers instanceof Bn?t.layers:new Bn({layers:t.layers}),o.layergroup=s,o.target=t.target,o.view=void 0!==t.view?t.view:new Pr;var r,n,s=rs;void 0!==t.renderer?(Array.isArray(t.renderer)?r=t.renderer:"string"==typeof t.renderer?r=[t.renderer]:O(!1,46),0<=r.indexOf("dom")&&(r=r.concat(Bp))):r=Bp;var a=0;for(n=r.length;a<n;++a){var p=r[a];if("canvas"==p){if(Ro){s=Ms;break}}else if("webgl"==p&&Go){s=Dp;break}}return r=void 0!==t.controls?Array.isArray(t.controls)?new Ne(t.controls.slice()):(O(t.controls instanceof Ne,47),t.controls):ao(),a=void 0!==t.interactions?Array.isArray(t.interactions)?new Ne(t.interactions.slice()):(O(t.interactions instanceof Ne,48),t.interactions):On(),t=void 0!==t.overlays?Array.isArray(t.overlays)?new Ne(t.overlays.slice()):(O(t.overlays instanceof Ne,49),t.overlays):new Ne,{controls:r,interactions:a,keyboardEventTarget:e,logos:i,overlays:t,Up:s,values:o}}(t);this.Cf=void 0!==t.loadTilesWhileAnimating&&t.loadTilesWhileAnimating,this.Df=void 0!==t.loadTilesWhileInteracting&&t.loadTilesWhileInteracting,this.If=void 0!==t.pixelRatio?t.pixelRatio:Co,this.yf=e.logos,this.pa=function(){this.j=void 0,this.Sp.call(this,Date.now())}.bind(this),this.Yb=Yn(),this.Jf=Yn(),this.ad=0,this.I=this.R=this.T=this.g=this.c=null,this.a=document.createElement("DIV"),this.a.className="ol-viewport"+(Fo?" ol-touch":""),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.C=document.createElement("DIV"),this.C.className="ol-overlaycontainer",this.a.appendChild(this.C),this.D=document.createElement("DIV"),this.D.className="ol-overlaycontainer-stopevent";for(var o,i="click dblclick mousedown touchstart MSPointerDown pointerdown mousewheel wheel".split(" "),r=0,n=i.length;r<n;++r)de(this.D,i[r],Pe);for(o in this.a.appendChild(this.D),this.Sa=new ui(this,t.moveTolerance),Vo)de(this.Sa,Vo[o],this.Ih,this);this.va=e.keyboardEventTarget,this.u=null,de(this.a,"wheel",this.ld,this),de(this.a,"mousewheel",this.ld,this),this.l=e.controls,this.o=e.interactions,this.v=e.overlays,this.rg={},this.B=new e.Up(this.a,this),this.na=null,this.xb=[],this.$a=new mi(this.ql.bind(this),this.Wl.bind(this)),this.fa={},de(this,Le("layergroup"),this.El,this),de(this,Le("view"),this.Xl,this),de(this,Le("size"),this.Tl,this),de(this,Le("target"),this.Vl,this),this.H(e.values),this.l.forEach(function(t){t.setMap(this)},this),de(this.l,"add",function(t){t.element.setMap(this)},this),de(this.l,"remove",function(t){t.element.setMap(null)},this),this.o.forEach(function(t){t.setMap(this)},this),de(this.o,"add",function(t){t.element.setMap(this)},this),de(this.o,"remove",function(t){t.element.setMap(null)},this),this.v.forEach(this.kh,this),de(this.v,"add",function(t){this.kh(t.element)},this),de(this.v,"remove",function(t){var e=t.element.g;void 0!==e&&delete this.rg[e.toString()],t.element.setMap(null)},this)}function Vp(t){je.call(this),this.g=t.id,this.l=void 0===t.insertFirst||t.insertFirst,this.v=void 0===t.stopEvent||t.stopEvent,this.c=document.createElement("DIV"),this.c.className="ol-overlay-container ol-selectable",this.c.style.position="absolute",this.autoPan=void 0!==t.autoPan&&t.autoPan,this.j=t.autoPanAnimation||{},this.o=void 0!==t.autoPanMargin?t.autoPanMargin:20,this.a={re:"",Ie:"",nf:"",vf:"",visible:!0},this.f=null,de(this,Le(zp),this.zl,this),de(this,Le(Yp),this.Jl,this),de(this,Le(Hp),this.Nl,this),de(this,Le(qp),this.Pl,this),de(this,Le(Jp),this.Ql,this),void 0!==t.element&&this.lj(t.element),this.rj(void 0!==t.offset?t.offset:[0,0]),this.uj(void 0!==t.positioning?t.positioning:"top-left"),void 0!==t.position&&this.Ne(t.position)}function Wp(t,e){var o=t.getBoundingClientRect();return[t=o.left+window.pageXOffset,o=o.top+window.pageYOffset,t+e[0],o+e[1]]}function Zp(t,e){t.a.visible!==e&&(t.c.style.display=e?"":"none",t.a.visible=e)}function Kp(t){var e,o,i,r,n=t.Me(),s=t.Yh();n&&n.c&&s?(s=n.Ja(s),e=n.Ob(),n=t.c.style,r=t.Dh(),o=t.Eh(),Zp(t,!0),i=r[0],r=r[1],"bottom-right"==o||"center-right"==o||"top-right"==o?(""!==t.a.Ie&&(t.a.Ie=n.left=""),i=Math.round(e[0]-s[0]-i)+"px",t.a.nf!=i&&(t.a.nf=n.right=i)):(""!==t.a.nf&&(t.a.nf=n.right=""),"bottom-center"!=o&&"center-center"!=o&&"top-center"!=o||(i-=t.c.offsetWidth/2),i=Math.round(s[0]+i)+"px",t.a.Ie!=i&&(t.a.Ie=n.left=i)),"bottom-left"==o||"bottom-center"==o||"bottom-right"==o?(""!==t.a.vf&&(t.a.vf=n.top=""),s=Math.round(e[1]-s[1]-r)+"px",t.a.re!=s&&(t.a.re=n.bottom=s)):(""!==t.a.re&&(t.a.re=n.bottom=""),"center-left"!=o&&"center-center"!=o&&"center-right"!=o||(r-=t.c.offsetHeight/2),s=Math.round(s[1]+r)+"px",t.a.vf!=s&&(t.a.vf=n.top=s))):Zp(t,!1)}e(Xp,je),(Mu=Xp.prototype).kk=function(t){this.l.push(t)},Mu.lk=function(t){this.o.push(t)},Mu.ih=function(t){this.Kc().qd().push(t)},Mu.jh=function(t){this.v.push(t)},Mu.kh=function(t){var e=t.g;void 0!==e&&(this.rg[e.toString()]=t),t.setMap(this)},Mu.ka=function(){Se(this.Sa),Se(this.B),be(this.a,"wheel",this.ld,this),be(this.a,"mousewheel",this.ld,this),this.f&&(window.removeEventListener("resize",this.f,!1),this.f=void 0),this.j&&(cancelAnimationFrame(this.j),this.j=void 0),this.Le(null),je.prototype.ka.call(this)},Mu.we=function(t,e,o){if(this.c)return t=this.Wa(t),this.B.Ea(t,this.c,void 0!==(o=o||{}).hitTolerance?o.hitTolerance*this.c.pixelRatio:0,e,null,o.layerFilter||Di,null)},Mu.Im=function(t,e,o,i,r){if(this.c)return this.B.Di(t,this.c,e,void 0!==o?o:null,i||Di,void 0!==r?r:null)},Mu.Yl=function(t,e){return!!this.c&&(t=this.Wa(t),this.B.Ei(t,this.c,void 0!==(e=e||{}).hitTolerance?e.hitTolerance*this.c.pixelRatio:0,e.layerFilter||Di,null))},Mu.Tf=function(t){return this.Wa(this.xe(t))},Mu.xe=function(t){var e=this.a.getBoundingClientRect();return[(t=t.changedTouches?t.changedTouches[0]:t).clientX-e.left,t.clientY-e.top]},Mu.ag=function(){return this.get("target")},Mu.jd=function(){var t=this.ag();return void 0!==t?"string"==typeof t?document.getElementById(t):t:null},Mu.Wa=function(t){var e=this.c;return e?$n(e.pixelToCoordinateTransform,t.slice()):null},Mu.Lk=function(){return this.l},Mu.fl=function(){return this.v},Mu.el=function(t){return void 0!==(t=this.rg[t.toString()])?t:null},Mu.Sk=function(){return this.o},Mu.Kc=function(){return this.get("layergroup")},Mu.Xh=function(){return this.Kc().qd()},Mu.Ja=function(t){var e=this.c;return e?$n(e.coordinateToPixelTransform,t.slice(0,2)):null},Mu.Ob=function(){return this.get("size")},Mu.Z=function(){return this.get("view")},Mu.sl=function(){return this.a},Mu.ql=function(t,e,o,i){var r=this.c;return r&&e in r.wantedTiles&&r.wantedTiles[e][t.bb()]?(t=o[0]-r.focus[0],o=o[1]-r.focus[1],65536*Math.log(i)+Math.sqrt(t*t+o*o)/i):1/0},Mu.ld=function(t,e){t=new xo(e||t.type,this,t),this.Ih(t)},Mu.Ih=function(t){if(this.c){this.na=t.coordinate,t.frameState=this.c;var e,o=this.o.a;if(!1!==this.b(t))for(e=o.length-1;0<=e;e--){var i=o[e];if(i.c()&&!i.handleEvent(t))break}}},Mu.Rl=function(){var t,e,o,i=this.c,r=this.$a;for(r.b.length&&(e=t=16,i&&((o=i.viewHints)[0]&&(t=this.Cf?8:0,e=2),o[1]&&(t=this.Df?8:0,e=2)),r.j<t&&(bi(r),wi(r,t,e))),t=0,e=(r=this.xb).length;t<e;++t)r[t](this,i);r.length=0},Mu.Tl=function(){this.render()},Mu.Vl=function(){var t;if(this.ag()&&(t=this.jd()),this.u){for(var e=0,o=this.u.length;e<o;++e)me(this.u[e]);this.u=null}t?(t.appendChild(this.a),t=this.va||t,this.u=[de(t,"keydown",this.ld,this),de(t,"keypress",this.ld,this)],this.f||(this.f=this.Ad.bind(this),window.addEventListener("resize",this.f,!1))):(qe(this.a),this.f&&(window.removeEventListener("resize",this.f,!1),this.f=void 0)),this.Ad()},Mu.Wl=function(){this.render()},Mu.Lh=function(){this.render()},Mu.Xl=function(){this.T&&(me(this.T),this.T=null),this.R&&(me(this.R),this.R=null);var t=this.Z();t&&(this.a.setAttribute("data-view",G(t)),this.T=de(t,"propertychange",this.Lh,this),this.R=de(t,"change",this.Lh,this)),this.render()},Mu.El=function(){this.I&&(this.I.forEach(me),this.I=null);var t=this.Kc();t&&(this.I=[de(t,"propertychange",this.render,this),de(t,"change",this.render,this)]),this.render()},Mu.Tp=function(){this.j&&cancelAnimationFrame(this.j),this.pa()},Mu.render=function(){void 0===this.j&&(this.j=requestAnimationFrame(this.pa))},Mu.Mp=function(t){return this.l.remove(t)},Mu.Np=function(t){return this.o.remove(t)},Mu.Pp=function(t){return this.Kc().qd().remove(t)},Mu.Qp=function(t){return this.v.remove(t)},Mu.Sp=function(t){var e=this.Ob(),o=this.Z(),i=V(),r=this.c,n=null;if(void 0!==e&&0<e[0]&&0<e[1]&&o&&Rr(o)){for(var n=Lr(o,this.c?this.c.viewHints:void 0),s=this.Kc().Yf(),a={},p=0,h=s.length;p<h;++p)a[G(s[p].layer)]=s[p];p=o.getState(),n={animate:!1,attributions:{},coordinateToPixelTransform:this.Yb,extent:i,focus:this.na||p.center,index:this.ad++,layerStates:a,layerStatesArray:s,logos:ht({},this.yf),pixelRatio:this.If,pixelToCoordinateTransform:this.Jf,postRenderFunctions:[],size:e,skippedFeatureUids:this.fa,tileQueue:this.$a,time:t,usedTiles:{},viewState:p,viewHints:n,wantedTiles:{}}}n&&(n.extent=Q(p.center,p.resolution,p.rotation,n.size,i)),this.c=n,this.B.Jg(n),n&&(n.animate&&this.render(),Array.prototype.push.apply(this.xb,n.postRenderFunctions),!r||this.g&&(st(this.g)||Z(n.extent,this.g))||(this.b(new wo("movestart",this,r)),this.g=I(this.g)),!this.g||n.viewHints[0]||n.viewHints[1]||Z(n.extent,this.g)||(this.b(new wo("moveend",this,n)),g(n.extent,this.g))),this.b(new wo("postrender",this,n)),setTimeout(this.Rl.bind(this),0)},Mu.qj=function(t){this.set("layergroup",t)},Mu.Qg=function(t){this.set("size",t)},Mu.Le=function(t){this.set("target",t)},Mu.iq=function(t){this.set("view",t)},Mu.xj=function(t){t=G(t).toString(),this.fa[t]=!0,this.render()},Mu.Ad=function(){var t,e=this.jd();e?(t=getComputedStyle(e),this.Qg([e.offsetWidth-parseFloat(t.borderLeftWidth)-parseFloat(t.paddingLeft)-parseFloat(t.paddingRight)-parseFloat(t.borderRightWidth),e.offsetHeight-parseFloat(t.borderTopWidth)-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom)-parseFloat(t.borderBottomWidth)])):this.Qg(void 0)},Mu.Cj=function(t){t=G(t).toString(),delete this.fa[t],this.render()},e(Vp,je),(Mu=Vp.prototype).Rd=function(){return this.get(zp)},Mu.Jm=function(){return this.g},Mu.Me=function(){return this.get(Yp)},Mu.Dh=function(){return this.get(Hp)},Mu.Yh=function(){return this.get(qp)},Mu.Eh=function(){return this.get(Jp)},Mu.zl=function(){for(var t=this.c;t.lastChild;)t.removeChild(t.lastChild);(t=this.Rd())&&this.c.appendChild(t)},Mu.Jl=function(){this.f&&(qe(this.c),me(this.f),this.f=null);var t=this.Me();t&&(this.f=de(t,"postrender",this.render,this),Kp(this),t=this.v?t.D:t.C,this.l?t.insertBefore(this.c,t.childNodes[0]||null):t.appendChild(this.c))},Mu.render=function(){Kp(this)},Mu.Nl=function(){Kp(this)},Mu.Pl=function(){var t,e,o,i,r,n,s;Kp(this),this.get(qp)&&this.autoPan&&((t=this.Me())&&t.jd()&&(e=Wp(t.jd(),t.Ob()),o=(s=this.Rd()).offsetWidth,r=getComputedStyle(s),o+=parseInt(r.marginLeft,10)+parseInt(r.marginRight,10),r=s.offsetHeight,i=getComputedStyle(s),n=Wp(s,[o,r=r+(parseInt(i.marginTop,10)+parseInt(i.marginBottom,10))]),s=this.o,N(e,n)||(o=n[0]-e[0],r=e[2]-n[2],i=n[1]-e[1],n=e[3]-n[3],e=[0,0],o<0?e[0]=o-s:r<0&&(e[0]=Math.abs(r)+s),i<0?e[1]=i-s:n<0&&(e[1]=Math.abs(n)+s),0===e[0]&&0===e[1])||(s=t.Z().wa(),e=[(s=t.Ja(s))[0]+e[0],s[1]+e[1]],t.Z().animate({center:t.Wa(e),duration:this.j.duration,easing:this.j.easing}))))},Mu.Ql=function(){Kp(this)},Mu.lj=function(t){this.set(zp,t)},Mu.setMap=function(t){this.set(Yp,t)},Mu.rj=function(t){this.set(Hp,t)},Mu.Ne=function(t){this.set(qp,t)},Mu.uj=function(t){this.set(Jp,t)};var zp="element",Yp="map",Hp="offset",qp="position",Jp="positioning";function _p(t){function e(t){t=a.Tf(t),p.a.Z().ob(t),window.removeEventListener("mousemove",o),window.removeEventListener("mouseup",e)}function o(t){t=a.Tf({clientX:t.clientX-l.offsetWidth/2,clientY:t.clientY+l.offsetHeight/2}),h.Ne(t)}this.j=void 0===(t=t||{}).collapsed||t.collapsed,this.o=void 0===t.collapsible||t.collapsible,this.o||(this.j=!1);var i=void 0!==t.className?t.className:"ol-overviewmap",r=void 0!==t.tipLabel?t.tipLabel:"Overview map",n=void 0!==t.collapseLabel?t.collapseLabel:"«";"string"==typeof n?(this.u=document.createElement("span"),this.u.textContent=n):this.u=n,"string"==typeof(n=void 0!==t.label?t.label:"»")?(this.D=document.createElement("span"),this.D.textContent=n):this.D=n;var s=this.o&&!this.j?this.u:this.D;(n=document.createElement("button")).setAttribute("type","button"),n.title=r,n.appendChild(s),de(n,"click",this.an,this),this.C=document.createElement("DIV"),this.C.className="ol-overviewmap-map";var a=this.c=new Xp({controls:new Ne,interactions:new Ne,view:t.view});t.layers&&t.layers.forEach(function(t){a.ih(t)},this),(r=document.createElement("DIV")).className="ol-overviewmap-box",r.style.boxSizing="border-box",this.l=new Vp({position:[0,0],positioning:"bottom-left",element:r}),this.c.jh(this.l),(r=document.createElement("div")).className=i+" ol-unselectable ol-control"+(this.j&&this.o?" ol-collapsed":"")+(this.o?"":" ol-uncollapsible"),r.appendChild(this.C),r.appendChild(n),Je.call(this,{element:r,render:t.render||$p,target:t.target});var p=this,h=this.l,l=this.l.Rd();l.addEventListener("mousedown",function(){window.addEventListener("mousemove",o),window.addEventListener("mouseup",e)})}function $p(){var t,e,o,i,r=this.a,n=this.c;r.c&&n.c&&(t=r.Ob(),r=r.Z().dd(t),i=n.Ob(),t=n.Z().dd(i),e=n.Ja(ot(r)),o=n.Ja(_(r)),n=Math.abs(e[0]-o[0]),e=Math.abs(e[1]-o[1]),o=i[0],i=i[1],n<.1*o||e<.1*i||.75*o<n||.75*i<e?Qp(this):N(t,r)||(r=this.c,t=this.a.Z(),r.Z().ob(t.wa()))),th(this)}function Qp(t){var e=t.a;t=t.c;var o=e.Ob(),e=e.Z().dd(o);t=t.Z(),at(e,1/(.1*Math.pow(2,Math.log(7.5)/Math.LN2/2))),t.Qf(e)}function th(t){var e,o,i,r,n,s,a=t.a,p=t.c;a.c&&p.c&&(i=a.Ob(),r=a.Z(),n=p.Z(),p=r.Qa(),a=t.l,e=t.l.Rd(),o=r.dd(i),i=n.Pa(),r=J(o),n=it(o),(t=t.a.Z().wa())&&(Li(s=[r[0]-t[0],r[1]-t[1]],p),Ai(s,t)),a.Ne(s),e&&(e.style.width=Math.abs((r[0]-n[0])/i)+"px",e.style.height=Math.abs((n[1]-r[1])/i)+"px"))}function eh(t){t.element.classList.toggle("ol-collapsed"),t.j?He(t.u,t.D):He(t.D,t.u),t.j=!t.j;var e=t.c;t.j||e.c||(e.Ad(),Qp(t),ve(e,"postrender",function(){th(this)},t))}function oh(t){var e=void 0!==(t=t||{}).className?t.className:"ol-scale-line";this.o=document.createElement("DIV"),this.o.className=e+"-inner",this.c=document.createElement("DIV"),this.c.className=e+" ol-unselectable",this.c.appendChild(this.o),this.u=null,this.l=void 0!==t.minWidth?t.minWidth:64,this.j=!1,this.B=void 0,this.D="",Je.call(this,{element:this.c,render:t.render||rh,target:t.target}),de(this,Le(sh),this.T,this),this.I(t.units||"metric")}e(_p,Je),(Mu=_p.prototype).setMap=function(t){var e=this.a;t!==e&&(e&&((e=e.Z())&&be(e,Le("rotation"),this.Ge,this),this.c.Le(null)),Je.prototype.setMap.call(this,t),t&&(this.c.Le(this.C),this.v.push(de(t,"propertychange",this.Kl,this)),this.c.Xh().dc()||this.c.qj(t.Kc()),t=t.Z()))&&(de(t,Le("rotation"),this.Ge,this),Rr(t)&&(this.c.Ad(),Qp(this)))},Mu.Kl=function(t){"view"===t.key&&((t=t.oldValue)&&be(t,Le("rotation"),this.Ge,this),de(t=this.a.Z(),Le("rotation"),this.Ge,this))},Mu.Ge=function(){this.c.Z().Oe(this.a.Z().Qa())},Mu.an=function(t){t.preventDefault(),eh(this)},Mu.$m=function(){return this.o},Mu.cn=function(t){this.o!==t&&(this.o=t,this.element.classList.toggle("ol-uncollapsible"),!t&&this.j&&eh(this))},Mu.bn=function(t){this.o&&this.j!==t&&eh(this)},Mu.Zm=function(){return this.j},Mu.gl=function(){return this.c},e(oh,Je);var ih=[1,2,5];function rh(t){(t=t.frameState)?this.u=t.viewState:this.u=null,nh(this)}function nh(t){if(o=t.u){var e=(i=o.projection).sc(),o=Ft(i,o.resolution,o.center)*e,e=t.l*o,i="";"degrees"==(n=t.C())?(o/=i=gt.degrees,e<i/60?(i="″",o*=3600):e<i?(i="",o*=60):i="°"):"imperial"==n?e<.9144?(i="in",o/=.0254):e<1609.344?(i="ft",o/=.3048):(i="mi",o/=1609.344):"nautical"==n?(o/=1852,i="nm"):"metric"==n?e<.001?(i="μm",o*=1e6):e<1?(i="mm",o*=1e3):e<1e3?i="m":(i="km",o/=1e3):"us"==n?e<.9144?(i="in",o*=39.37):e<1609.344?(i="ft",o/=.30480061):(i="mi",o/=1609.3472):O(!1,33);for(var r,n=3*Math.floor(Math.log(t.l*o)/Math.log(10));;){if(r=ih[(n%3+3)%3]*Math.pow(10,Math.floor(n/3)),e=Math.round(r/o),isNaN(e))return t.c.style.display="none",void(t.j=!1);if(e>=t.l)break;++n}t.D!=(o=r+" "+i)&&(t.o.innerHTML=o,t.D=o),t.B!=e&&(t.o.style.width=e+"px",t.B=e),t.j||(t.c.style.display="",t.j=!0)}else t.j&&(t.c.style.display="none",t.j=!1)}oh.prototype.C=function(){return this.get(sh)},oh.prototype.T=function(){nh(this)},oh.prototype.I=function(t){this.set(sh,t)};var sh="units";function ah(t){t=t||{},this.c=void 0,this.j=ph,this.D=this.l=0,this.I=null,this.na=!1,this.T=void 0!==t.duration?t.duration:200;var e=void 0!==t.className?t.className:"ol-zoomslider",o=document.createElement("button");o.setAttribute("type","button"),o.className=e+"-thumb ol-unselectable";var i=document.createElement("div");i.className=e+" ol-unselectable ol-control",i.appendChild(o),this.o=new oi(i),de(this.o,"pointerdown",this.yl,this),de(this.o,"pointermove",this.wl,this),de(this.o,"pointerup",this.xl,this),de(i,"click",this.vl,this),de(o,"click",Pe),Je.call(this,{element:i,render:t.render||hh})}e(ah,Je),ah.prototype.ka=function(){Se(this.o),Je.prototype.ka.call(this)};var ph=0;function hh(t){var e,o,i,r,n;t.frameState&&(this.na||(e=(r=this.element).offsetWidth,o=r.offsetHeight,n=r.firstElementChild,i=getComputedStyle(n),r=n.offsetWidth+parseFloat(i.marginRight)+parseFloat(i.marginLeft),n=n.offsetHeight+parseFloat(i.marginTop)+parseFloat(i.marginBottom),this.I=[r,n],o<e?(this.j=1,this.D=e-r):(this.j=ph,this.l=o-n),this.na=!0),(t=t.frameState.viewState.resolution)!==this.c&&(this.c=t,lh(this,t)))}function lh(t,e){var o,i;e=1-(r=t.a.Z(),o=r.a,i=Math.log(o/r.f)/Math.log(2),function(t){return Math.log(o/t)/Math.log(2)/i}(e));var r=t.element.firstElementChild;1==t.j?r.style.left=t.D*e+"px":r.style.top=t.l*e+"px"}function uh(t,e){return t=t.a.Z(),o=t.a,i=Math.log(o/t.f)/Math.log(2),function(t){return o/Math.pow(2,t*i)}(1-e);var o,i}function ch(t){this.c=(t=t||{}).extent||null;var e=void 0!==t.className?t.className:"ol-zoom-extent",o=void 0!==t.label?t.label:"E",i=void 0!==t.tipLabel?t.tipLabel:"Fit to extent",r=document.createElement("button");r.setAttribute("type","button"),r.title=i,r.appendChild("string"==typeof o?document.createTextNode(o):o),de(r,"click",this.j,this),(o=document.createElement("div")).className=e+" ol-unselectable ol-control",o.appendChild(r),Je.call(this,{element:o,target:t.target})}function fh(t){je.call(this),t=t||{},this.a=null,de(this,Le(bh),this.vm,this),this.gg(void 0!==t.tracking&&t.tracking)}(Mu=ah.prototype).setMap=function(t){Je.prototype.setMap.call(this,t),t&&t.render()},Mu.vl=function(t){var e=this.a.Z();t=uh(this,x(1===this.j?(t.offsetX-this.I[0]/2)/this.D:(t.offsetY-this.I[1]/2)/this.l,0,1)),e.animate({resolution:e.constrainResolution(t),duration:this.T,easing:eo})},Mu.yl=function(t){this.u||t.b.target!==this.element.firstElementChild||(Ir(this.a.Z(),1,1),this.C=t.clientX,this.B=t.clientY,this.u=!0)},Mu.wl=function(t){var e;this.u&&(e=this.element.firstElementChild,this.c=uh(this,x(1===this.j?(t.clientX-this.C+parseInt(e.style.left,10))/this.D:(t.clientY-this.B+parseInt(e.style.top,10))/this.l,0,1)),this.a.Z().Vc(this.c),lh(this,this.c),this.C=t.clientX,this.B=t.clientY)},Mu.xl=function(){var t;this.u&&(Ir(t=this.a.Z(),1,-1),t.animate({resolution:t.constrainResolution(this.c),duration:this.T,easing:eo}),this.u=!1,this.B=this.C=void 0)},e(ch,Je),ch.prototype.j=function(t){t.preventDefault(),t=this.a.Z();var e=this.c||t.v.G();t.Qf(e)},e(fh,je),(Mu=fh.prototype).ka=function(){this.gg(!1),je.prototype.ka.call(this)},Mu.ap=function(t){var e;null!==t.alpha&&(e=M(t.alpha),this.set(yh,e),"boolean"==typeof t.absolute&&t.absolute?this.set(vh,e):"number"==typeof t.webkitCompassHeading&&-1!=t.webkitCompassAccuracy&&this.set(vh,M(t.webkitCompassHeading))),null!==t.beta&&this.set(gh,M(t.beta)),null!==t.gamma&&this.set(dh,M(t.gamma)),this.s()},Mu.Fk=function(){return this.get(yh)},Mu.Ik=function(){return this.get(gh)},Mu.Ok=function(){return this.get(dh)},Mu.um=function(){return this.get(vh)},Mu.Th=function(){return this.get(bh)},Mu.vm=function(){var t;Io&&((t=this.Th())&&!this.a?this.a=de(window,"deviceorientation",this.ap,this):t||null===this.a||(me(this.a),this.a=null))},Mu.gg=function(t){this.set(bh,t)};var yh="alpha",gh="beta",dh="gamma",vh="heading",bh="tracking";function mh(t){this.f=t.opacity,this.l=t.rotateWithView,this.g=t.rotation,this.a=t.scale,this.v=t.snapToPixel}function wh(t){this.D=this.u=this.c=null,this.Va=void 0!==t.fill?t.fill:null,this.oa=[0,0],this.o=t.points,this.b=void 0!==t.radius?t.radius:t.radius1,this.i=t.radius2,this.j=void 0!==t.angle?t.angle:0,this.Ya=void 0!==t.stroke?t.stroke:null,this.B=this.ra=this.C=null,this.S=t.atlasManager,xh(this,this.S),mh.call(this,{opacity:1,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView,rotation:void 0!==t.rotation?t.rotation:0,scale:1,snapToPixel:void 0===t.snapToPixel||t.snapToPixel})}function xh(t,e){var o,i="",r="",n=0,s=null,a=0;t.Ya&&(o=ze(o=null===(o=t.Ya.a)?fs:o),void 0===(a=t.Ya.c)&&(a=1),s=t.Ya.i,Lo||(s=null),void 0===(r=t.Ya.j)&&(r="round"),void 0===(i=t.Ya.f)&&(i="round"),void 0===(n=t.Ya.o)&&(n=10));var p,h=2*(t.b+a)+1,i={strokeStyle:o,zj:a,size:h,lineCap:i,lineDash:s,lineJoin:r,miterLimit:n};void 0===e?(p=Ye(h,h),t.u=p.canvas,e=h=t.u.width,t.rh(i,p,0,0),t.Va?t.D=t.u:(p=Ye(i.size,i.size),t.D=p.canvas,t.qh(i,p,0,0))):(h=Math.round(h),(r=!t.Va)&&(p=t.qh.bind(t,i)),n=t.Ya?(void 0===(n=t.Ya).b&&(n.b="s",n.b=n.a?"string"==typeof n.a?n.b+n.a:n.b+G(n.a).toString():n.b+"-",n.b+=","+(void 0!==n.f?n.f.toString():"-")+","+(n.i?n.i.toString():"-")+","+(void 0!==n.g?n.g:"-")+","+(void 0!==n.j?n.j:"-")+","+(void 0!==n.o?n.o.toString():"-")+","+(void 0!==n.c?n.c.toString():"-")),n.b):"-",s=t.Va?(void 0===(s=t.Va).a&&(s.a=s.b instanceof CanvasPattern||s.b instanceof CanvasGradient?G(s.b).toString():"f"+(s.b?Xe(s.b):"-")),s.a):"-",t.c&&n==t.c[1]&&s==t.c[2]&&t.b==t.c[3]&&t.i==t.c[4]&&t.j==t.c[5]&&t.o==t.c[6]||(t.c=["r"+n+s+(void 0!==t.b?t.b.toString():"-")+(void 0!==t.i?t.i.toString():"-")+(void 0!==t.j?t.j.toString():"-")+(void 0!==t.o?t.o.toString():"-"),n,s,t.b,t.i,t.j,t.o]),p=e.add(t.c[0],h,h,t.rh.bind(t,i),p),t.u=p.image,t.oa=[p.offsetX,p.offsetY],e=p.image.width,t.D=r?p.Zl:t.u),t.C=[h/2,h/2],t.ra=[h,h],t.B=[e,e]}function Sh(t){wh.call(this,{points:1/0,fill:(t=t||{}).fill,radius:t.radius,snapToPixel:t.snapToPixel,stroke:t.stroke,atlasManager:t.atlasManager})}function Mh(t){this.b=void 0!==(t=t||{}).color?t.color:null,this.a=void 0}function Ph(t){t=t||{},this.Gc=null,this.Za=Ch,void 0!==t.geometry&&this.Ra(t.geometry),this.Va=void 0!==t.fill?t.fill:null,this.M=void 0!==t.image?t.image:null,this.Ya=void 0!==t.stroke?t.stroke:null,this.Ia=void 0!==t.text?t.text:null,this.Fj=t.zIndex}function Ah(t){var e;return"function"!=typeof t&&(e=Array.isArray(t)?t:(O(t instanceof Ph,41),[t]),t=function(){return e}),t}(Mu=mh.prototype).Ze=function(){return this.f},Mu.$e=function(){return this.l},Mu.af=function(){return this.g},Mu.bf=function(){return this.a},Mu.Ae=function(){return this.v},Mu.td=function(t){this.f=t},Mu.cf=function(t){this.g=t},Mu.ud=function(t){this.a=t},e(wh,mh),(Mu=wh.prototype).clone=function(){var t=new wh({fill:this.Fa()?this.Fa().clone():void 0,points:this.o,radius:this.b,radius2:this.i,angle:this.j,snapToPixel:this.v,stroke:this.Ga()?this.Ga().clone():void 0,rotation:this.g,rotateWithView:this.l,atlasManager:this.S});return t.td(this.f),t.ud(this.a),t},Mu.Hc=function(){return this.C},Mu.Pi=function(){return this.j},Mu.Fa=function(){return this.Va},Mu.qg=function(){return this.D},Mu.Y=function(){return this.u},Mu.ye=function(){return this.B},Mu.Ye=function(){return 2},Mu.Oc=function(){return this.oa},Mu.Qi=function(){return this.o},Mu.Ri=function(){return this.b},Mu.Fh=function(){return this.i},Mu.ic=function(){return this.ra},Mu.Ga=function(){return this.Ya},Mu.Nh=function(){},Mu.load=function(){},Mu.Bj=function(){},Mu.rh=function(t,e,o,i){e.setTransform(1,0,0,1,0,0),e.translate(o,i),e.beginPath();var r=this.o;if(1/0===r)e.arc(t.size/2,t.size/2,this.b,0,2*Math.PI,!0);else{var n=void 0!==this.i?this.i:this.b;for(n!==this.b&&(r*=2),o=0;o<=r;o++){i=2*o*Math.PI/r-Math.PI/2+this.j;var s=o%2?n:this.b;e.lineTo(t.size/2+s*Math.cos(i),t.size/2+s*Math.sin(i))}}this.Va&&(o=this.Va.b,e.fillStyle=ze(o=null===o?us:o),e.fill()),this.Ya&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.zj,t.lineDash&&e.setLineDash(t.lineDash),e.lineCap=t.lineCap,e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke()),e.closePath()},Mu.qh=function(t,e,o,i){var r;if(e.setTransform(1,0,0,1,0,0),e.translate(o,i),e.beginPath(),1/0===(o=this.o))e.arc(t.size/2,t.size/2,this.b,0,2*Math.PI,!0);else for((i=void 0!==this.i?this.i:this.b)!==this.b&&(o*=2),r=0;r<=o;r++){var n=2*r*Math.PI/o-Math.PI/2+this.j,s=r%2?i:this.b;e.lineTo(t.size/2+s*Math.cos(n),t.size/2+s*Math.sin(n))}e.fillStyle=us,e.fill(),this.Ya&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.zj,t.lineDash&&e.setLineDash(t.lineDash),e.stroke()),e.closePath()},e(Sh,wh),Sh.prototype.clone=function(){var t=new Sh({fill:this.Fa()?this.Fa().clone():void 0,stroke:this.Ga()?this.Ga().clone():void 0,radius:this.b,snapToPixel:this.v,atlasManager:this.S});return t.td(this.f),t.ud(this.a),t},Sh.prototype.Uc=function(t){this.b=t,xh(this,this.S)},Mh.prototype.clone=function(){var t=this.b;return new Mh({color:t&&t.slice?t.slice():t||void 0})},Mh.prototype.i=function(){return this.b},Mh.prototype.c=function(t){this.b=t,this.a=void 0},(Mu=Ph.prototype).clone=function(){var t=this.V();return new Ph({geometry:t=t&&t.clone?t.clone():t,fill:this.Fa()?this.Fa().clone():void 0,image:this.Y()?this.Y().clone():void 0,stroke:this.Ga()?this.Ga().clone():void 0,text:this.Na()?this.Na().clone():void 0,zIndex:this.Ba()})},Mu.V=function(){return this.Gc},Mu.Pk=function(){return this.Za},Mu.Fa=function(){return this.Va},Mu.pf=function(t){this.Va=t},Mu.Y=function(){return this.M},Mu.Og=function(t){this.M=t},Mu.Ga=function(){return this.Ya},Mu.qf=function(t){this.Ya=t},Mu.Na=function(){return this.Ia},Mu.xd=function(t){this.Ia=t},Mu.Ba=function(){return this.Fj},Mu.Ra=function(e){"function"==typeof e?this.Za=e:"string"==typeof e?this.Za=function(t){return t.get(e)}:e?e&&(this.Za=function(){return e}):this.Za=Ch,this.Gc=e},Mu.Vb=function(t){this.Fj=t};var Eh=null;function Th(){var t,e;return Eh||(t=new Mh({color:"rgba(255,255,255,0.4)"}),e=new Oa({color:"#3399CC",width:1.25}),Eh=[new Ph({image:new Sh({fill:t,stroke:e,radius:5}),fill:t,stroke:e})]),Eh}function jh(){var t={},e=[255,255,255,1],o=[0,153,255,1];return t.Polygon=[new Ph({fill:new Mh({color:[255,255,255,.5]})})],t.MultiPolygon=t.Polygon,t.LineString=[new Ph({stroke:new Oa({color:e,width:5})}),new Ph({stroke:new Oa({color:o,width:3})})],t.MultiLineString=t.LineString,t.Circle=t.Polygon.concat(t.LineString),t.Point=[new Ph({image:new Sh({radius:6,fill:new Mh({color:o}),stroke:new Oa({color:e,width:1.5})}),zIndex:1/0})],t.MultiPoint=t.Point,t.GeometryCollection=t.Polygon.concat(t.LineString,t.Point),t}function Ch(t){return t.V()}function Lh(t){je.call(this),this.a=void 0,this.c="geometry",this.g=null,this.j=void 0,this.f=null,de(this,Le(this.c),this.Ee,this),void 0!==t&&(t instanceof Ui||!t?this.Ra(t):this.H(t))}e(Lh,je),(Mu=Lh.prototype).clone=function(){var t=new Lh(this.N());t.Tc(this.c);var e=this.V();return e&&t.Ra(e.clone()),(e=this.g)&&t.hg(e),t},Mu.V=function(){return this.get(this.c)},Mu.wm=function(){return this.a},Mu.Qk=function(){return this.c},Mu.xm=function(){return this.g},Mu.Lc=function(){return this.j},Mu.Al=function(){this.s()},Mu.Ee=function(){this.f&&(me(this.f),this.f=null);var t=this.V();t&&(this.f=de(t,"change",this.Al,this)),this.s()},Mu.Ra=function(t){this.set(this.c,t)},Mu.hg=function(t){this.j=(this.g=t)?function(e){var t;{var o;t="function"==typeof e?2==e.length?function(t){return e(this,t)}:e:(o=Array.isArray(e)?e:(O(e instanceof Ph,41),[e]),function(){return o})}return t}(t):void 0,this.s()},Mu.jc=function(t){this.a=t,this.s()},Mu.Tc=function(t){be(this,Le(this.c),this.Ee,this),this.c=t,de(this,Le(this.c),this.Ee,this),this.Ee()};var Rh=document.implementation.createDocument("","",null);function Ih(t,e){return Rh.createElementNS(t,e)}function Nh(t,e){return function t(e,o,i){if(e.nodeType==Node.CDATA_SECTION_NODE||e.nodeType==Node.TEXT_NODE)o?i.push(String(e.nodeValue).replace(/(\r\n|\r|\n)/g,"")):i.push(e.nodeValue);else for(e=e.firstChild;e;e=e.nextSibling)t(e,o,i);return i}(t,e,[]).join("")}function Fh(t){return t instanceof Document}function kh(t){return t instanceof Node}function Dh(t){return(new DOMParser).parseFromString(t,"application/xml")}function Oh(o,i){return function(t,e){void 0!==(t=o.call(i,t,e))&&c(e[e.length-1],t)}}function Uh(o,i){return function(t,e){void 0!==(t=o.call(void 0!==i?i:this,t,e))&&e[e.length-1].push(t)}}function Gh(o,i){return function(t,e){void 0!==(t=o.call(void 0!==i?i:this,t,e))&&(e[e.length-1]=t)}}function Bh(i){return function(t,e){var o=i.call(this,t,e);void 0!==o&&(e=e[e.length-1],((t=t.localName)in e?e[t]:e[t]=[]).push(o))}}function Xh(i,r){return function(t,e){var o=i.call(this,t,e);void 0!==o&&(e[e.length-1][void 0!==r?r:t.localName]=o)}}function Vh(i,r){return function(t,e,o){i.call(void 0!==r?r:this,t,e,o),o[o.length-1].node.appendChild(t)}}function Wh(r){var n,s;return function(t,e,o){var i;n||(n={},(i={})[t.localName]=r,n[t.namespaceURI]=i,s=Zh(t.localName)),Jh(n,s,e,o)}}function Zh(i,r){return function(t,e,o){return t=e[e.length-1].node,void 0===(e=i)&&(e=o),Ih(o=void 0===(o=r)?t.namespaceURI:o,e)}}var Kh=Zh();function zh(t,e){for(var o=e.length,i=Array(o),r=0;r<o;++r)i[r]=t[e[r]];return i}function Yh(t,e,o){o=void 0!==o?o:{};for(var i=0,r=t.length;i<r;++i)o[t[i]]=e;return o}function Hh(t,e,o,i){for(e=e.firstElementChild;e;e=e.nextElementSibling){var r=t[e.namespaceURI];void 0!==r&&(r=r[e.localName])&&r.call(i,e,o)}}function qh(t,e,o,i,r){return i.push(t),Hh(e,o,i,r),i.pop()}function Jh(t,e,o,i,r,n){for(var s,a,p=(void 0!==r?r:o).length,h=0;h<p;++h)void 0!==(s=o[h])&&(void 0!==(a=e.call(n,s,i,void 0!==r?r[h]:void 0))&&t[a.namespaceURI][a.localName].call(n,a,s,i))}function _h(t,e,o,i,r,n,s){r.push(t),Jh(e,o,i,r,n,s),r.pop()}function $h(r,n,s,a){return function(t,e,o){var i=new XMLHttpRequest;i.open("GET","function"==typeof r?r(t,e,o):r,!0),"arraybuffer"==n.U()&&(i.responseType="arraybuffer"),i.onload=function(){var t,e;!i.status||200<=i.status&&i.status<300?("json"==(t=n.U())||"text"==t?e=i.responseText:"xml"==t?(e=i.responseXML)||(e=Dh(i.responseText)):"arraybuffer"==t&&(e=i.response),e?s.call(this,n.Oa(e,{featureProjection:o}),n.kb(e)):a.call(this)):a.call(this)}.bind(this),i.onerror=function(){a.call(this)}.bind(this),i.send()}}function Qh(t,e){return $h(t,e,function(t){this.cd(t)},w)}function tl(){this.f=this.defaultDataProjection=null}function el(t,e,o){var i;return o&&(i={dataProjection:o.dataProjection||t.kb(e),featureProjection:o.featureProjection}),ol(t,i)}function ol(t,e){return ht({dataProjection:t.defaultDataProjection,featureProjection:t.f},e)}function il(t,e,o){var i,r=o?Bt(o.featureProjection):null,n=o?Bt(o.dataProjection):null,r=r&&n&&!Xt(r,n)?t instanceof Ui?(e?t.clone():t).tb(e?r:n,e?n:r):Yt(t,n,r):t;return e&&o&&void 0!==o.decimals&&(i=Math.pow(10,o.decimals),(r=r===t?r.clone():r).Dc(function(t){for(var e=0,o=t.length;e<o;++e)t[e]=Math.round(t[e]*i)/i;return t})),r}function rl(){tl.call(this)}function nl(t){return"string"==typeof t?(t=JSON.parse(t))?t:null:null!==t?t:null}function sl(t,e,o,i,r,n){var s=NaN,a=NaN;if(1===(p=(o-e)/i))s=t[e],a=t[e+1];else if(2==p)s=(1-r)*t[e]+r*t[e+i],a=(1-r)*t[e+1]+r*t[e+i+1];else if(p){for(var a=t[e],p=t[e+1],h=0,s=[0],l=e+i;l<o;l+=i){var u=t[l],c=t[l+1],h=h+Math.sqrt((u-a)*(u-a)+(c-p)*(c-p));s.push(h),a=u,p=c}for(o=r*h,p=0,h=s.length,l=!1;p<h;)(a=+D(s[r=p+(h-p>>1)],o))<0?p=r+1:(h=r,l=!a);a=(r=l?p:~p)<0?(o=(o-s[-r-2])/(s[-r-1]-s[-r-2]),s=f(t[e+=(-r-2)*i],t[e+i],o),f(t[e+1],t[e+i+1],o)):(s=t[e+r*i],t[e+r*i+1])}return n?(n[0]=s,n[1]=a,n):[s,a]}function al(t,e,o,i,r,n){if(o==e)return null;if(r<t[e+i-1])return n?((o=t.slice(e,e+i))[i-1]=r,o):null;if(t[o-1]<r)return n?((o=t.slice(o-i,o))[i-1]=r,o):null;if(r==t[e+i-1])return t.slice(e,e+i);for(e/=i,o/=i;e<o;)r<t[((n=e+o>>1)+1)*i-1]?o=n:e=n+1;if(r==(o=t[e*i-1]))return t.slice((e-1)*i,(e-1)*i+i);var s;for(n=(r-o)/(t[(e+1)*i-1]-o),o=[],s=0;s<i-1;++s)o.push(f(t[(e-1)*i+s],t[e*i+s],n));return o.push(r),o}function pl(t,e){Xi.call(this),this.c=null,this.u=this.D=this.j=-1,this.ma(t,e)}function hl(t){return t.j!=t.i&&(t.c=t.wh(.5,t.c),t.j=t.i),t.c}function ll(t,e){Xi.call(this),this.c=[],this.j=this.u=-1,this.ma(t,e)}function ul(t){var e=[],o=t.A,i=0,r=t.c;t=t.a;for(var n=0,s=r.length;n<s;++n){var a=r[n];c(e,i=sl(o,i,a,t,.5)),i=a}return e}function cl(t,e){for(var o=t.ja,i=[],r=[],n=0,s=e.length;n<s;++n){var a=e[n];n||(o=a.ja),c(i,a.ga()),r.push(i.length)}t.ba(o,i,r)}function fl(t,e){Xi.call(this),this.ma(t,e)}function yl(t,e){Xi.call(this),this.c=[],this.u=-1,this.D=null,this.I=this.C=this.B=-1,this.j=null,this.ma(t,e)}function gl(t){if(t.u!=t.i){var e=t.A,o=t.c,i=t.a,r=0,n=[],s=0;for(h=o.length;s<h;++s){var a=o[s],r=W(e,r,a[0],i);n.push((r[0]+r[2])/2,(r[1]+r[3])/2),r=a[a.length-1]}for(e=dl(t),o=t.c,i=t.a,h=[],a=s=0,r=o.length;a<r;++a)var p=o[a],h=lr(e,s,p,i,n,2*a,h),s=p[p.length-1];t.D=h,t.u=t.i}return t.D}function dl(t){if(t.I!=t.i){var e=t.A;t:{for(var o=t.c,i=0,r=o.length;i<r;++i)if(!gr(e,o[i],t.a,void 0)){o=!1;break t}o=!0}o?t.j=e:(t.j=e.slice(),t.j.length=vr(t.j,t.c,t.a)),t.I=t.i}return t.j}function vl(t,e,o,i){Wi(t,e,o),t.c=i,t.s()}function bl(t,e){for(var o=t.ja,i=[],r=[],n=0,s=e.length;n<s;++n){var a=e[n];n||(o=a.ja);for(var p=i.length,h=a.Bb(),l=0,u=h.length;l<u;++l)h[l]+=p;c(i,a.ga()),r.push(h)}vl(t,o,i,r)}function ml(t){t=t||{},tl.call(this),this.b=t.geometryName}function wl(t,e){if(!t)return null;if("number"==typeof t.x&&"number"==typeof t.y)var o="Point";else if(t.points)o="MultiPoint";else if(t.paths)o=1===t.paths.length?"LineString":"MultiLineString";else if(t.rings){for(var i=t.rings,r=xl(t),n=[],s=[],o=[],a=0,p=i.length;a<p;++a)n.length=0,Qi(n,0,i[a],r.length),yr(n,0,n.length,r.length)?s.push([i[a]]):o.push(i[a]);for(;o.length;){for(i=o.shift(),r=!1,a=s.length-1;0<=a;a--)if(N(new nr(s[a][0]).G(),new nr(i).G())){s[a].push(i),r=!0;break}r||s.push([i.reverse()])}t=ht({},t),1===s.length?(o="Polygon",t.rings=s[0]):(o="MultiPolygon",t.rings=s)}return il((0,Ml[o])(t),!1,e)}function xl(t){var e="XY";return!0===t.hasZ&&!0===t.hasM?e="XYZM":!0===t.hasZ?e="XYZ":!0===t.hasM&&(e="XYM"),e}function Sl(t){return{hasZ:"XYZ"===(t=t.ja)||"XYZM"===t,hasM:"XYM"===t||"XYZM"===t}}e(rl,tl),(Mu=rl.prototype).U=function(){return"json"},Mu.Tb=function(t,e){return this.Rc(nl(t),el(this,t,e))},Mu.Oa=function(t,e){return this.yg(nl(t),el(this,t,e))},Mu.Sc=function(t,e){return this.Cg(nl(t),el(this,t,e))},Mu.kb=function(t){return this.Fg(nl(t))},Mu.Bd=function(t,e){return JSON.stringify(this.Zc(t,e))},Mu.Wb=function(t,e){return JSON.stringify(this.he(t,e))},Mu.$c=function(t,e){return JSON.stringify(this.je(t,e))},e(pl,Xi),(Mu=pl.prototype).mk=function(t){this.A?c(this.A,t):this.A=t.slice(),this.s()},Mu.clone=function(){var t=new pl(null);return t.ba(this.ja,this.A.slice()),t},Mu.Kb=function(t,e,o,i){return i<E(this.G(),t,e)?i:(this.u!=this.i&&(this.D=Math.sqrt(Hi(this.A,0,this.A.length,this.a,0)),this.u=this.i),Ji(this.A,0,this.A.length,this.a,this.D,!1,t,e,o,i))},Mu.Ck=function(t,e){return ur(this.A,0,this.A.length,this.a,t,e)},Mu.nn=function(t,e){return"XYM"!=this.ja&&"XYZM"!=this.ja?null:al(this.A,0,this.A.length,this.a,t,void 0!==e&&e)},Mu.X=function(){return er(this.A,0,this.A.length,this.a)},Mu.wh=function(t,e){return sl(this.A,0,this.A.length,this.a,t,e)},Mu.pn=function(){for(var t=this.A,e=this.a,o=t[0],i=t[1],r=0,n=0+e;n<this.A.length;n+=e)var s=t[n],a=t[n+1],r=r+Math.sqrt((s-o)*(s-o)+(a-i)*(a-i)),o=s,i=a;return r},Mu.hd=function(t){var e=[];return e.length=ir(this.A,0,this.A.length,this.a,t,e,0),(t=new pl(null)).ba("XY",e),t},Mu.U=function(){return"LineString"},Mu.Xa=function(t){return cr(this.A,0,this.A.length,this.a,t)},Mu.ma=function(t,e){t?(Zi(this,e,t,1),this.A||(this.A=[]),this.A.length=Qi(this.A,0,t,this.a),this.s()):this.ba("XY",null)},Mu.ba=function(t,e){Wi(this,t,e),this.s()},e(ll,Xi),(Mu=ll.prototype).nk=function(t){this.A?c(this.A,t.ga().slice()):this.A=t.ga().slice(),this.c.push(this.A.length),this.s()},Mu.clone=function(){var t=new ll(null);return t.ba(this.ja,this.A.slice(),this.c.slice()),t},Mu.Kb=function(t,e,o,i){return i<E(this.G(),t,e)?i:(this.j!=this.i&&(this.u=Math.sqrt(qi(this.A,0,this.c,this.a,0)),this.j=this.i),_i(this.A,0,this.c,this.a,this.u,!1,t,e,o,i))},Mu.rn=function(t,e,o){return"XYM"!=this.ja&&"XYZM"!=this.ja||!this.A.length?null:function(t,e,o,i,r,n){var s=0;if(n)return al(t,s,e[e.length-1],o,i,r);if(i<t[o-1])return r?((t=t.slice(0,o))[o-1]=i,t):null;if(t[t.length-1]<i)return r?((t=t.slice(t.length-o))[o-1]=i,t):null;for(r=0,n=e.length;r<n;++r){var a=e[r];if(s!=a){if(i<t[s+o-1])break;if(i<=t[a-1])return al(t,s,a,o,i,!1);s=a}}return null}(this.A,this.c,this.a,t,void 0!==e&&e,void 0!==o&&o)},Mu.X=function(){return or(this.A,0,this.c,this.a)},Mu.Bb=function(){return this.c},Mu.Yk=function(t){if(t<0||this.c.length<=t)return null;var e=new pl(null);return e.ba(this.ja,this.A.slice(t?this.c[t-1]:0,this.c[t])),e},Mu.gd=function(){for(var t=this.A,e=this.c,o=this.ja,i=[],r=0,n=0,s=e.length;n<s;++n){var a=e[n],p=new pl(null);p.ba(o,t.slice(r,a)),i.push(p),r=a}return i},Mu.hd=function(t){for(var e=[],o=[],i=this.A,r=this.c,n=this.a,s=0,a=0,p=0,h=r.length;p<h;++p){var l=r[p],a=ir(i,s,l,n,t,e,a);o.push(a),s=l}return e.length=a,(t=new ll(null)).ba("XY",e,o),t},Mu.U=function(){return"MultiLineString"},Mu.Xa=function(t){t:{for(var e=this.A,o=this.c,i=this.a,r=0,n=0,s=o.length;n<s;++n){if(cr(e,r,o[n],i,t)){t=!0;break t}r=o[n]}t=!1}return t},Mu.ma=function(t,e){t?(Zi(this,e,t,2),this.A||(this.A=[]),t=tr(this.A,0,t,this.a,this.c),this.A.length=t.length?t[t.length-1]:0,this.s()):this.ba("XY",null,this.c)},Mu.ba=function(t,e,o){Wi(this,t,e),this.c=o,this.s()},e(fl,Xi),(Mu=fl.prototype).qk=function(t){this.A?c(this.A,t.ga()):this.A=t.ga().slice(),this.s()},Mu.clone=function(){var t=new fl(null);return t.ba(this.ja,this.A.slice()),t},Mu.Kb=function(t,e,o,i){if(i<E(this.G(),t,e))return i;for(var r=this.A,n=this.a,s=0,a=r.length;s<a;s+=n){var p=y(t,e,r[s],r[s+1]);if(p<i){for(i=p,p=0;p<n;++p)o[p]=r[s+p];o.length=n}}return i},Mu.X=function(){return er(this.A,0,this.A.length,this.a)},Mu.il=function(t){var e=this.A?this.A.length/this.a:0;return t<0||e<=t?null:((e=new ar(null)).ba(this.ja,this.A.slice(t*this.a,(t+1)*this.a)),e)},Mu.Zd=function(){for(var t=this.A,e=this.ja,o=this.a,i=[],r=0,n=t.length;r<n;r+=o){var s=new ar(null);s.ba(e,t.slice(r,r+o)),i.push(s)}return i},Mu.U=function(){return"MultiPoint"},Mu.Xa=function(t){for(var e=this.A,o=this.a,i=0,r=e.length;i<r;i+=o)if(j(t,e[i],e[i+1]))return!0;return!1},Mu.ma=function(t,e){t?(Zi(this,e,t,1),this.A||(this.A=[]),this.A.length=Qi(this.A,0,t,this.a),this.s()):this.ba("XY",null)},Mu.ba=function(t,e){Wi(this,t,e),this.s()},e(yl,Xi),(Mu=yl.prototype).rk=function(t){if(this.A){var e=this.A.length;c(this.A,t.ga());for(var o=0,i=(t=t.Bb().slice()).length;o<i;++o)t[o]+=e}else this.A=t.ga().slice(),t=t.Bb().slice(),this.c.push();this.c.push(t),this.s()},Mu.clone=function(){for(var t=new yl(null),e=this.c.length,o=Array(e),i=0;i<e;++i)o[i]=this.c[i].slice();return vl(t,this.ja,this.A.slice(),o),t},Mu.Kb=function(t,e,o,i){if(i<E(this.G(),t,e))return i;if(this.C!=this.i){for(var r=this.c,n=0,s=0,a=0,p=r.length;a<p;++a)var h=r[a],s=qi(this.A,n,h,this.a,s),n=h[h.length-1];this.B=Math.sqrt(s),this.C=this.i}r=dl(this),n=this.c,s=this.a;for(var a=this.B,h=[NaN,NaN],l=p=0,u=n.length;l<u;++l){var c=n[l];i=_i(r,p,c,s,a,!0,t,e,o,i,h),p=c[c.length-1]}return i},Mu.Mc=function(t,e){t:{var o=dl(this),i=this.c,r=0;if(i.length)for(var n=0,s=i.length;n<s;++n){var a=i[n];if(hr(o,r,a,this.a,t,e)){t=!0;break t}r=a[a.length-1]}t=!1}return t},Mu.sn=function(){for(var t=dl(this),e=this.c,o=0,i=0,r=0,n=e.length;r<n;++r)var s=e[r],i=i+zi(t,o,s,this.a),o=s[s.length-1];return i},Mu.X=function(t){void 0!==t?vr(e=dl(this).slice(),this.c,this.a,t):e=this.A,t=e;for(var e=this.c,o=this.a,i=0,r=[],n=0,s=0,a=e.length;s<a;++s){var p=e[s];r[n++]=or(t,i,p,o,r[n]),i=p[p.length-1]}return r.length=n,r},Mu.Uk=function(){var t=new fl(null);return t.ba("XY",gl(this).slice()),t},Mu.hd=function(t){var e=[],o=[],i=this.A,r=this.c,n=this.a;t=Math.sqrt(t);for(var s=0,a=0,p=0,h=r.length;p<h;++p){var l=r[p],u=[],a=rr(i,s,l,n,t,e,a,u);o.push(u),s=l[l.length-1]}return e.length=a,vl(i=new yl(null),"XY",e,o),i},Mu.jl=function(t){if(t<0||this.c.length<=t)return null;var e;e=t?(e=this.c[t-1])[e.length-1]:0;var o=(t=this.c[t].slice())[t.length-1];if(e)for(var i=0,r=t.length;i<r;++i)t[i]-=e;return(i=new br(null)).ba(this.ja,this.A.slice(e,o),t),i},Mu.Td=function(){for(var t=this.ja,e=this.A,o=this.c,i=[],r=0,n=0,s=o.length;n<s;++n){var a=o[n].slice(),p=a[a.length-1];if(r)for(var h=0,l=a.length;h<l;++h)a[h]-=r;(h=new br(null)).ba(t,e.slice(r,p),a),i.push(h),r=p}return i},Mu.U=function(){return"MultiPolygon"},Mu.Xa=function(t){t:{for(var e=dl(this),o=this.c,i=this.a,r=0,n=0,s=o.length;n<s;++n){var a=o[n];if(fr(e,r,a,i,t)){t=!0;break t}r=a[a.length-1]}t=!1}return t},Mu.ma=function(t,e){if(t){Zi(this,e,t,3),this.A||(this.A=[]),e=this.A;for(var o=this.a,i=0,r=(r=this.c)||[],n=0,s=0,a=t.length;s<a;++s)i=tr(e,i,t[s],o,r[n]),i=(r[n++]=i)[i.length-1];r.length=n,r.length?(t=r[r.length-1],this.A.length=t.length?t[t.length-1]:0):this.A.length=0,this.s()}else vl(this,"XY",null,this.c)},e(ml,rl);var Ml={Point:function(t){return void 0!==t.m&&void 0!==t.z?new ar([t.x,t.y,t.z,t.m],"XYZM"):void 0!==t.z?new ar([t.x,t.y,t.z],"XYZ"):void 0!==t.m?new ar([t.x,t.y,t.m],"XYM"):new ar([t.x,t.y])},LineString:function(t){return new pl(t.paths[0],xl(t))},Polygon:function(t){return new br(t.rings,xl(t))},MultiPoint:function(t){return new fl(t.points,xl(t))},MultiLineString:function(t){return new ll(t.paths,xl(t))},MultiPolygon:function(t){return new yl(t.rings,xl(t))}},Pl={Point:function(t){var e,o=t.X();return"XYZ"===(t=t.ja)?e={x:o[0],y:o[1],z:o[2]}:"XYM"===t?e={x:o[0],y:o[1],m:o[2]}:"XYZM"===t?e={x:o[0],y:o[1],z:o[2],m:o[3]}:"XY"===t?e={x:o[0],y:o[1]}:O(!1,34),e},LineString:function(t){var e=Sl(t);return{hasZ:e.hasZ,hasM:e.hasM,paths:[t.X()]}},Polygon:function(t){var e=Sl(t);return{hasZ:e.hasZ,hasM:e.hasM,rings:t.X(!1)}},MultiPoint:function(t){var e=Sl(t);return{hasZ:e.hasZ,hasM:e.hasM,points:t.X()}},MultiLineString:function(t){var e=Sl(t);return{hasZ:e.hasZ,hasM:e.hasM,paths:t.X()}},MultiPolygon:function(t){var e=Sl(t);t=t.X(!1);for(var o=[],i=0;i<t.length;i++)for(var r=t[i].length-1;0<=r;r--)o.push(t[i][r]);return{hasZ:e.hasZ,hasM:e.hasM,rings:o}}};function Al(t,e){return(0,Pl[t.U()])(il(t,!0,e),e)}function El(t){this.kc=t}function Tl(t,e){this.kc=t,this.b=Array.prototype.slice.call(arguments,1),O(2<=this.b.length,57)}function jl(t){var e=["And"].concat(Array.prototype.slice.call(arguments));Tl.apply(this,e)}function Cl(t,e,o){this.kc="BBOX",this.geometryName=t,this.extent=e,this.srsName=o}function Ll(t,e){this.kc=t,this.b=e}function Rl(t,e,o){Ll.call(this,"During",t),this.a=e,this.i=o}function Il(t,e,o,i){Ll.call(this,t,e),this.i=o,this.a=i}function Nl(t,e,o){Il.call(this,"PropertyIsEqualTo",t,e,o)}function Fl(t,e){Il.call(this,"PropertyIsGreaterThan",t,e)}function kl(t,e){Il.call(this,"PropertyIsGreaterThanOrEqualTo",t,e)}function Dl(t,e,o,i){this.kc=t,this.geometryName=e||"the_geom",this.geometry=o,this.srsName=i}function Ol(t,e,o){Dl.call(this,"Intersects",t,e,o)}function Ul(t,e,o){Ll.call(this,"PropertyIsBetween",t),this.a=e,this.i=o}function Gl(t,e,o,i,r,n){Ll.call(this,"PropertyIsLike",t),this.c=e,this.g=void 0!==o?o:"*",this.f=void 0!==i?i:".",this.i=void 0!==r?r:"!",this.a=n}function Bl(t){Ll.call(this,"PropertyIsNull",t)}function Xl(t,e){Il.call(this,"PropertyIsLessThan",t,e)}function Vl(t,e){Il.call(this,"PropertyIsLessThanOrEqualTo",t,e)}function Wl(t){this.kc="Not",this.condition=t}function Zl(t,e,o){Il.call(this,"PropertyIsNotEqualTo",t,e,o)}function Kl(t){var e=["Or"].concat(Array.prototype.slice.call(arguments));Tl.apply(this,e)}function zl(t,e,o){Dl.call(this,"Within",t,e,o)}function Yl(t){var e=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(jl,e))}function Hl(t,e,o){return new Cl(t,e,o)}function ql(t){Ui.call(this),this.a=t||null,$l(this)}function Jl(t){for(var e=[],o=0,i=t.length;o<i;++o)e.push(t[o].clone());return e}function _l(t){if(t.a)for(var e=0,o=t.a.length;e<o;++e)be(t.a[e],"change",t.s,t)}function $l(t){if(t.a)for(var e=0,o=t.a.length;e<o;++e)de(t.a[e],"change",t.s,t)}function Ql(t){t=t||{},tl.call(this),this.defaultDataProjection=Bt(t.defaultDataProjection||"EPSG:4326"),t.featureProjection&&(this.f=Bt(t.featureProjection)),this.b=t.geometryName}function tu(t,e){return t?il((0,ou[t.type])(t),!1,e):null}function eu(t,e){return(0,iu[t.U()])(il(t,!0,e),e)}(Mu=ml.prototype).Rc=function(t,e){var o=wl(t.geometry,e),i=new Lh;return this.b&&i.Tc(this.b),i.Ra(o),e&&e.dg&&t.attributes[e.dg]&&i.jc(t.attributes[e.dg]),t.attributes&&i.H(t.attributes),i},Mu.yg=function(t,e){if(e=e||{},t.features){var o,i=[],r=t.features;for(e.dg=t.objectIdFieldName,t=0,o=r.length;t<o;++t)i.push(this.Rc(r[t],e));return i}return[this.Rc(t,e)]},Mu.Cg=wl,Mu.Fg=function(t){return t.spatialReference&&t.spatialReference.wkid?Bt("EPSG:"+t.spatialReference.wkid):null},Mu.je=function(t,e){return Al(t,ol(this,e))},Mu.Zc=function(t,e){e=ol(this,e);var o={},i=t.V();return i&&(o.geometry=Al(i,e)),delete(i=t.N())[t.c],o.attributes=ct(i)?{}:i,e&&e.featureProjection&&(o.spatialReference={wkid:Bt(e.featureProjection).mb.split(":").pop()}),o},Mu.he=function(t,e){e=ol(this,e);for(var o=[],i=0,r=t.length;i<r;++i)o.push(this.Zc(t[i],e));return{features:o}},e(Tl,El),e(jl,Tl),e(Cl,El),e(Ll,El),e(Rl,Ll),e(Il,Ll),e(Nl,Il),e(Fl,Il),e(kl,Il),e(Dl,El),e(Ol,Dl),e(Ul,Ll),e(Gl,Ll),e(Bl,Ll),e(Xl,Il),e(Vl,Il),e(Wl,El),e(Zl,Il),e(Kl,Tl),e(zl,Dl),e(ql,Ui),(Mu=ql.prototype).clone=function(){var t=new ql(null);return t.oj(this.a),t},Mu.Kb=function(t,e,o,i){if(i<E(this.G(),t,e))return i;for(var r=this.a,n=0,s=r.length;n<s;++n)i=r[n].Kb(t,e,o,i);return i},Mu.Mc=function(t,e){for(var o=this.a,i=0,r=o.length;i<r;++i)if(o[i].Mc(t,e))return!0;return!1},Mu.se=function(t){I(t);for(var e=this.a,o=0,i=e.length;o<i;++o)K(t,e[o].G());return t},Mu.Vf=function(){return Jl(this.a)},Mu.Vd=function(t){if(this.o!=this.i&&(lt(this.f),this.g=0,this.o=this.i),t<0||this.g&&t<this.g)return this;var e=t.toString();if(this.f.hasOwnProperty(e))return this.f[e];for(var o=[],i=this.a,r=!1,n=0,s=i.length;n<s;++n){var a=i[n],p=a.Vd(t);o.push(p),p!==a&&(r=!0)}return r?(_l(t=new ql(null)),t.a=o,$l(t),t.s(),this.f[e]=t):(this.g=t,this)},Mu.U=function(){return"GeometryCollection"},Mu.Xa=function(t){for(var e=this.a,o=0,i=e.length;o<i;++o)if(e[o].Xa(t))return!0;return!1},Mu.rotate=function(t,e){for(var o=this.a,i=0,r=o.length;i<r;++i)o[i].rotate(t,e);this.s()},Mu.scale=function(t,e,o){o=o||$(this.G());for(var i=this.a,r=0,n=i.length;r<n;++r)i[r].scale(t,e,o);this.s()},Mu.oj=function(t){t=Jl(t),_l(this),this.a=t,$l(this),this.s()},Mu.Dc=function(t){for(var e=this.a,o=0,i=e.length;o<i;++o)e[o].Dc(t);this.s()},Mu.translate=function(t,e){for(var o=this.a,i=0,r=o.length;i<r;++i)o[i].translate(t,e);this.s()},Mu.ka=function(){_l(this),Ui.prototype.ka.call(this)},e(Ql,rl);var ou={Point:function(t){return new ar(t.coordinates)},LineString:function(t){return new pl(t.coordinates)},Polygon:function(t){return new br(t.coordinates)},MultiPoint:function(t){return new fl(t.coordinates)},MultiLineString:function(t){return new ll(t.coordinates)},MultiPolygon:function(t){return new yl(t.coordinates)},GeometryCollection:function(t,e){return new ql(t=t.geometries.map(function(t){return tu(t,e)}))}},iu={Point:function(t){return{type:"Point",coordinates:t.X()}},LineString:function(t){return{type:"LineString",coordinates:t.X()}},Polygon:function(t,e){var o;return e&&(o=e.rightHanded),{type:"Polygon",coordinates:t.X(o)}},MultiPoint:function(t){return{type:"MultiPoint",coordinates:t.X()}},MultiLineString:function(t){return{type:"MultiLineString",coordinates:t.X()}},MultiPolygon:function(t,e){var o;return e&&(o=e.rightHanded),{type:"MultiPolygon",coordinates:t.X(o)}},GeometryCollection:function(t,o){return{type:"GeometryCollection",geometries:t.a.map(function(t){var e=ht({},o);return delete e.featureProjection,eu(t,e)})}},Circle:function(){return{type:"GeometryCollection",geometries:[]}}};function ru(){this.i=new XMLSerializer,tl.call(this)}function nu(t,e,o){return 0<(t=su(t,e,o)).length?t[0]:null}function su(t,e,o){var i=[];for(e=e.firstChild;e;e=e.nextSibling)e.nodeType==Node.ELEMENT_NODE&&c(i,t.zc(e,o));return i}function au(t){this.featureType=(t=t||{}).featureType,this.featureNS=t.featureNS,this.srsName=t.srsName,this.schemaLocation="",this.b={},this.b["http://www.opengis.net/gml"]={featureMember:Gh(au.prototype.be),featureMembers:Gh(au.prototype.be)},ru.call(this)}(Mu=Ql.prototype).Rc=function(t,e){e=tu((t="Feature"===t.type?t:{type:"Feature",geometry:t}).geometry,e);var o=new Lh;return this.b&&o.Tc(this.b),o.Ra(e),void 0!==t.id&&o.jc(t.id),t.properties&&o.H(t.properties),o},Mu.yg=function(t,e){if("FeatureCollection"===t.type)for(var o=[],i=0,r=(t=t.features).length;i<r;++i)o.push(this.Rc(t[i],e));else o=[this.Rc(t,e)];return o},Mu.Cg=tu,Mu.Fg=function(t){var e;return(t=t.crs)?"name"==t.type?e=Bt(t.properties.name):"EPSG"==t.type?e=Bt("EPSG:"+t.properties.code):O(!1,36):e=this.defaultDataProjection,e},Mu.Zc=function(t,e){e=ol(this,e);var o={type:"Feature"},i=t.a;return void 0!==i&&(o.id=i),(i=t.V())?o.geometry=eu(i,e):o.geometry=null,delete(e=t.N())[t.c],ct(e)?o.properties=null:o.properties=e,o},Mu.he=function(t,e){e=ol(this,e);for(var o=[],i=0,r=t.length;i<r;++i)o.push(this.Zc(t[i],e));return{type:"FeatureCollection",features:o}},Mu.je=function(t,e){return eu(t,ol(this,e))},e(ru,tl),(Mu=ru.prototype).U=function(){return"xml"},Mu.Tb=function(t,e){return Fh(t)?nu(this,t,e):kh(t)?this.xg(t,e):"string"==typeof t?nu(this,t=Dh(t),e):null},Mu.xg=function(){return null},Mu.Oa=function(t,e){return Fh(t)?su(this,t,e):kh(t)?this.zc(t,e):"string"==typeof t?su(this,t=Dh(t),e):[]},Mu.Sc=function(t,e){return Fh(t)?null:kh(t)?this.aj(t,e):("string"==typeof t&&Dh(t),null)},Mu.aj=function(){return null},Mu.kb=function(t){return Fh(t)?this.Eg(t):kh(t)?this.kf(t):"string"==typeof t?(t=Dh(t),this.Eg(t)):null},Mu.Eg=function(){return this.defaultDataProjection},Mu.kf=function(){return this.defaultDataProjection},Mu.Bd=function(t,e){return this.i.serializeToString(this.Vg(t,e))},Mu.Vg=function(){return null},Mu.Wb=function(t,e){return t=this.Xb(t,e),this.i.serializeToString(t)},Mu.Xb=function(){return null},Mu.$c=function(t,e){return t=this.ie(t,e),this.i.serializeToString(t)},Mu.ie=function(){return null},e(au,ru);var pu=/^[\s\xa0]*$/;function hu(t){return lu(t=Nh(t,!1))}function lu(t){if(t=/^\s*(true|1)|(false|0)\s*$/.exec(t))return void 0!==t[1]||!1}function uu(t){return t=Nh(t,!1),t=Date.parse(t),isNaN(t)?void 0:t/1e3}function cu(t){return fu(t=Nh(t,!1))}function fu(t){if(t=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(t))return parseFloat(t[1])}function yu(t){return gu(t=Nh(t,!1))}function gu(t){if(t=/^\s*(\d+)\s*$/.exec(t))return parseInt(t[1],10)}function du(t){return Nh(t,!1).trim()}function vu(t,e){wu(t,e?"1":"0")}function bu(t,e){t.appendChild(Rh.createTextNode(e.toPrecision()))}function mu(t,e){t.appendChild(Rh.createTextNode(e.toString()))}function wu(t,e){t.appendChild(Rh.createTextNode(e))}function xu(t){au.call(this,t=t||{}),this.l=void 0!==t.surface&&t.surface,this.c=void 0!==t.curve&&t.curve,this.g=void 0===t.multiCurve||t.multiCurve,this.j=void 0===t.multiSurface||t.multiSurface,this.schemaLocation=t.schemaLocation||"http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd"}function Su(t,e,o){o=(i=o[o.length-1]).hasZ;for(var i=i.srsName,r=(e=e.X()).length,n=Array(r),s=0;s<r;++s){var a=e[s],p=s,h=o,l="enu",l="en"===(l=i?Bt(i).b:l).substr(0,2)?a[0]+" "+a[1]:a[1]+" "+a[0];h&&(l+=" "+(a[2]||0)),n[p]=l}wu(t,n.join(" "))}(Mu=au.prototype).be=function(t,e){var o=t.localName,i=null;if("FeatureCollection"==o)i="http://www.opengis.net/wfs"===t.namespaceURI?qh([],this.b,t,e,this):qh(null,this.b,t,e,this);else if("featureMembers"==o||"featureMember"==o){var r=(y=e[0]).featureType,n=y.featureNS;if(!r&&t.childNodes){r=[];for(var n={},s=0,a=t.childNodes.length;s<a;++s)if(1===(c=t.childNodes[s]).nodeType){var p=c.nodeName.split(":").pop();if(-1===r.indexOf(p)){var h,l="",u=0,c=c.namespaceURI;for(h in n){if(n[h]===c){l=h;break}++u}l||(n[l="p"+u]=c),r.push(l+":"+p)}}"featureMember"!=o&&(y.featureType=r,y.featureNS=n)}"string"==typeof n&&(s=n,(n={}).p0=s);var f,y={},r=Array.isArray(r)?r:[r];for(f in n){for(p={},s=0,a=r.length;s<a;++s)(-1===r[s].indexOf(":")?"p0":r[s].split(":")[0])===f&&(p[r[s].split(":").pop()]=("featureMembers"==o?Uh:Gh)(this.wg,this));y[n[f]]=p}i=qh("featureMember"==o?void 0:[],y,t,e)}return i=null===i?[]:i},Mu.gf=function(t,e){var o=e[0];if(o.srsName=t.firstElementChild.getAttribute("srsName"),t=qh(null,this.Zg,t,e,this))return il(t,!1,o)},Mu.wg=function(t,e){var o;(o=t.getAttribute("fid"))||(o=t.getAttributeNS("http://www.opengis.net/gml","id")||"");var i,r={};for(t=t.firstElementChild;t;t=t.nextElementSibling){var n,s=t.localName;0===t.childNodes.length||1===t.childNodes.length&&(3===t.firstChild.nodeType||4===t.firstChild.nodeType)?(n=Nh(t,!1),pu.test(n)&&(n=void 0),r[s]=n):("boundedBy"!==s&&(i=s),r[s]=this.gf(t,e))}return e=new Lh(r),i&&e.Tc(i),o&&e.jc(o),e},Mu.fj=function(t,e){if(t=this.ff(t,e))return(e=new ar(null)).ba("XYZ",t),e},Mu.dj=function(t,e){if(t=qh([],this.Nj,t,e,this))return new fl(t)},Mu.cj=function(t,e){if(t=qh([],this.Mj,t,e,this))return cl(e=new ll(null),t),e},Mu.ej=function(t,e){if(t=qh([],this.Oj,t,e,this))return bl(e=new yl(null),t),e},Mu.Xi=function(t,e){Hh(this.Rj,t,e,this)},Mu.Mh=function(t,e){Hh(this.Kj,t,e,this)},Mu.Yi=function(t,e){Hh(this.Sj,t,e,this)},Mu.hf=function(t,e){if(t=this.ff(t,e))return(e=new pl(null)).ba("XYZ",t),e},Mu.wp=function(t,e){if(t=qh(null,this.ke,t,e,this))return t},Mu.bj=function(t,e){if(t=this.ff(t,e))return sr(e=new nr(null),"XYZ",t),e},Mu.jf=function(t,e){if((t=qh([null],this.zf,t,e,this))&&t[0]){e=new br(null);for(var o=t[0],i=[o.length],r=1,n=t.length;r<n;++r)c(o,t[r]),i.push(o.length);return e.ba("XYZ",o,i),e}},Mu.ff=function(t,e){return qh(null,this.ke,t,e,this)},Mu.Nj={"http://www.opengis.net/gml":{pointMember:Uh(au.prototype.Xi),pointMembers:Uh(au.prototype.Xi)}},Mu.Mj={"http://www.opengis.net/gml":{lineStringMember:Uh(au.prototype.Mh),lineStringMembers:Uh(au.prototype.Mh)}},Mu.Oj={"http://www.opengis.net/gml":{polygonMember:Uh(au.prototype.Yi),polygonMembers:Uh(au.prototype.Yi)}},Mu.Rj={"http://www.opengis.net/gml":{Point:Uh(au.prototype.ff)}},Mu.Kj={"http://www.opengis.net/gml":{LineString:Uh(au.prototype.hf)}},Mu.Sj={"http://www.opengis.net/gml":{Polygon:Uh(au.prototype.jf)}},Mu.le={"http://www.opengis.net/gml":{LinearRing:Gh(au.prototype.wp)}},Mu.aj=function(t,e){return(t=this.gf(t,[el(this,t,e||{})]))?t:null},Mu.zc=function(t,e){var o={featureType:this.featureType,featureNS:this.featureNS};return e&&ht(o,el(this,t,e)),this.be(t,[o])||[]},Mu.kf=function(t){return Bt(this.srsName||t.firstElementChild.getAttribute("srsName"))},e(xu,au),(Mu=xu.prototype).Ap=function(t,e){if(t=qh([],this.Lj,t,e,this))return cl(e=new ll(null),t),e},Mu.Bp=function(t,e){if(t=qh([],this.Pj,t,e,this))return bl(e=new yl(null),t),e},Mu.ph=function(t,e){Hh(this.Hj,t,e,this)},Mu.Aj=function(t,e){Hh(this.Uj,t,e,this)},Mu.Ep=function(t,e){return qh([null],this.Qj,t,e,this)},Mu.Hp=function(t,e){return qh([null],this.Tj,t,e,this)},Mu.Fp=function(t,e){return qh([null],this.zf,t,e,this)},Mu.zp=function(t,e){return qh([null],this.ke,t,e,this)},Mu.cm=function(t,e){(t=qh(void 0,this.le,t,e,this))&&e[e.length-1].push(t)},Mu.yk=function(t,e){(t=qh(void 0,this.le,t,e,this))&&(e[e.length-1][0]=t)},Mu.gj=function(t,e){if((t=qh([null],this.Vj,t,e,this))&&t[0]){e=new br(null);for(var o=t[0],i=[o.length],r=1,n=t.length;r<n;++r)c(o,t[r]),i.push(o.length);return e.ba("XYZ",o,i),e}},Mu.Zi=function(t,e){if(t=qh([null],this.Ij,t,e,this))return(e=new pl(null)).ba("XYZ",t),e},Mu.vp=function(t,e){return F((t=qh([null],this.Jj,t,e,this))[1][0],t[1][1],t[2][0],t[2][1])},Mu.xp=function(t,e){var o,i=Nh(t,!1),r=/^\s*([+\-]?\d*\.?\d+(?:[eE][+\-]?\d+)?)\s*/;for(t=[];o=r.exec(i);)t.push(parseFloat(o[1])),i=i.substr(o[0].length);if(""===i){if(i="enu","neu"===(i=(e=e[0].srsName)?Bt(e).b:i))for(e=0,i=t.length;e<i;e+=3)r=t[e],t[e]=t[e+1],t[e+1]=r;if(2==(e=t.length)&&t.push(0),e)return t}},Mu.Bg=function(t,e){var o=Nh(t,!1).replace(/^\s*|\s*$/g,""),i=e[0].srsName,r=t.parentNode.getAttribute("srsDimension");e="enu",i&&(e=Bt(i).b),o=o.split(/\s+/),i=2,t.getAttribute("srsDimension")?i=gu(t.getAttribute("srsDimension")):t.getAttribute("dimension")?i=gu(t.getAttribute("dimension")):r&&(i=gu(r));for(var n,s=[],a=0,p=o.length;a<p;a+=i)t=parseFloat(o[a]),r=parseFloat(o[a+1]),n=3===i?parseFloat(o[a+2]):0,"en"===e.substr(0,2)?s.push(t,r,n):s.push(r,t,n);return s},Mu.ke={"http://www.opengis.net/gml":{pos:Gh(xu.prototype.xp),posList:Gh(xu.prototype.Bg)}},Mu.zf={"http://www.opengis.net/gml":{interior:xu.prototype.cm,exterior:xu.prototype.yk}},Mu.Zg={"http://www.opengis.net/gml":{Point:Gh(au.prototype.fj),MultiPoint:Gh(au.prototype.dj),LineString:Gh(au.prototype.hf),MultiLineString:Gh(au.prototype.cj),LinearRing:Gh(au.prototype.bj),Polygon:Gh(au.prototype.jf),MultiPolygon:Gh(au.prototype.ej),Surface:Gh(xu.prototype.gj),MultiSurface:Gh(xu.prototype.Bp),Curve:Gh(xu.prototype.Zi),MultiCurve:Gh(xu.prototype.Ap),Envelope:Gh(xu.prototype.vp)}},Mu.Lj={"http://www.opengis.net/gml":{curveMember:Uh(xu.prototype.ph),curveMembers:Uh(xu.prototype.ph)}},Mu.Pj={"http://www.opengis.net/gml":{surfaceMember:Uh(xu.prototype.Aj),surfaceMembers:Uh(xu.prototype.Aj)}},Mu.Hj={"http://www.opengis.net/gml":{LineString:Uh(au.prototype.hf),Curve:Uh(xu.prototype.Zi)}},Mu.Uj={"http://www.opengis.net/gml":{Polygon:Uh(au.prototype.jf),Surface:Uh(xu.prototype.gj)}},Mu.Vj={"http://www.opengis.net/gml":{patches:Gh(xu.prototype.Ep)}},Mu.Ij={"http://www.opengis.net/gml":{segments:Gh(xu.prototype.Hp)}},Mu.Jj={"http://www.opengis.net/gml":{lowerCorner:Uh(xu.prototype.Bg),upperCorner:Uh(xu.prototype.Bg)}},Mu.Qj={"http://www.opengis.net/gml":{PolygonPatch:Gh(xu.prototype.Fp)}},Mu.Tj={"http://www.opengis.net/gml":{LineStringSegment:Gh(xu.prototype.zp)}},Mu.ni=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),i=Ih(t.namespaceURI,"pos"),t.appendChild(i),t=(o=o[o.length-1]).hasZ;var r=o.srsName;o="enu",r&&(o=Bt(r).b),e=e.X(),o="en"===o.substr(0,2)?e[0]+" "+e[1]:e[1]+" "+e[0],t&&(o+=" "+(e[2]||0)),wu(i,o)};var Mu,Pu={"http://www.opengis.net/gml":{lowerCorner:Vh(wu),upperCorner:Vh(wu)}};(Mu=xu.prototype).jn=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),_h({node:t},Pu,Kh,[e[0]+" "+e[1],e[2]+" "+e[3]],o,["lowerCorner","upperCorner"],this)},Mu.ki=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),i=Ih(t.namespaceURI,"posList"),t.appendChild(i),Su(i,e,o)},Mu.hn=function(t,e){e=(t=e[e.length-1]).node;var o=t.exteriorWritten;return void 0===o&&(t.exteriorWritten=!0),Ih(e.namespaceURI,void 0!==o?"interior":"exterior")},Mu.Se=function(t,e,o){var i=(r=o[o.length-1]).hasZ,r=r.srsName;"PolygonPatch"!==t.nodeName&&r&&t.setAttribute("srsName",r),"Polygon"===t.nodeName||"PolygonPatch"===t.nodeName?(e=e.Sd(),_h({node:t,hasZ:i,srsName:r},ju,this.hn,e,o,void 0,this)):"Surface"===t.nodeName&&(i=Ih(t.namespaceURI,"patches"),t.appendChild(i),t=Ih(i.namespaceURI,"PolygonPatch"),i.appendChild(t),this.Se(t,e,o))},Mu.Re=function(t,e,o){var i=o[o.length-1].srsName;"LineStringSegment"!==t.nodeName&&i&&t.setAttribute("srsName",i),"LineString"===t.nodeName||"LineStringSegment"===t.nodeName?(i=Ih(t.namespaceURI,"posList"),t.appendChild(i),Su(i,e,o)):"Curve"===t.nodeName&&(i=Ih(t.namespaceURI,"segments"),t.appendChild(i),t=Ih(i.namespaceURI,"LineStringSegment"),i.appendChild(t),this.Re(t,e,o))},Mu.mi=function(t,e,o){var i=(n=o[o.length-1]).hasZ,r=n.srsName,n=n.surface;r&&t.setAttribute("srsName",r),e=e.Td(),_h({node:t,hasZ:i,srsName:r,surface:n},Au,this.o,e,o,void 0,this)},Mu.kn=function(t,e,o){var i=(r=o[o.length-1]).srsName,r=r.hasZ;i&&t.setAttribute("srsName",i),e=e.Zd(),_h({node:t,hasZ:r,srsName:i},Eu,Zh("pointMember"),e,o,void 0,this)},Mu.li=function(t,e,o){var i=(n=o[o.length-1]).hasZ,r=n.srsName,n=n.curve;r&&t.setAttribute("srsName",r),e=e.gd(),_h({node:t,hasZ:i,srsName:r,curve:n},Tu,this.o,e,o,void 0,this)},Mu.oi=function(t,e,o){var i=Ih(t.namespaceURI,"LinearRing");t.appendChild(i),this.ki(i,e,o)},Mu.pi=function(t,e,o){var i=this.a(e,o);i&&(t.appendChild(i),this.Se(i,e,o))},Mu.ln=function(t,e,o){var i=Ih(t.namespaceURI,"Point");t.appendChild(i),this.ni(i,e,o)},Mu.ji=function(t,e,o){var i=this.a(e,o);i&&(t.appendChild(i),this.Re(i,e,o))},Mu.od=function(t,e,o){var i=o[o.length-1],r=ht({},i);r.node=t,i=Array.isArray(e)?i.dataProjection?Yt(e,i.featureProjection,i.dataProjection):e:il(e,!0,i),_h(r,Cu,this.a,[i],o,void 0,this)},Mu.ii=function(t,e,o){var i=e.a;i&&t.setAttribute("fid",i);var r=(i=o[o.length-1]).featureNS,n=e.c;i.lb||(i.lb={},i.lb[r]={});var s=e.N();e=[];var a=[];for(h in s){var p=s[h];null!==p&&(e.push(h),a.push(p),h==n||p instanceof Ui?h in i.lb[r]||(i.lb[r][h]=Vh(this.od,this)):h in i.lb[r]||(i.lb[r][h]=Vh(wu)))}var h=ht({},i);h.node=t,_h(h,i.lb,Zh(void 0,r),a,o,e)};var Au={"http://www.opengis.net/gml":{surfaceMember:Vh(xu.prototype.pi),polygonMember:Vh(xu.prototype.pi)}},Eu={"http://www.opengis.net/gml":{pointMember:Vh(xu.prototype.ln)}},Tu={"http://www.opengis.net/gml":{lineStringMember:Vh(xu.prototype.ji),curveMember:Vh(xu.prototype.ji)}},ju={"http://www.opengis.net/gml":{exterior:Vh(xu.prototype.oi),interior:Vh(xu.prototype.oi)}},Cu={"http://www.opengis.net/gml":{Curve:Vh(xu.prototype.Re),MultiCurve:Vh(xu.prototype.li),Point:Vh(xu.prototype.ni),MultiPoint:Vh(xu.prototype.kn),LineString:Vh(xu.prototype.Re),MultiLineString:Vh(xu.prototype.li),LinearRing:Vh(xu.prototype.ki),Polygon:Vh(xu.prototype.Se),MultiPolygon:Vh(xu.prototype.mi),Surface:Vh(xu.prototype.Se),MultiSurface:Vh(xu.prototype.mi),Envelope:Vh(xu.prototype.jn)}},Lu={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"};function Ru(t){au.call(this,t=t||{}),this.b["http://www.opengis.net/gml"].featureMember=Uh(au.prototype.be),this.schemaLocation=t.schemaLocation||"http://www.opengis.net/gml http://schemas.opengis.net/gml/2.1.2/feature.xsd"}function Iu(t){return(t=Ih(t,"coordinates")).setAttribute("decimal","."),t.setAttribute("cs",","),t.setAttribute("ts"," "),t}function Nu(t,e,o){o=(r=o[o.length-1]).hasZ;for(var i,r=r.srsName,n=(e=e.X()).length,s=Array(n),a=0;a<n;++a)i=e[a],s[a]=Fu(i,r,o);wu(t,s.join(" "))}function Fu(t,e,o){var i="enu";return e="en"===(i=e?Bt(e).b:i).substr(0,2)?t[0]+","+t[1]:t[1]+","+t[0],o&&(e+=","+(t[2]||0)),e}xu.prototype.o=function(t,e){return Ih("http://www.opengis.net/gml",Lu[e[e.length-1].node.nodeName])},xu.prototype.a=function(t,e){e=(r=e[e.length-1]).multiSurface;var o=r.surface,i=r.curve,r=r.multiCurve;return Array.isArray(t)?t="Envelope":"MultiPolygon"===(t=t.U())&&!0===e?t="MultiSurface":"Polygon"===t&&!0===o?t="Surface":"LineString"===t&&!0===i?t="Curve":"MultiLineString"===t&&!0===r&&(t="MultiCurve"),Ih("http://www.opengis.net/gml",t)},xu.prototype.ie=function(t,e){e=ol(this,e);var o=Ih("http://www.opengis.net/gml","geom"),i={node:o,hasZ:this.hasZ,srsName:this.srsName,curve:this.c,surface:this.l,multiSurface:this.j,multiCurve:this.g};return e&&ht(i,e),this.od(o,t,[i]),o},xu.prototype.Xb=function(t,e){e=ol(this,e);var o=Ih("http://www.opengis.net/gml","featureMembers");o.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.schemaLocation);var i={srsName:this.srsName,hasZ:this.hasZ,curve:this.c,surface:this.l,multiSurface:this.j,multiCurve:this.g,featureNS:this.featureNS,featureType:this.featureType};e&&ht(i,e);var r=(e=[i])[e.length-1],i=r.featureType,n=r.featureNS,s={};return s[n]={},s[n][i]=Vh(this.ii,this),(r=ht({},r)).node=o,_h(r,s,Zh(i,n),t,e),o},e(Ru,au),(Mu=Ru.prototype).$i=function(t,e){t=Nh(t,!1).replace(/^\s*|\s*$/g,"");var o=e[0].srsName;e="enu",(o=o&&Bt(o))&&(e=o.b);for(var i,r,n=[],s=0,a=(t=t.trim().split(/\s+/)).length;s<a;s++)r=t[s].split(/,+/),o=parseFloat(r[0]),i=parseFloat(r[1]),r=3===r.length?parseFloat(r[2]):0,"en"===e.substr(0,2)?n.push(o,i,r):n.push(i,o,r);return n},Mu.tp=function(t,e){return F((t=qh([null],this.Gj,t,e,this))[1][0],t[1][1],t[1][3],t[1][4])},Mu.am=function(t,e){(t=qh(void 0,this.le,t,e,this))&&e[e.length-1].push(t)},Mu.bp=function(t,e){(t=qh(void 0,this.le,t,e,this))&&(e[e.length-1][0]=t)},Mu.ke={"http://www.opengis.net/gml":{coordinates:Gh(Ru.prototype.$i)}},Mu.zf={"http://www.opengis.net/gml":{innerBoundaryIs:Ru.prototype.am,outerBoundaryIs:Ru.prototype.bp}},Mu.Gj={"http://www.opengis.net/gml":{coordinates:Uh(Ru.prototype.$i)}},Mu.Zg={"http://www.opengis.net/gml":{Point:Gh(au.prototype.fj),MultiPoint:Gh(au.prototype.dj),LineString:Gh(au.prototype.hf),MultiLineString:Gh(au.prototype.cj),LinearRing:Gh(au.prototype.bj),Polygon:Gh(au.prototype.jf),MultiPolygon:Gh(au.prototype.ej),Box:Gh(Ru.prototype.tp)}},Mu.jg=function(t,e){e=(i=e[e.length-1]).multiSurface;var o=i.surface,i=i.multiCurve;return Array.isArray(t)?t="Envelope":"MultiPolygon"===(t=t.U())&&!0===e?t="MultiSurface":"Polygon"===t&&!0===o?t="Surface":"MultiLineString"===t&&!0===i&&(t="MultiCurve"),Ih("http://www.opengis.net/gml",t)},Mu.ai=function(t,e,o){var i=o[o.length-1],r=ht({},i);r.node=t,i=Array.isArray(e)?i.dataProjection?Yt(e,i.featureProjection,i.dataProjection):e:il(e,!0,i),_h(r,ku,this.jg,[i],o,void 0,this)},Mu.Pe=function(t,e,o){var i=o[o.length-1].srsName;"LineStringSegment"!==t.nodeName&&i&&t.setAttribute("srsName",i),"LineString"===t.nodeName||"LineStringSegment"===t.nodeName?(i=Iu(t.namespaceURI),t.appendChild(i),Nu(i,e,o)):"Curve"===t.nodeName&&(i=Ih(t.namespaceURI,"segments"),t.appendChild(i),t=Ih(i.namespaceURI,"LineStringSegment"),i.appendChild(t),this.Pe(t,e,o))},Mu.Qe=function(t,e,o){var i=(r=o[o.length-1]).hasZ,r=r.srsName;"PolygonPatch"!==t.nodeName&&r&&t.setAttribute("srsName",r),"Polygon"===t.nodeName||"PolygonPatch"===t.nodeName?(e=e.Sd(),_h({node:t,hasZ:i,srsName:r},Du,this.dn,e,o,void 0,this)):"Surface"===t.nodeName&&(i=Ih(t.namespaceURI,"patches"),t.appendChild(i),t=Ih(i.namespaceURI,"PolygonPatch"),i.appendChild(t),this.Qe(t,e,o))},Mu.dn=function(t,e){e=(t=e[e.length-1]).node;var o=t.exteriorWritten;return void 0===o&&(t.exteriorWritten=!0),Ih(e.namespaceURI,void 0!==o?"innerBoundaryIs":"outerBoundaryIs")},Mu.gi=function(t,e,o){var i=Ih(t.namespaceURI,"LinearRing");t.appendChild(i),this.ci(i,e,o)},Mu.di=function(t,e,o){var i=(n=o[o.length-1]).hasZ,r=n.srsName,n=n.curve;r&&t.setAttribute("srsName",r),e=e.gd(),_h({node:t,hasZ:i,srsName:r,curve:n},Uu,this.a,e,o,void 0,this)},Mu.fi=function(t,e,o){var i=o[o.length-1];o=i.hasZ;var r=i.srsName;r&&t.setAttribute("srsName",r),i=Iu(t.namespaceURI),t.appendChild(i),wu(i,t=Fu(t=e.X(),r,o))},Mu.fn=function(t,e,o){var i=o[o.length-1],r=i.hasZ;(i=i.srsName)&&t.setAttribute("srsName",i),e=e.Zd(),_h({node:t,hasZ:r,srsName:i},Ou,Zh("pointMember"),e,o,void 0,this)},Mu.gn=function(t,e,o){var i=Ih(t.namespaceURI,"Point");t.appendChild(i),this.fi(i,e,o)},Mu.bi=function(t,e,o){var i=this.jg(e,o);i&&(t.appendChild(i),this.Pe(i,e,o))},Mu.ci=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),i=Iu(t.namespaceURI),t.appendChild(i),Nu(i,e,o)},Mu.ei=function(t,e,o){var i=(n=o[o.length-1]).hasZ,r=n.srsName,n=n.surface;r&&t.setAttribute("srsName",r),e=e.Td(),_h({node:t,hasZ:i,srsName:r,surface:n},Bu,this.a,e,o,void 0,this)},Mu.hi=function(t,e,o){var i=this.jg(e,o);i&&(t.appendChild(i),this.Qe(i,e,o))},Mu.en=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),_h({node:t},Xu,Kh,[e[0]+" "+e[1],e[2]+" "+e[3]],o,["lowerCorner","upperCorner"],this)};var ku={"http://www.opengis.net/gml":{Curve:Vh(Ru.prototype.Pe),MultiCurve:Vh(Ru.prototype.di),Point:Vh(Ru.prototype.fi),MultiPoint:Vh(Ru.prototype.fn),LineString:Vh(Ru.prototype.Pe),MultiLineString:Vh(Ru.prototype.di),LinearRing:Vh(Ru.prototype.ci),Polygon:Vh(Ru.prototype.Qe),MultiPolygon:Vh(Ru.prototype.ei),Surface:Vh(Ru.prototype.Qe),MultiSurface:Vh(Ru.prototype.ei),Envelope:Vh(Ru.prototype.en)}},Du={"http://www.opengis.net/gml":{outerBoundaryIs:Vh(Ru.prototype.gi),innerBoundaryIs:Vh(Ru.prototype.gi)}},Ou={"http://www.opengis.net/gml":{pointMember:Vh(Ru.prototype.gn)}},Uu={"http://www.opengis.net/gml":{lineStringMember:Vh(Ru.prototype.bi),curveMember:Vh(Ru.prototype.bi)}};Ru.prototype.a=function(t,e){return Ih("http://www.opengis.net/gml",Gu[e[e.length-1].node.nodeName])};var Gu={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"},Bu={"http://www.opengis.net/gml":{surfaceMember:Vh(Ru.prototype.hi),polygonMember:Vh(Ru.prototype.hi)}},Xu={"http://www.opengis.net/gml":{lowerCorner:Vh(wu),upperCorner:Vh(wu)}};function Vu(t){t=t||{},ru.call(this),this.defaultDataProjection=Bt("EPSG:4326"),this.b=t.readExtensions}e(Vu,ru);var Wu=[null,"http://www.topografix.com/GPX/1/0","http://www.topografix.com/GPX/1/1"];function Zu(t,e,o,i){return t.push(parseFloat(o.getAttribute("lon")),parseFloat(o.getAttribute("lat"))),"ele"in i?(t.push(i.ele),delete i.ele,e.hasZ=!0):t.push(0),"time"in i?(t.push(i.time),delete i.time,e.hasM=!0):t.push(0),t}function Ku(t,e,o){var i="XY",r=2;if(t.hasZ&&t.hasM?(i="XYZM",r=4):t.hasZ?(i="XYZ",r=3):t.hasM&&(i="XYM",r=3),4!==r){for(var n=0,s=e.length/4;n<s;n++)e[n*r]=e[4*n],e[n*r+1]=e[4*n+1],t.hasZ&&(e[n*r+2]=e[4*n+2]),t.hasM&&(e[n*r+2]=e[4*n+3]);if(e.length=e.length/4*r,o)for(n=0,s=o.length;n<s;n++)o[n]=o[n]/4*r}return i}function zu(t,e){var o=e[e.length-1],i=t.getAttribute("href");null!==i&&(o.link=i),Hh(Qu,t,e)}function Yu(t,e){e[e.length-1].extensionsNode_=t}function Hu(t,e){var o=e[0];if(t=qh({flatCoordinates:[],layoutOptions:{}},tc,t,e)){e=t.flatCoordinates,delete t.flatCoordinates;var i=t.layoutOptions;delete t.layoutOptions;var i=Ku(i,e),r=new pl(null);return r.ba(i,e),il(r,!1,o),(o=new Lh(r)).H(t),o}}function qu(t,e){var o=e[0];if(t=qh({flatCoordinates:[],ends:[],layoutOptions:{}},oc,t,e)){e=t.flatCoordinates,delete t.flatCoordinates;var i=t.ends;delete t.ends;var r=t.layoutOptions;delete t.layoutOptions;var r=Ku(r,e,i),n=new ll(null);return n.ba(r,e,i),il(n,!1,o),(o=new Lh(n)).H(t),o}}function Ju(t,e){var o=e[0];if(e=qh({},nc,t,e)){var i={};return il(t=new ar(t=Zu([],i,t,e),Ku(i,t)),!1,o),(o=new Lh(t)).H(e),o}}var _u={rte:Hu,trk:qu,wpt:Ju},$u=Yh(Wu,{rte:Uh(Hu),trk:Uh(qu),wpt:Uh(Ju)}),Qu=Yh(Wu,{text:Xh(du,"linkText"),type:Xh(du,"linkType")}),tc=Yh(Wu,{name:Xh(du),cmt:Xh(du),desc:Xh(du),src:Xh(du),link:zu,number:Xh(yu),extensions:Yu,type:Xh(du),rtept:function(t,e){var o=qh({},ec,t,e);o&&Zu((e=e[e.length-1]).flatCoordinates,e.layoutOptions,t,o)}}),ec=Yh(Wu,{ele:Xh(cu),time:Xh(uu)}),oc=Yh(Wu,{name:Xh(du),cmt:Xh(du),desc:Xh(du),src:Xh(du),link:zu,number:Xh(yu),type:Xh(du),extensions:Yu,trkseg:function(t,e){var o=e[e.length-1];Hh(ic,t,e),o.ends.push(o.flatCoordinates.length)}}),ic=Yh(Wu,{trkpt:function(t,e){var o=qh({},rc,t,e);o&&Zu((e=e[e.length-1]).flatCoordinates,e.layoutOptions,t,o)}}),rc=Yh(Wu,{ele:Xh(cu),time:Xh(uu)}),nc=Yh(Wu,{ele:Xh(cu),time:Xh(uu),magvar:Xh(cu),geoidheight:Xh(cu),name:Xh(du),cmt:Xh(du),desc:Xh(du),src:Xh(du),link:zu,sym:Xh(du),type:Xh(du),fix:Xh(du),sat:Xh(yu),hdop:Xh(cu),vdop:Xh(cu),pdop:Xh(cu),ageofdgpsdata:Xh(cu),dgpsid:Xh(yu),extensions:Yu});function sc(t,e){for(var o=0,i=(e=e||[]).length;o<i;++o){var r,n=e[o];t.b&&(r=n.get("extensionsNode_")||null,t.b(n,r)),n.set("extensionsNode_",void 0)}}function ac(t,e,o){t.setAttribute("href",e),e=o[o.length-1].properties,_h({node:t},lc,Kh,[e.linkText,e.linkType],o,hc)}function pc(t,e,o){var i=o[o.length-1],r=i.node.namespaceURI,n=i.properties;switch(t.setAttributeNS(null,"lat",e[1]),t.setAttributeNS(null,"lon",e[0]),i.geometryLayout){case"XYZM":e[3]&&(n.time=e[3]);case"XYZ":e[2]&&(n.ele=e[2]);break;case"XYM":e[2]&&(n.time=e[2])}i=zh(n,e=("rtept"==t.nodeName?fc:bc)[r]),_h({node:t,properties:n},mc,Kh,i,o,e)}Vu.prototype.xg=function(t,e){if(!d(Wu,t.namespaceURI))return null;var o=_u[t.localName];return o&&(t=o(t,[el(this,t,e)]))?(sc(this,[t]),t):null},Vu.prototype.zc=function(t,e){return d(Wu,t.namespaceURI)&&"gpx"==t.localName&&(t=qh([],$u,t,[el(this,t,e)]))?(sc(this,t),t):[]};var hc=["text","type"],lc=Yh(Wu,{text:Vh(wu),type:Vh(wu)}),uc=Yh(Wu,"name cmt desc src link number type rtept".split(" ")),cc=Yh(Wu,{name:Vh(wu),cmt:Vh(wu),desc:Vh(wu),src:Vh(wu),link:Vh(ac),number:Vh(mu),type:Vh(wu),rtept:Wh(Vh(pc))}),fc=Yh(Wu,["ele","time"]),yc=Yh(Wu,"name cmt desc src link number type trkseg".split(" ")),gc=Yh(Wu,{name:Vh(wu),cmt:Vh(wu),desc:Vh(wu),src:Vh(wu),link:Vh(ac),number:Vh(mu),type:Vh(wu),trkseg:Wh(Vh(function(t,e,o){_h({node:t,geometryLayout:e.ja,properties:{}},vc,dc,e.X(),o)}))}),dc=Zh("trkpt"),vc=Yh(Wu,{trkpt:Vh(pc)}),bc=Yh(Wu,"ele time magvar geoidheight name cmt desc src link sym type fix sat hdop vdop pdop ageofdgpsdata dgpsid".split(" ")),mc=Yh(Wu,{ele:Vh(bu),time:Vh(function(t,e){e=new Date(1e3*e),t.appendChild(Rh.createTextNode(e.getUTCFullYear()+"-"+Mi(e.getUTCMonth()+1)+"-"+Mi(e.getUTCDate())+"T"+Mi(e.getUTCHours())+":"+Mi(e.getUTCMinutes())+":"+Mi(e.getUTCSeconds())+"Z"))}),magvar:Vh(bu),geoidheight:Vh(bu),name:Vh(wu),cmt:Vh(wu),desc:Vh(wu),src:Vh(wu),link:Vh(ac),sym:Vh(wu),type:Vh(wu),fix:Vh(wu),sat:Vh(mu),hdop:Vh(bu),vdop:Vh(bu),pdop:Vh(bu),ageofdgpsdata:Vh(bu),dgpsid:Vh(mu)}),wc={Point:"wpt",LineString:"rte",MultiLineString:"trk"};function xc(t,e){if((t=t.V())&&(t=wc[t.U()]))return Ih(e[e.length-1].node.namespaceURI,t)}var Sc=Yh(Wu,{rte:Vh(function(t,e,o){var i=o[0],r=e.N();t={node:t,properties:r},(e=e.V())&&(e=il(e,!0,i),t.geometryLayout=e.ja,r.rtept=e.X()),r=zh(r,i=uc[o[o.length-1].node.namespaceURI]),_h(t,cc,Kh,r,o,i)}),trk:Vh(function(t,e,o){var i=o[0],r=e.N();t={node:t,properties:r},(e=e.V())&&(e=il(e,!0,i),r.trkseg=e.gd()),r=zh(r,i=yc[o[o.length-1].node.namespaceURI]),_h(t,gc,Kh,r,o,i)}),wpt:Vh(function(t,e,o){var i=o[0],r=o[o.length-1];r.properties=e.N(),(e=e.V())&&(e=il(e,!0,i),r.geometryLayout=e.ja,pc(t,e.X(),o))})});function Mc(){tl.call(this)}function Pc(t){return"string"==typeof t?t:""}function Ac(t){t=t||{},tl.call(this),this.defaultDataProjection=Bt("EPSG:4326"),this.b=t.altitudeMode||"none"}Vu.prototype.Xb=function(t,e){e=ol(this,e);var o=Ih("http://www.topografix.com/GPX/1/1","gpx");return o.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance"),o.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation","http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"),o.setAttribute("version","1.1"),o.setAttribute("creator","OpenLayers"),_h({node:o},Sc,xc,t,[e]),o},e(Mc,tl),(Mu=Mc.prototype).U=function(){return"text"},Mu.Tb=function(t,e){return this.ae(Pc(t),ol(this,e))},Mu.Oa=function(t,e){return this.zg(Pc(t),ol(this,e))},Mu.Sc=function(t,e){return this.wd(Pc(t),ol(this,e))},Mu.kb=function(){return this.defaultDataProjection},Mu.Bd=function(t,e){return this.ge(t,ol(this,e))},Mu.Wb=function(t,e){return this.Wg(t,ol(this,e))},Mu.$c=function(t,e){return this.Cd(t,ol(this,e))},e(Ac,Mc);var Ec,Tc,jc,Cc,Lc,Rc,Ic,Nc,Fc,kc,Dc,Oc,Uc,Gc,Bc,Xc=/^B(\d{2})(\d{2})(\d{2})(\d{2})(\d{5})([NS])(\d{3})(\d{5})([EW])([AV])(\d{5})(\d{5})/,Vc=/^H.([A-Z]{3}).*?:(.*)/,Wc=/^HFDTE(\d{2})(\d{2})(\d{2})/,Zc=/\r\n|\r|\n/;function Kc(t,e,o,i,r,n){Ae.call(this),this.j=null,this.M=t||new Image,null!==i&&(this.M.crossOrigin=i),this.c=n?document.createElement("CANVAS"):null,this.g=n,this.f=null,this.i=r,this.a=o,this.o=e,this.l=!1,2==this.i&&zc(this)}function zc(e){var t=Ye(1,1);try{t.drawImage(e.M,0,0),t.getImageData(0,0,1,1)}catch(t){e.l=!0}}function Yc(t){this.o=void 0!==(t=t||{}).anchor?t.anchor:[.5,.5],this.u=null,this.i=void 0!==t.anchorOrigin?t.anchorOrigin:"top-left",this.C=void 0!==t.anchorXUnits?t.anchorXUnits:"fraction",this.B=void 0!==t.anchorYUnits?t.anchorYUnits:"fraction",this.ra=void 0!==t.crossOrigin?t.crossOrigin:null;var e=void 0!==t.img?t.img:null,o=void 0!==t.imgSize?t.imgSize:null,i=t.src;O(!(void 0!==i&&e),4),O(!e||e&&o,5),O(void 0!==(i=(void 0===i||!i.length)&&e?e.src||G(e).toString():i)&&0<i.length,6);var r=void 0!==t.src?0:2;this.j=void 0!==t.color?Be(t.color):null;var n=this.ra,s=this.j,a=Kn.get(i,n,s);a||(a=new Kc(e,i,o,n,r,s),Kn.set(i,n,s,a)),this.b=a,this.oa=void 0!==t.offset?t.offset:[0,0],this.c=void 0!==t.offsetOrigin?t.offsetOrigin:"top-left",this.S=null,this.D=void 0!==t.size?t.size:null,mh.call(this,{opacity:void 0!==t.opacity?t.opacity:1,rotation:void 0!==t.rotation?t.rotation:0,scale:void 0!==t.scale?t.scale:1,snapToPixel:void 0===t.snapToPixel||t.snapToPixel,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView})}function Hc(t){this.a=(t=t||{}).font,this.f=t.rotation,this.o=t.rotateWithView,this.b=t.scale,this.Ia=t.text,this.g=t.textAlign,this.j=t.textBaseline,this.Va=void 0!==t.fill?t.fill:new Mh({color:"#333"}),this.Ya=void 0!==t.stroke?t.stroke:null,this.i=void 0!==t.offsetX?t.offsetX:0,this.c=void 0!==t.offsetY?t.offsetY:0}function qc(t){t=t||{},ru.call(this),Ec||(jc=new Mh({color:Tc=[255,255,255,1]}),Rc=Lc="pixels",kc=new Yc({anchor:Cc=[20,2],anchorOrigin:"bottom-left",anchorXUnits:Lc,anchorYUnits:Rc,crossOrigin:"anonymous",rotation:0,scale:Fc=.5,size:Ic=[64,64],src:Nc="https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"}),Dc="NO_IMAGE",Oc=new Oa({color:Tc,width:1}),Uc=new Oa({color:[51,51,51,1],width:2}),Gc=new Hc({font:"bold 16px Helvetica",fill:jc,stroke:Uc,scale:.8}),Bc=new Ph({fill:jc,image:kc,text:Gc,stroke:Oc,zIndex:0}),Ec=[Bc]),this.defaultDataProjection=Bt("EPSG:4326"),this.a=t.defaultStyle||Ec,this.c=void 0===t.extractStyles||t.extractStyles,this.j=void 0===t.writeStyles||t.writeStyles,this.b={},this.g=void 0===t.showPointNames||t.showPointNames}(Mu=Ac.prototype).ae=function(t,e){var o=this.b,i=t.split(Zc);t={};for(var r=[],n=2e3,s=0,a=1,p=-1,h=0,l=i.length;h<l;++h){var u,c,f,y,g,d=i[h];"B"==d.charAt(0)?(u=Xc.exec(d))&&(d=parseInt(u[1],10),c=parseInt(u[2],10),f=parseInt(u[3],10),y=parseInt(u[4],10)+parseInt(u[5],10)/6e4,"S"==u[6]&&(y=-y),g=parseInt(u[7],10)+parseInt(u[8],10)/6e4,"W"==u[9]&&(g=-g),r.push(g,y),"none"!=o&&r.push("gps"==o?parseInt(u[11],10):"barometric"==o?parseInt(u[12],10):0),(u=Date.UTC(n,s,a,d,c,f))<p&&(u=Date.UTC(n,s,a+1,d,c,f)),r.push(u/1e3),p=u):"H"==d.charAt(0)&&((u=Wc.exec(d))?(a=parseInt(u[1],10),s=parseInt(u[2],10)-1,n=2e3+parseInt(u[3],10)):(u=Vc.exec(d))&&(t[u[1]]=u[2].trim()))}return r.length?((i=new pl(null)).ba("none"==o?"XYM":"XYZM",r),(e=new Lh(il(i,!1,e))).H(t),e):null},Mu.zg=function(t,e){return(t=this.ae(t,e))?[t]:[]},Mu.ge=function(){},Mu.Wg=function(){},Mu.Cd=function(){},Mu.wd=function(){},e(Kc,Ae),Kc.prototype.v=function(){this.i=3,this.f.forEach(me),this.f=null,this.b("change")},Kc.prototype.u=function(){if(this.i=2,this.a&&(this.M.width=this.a[0],this.M.height=this.a[1]),this.a=[this.M.width,this.M.height],this.f.forEach(me),this.f=null,zc(this),!this.l&&null!==this.g){this.c.width=this.M.width,this.c.height=this.M.height;var t=this.c.getContext("2d");t.drawImage(this.M,0,0);for(var e=t.getImageData(0,0,this.M.width,this.M.height),o=e.data,i=this.g[0]/255,r=this.g[1]/255,n=this.g[2]/255,s=0,a=o.length;s<a;s+=4)o[s]*=i,o[s+1]*=r,o[s+2]*=n;t.putImageData(e,0,0)}this.b("change")},Kc.prototype.Y=function(){return this.c||this.M},Kc.prototype.load=function(){if(0==this.i){this.i=1,this.f=[ve(this.M,"error",this.v,this),ve(this.M,"load",this.u,this)];try{this.M.src=this.o}catch(t){this.v()}}},e(Yc,mh),(Mu=Yc.prototype).clone=function(){var t,e,o=this.Y(1);return 2===this.b.i&&("IMG"===o.tagName.toUpperCase()?t=o.cloneNode(!0):(e=(t=document.createElement("canvas")).getContext("2d"),t.width=o.width,t.height=o.height,e.drawImage(o,0,0))),new Yc({anchor:this.o.slice(),anchorOrigin:this.i,anchorXUnits:this.C,anchorYUnits:this.B,crossOrigin:this.ra,color:this.j&&this.j.slice?this.j.slice():this.j||void 0,img:t||void 0,imgSize:t?this.b.a.slice():void 0,src:t?void 0:this.b.o,offset:this.oa.slice(),offsetOrigin:this.c,size:null!==this.D?this.D.slice():void 0,opacity:this.f,scale:this.a,snapToPixel:this.v,rotation:this.g,rotateWithView:this.l})},Mu.Hc=function(){if(this.u)return this.u;var t=this.o,e=this.ic();if("fraction"==this.C||"fraction"==this.B){if(!e)return null;t=this.o.slice(),"fraction"==this.C&&(t[0]*=e[0]),"fraction"==this.B&&(t[1]*=e[1])}if("top-left"!=this.i){if(!e)return null;t===this.o&&(t=this.o.slice()),"top-right"!=this.i&&"bottom-right"!=this.i||(t[0]=-t[0]+e[0]),"bottom-left"!=this.i&&"bottom-right"!=this.i||(t[1]=-t[1]+e[1])}return this.u=t},Mu.Lo=function(){return this.j},Mu.Y=function(t){return this.b.Y(t)},Mu.ye=function(){return this.b.a},Mu.Ye=function(){return this.b.i},Mu.qg=function(){var t,e,o,i=this.b;return i.j||(i.l?((o=Ye(t=i.a[0],e=i.a[1])).fillRect(0,0,t,e),i.j=o.canvas):i.j=i.M),i.j},Mu.Oc=function(){if(this.S)return this.S;var t=this.oa;if("top-left"!=this.c){var e=this.ic(),o=this.b.a;if(!e||!o)return null;t=t.slice(),"top-right"!=this.c&&"bottom-right"!=this.c||(t[0]=o[0]-e[0]-t[0]),"bottom-left"!=this.c&&"bottom-right"!=this.c||(t[1]=o[1]-e[1]-t[1])}return this.S=t},Mu.Mo=function(){return this.b.o},Mu.ic=function(){return this.D||this.b.a},Mu.Nh=function(t,e){return de(this.b,"change",t,e)},Mu.load=function(){this.b.load()},Mu.Bj=function(t,e){be(this.b,"change",t,e)},(Mu=Hc.prototype).clone=function(){return new Hc({font:this.a,rotation:this.f,rotateWithView:this.o,scale:this.b,text:this.Na(),textAlign:this.g,textBaseline:this.j,fill:this.Fa()?this.Fa().clone():void 0,stroke:this.Ga()?this.Ga().clone():void 0,offsetX:this.i,offsetY:this.c})},Mu.Nk=function(){return this.a},Mu.cl=function(){return this.i},Mu.dl=function(){return this.c},Mu.Fa=function(){return this.Va},Mu.Ro=function(){return this.o},Mu.So=function(){return this.f},Mu.To=function(){return this.b},Mu.Ga=function(){return this.Ya},Mu.Na=function(){return this.Ia},Mu.nl=function(){return this.g},Mu.ol=function(){return this.j},Mu.nj=function(t){this.a=t},Mu.sj=function(t){this.i=t},Mu.tj=function(t){this.c=t},Mu.pf=function(t){this.Va=t},Mu.Uo=function(t){this.f=t},Mu.Si=function(t){this.b=t},Mu.qf=function(t){this.Ya=t},Mu.xd=function(t){this.Ia=t},Mu.vj=function(t){this.g=t},Mu.hq=function(t){this.j=t},e(qc,ru);var Jc=["http://www.google.com/kml/ext/2.2"],_c=[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"],$c={fraction:"fraction",pixels:"pixels",insetPixels:"pixels"};function Qc(t,e){var o,i=[0,0],r="start";return!t.Y()||2==(o=null===(o=t.Y().ye())?Ic:o).length&&(r=t.Y().a,i[0]=r*o[0]/2,i[1]=-r*o[1]/2,r="left"),null!==t.Na()?((t=(o=t.Na()).clone()).nj(o.a||Gc.a),t.Si(o.b||Gc.b),t.pf(o.Fa()||Gc.Fa()),t.qf(o.Ga()||Uc)):t=Gc.clone(),t.xd(e),t.sj(i[0]),t.tj(i[1]),t.vj(r),new Ph({text:t})}function tf(i,r,n,s,a){return function(){var t=a,e="";if((t=t&&this.V()?"Point"===this.V().U():t)&&(e=this.get("name"),t=t&&e),i)return t?(t=Qc(i[0],e),i.concat(t)):i;if(r){var o=function t(e,o,i){return Array.isArray(e)?e:"string"==typeof e?(!(e in i)&&"#"+e in i&&(e="#"+e),t(i[e],o,i)):o}(r,n,s);return t?(t=Qc(o[0],e),o.concat(t)):o}return t?(t=Qc(n[0],e),n.concat(t)):n}}function ef(t){if(t=Nh(t,!1),t=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(t))return t=t[1],[parseInt(t.substr(6,2),16),parseInt(t.substr(4,2),16),parseInt(t.substr(2,2),16),parseInt(t.substr(0,2),16)/255]}function of(t){t=Nh(t,!1);for(var e,o=[],i=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?))?\s*/i;e=i.exec(t);)o.push(parseFloat(e[1]),parseFloat(e[2]),e[3]?parseFloat(e[3]):0),t=t.substr(e[0].length);if(""===t)return o}function rf(t){var e=Nh(t,!1).trim();return t.baseURI&&"about:blank"!==t.baseURI?new URL(e,t.baseURI).href:e}function nf(t){return cu(t)}function sf(t,e){return qh(null,Mf,t,e)}function af(t,e){if(e=qh({A:[],Ej:[]},Af,t,e)){t=e.A,e=e.Ej;for(var o=0,i=Math.min(t.length,e.length);o<i;++o)t[4*o+3]=e[o];return(e=new pl(null)).ba("XYZM",t),e}}function pf(t,e){var o=qh({},Sf,t,e);if(t=qh(null,Ef,t,e))return(e=new pl(null)).ba("XYZ",t),e.H(o),e}function hf(t,e){var o=qh({},Sf,t,e);if(t=qh(null,Ef,t,e))return(e=new br(null)).ba("XYZ",t,[t.length]),e.H(o),e}function lf(t,e){if(!(t=qh([],If,t,e)))return null;if(!t.length)return new ql(t);var o=!0,i=t[0].U(),r=1;for(s=t.length;r<s;++r)if((e=t[r]).U()!=i){o=!1;break}if(o)if("Point"==i){for(var n=t[0],o=n.ja,i=n.ga(),r=1,s=t.length;r<s;++r)c(i,(e=t[r]).ga());(n=new fl(null)).ba(o,i),yf(n,t)}else"LineString"==i?(cl(n=new ll(null),t),yf(n,t)):"Polygon"==i?(bl(n=new yl(null),t),yf(n,t)):"GeometryCollection"==i?n=new ql(t):O(!1,37);else n=new ql(t);return n}function uf(t,e){var o=qh({},Sf,t,e);if(t=qh(null,Ef,t,e))return(e=new ar(null)).ba("XYZ",t),e.H(o),e}function cf(t,e){var o=qh({},Sf,t,e);if((t=qh([null],Pf,t,e))&&t[0]){e=new br(null);for(var i=t[0],r=[i.length],n=1,s=t.length;n<s;++n)c(i,t[n]),r.push(i.length);return e.ba("XYZ",i,r),e.H(o),e}}function ff(t,e){if(!(e=qh({},Xf,t,e)))return null;t="fillStyle"in e?e.fillStyle:jc;var o=e.fill;void 0===o||o||(t=null),(o="imageStyle"in e?e.imageStyle:kc)==Dc&&(o=void 0);var i="textStyle"in e?e.textStyle:Gc,r="strokeStyle"in e?e.strokeStyle:Oc;return[new Ph({fill:t,image:o,stroke:r=void 0!==(e=e.outline)&&!e?null:r,text:i,zIndex:void 0})]}function yf(t,e){for(var o,i=e.length,r=Array(e.length),n=Array(e.length),s=o=!1,a=0;a<i;++a){var p=e[a];r[a]=p.get("extrude"),n[a]=p.get("altitudeMode"),s=s||void 0!==r[a],o=o||n[a]}s&&t.set("extrude",r),o&&t.set("altitudeMode",n)}function gf(t,e){Hh(bf,t,e)}function df(t,e){Hh(mf,t,e)}var vf=Yh(_c,{displayName:Xh(du),value:Xh(du)}),bf=Yh(_c,{Data:function(t,e){var o=t.getAttribute("name");Hh(vf,t,e),t=e[e.length-1],null!==o?t[o]=t.value:null!==t.displayName&&(t[t.displayName]=t.value)},SchemaData:function(t,e){Hh(Bf,t,e)}}),mf=Yh(_c,{LatLonAltBox:function(t,e){(t=qh({},wf,t,e))&&((e=e[e.length-1]).extent=[parseFloat(t.west),parseFloat(t.south),parseFloat(t.east),parseFloat(t.north)],e.altitudeMode=t.altitudeMode,e.minAltitude=parseFloat(t.minAltitude),e.maxAltitude=parseFloat(t.maxAltitude))},Lod:function(t,e){(t=qh({},xf,t,e))&&((e=e[e.length-1]).minLodPixels=parseFloat(t.minLodPixels),e.maxLodPixels=parseFloat(t.maxLodPixels),e.minFadeExtent=parseFloat(t.minFadeExtent),e.maxFadeExtent=parseFloat(t.maxFadeExtent))}}),wf=Yh(_c,{altitudeMode:Xh(du),minAltitude:Xh(cu),maxAltitude:Xh(cu),north:Xh(cu),south:Xh(cu),east:Xh(cu),west:Xh(cu)}),xf=Yh(_c,{minLodPixels:Xh(cu),maxLodPixels:Xh(cu),minFadeExtent:Xh(cu),maxFadeExtent:Xh(cu)}),Sf=Yh(_c,{extrude:Xh(hu),altitudeMode:Xh(du)}),Mf=Yh(_c,{coordinates:Gh(of)}),Pf=Yh(_c,{innerBoundaryIs:function(t,e){(t=qh(void 0,Cf,t,e))&&e[e.length-1].push(t)},outerBoundaryIs:function(t,e){(t=qh(void 0,Df,t,e))&&(e[e.length-1][0]=t)}}),Af=Yh(_c,{when:function(t,e){e=e[e.length-1].Ej,t=Nh(t,!1),t=Date.parse(t),e.push(isNaN(t)?0:t)}},Yh(Jc,{coord:function(t,e){e=e[e.length-1].A,t=Nh(t,!1),(t=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i.exec(t))?e.push(parseFloat(t[1]),parseFloat(t[2]),parseFloat(t[3]),0):e.push(0,0,0,0)}})),Ef=Yh(_c,{coordinates:Gh(of)}),Tf=Yh(_c,{href:Xh(rf)},Yh(Jc,{x:Xh(cu),y:Xh(cu),w:Xh(cu),h:Xh(cu)})),jf=Yh(_c,{Icon:Xh(function(t,e){return(t=qh({},Tf,t,e))?t:null}),heading:Xh(cu),hotSpot:Xh(function(t){var e=t.getAttribute("xunits"),o=t.getAttribute("yunits"),i="insetPixels"!==e?"insetPixels"!==o?"bottom-left":"top-left":"insetPixels"!==o?"bottom-right":"top-right";return{x:parseFloat(t.getAttribute("x")),Xg:$c[e],y:parseFloat(t.getAttribute("y")),Yg:$c[o],origin:i}}),scale:Xh(nf)}),Cf=Yh(_c,{LinearRing:Gh(sf)}),Lf=Yh(_c,{color:Xh(ef),scale:Xh(nf)}),Rf=Yh(_c,{color:Xh(ef),width:Xh(cu)}),If=Yh(_c,{LineString:Uh(pf),LinearRing:Uh(hf),MultiGeometry:Uh(lf),Point:Uh(uf),Polygon:Uh(cf)}),Nf=Yh(Jc,{Track:Uh(af)}),Ff=Yh(_c,{ExtendedData:gf,Region:df,Link:function(t,e){Hh(kf,t,e)},address:Xh(du),description:Xh(du),name:Xh(du),open:Xh(hu),phoneNumber:Xh(du),visibility:Xh(hu)}),kf=Yh(_c,{href:Xh(rf)}),Df=Yh(_c,{LinearRing:Gh(sf)}),Of=Yh(_c,{Style:Xh(ff),key:Xh(du),styleUrl:Xh(rf)}),Uf=Yh(_c,{ExtendedData:gf,Region:df,MultiGeometry:Xh(lf,"geometry"),LineString:Xh(pf,"geometry"),LinearRing:Xh(hf,"geometry"),Point:Xh(uf,"geometry"),Polygon:Xh(cf,"geometry"),Style:Xh(ff),StyleMap:function(t,e){(t=qh(void 0,Vf,t,e))&&(e=e[e.length-1],Array.isArray(t)?e.Style=t:"string"==typeof t?e.styleUrl=t:O(!1,38))},address:Xh(du),description:Xh(du),name:Xh(du),open:Xh(hu),phoneNumber:Xh(du),styleUrl:Xh(rf),visibility:Xh(hu)},Yh(Jc,{MultiTrack:Xh(function(t,e){if(t=qh([],Nf,t,e))return cl(e=new ll(null),t),e},"geometry"),Track:Xh(af,"geometry")})),Gf=Yh(_c,{color:Xh(ef),fill:Xh(hu),outline:Xh(hu)}),Bf=Yh(_c,{SimpleData:function(t,e){var o=t.getAttribute("name");null!==o&&(t=du(t),e[e.length-1][o]=t)}}),Xf=Yh(_c,{IconStyle:function(t,e){var o,i,r,n,s,a,p,h,l,u,c,f;(t=qh({},jf,t,e))&&(e=e[e.length-1],f="Icon"in t?t.Icon:{},o=!("Icon"in t)||0<Object.keys(f).length,(r=f.href)?i=r:o&&(i=Nc),r="bottom-left",(u=t.hotSpot)?(n=[u.x,u.y],s=u.Xg,a=u.Yg,r=u.origin):i===Nc?(n=Cc,s=Lc,a=Rc):/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(i)&&(n=[.5,0],a=s="fraction"),u=f.x,h=f.y,void 0!==u&&void 0!==h&&(p=[u,h]),u=f.w,f=f.h,void 0!==u&&void 0!==f&&(l=[u,f]),void 0!==(f=t.heading)&&(c=M(f)),t=t.scale,o?(i==Nc&&(l=Ic,void 0===t&&(t=Fc)),i=new Yc({anchor:n,anchorOrigin:r,anchorXUnits:s,anchorYUnits:a,crossOrigin:"anonymous",offset:p,offsetOrigin:"bottom-left",rotation:c,scale:t,size:l,src:i}),e.imageStyle=i):e.imageStyle=Dc)},LabelStyle:function(t,e){(t=qh({},Lf,t,e))&&(e[e.length-1].textStyle=new Hc({fill:new Mh({color:"color"in t?t.color:Tc}),scale:t.scale}))},LineStyle:function(t,e){(t=qh({},Rf,t,e))&&(e[e.length-1].strokeStyle=new Oa({color:"color"in t?t.color:Tc,width:"width"in t?t.width:1}))},PolyStyle:function(t,e){var o;(t=qh({},Gf,t,e))&&((e=e[e.length-1]).fillStyle=new Mh({color:"color"in t?t.color:Tc}),void 0!==(o=t.fill)&&(e.fill=o),void 0!==(t=t.outline)&&(e.outline=t))}}),Vf=Yh(_c,{Pair:function(t,e){var o;!(t=qh({},Of,t,e))||(o=t.key)&&"normal"==o&&((o=t.styleUrl)&&(e[e.length-1]=o),(t=t.Style)&&(e[e.length-1]=t))}});function Wf(t,e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE){var o=Zf(t,e);if(o)return o}}function Zf(t,e){for(var o=e.firstElementChild;o;o=o.nextElementSibling)if(d(_c,o.namespaceURI)&&"name"==o.localName)return du(o);for(o=e.firstElementChild;o;o=o.nextElementSibling)if(e=o.localName,d(_c,o.namespaceURI)&&("Document"==e||"Folder"==e||"Placemark"==e||"kml"==e)&&(e=Zf(t,o)))return e}function Kf(t,e){var o=[];for(e=e.firstChild;e;e=e.nextSibling)e.nodeType==Node.ELEMENT_NODE&&c(o,zf(t,e));return o}function zf(t,e){for(var o,i=[],r=e.firstElementChild;r;r=r.nextElementSibling)d(_c,r.namespaceURI)&&"NetworkLink"==r.localName&&(o=qh({},Ff,r,[]),i.push(o));for(r=e.firstElementChild;r;r=r.nextElementSibling)e=r.localName,!d(_c,r.namespaceURI)||"Document"!=e&&"Folder"!=e&&"kml"!=e||c(i,zf(t,r));return i}function Yf(t,e){var o=[];for(e=e.firstChild;e;e=e.nextSibling)e.nodeType==Node.ELEMENT_NODE&&c(o,t.lf(e));return o}function Hf(t,e){var o;for(e=[255*(4==(e=Be(e)).length?e[3]:1),e[2],e[1],e[0]],o=0;o<4;++o){var i=parseInt(e[o],10).toString(16);e[o]=1==i.length?"0"+i:i}wu(t,e.join(""))}function qf(t,e,o){t={node:t};var i,r,n=e.U();"GeometryCollection"==n?(i=e.Vf(),r=Ay):"MultiPoint"==n?(i=e.Zd(),r=Ry):"MultiLineString"==n?(i=e.gd(),r=Iy):"MultiPolygon"==n?(i=e.Td(),r=Fy):O(!1,39),_h(t,gy,r,i,o)}function Jf(t,e,o){_h({node:t},yy,Ny,[e],o)}function _f(t,e,o){var i={node:t};e.a&&t.setAttribute("id",e.a),t=e.N();var r={address:1,description:1,name:1,open:1,phoneNumber:1,styleUrl:1,visibility:1};r[e.c]=1;var n,s=Object.keys(t||{}).sort().filter(function(t){return!r[t]});0<s.length&&(n=zh(t,s),_h(i,vy,Cy,[{names:s,values:n}],o)),(s=e.Lc())&&(s=s.call(e,0))&&(s=Array.isArray(s)?s[0]:s,this.j&&(t.Style=s),(s=s.Na())&&(t.name=s.Na())),t=zh(t,s=dy[o[o.length-1].node.namespaceURI]),_h(i,vy,Kh,t,o,s),t=o[0],(e=e.V())&&(e=il(e,!0,t)),_h(i,vy,Ay,[e],o)}function $f(t,e,o){var i=e.ga();(t={node:t}).layout=e.ja,t.stride=e.qa(),_h(t,by,Ty,[i],o)}function Qf(t,e,o){var i=(e=e.Sd()).shift();_h(t={node:t},my,Ly,e,o),_h(t,my,ky,[i],o)}function ty(t,e){bu(t,Math.round(1e6*e)/1e6)}(Mu=qc.prototype).vg=function(t,e){if(t=qh([],Yh(_c,{Document:Oh(this.vg,this),Folder:Oh(this.vg,this),Placemark:Uh(this.Dg,this),Style:this.Jp.bind(this),StyleMap:this.Ip.bind(this)}),t,e,this))return t},Mu.Dg=function(t,e){var o=qh({geometry:null},Uf,t,e);if(o){var i=new Lh;return null!==(t=t.getAttribute("id"))&&i.jc(t),e=e[0],(t=o.geometry)&&il(t,!1,e),i.Ra(t),delete o.geometry,this.c&&i.hg(tf(o.Style,o.styleUrl,this.a,this.b,this.g)),delete o.Style,i.H(o),i}},Mu.Jp=function(t,e){var o=t.getAttribute("id");null!==o&&(e=ff(t,e))&&(t=t.baseURI&&"about:blank"!==t.baseURI?new URL("#"+o,t.baseURI).href:"#"+o,this.b[t]=e)},Mu.Ip=function(t,e){var o=t.getAttribute("id");null!==o&&(e=qh(void 0,Vf,t,e))&&(t=t.baseURI&&"about:blank"!==t.baseURI?new URL("#"+o,t.baseURI).href:"#"+o,this.b[t]=e)},Mu.xg=function(t,e){return d(_c,t.namespaceURI)&&(t=this.Dg(t,[el(this,t,e)]))?t:null},Mu.zc=function(t,e){if(!d(_c,t.namespaceURI))return[];var o=t.localName;if("Document"==o||"Folder"==o)return(o=this.vg(t,[el(this,t,e)]))?o:[];if("Placemark"==o)return(e=this.Dg(t,[el(this,t,e)]))?[e]:[];if("kml"!=o)return[];for(o=[],t=t.firstElementChild;t;t=t.nextElementSibling){var i=this.zc(t,e);i&&c(o,i)}return o},Mu.Cp=function(t){return Fh(t)?Wf(this,t):kh(t)?Zf(this,t):"string"==typeof t?Wf(this,t=Dh(t)):void 0},Mu.Dp=function(t){var e=[];return Fh(t)?c(e,Kf(this,t)):kh(t)?c(e,zf(this,t)):"string"==typeof t&&c(e,Kf(this,t=Dh(t))),e},Mu.Gp=function(t){var e=[];return Fh(t)?c(e,Yf(this,t)):kh(t)?c(e,this.lf(t)):"string"==typeof t&&c(e,Yf(this,t=Dh(t))),e},Mu.lf=function(t){for(var e,o=[],i=t.firstElementChild;i;i=i.nextElementSibling)d(_c,i.namespaceURI)&&"Region"==i.localName&&(e=qh({},mf,i,[]),o.push(e));for(i=t.firstElementChild;i;i=i.nextElementSibling)t=i.localName,!d(_c,i.namespaceURI)||"Document"!=t&&"Folder"!=t&&"kml"!=t||c(o,this.lf(i));return o};var ey=Yh(_c,["Document","Placemark"]),oy=Yh(_c,{Document:Vh(function(t,e,o){_h({node:t},iy,Py,e,o,void 0,this)}),Placemark:Vh(_f)}),iy=Yh(_c,{Placemark:Vh(_f)}),ry=Yh(_c,{Data:Vh(function(t,e,o){t.setAttribute("name",e.name),t={node:t},"object"==typeof(e=e.value)?(null!==e&&e.displayName&&_h(t,ry,Kh,[e.displayName],o,["displayName"]),null!==e&&e.value&&_h(t,ry,Kh,[e.value],o,["value"])):_h(t,ry,Kh,[e],o,["value"])}),value:Vh(function(t,e){wu(t,e)}),displayName:Vh(function(t,e){t.appendChild(Rh.createCDATASection(e))})}),ny={Point:"Point",LineString:"LineString",LinearRing:"LinearRing",Polygon:"Polygon",MultiPoint:"MultiGeometry",MultiLineString:"MultiGeometry",MultiPolygon:"MultiGeometry",GeometryCollection:"MultiGeometry"},sy=Yh(_c,["href"],Yh(Jc,["x","y","w","h"])),ay=Yh(_c,{href:Vh(wu)},Yh(Jc,{x:Vh(bu),y:Vh(bu),w:Vh(bu),h:Vh(bu)})),py=Yh(_c,["scale","heading","Icon","hotSpot"]),hy=Yh(_c,{Icon:Vh(function(t,e,o){t={node:t};var i=sy[o[o.length-1].node.namespaceURI],r=zh(e,i);_h(t,ay,Kh,r,o,i),r=zh(e,i=sy[Jc[0]]),_h(t,ay,My,r,o,i)}),heading:Vh(bu),hotSpot:Vh(function(t,e){t.setAttribute("x",e.x),t.setAttribute("y",e.y),t.setAttribute("xunits",e.Xg),t.setAttribute("yunits",e.Yg)}),scale:Vh(ty)}),ly=Yh(_c,["color","scale"]),uy=Yh(_c,{color:Vh(Hf),scale:Vh(ty)}),cy=Yh(_c,["color","width"]),fy=Yh(_c,{color:Vh(Hf),width:Vh(bu)}),yy=Yh(_c,{LinearRing:Vh($f)}),gy=Yh(_c,{LineString:Vh($f),Point:Vh($f),Polygon:Vh(Qf),GeometryCollection:Vh(qf)}),dy=Yh(_c,"name open visibility address phoneNumber description styleUrl Style".split(" ")),vy=Yh(_c,{ExtendedData:Vh(function(t,e,o){t={node:t};var i=e.names;e=e.values;for(var r=i.length,n=0;n<r;n++)_h(t,ry,jy,[{name:i[n],value:e[n]}],o)}),MultiGeometry:Vh(qf),LineString:Vh($f),LinearRing:Vh($f),Point:Vh($f),Polygon:Vh(Qf),Style:Vh(function(t,e,o){t={node:t};var i={},r=e.Fa(),n=e.Ga(),s=e.Y();e=e.Na(),s instanceof Yc&&(i.IconStyle=s),e&&(i.LabelStyle=e),n&&(i.LineStyle=n),r&&(i.PolyStyle=r),i=zh(i,e=xy[o[o.length-1].node.namespaceURI]),_h(t,Sy,Kh,i,o,e)}),address:Vh(wu),description:Vh(wu),name:Vh(wu),open:Vh(vu),phoneNumber:Vh(wu),styleUrl:Vh(wu),visibility:Vh(vu)}),by=Yh(_c,{coordinates:Vh(function(t,e,o){var i,r=(o=o[o.length-1]).layout;o=o.stride,"XY"==r||"XYM"==r?i=2:"XYZ"==r||"XYZM"==r?i=3:O(!1,34);var n,s=e.length,a="";if(0<s){for(a+=e[0],r=1;r<i;++r)a+=","+e[r];for(n=o;n<s;n+=o)for(a+=" "+e[n],r=1;r<i;++r)a+=","+e[n+r]}wu(t,a)})}),my=Yh(_c,{outerBoundaryIs:Vh(Jf),innerBoundaryIs:Vh(Jf)}),wy=Yh(_c,{color:Vh(Hf)}),xy=Yh(_c,["IconStyle","LabelStyle","LineStyle","PolyStyle"]),Sy=Yh(_c,{IconStyle:Vh(function(t,e,o){t={node:t};var i,r,n={},s=e.ic(),a=e.ye(),p={href:e.b.o};s&&(p.w=s[0],p.h=s[1],i=e.Hc(),(r=e.Oc())&&a&&r[0]&&r[1]!==s[1]&&(p.x=r[0],p.y=a[1]-(r[1]+s[1])),i&&i[0]&&i[1]!==s[1]&&(n.hotSpot={x:i[0],Xg:"pixels",y:s[1]-i[1],Yg:"pixels"})),n.Icon=p,1!==(s=e.a)&&(n.scale=s),(e=e.g)&&(n.heading=e),n=zh(n,e=py[o[o.length-1].node.namespaceURI]),_h(t,hy,Kh,n,o,e)}),LabelStyle:Vh(function(t,e,o){t={node:t};var i={},r=e.Fa();r&&(i.color=r.b),(e=e.b)&&1!==e&&(i.scale=e),i=zh(i,e=ly[o[o.length-1].node.namespaceURI]),_h(t,uy,Kh,i,o,e)}),LineStyle:Vh(function(t,e,o){t={node:t};var i=cy[o[o.length-1].node.namespaceURI];e=zh({color:e.a,width:e.c},i),_h(t,fy,Kh,e,o,i)}),PolyStyle:Vh(function(t,e,o){_h({node:t},wy,Ey,[e.b],o)})});function My(t,e,o){return Ih(Jc[0],"gx:"+o)}function Py(t,e){return Ih(e[e.length-1].node.namespaceURI,"Placemark")}function Ay(t,e){if(t)return Ih(e[e.length-1].node.namespaceURI,ny[t.U()])}var Ey=Zh("color"),Ty=Zh("coordinates"),jy=Zh("Data"),Cy=Zh("ExtendedData"),Ly=Zh("innerBoundaryIs"),Ry=Zh("Point"),Iy=Zh("LineString"),Ny=Zh("LinearRing"),Fy=Zh("Polygon"),ky=Zh("outerBoundaryIs");function Dy(t,e,o,i,r){this.g=r,this.i=t,this.b=e,this.f=o,this.c=i}function Oy(t){tl.call(this),t=t||{},this.defaultDataProjection=new vt({code:"",units:"tile-pixels"}),this.b=t.featureClass||Dy,this.a=t.geometryName,this.i=t.layerName||"layer",this.c=t.layers||null}function Uy(t,e,o){for(var i=0,r=0,n=t.length;r<n;++r){for(var s=t[r],a=0,p=s.length;a<p;++a){var h=s[a];e.push(h.x,h.y)}i+=2*a,o.push(i)}}function Gy(){ru.call(this),this.defaultDataProjection=Bt("EPSG:4326")}function By(t,e){e[e.length-1].fe[t.getAttribute("k")]=t.getAttribute("v")}qc.prototype.Xb=function(t,e){e=ol(this,e);var o=Ih(_c[4],"kml");o.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:gx",Jc[0]),o.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance"),o.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation","http://www.opengis.net/kml/2.2 https://developers.google.com/kml/schema/kml22gx.xsd");var i={node:o},r={};return 1<t.length?r.Document=t:1==t.length&&(r.Placemark=t[0]),r=zh(r,t=ey[o.namespaceURI]),_h(i,oy,Kh,r,[e],t,this),o},Ya.Dd=function(){},function(t){function e(t){this.lc=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.type=this.ea=0,this.length=this.lc.length}function s(t,e,o){return o?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}var o=function(t,e,o,i,r){var n=8*r-i-1,s=(1<<n)-1,a=s>>1,p=-7,h=o?-1:1,l=t[e+(r=o?r-1:0)];for(r+=h,o=l&(1<<-p)-1,l>>=-p,p+=n;0<p;o=256*o+t[e+r],r+=h,p-=8);for(n=o&(1<<-p)-1,o>>=-p,p+=i;0<p;n=256*n+t[e+r],r+=h,p-=8);if(0===o)o=1-a;else{if(o===s)return n?NaN:1/0*(l?-1:1);n+=Math.pow(2,i),o-=a}return(l?-1:1)*n*Math.pow(2,o-i)};e.c=0,e.i=1,e.b=2,e.a=5,e.prototype={Ag:function(t,e,o){for(o=o||this.length;this.ea<o;){var i=this.Ka(),r=i>>3,n=this.ea;this.type=7&i,t(r,e,this),this.ea===n&&this.mq(i)}return e},yp:function(){var t=o(this.lc,this.ea,!0,23,4);return this.ea+=4,t},up:function(){var t=o(this.lc,this.ea,!0,52,8);return this.ea+=8,t},Ka:function(t){var e=this.lc,o=e[this.ea++],i=127&o;return o<128?i:(i|=(127&(o=e[this.ea++]))<<7,o<128?i:(i|=(127&(o=e[this.ea++]))<<14,o<128?i:(i|=(127&(o=e[this.ea++]))<<21,o<128?i:function(t,e,o){var i=o.lc,r=i[o.ea++],n=(112&r)>>4;if(r<128)return s(t,n,e);if(n|=(127&(r=i[o.ea++]))<<3,r<128)return s(t,n,e);if(n|=(127&(r=i[o.ea++]))<<10,r<128)return s(t,n,e);if(n|=(127&(r=i[o.ea++]))<<17,r<128)return s(t,n,e);if(n|=(127&(r=i[o.ea++]))<<24,r<128)return s(t,n,e);if((r=i[o.ea++])<128)return s(t,n|(1&r)<<31,e);throw Error("Expected varint not more than 10 bytes")}(i|(15&e[this.ea])<<28,t,this))))},Kp:function(){return this.Ka(!0)},ce:function(){var t=this.Ka();return 1==t%2?(t+1)/-2:t/2},sp:function(){return!!this.Ka()},Gg:function(){for(var t=this.Ka()+this.ea,e=this.lc,o="",i=this.ea;i<t;){var r,n,s,a=e[i],p=null,h=239<a?4:223<a?3:191<a?2:1;if(t<i+h)break;1===h?a<128&&(p=a):2===h?128!=(192&(r=e[i+1]))||(p=(31&a)<<6|63&r)<=127&&(p=null):3===h?(r=e[i+1],n=e[i+2],128==(192&r)&&128==(192&n)&&((p=(15&a)<<12|(63&r)<<6|63&n)<=2047||55296<=p&&p<=57343)&&(p=null)):4===h&&(r=e[i+1],n=e[i+2],s=e[i+3],128==(192&r)&&128==(192&n)&&128==(192&s)&&((p=(15&a)<<18|(63&r)<<12|(63&n)<<6|63&s)<=65535||1114112<=p)&&(p=null)),null===p?(p=65533,h=1):65535<p&&(p-=65536,o+=String.fromCharCode(p>>>10&1023|55296),p=56320|1023&p),o+=String.fromCharCode(p),i+=h}return this.ea=t,o},mq:function(t){if((t&=7)===e.c)for(;127<this.lc[this.ea++];);else if(t===e.b)this.ea=this.Ka()+this.ea;else if(t===e.a)this.ea+=4;else{if(t!==e.i)throw Error("Unimplemented type: "+t);this.ea+=8}}},t.default=e}(Ya.Dd=Ya.Dd||{}),Ya.Dd=Ya.Dd.default,Ya.xf={},Ya.xf.Bf=function(){},function(t){function e(t,e){this.layers=t.Ag(s,{},e)}function p(t,e){this.x=t,this.y=e}function o(t,e,o,i,r){this.properties={},this.extent=o,this.type=0,this.Cc=t,this.Ef=-1,this.ne=i,this.pe=r,t.Ag(n,this,e)}function n(t,e,o){if(1==t)e.id=o.Ka();else if(2==t)for(t=o.Ka()+o.ea;o.ea<t;){var i=e.ne[o.Ka()],r=e.pe[o.Ka()];e.properties[i]=r}else 3==t?e.type=o.Ka():4==t&&(e.Ef=o.ea)}function i(t,e){this.version=1,this.name=null,this.extent=4096,this.length=0,this.Cc=t,this.ne=[],this.pe=[],this.me=[],t.Ag(r,this,e),this.length=this.me.length}function r(t,e,o){15===t?e.version=o.Ka():1===t?e.name=o.Gg():5===t?e.extent=o.Ka():2===t?e.me.push(o.ea):3===t?e.ne.push(o.Gg()):4===t&&e.pe.push(function(t){for(var e=null,o=t.Ka()+t.ea;t.ea<o;)e=1==(e=t.Ka()>>3)?t.Gg():2===e?t.yp():3===e?t.up():4===e?t.Kp():5===e?t.Ka():6===e?t.ce():7===e?t.sp():null;return e}(o))}function s(t,e,o){3===t&&((t=new a(o,o.Ka()+o.ea)).length&&(e[t.name]=t))}p.prototype={clone:function(){return new p(this.x,this.y)},add:function(t){return this.clone().Yj(t)},rotate:function(t){return this.clone().hk(t)},round:function(){return this.clone().ik()},angle:function(){return Math.atan2(this.y,this.x)},Yj:function(t){return this.x+=t.x,this.y+=t.y,this},hk:function(t){var e=Math.cos(t),o=(t=Math.sin(t))*this.x+e*this.y;return this.x=e*this.x-t*this.y,this.y=o,this},ik:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},p.Kq=function(t){return!(t instanceof p)&&Array.isArray(t)?new p(t[0],t[1]):t},o.b=["Unknown","Point","LineString","Polygon"],o.prototype.Oh=function(){var t=this.Cc;t.ea=this.Ef;for(var e,o=t.Ka()+t.ea,i=1,r=0,n=0,s=0,a=[];t.ea<o;)if(r||(i=7&(r=t.Ka()),r>>=3),r--,1===i||2===i)n+=t.ce(),s+=t.ce(),1===i&&(e&&a.push(e),e=[]),e.push(new p(n,s));else{if(7!==i)throw Error("unknown command "+i);e&&e.push(e[0].clone())}return e&&a.push(e),a},o.prototype.bbox=function(){var t=this.Cc;t.ea=this.Ef;for(var e=t.Ka()+t.ea,o=1,i=0,r=0,n=0,s=1/0,a=-1/0,p=1/0,h=-1/0;t.ea<e;)if(i||(o=7&(i=t.Ka()),i>>=3),i--,1===o||2===o)(r+=t.ce())<s&&(s=r),a<r&&(a=r),(n+=t.ce())<p&&(p=n),h<n&&(h=n);else if(7!==o)throw Error("unknown command "+o);return[s,p,a,h]};var a=i;i.prototype.feature=function(t){if(t<0||t>=this.me.length)throw Error("feature index out of bounds");return this.Cc.ea=this.me[t],t=this.Cc.Ka()+this.Cc.ea,new o(this.Cc,t,this.extent,this.ne,this.pe)};var h=a;t.default={Bf:e,Wj:o,Xj:h},t.Bf=e,t.Wj=o,t.Xj=h}(Ya.xf=Ya.xf||{}),(Mu=Dy.prototype).get=function(t){return this.c[t]},Mu.Bb=function(){return this.f},Mu.G=function(){return this.a||(this.a="Point"===this.i?k(this.b):W(this.b,0,this.b.length,2)),this.a},Mu.Wn=function(){return this.g},Mu.ec=function(){return this.b},Mu.ga=Dy.prototype.ec,Mu.V=function(){return this},Mu.Xn=function(){return this.c},Mu.Vd=Dy.prototype.V,Mu.qa=function(){return 2},Mu.Lc=w,Mu.U=function(){return this.i},e(Oy,tl),(Mu=Oy.prototype).U=function(){return"arraybuffer"},Mu.Oa=function(t,e){var o=this.c;t=new Ya.Dd(t),t=new Ya.xf.Bf(t);var i,r=[],n=this.b;for(i in t.layers)if(!o||-1!=o.indexOf(i))for(var s,a,p,h,l,u,c,f,y,g=t.layers[i],d=0,v=g.length;d<v;++d)n===Dy?(s=void 0,p=i,Uy(h=(a=g.feature(d)).Oh(),u=[],l=[]),1===(c=a.type)?s=1===h.length?"Point":"MultiPoint":2===c?s=1===h.length?"LineString":"MultiLineString":3===c&&(s="Polygon"),(h=a.properties)[this.i]=p,s=new this.b(s,u,l,h,a.id)):(c=g.feature(d),u=i,l=e,s=new this.b,a=c.id,(p=c.properties)[this.i]=u,this.a&&s.Tc(this.a),u=void 0,0===(h=c.type)?u=null:(f=[],y=[],Uy(c=c.Oh(),y,f),1===h?u=new(1===c.length?ar:fl)(null):2===h?u=new(1===c.length?pl:ll)(null):3===h&&(u=new br(null)),u.ba("XY",y,f)),l=il(u,!1,ol(this,l)),s.Ra(l),s.jc(a),s.H(p)),r.push(s);return r},Mu.kb=function(){return this.defaultDataProjection},Mu.mn=function(t){this.c=t},Mu.Tb=function(){},Mu.Sc=function(){},Mu.Bd=function(){},Mu.$c=function(){},Mu.Wb=function(){},e(Gy,ru);var Xy=[null],Vy=Yh(Xy,{nd:function(t,e){e[e.length-1].md.push(t.getAttribute("ref"))},tag:By}),Wy=Yh(Xy,{node:function(t,e){var o=e[0],i=e[e.length-1],r=t.getAttribute("id"),n=[parseFloat(t.getAttribute("lon")),parseFloat(t.getAttribute("lat"))];i.Sh[r]=n,ct((t=qh({fe:{}},Zy,t,e)).fe)||(il(n=new ar(n),!1,o),(o=new Lh(n)).jc(r),o.H(t.fe),i.features.push(o))},way:function(t,e){var o=e[0],i=t.getAttribute("id");t=qh({md:[],fe:{}},Vy,t,e),e=e[e.length-1];for(var r=[],n=0,s=t.md.length;n<s;n++)c(r,e.Sh[t.md[n]]);t.md[0]==t.md[t.md.length-1]?(n=new br(null)).ba("XY",r,[r.length]):(n=new pl(null)).ba("XY",r),il(n,!1,o),(o=new Lh(n)).jc(i),o.H(t.fe),e.features.push(o)}}),Zy=Yh(Xy,{tag:By});function Ky(t){return t.getAttributeNS("http://www.w3.org/1999/xlink","href")}function zy(){}function Yy(){}Gy.prototype.zc=function(t,e){return e=el(this,t,e),"osm"==t.localName&&(t=qh({Sh:{},features:[]},Wy,t,[e])).features?t.features:[]},Gy.prototype.Vg=function(){},Gy.prototype.Xb=function(){},Gy.prototype.ie=function(){},zy.prototype.read=function(t){return Fh(t)?this.a(t):kh(t)?this.b(t):"string"==typeof t?(t=Dh(t),this.a(t)):null},e(Yy,zy),Yy.prototype.a=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.b(t);return null},Yy.prototype.b=function(t){return(t=qh({},Hy,t,[]))?t:null};var Po=[null,"http://www.opengis.net/ows/1.1"],Hy=Yh(Po,{ServiceIdentification:Xh(function(t,e){return qh({},sg,t,e)}),ServiceProvider:Xh(function(t,e){return qh({},ag,t,e)}),OperationsMetadata:Xh(function(t,e){return qh({},og,t,e)})}),qy=Yh(Po,{DeliveryPoint:Xh(du),City:Xh(du),AdministrativeArea:Xh(du),PostalCode:Xh(du),Country:Xh(du),ElectronicMailAddress:Xh(du)}),Jy=Yh(Po,{Value:Bh(du)}),_y=Yh(Po,{AllowedValues:Xh(function(t,e){return qh({},Jy,t,e)})}),$y=Yh(Po,{Phone:Xh(function(t,e){return qh({},ig,t,e)}),Address:Xh(function(t,e){return qh({},qy,t,e)})}),Qy=Yh(Po,{HTTP:Xh(function(t,e){return qh({},tg,t,e)})}),tg=Yh(Po,{Get:Bh(function(t,e){var o=Ky(t);if(o)return qh({href:o},rg,t,e)}),Post:void 0}),eg=Yh(Po,{DCP:Xh(function(t,e){return qh({},Qy,t,e)})}),og=Yh(Po,{Operation:function(t,e){var o=t.getAttribute("name");(t=qh({},eg,t,e))&&(e[e.length-1][o]=t)}}),ig=Yh(Po,{Voice:Xh(du),Facsimile:Xh(du)}),rg=Yh(Po,{Constraint:Bh(function(t,e){var o=t.getAttribute("name");if(o)return qh({name:o},_y,t,e)})}),ng=Yh(Po,{IndividualName:Xh(du),PositionName:Xh(du),ContactInfo:Xh(function(t,e){return qh({},$y,t,e)})}),sg=Yh(Po,{Title:Xh(du),ServiceTypeVersion:Xh(du),ServiceType:Xh(du)}),ag=Yh(Po,{ProviderName:Xh(du),ProviderSite:Xh(Ky),ServiceContact:Xh(function(t,e){return qh({},ng,t,e)})});function pg(t,e,o,i){for(var r=void 0!==i?i:[],n=i=0;n<e;){var s=t[n++];for(r[i++]=t[n++],r[i++]=s,s=2;s<o;++s)r[i++]=t[n++]}r.length=i}function hg(t){t=t||{},tl.call(this),this.defaultDataProjection=Bt("EPSG:4326"),this.b=t.factor||1e5,this.a=t.geometryLayout||"XY"}function lg(t,e,o){for(var i=Array(e),r=0;r<e;++r)i[r]=0;for(var n=0,s=t.length;n<s;)for(r=0;r<e;++r,++n){var a=t[n],p=a-i[r];i[r]=a,t[n]=p}return cg(t,o||1e5)}function ug(t,e,o){for(var i,r=Array(e),n=0;n<e;++n)r[n]=0;for(t=fg(t,o||1e5),o=0,i=t.length;o<i;)for(n=0;n<e;++n,++o)r[n]+=t[o],t[o]=r[n];return t}function cg(t,e){e=e||1e5;for(var o=0,i=t.length;o<i;++o)t[o]=Math.round(t[o]*e);for(e=0,o=t.length;e<o;++e)i=t[e],t[e]=i<0?~(i<<1):i<<1;for(e="",o=0,i=t.length;o<i;++o){for(var r=t[o],n="";32<=r;)n+=String.fromCharCode(63+(32|31&r)),r>>=5;e+=n+=String.fromCharCode(r+63)}return e}function fg(t,e){e=e||1e5;for(var o=[],i=0,r=0,n=0,s=t.length;n<s;++n){var a=t.charCodeAt(n)-63,i=i|(31&a)<<r;a<32?(o.push(i),r=i=0):r+=5}for(t=0,i=o.length;t<i;++t)r=o[t],o[t]=1&r?~(r>>1):r>>1;for(t=0,i=o.length;t<i;++t)o[t]/=e;return o}function yg(t){t=t||{},tl.call(this),this.a=t.layerName,this.b=t.layers||null,this.defaultDataProjection=Bt(t.defaultDataProjection||"EPSG:4326")}function gg(t,e){for(var o=[],i=0,r=t.length;i<r;++i){var n=t[i];0<i&&o.pop(),n=0<=n?e[n]:e[~n].slice().reverse(),o.push.apply(o,n)}for(t=0,e=o.length;t<e;++t)o[t]=o[t].slice();return o}function dg(t,e,o,i,r,n,s){var a=t.type,p=bg[a];return o="Point"===a||"MultiPoint"===a?p(t,o,i):p(t,e),(e=new Lh).Ra(il(o,!1,s)),void 0!==t.id&&e.jc(t.id),t=t.properties,r&&((t=t||{})[r]=n),t&&e.H(t),e}function vg(t,e,o){t[0]=t[0]*e[0]+o[0],t[1]=t[1]*e[1]+o[1]}e(hg,Mc),(Mu=hg.prototype).ae=function(t,e){return new Lh(t=this.wd(t,e))},Mu.zg=function(t,e){return[this.ae(t,e)]},Mu.wd=function(t,e){var o=Vi(this.a);return pg(t=ug(t,o,this.b),t.length,o,t),il(new pl(er(t,0,t.length,o),this.a),!1,ol(this,e))},Mu.ge=function(t,e){return(t=t.V())?this.Cd(t,e):(O(!1,40),"")},Mu.Wg=function(t,e){return this.ge(t[0],e)},Mu.Cd=function(t,e){return e=(t=il(t,!0,ol(this,e))).ga(),t=t.qa(),pg(e,e.length,t,e),lg(e,t,this.b)},e(yg,rl),yg.prototype.yg=function(t,e){if("Topology"!=t.type)return[];var o=null,i=null;t.transform&&(o=(n=t.transform).scale,i=n.translate);var r=t.arcs;if(n)for(var n=o,s=i,a=0,p=r.length;a<p;++a)for(var h=r[a],l=n,u=s,c=0,f=0,y=0,g=h.length;y<g;++y){var d=h[y];c+=d[0],f+=d[1],d[0]=c,d[1]=f,vg(d,l,u)}n=[],t=t.objects;var v,s=this.a;for(v in t)this.b&&-1==this.b.indexOf(v)||("GeometryCollection"===t[v].type?(a=t[v],n.push.apply(n,function(t,e,o,i,r,n,s){for(var a=[],p=0,h=(t=t.geometries).length;p<h;++p)a[p]=dg(t[p],e,o,i,r,n,s);return a}(a,r,o,i,s,v,e))):(a=t[v],n.push(dg(a,r,o,i,s,v,e))));return n},yg.prototype.Fg=function(){return this.defaultDataProjection};var bg={Point:function(t,e,o){return t=t.coordinates,e&&o&&vg(t,e,o),new ar(t)},LineString:function(t,e){return new pl(t=gg(t.arcs,e))},Polygon:function(t,e){for(var o=[],i=0,r=t.arcs.length;i<r;++i)o[i]=gg(t.arcs[i],e);return new br(o)},MultiPoint:function(t,e,o){if(t=t.coordinates,e&&o)for(var i=0,r=t.length;i<r;++i)vg(t[i],e,o);return new fl(t)},MultiLineString:function(t,e){for(var o=[],i=0,r=t.arcs.length;i<r;++i)o[i]=gg(t.arcs[i],e);return new ll(o)},MultiPolygon:function(t,e){for(var o=[],i=0,r=t.arcs.length;i<r;++i){for(var n=t.arcs[i],s=[],a=0,p=n.length;a<p;++a)s[a]=gg(n[a],e);o[i]=s}return new yl(o)}};function mg(t){this.c=(t=t||{}).featureType,this.a=t.featureNS,this.b=t.gmlFormat||new xu,this.o=t.schemaLocation||wg["1.1.0"],ru.call(this)}(Mu=yg.prototype).Zc=function(){},Mu.he=function(){},Mu.je=function(){},Mu.Cg=function(){},Mu.Rc=function(){},e(mg,ru);var wg={"1.1.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd","1.0.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/wfs.xsd"};function xg(t,e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE)return Mg(t,e)}mg.prototype.zc=function(t,e){var o={featureType:this.c,featureNS:this.a};return ht(o,el(this,t,e||{})),e=[o],this.b.b["http://www.opengis.net/gml"].featureMember=Uh(au.prototype.be),t=!(t=qh([],this.b.b,t,e,this.b))?[]:t},mg.prototype.j=function(t){return Fh(t)?jg(t):kh(t)?qh({},Tg,t,[]):"string"==typeof t?jg(t=Dh(t)):void 0},mg.prototype.g=function(t){return Fh(t)?xg(this,t):kh(t)?Mg(this,t):"string"==typeof t?xg(this,t=Dh(t)):void 0};var Sg={"http://www.opengis.net/gml":{boundedBy:Xh(au.prototype.gf,"bounds")}};function Mg(t,e){var o={},i=gu(e.getAttribute("numberOfFeatures"));return o.numberOfFeatures=i,qh(o,Sg,e,[],t.b)}var Pg={"http://www.opengis.net/wfs":{totalInserted:Xh(yu),totalUpdated:Xh(yu),totalDeleted:Xh(yu)}},Ag={"http://www.opengis.net/ogc":{FeatureId:Uh(function(t){return t.getAttribute("fid")})}},Eg={"http://www.opengis.net/wfs":{Feature:function(t,e){Hh(Ag,t,e)}}},Tg={"http://www.opengis.net/wfs":{TransactionSummary:Xh(function(t,e){return qh({},Pg,t,e)},"transactionSummary"),InsertResults:Xh(function(t,e){return qh([],Eg,t,e)},"insertIds")}};function jg(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return qh({},Tg,t,[])}var Cg={"http://www.opengis.net/wfs":{PropertyName:Vh(wu)}};function Lg(t,e){var o=Ih("http://www.opengis.net/ogc","Filter"),i=Ih("http://www.opengis.net/ogc","FeatureId");o.appendChild(i),i.setAttribute("fid",e),t.appendChild(o)}function Rg(t,e){return e.indexOf(t=(t||"feature")+":")?t+e:e}var Ig={"http://www.opengis.net/wfs":{Insert:Vh(function(t,e,o){var i=(r=o[o.length-1]).gmlVersion,r=Ih(r.featureNS,r.featureType);if(t.appendChild(r),2===i){t=Ru.prototype,(i=e.a)&&r.setAttribute("fid",i);var n=(i=o[o.length-1]).featureNS,s=e.c;i.lb||(i.lb={},i.lb[n]={});var a=e.N();e=[];var p=[];for(l in a){var h=a[l];null!==h&&(e.push(l),p.push(h),l==s||h instanceof Ui?l in i.lb[n]||(i.lb[n][l]=Vh(t.ai,t)):l in i.lb[n]||(i.lb[n][l]=Vh(wu)))}var l=ht({},i);l.node=r,_h(l,i.lb,Zh(void 0,n),p,o,e)}else xu.prototype.ii(r,e,o)}),Update:Vh(function(t,e,o){var i=o[o.length-1];O(void 0!==e.a,27);var r=i.featurePrefix,n=i.featureNS;if(t.setAttribute("typeName",Rg(r,i.featureType)),t.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+r,n),void 0!==(r=e.a)){for(var s=[],a=0,p=(n=e.O()).length;a<p;a++){var h=e.get(n[a]);void 0!==h&&s.push({name:n[a],value:h})}_h({gmlVersion:i.gmlVersion,node:t,hasZ:i.hasZ,srsName:i.srsName},Ig,Zh("Property"),s,o),Lg(t,r)}}),Delete:Vh(function(t,e,o){o=o[o.length-1],O(void 0!==e.a,26);var i=o.featurePrefix,r=o.featureNS;t.setAttribute("typeName",Rg(i,o.featureType)),t.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+i,r),void 0!==(e=e.a)&&Lg(t,e)}),Property:Vh(function(t,e,o){var i=Ih("http://www.opengis.net/wfs","Name"),r=o[o.length-1].gmlVersion;t.appendChild(i),wu(i,e.name),void 0!==e.value&&null!==e.value&&(i=Ih("http://www.opengis.net/wfs","Value"),t.appendChild(i),e.value instanceof Ui?2===r?Ru.prototype.ai(i,e.value,o):xu.prototype.od(i,e.value,o):wu(i,e.value))}),Native:Vh(function(t,e){e.vq&&t.setAttribute("vendorId",e.vq),void 0!==e.Vp&&t.setAttribute("safeToIgnore",e.Vp),void 0!==e.value&&wu(t,e.value)})}};function Ng(t,e,o){var i={node:t};e.b.forEach(function(t){_h(i,Gg,Zh(t.kc),[t],o)})}function Fg(t,e){void 0!==e.a&&t.setAttribute("matchCase",e.a.toString()),Dg(t,e.b),Og(t,""+e.i)}function kg(t,e,o){wu(t=Ih("http://www.opengis.net/ogc",t),o),e.appendChild(t)}function Dg(t,e){kg("PropertyName",t,e)}function Og(t,e){kg("Literal",t,e)}function Ug(t,e){var o=Ih("http://www.opengis.net/gml","TimeInstant");t.appendChild(o),t=Ih("http://www.opengis.net/gml","timePosition"),o.appendChild(t),wu(t,e)}var Gg={"http://www.opengis.net/wfs":{Query:Vh(function(t,e,o){var i=o[o.length-1],r=i.featurePrefix,n=i.featureNS,s=i.propertyNames,a=i.srsName;t.setAttribute("typeName",r?Rg(r,e):e),a&&t.setAttribute("srsName",a),n&&t.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+r,n),(e=ht({},i)).node=t,_h(e,Cg,Zh("PropertyName"),s,o),(i=i.filter)&&(s=Ih("http://www.opengis.net/ogc","Filter"),t.appendChild(s),_h({node:s},Gg,Zh(i.kc),[i],o))})},"http://www.opengis.net/ogc":{During:Vh(function(t,e){var o=Ih("http://www.opengis.net/fes","ValueReference");wu(o,e.b),t.appendChild(o),o=Ih("http://www.opengis.net/gml","TimePeriod"),t.appendChild(o),t=Ih("http://www.opengis.net/gml","begin"),o.appendChild(t),Ug(t,e.a),t=Ih("http://www.opengis.net/gml","end"),o.appendChild(t),Ug(t,e.i)}),And:Vh(Ng),Or:Vh(Ng),Not:Vh(function(t,e,o){e=e.condition,_h({node:t},Gg,Zh(e.kc),[e],o)}),BBOX:Vh(function(t,e,o){o[o.length-1].srsName=e.srsName,Dg(t,e.geometryName),xu.prototype.od(t,e.extent,o)}),Intersects:Vh(function(t,e,o){o[o.length-1].srsName=e.srsName,Dg(t,e.geometryName),xu.prototype.od(t,e.geometry,o)}),Within:Vh(function(t,e,o){o[o.length-1].srsName=e.srsName,Dg(t,e.geometryName),xu.prototype.od(t,e.geometry,o)}),PropertyIsEqualTo:Vh(Fg),PropertyIsNotEqualTo:Vh(Fg),PropertyIsLessThan:Vh(Fg),PropertyIsLessThanOrEqualTo:Vh(Fg),PropertyIsGreaterThan:Vh(Fg),PropertyIsGreaterThanOrEqualTo:Vh(Fg),PropertyIsNull:Vh(function(t,e){Dg(t,e.b)}),PropertyIsBetween:Vh(function(t,e){Dg(t,e.b);var o=Ih("http://www.opengis.net/ogc","LowerBoundary");t.appendChild(o),Og(o,""+e.a),o=Ih("http://www.opengis.net/ogc","UpperBoundary"),t.appendChild(o),Og(o,""+e.i)}),PropertyIsLike:Vh(function(t,e){t.setAttribute("wildCard",e.g),t.setAttribute("singleChar",e.f),t.setAttribute("escapeChar",e.i),void 0!==e.a&&t.setAttribute("matchCase",e.a.toString()),Dg(t,e.b),Og(t,""+e.c)})}};function Bg(t){t=t||{},tl.call(this),this.b=void 0!==t.splitCollection&&t.splitCollection}function Xg(t){return(t=t.X()).length?t.join(" "):""}function Vg(t){for(var e=[],o=0,i=(t=t.X()).length;o<i;++o)e.push(t[o].join(" "));return e.join(",")}function Wg(t){for(var e=[],o=0,i=(t=t.Sd()).length;o<i;++o)e.push("("+Vg(t[o])+")");return e.join(",")}function Zg(t){var e,o=t.U(),i=(0,Kg[o])(t),o=o.toUpperCase();return t instanceof Xi&&(e="","XYZ"!==(t=t.ja)&&"XYZM"!==t||(e+="Z"),"XYM"!==t&&"XYZM"!==t||(e+="M"),0<(t=e).length&&(o+=" "+t)),i.length?o+"("+i+")":o+" EMPTY"}mg.prototype.l=function(t){var e,o,i=Ih("http://www.opengis.net/wfs","GetFeature");return i.setAttribute("service","WFS"),i.setAttribute("version","1.1.0"),t&&(t.handle&&i.setAttribute("handle",t.handle),t.outputFormat&&i.setAttribute("outputFormat",t.outputFormat),void 0!==t.maxFeatures&&i.setAttribute("maxFeatures",t.maxFeatures),t.resultType&&i.setAttribute("resultType",t.resultType),void 0!==t.startIndex&&i.setAttribute("startIndex",t.startIndex),void 0!==t.count&&i.setAttribute("count",t.count),o=t.filter,t.bbox&&(O(t.geometryName,12),e=Hl(t.geometryName,t.bbox,t.srsName),o=o?Yl(o,e):e)),i.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.o),o={node:i,srsName:t.srsName,featureNS:t.featureNS||this.a,featurePrefix:t.featurePrefix,geometryName:t.geometryName,filter:o,propertyNames:t.propertyNames||[]},O(Array.isArray(t.featureTypes),11),t=t.featureTypes,(e=ht({},(o=[o])[o.length-1])).node=i,_h(e,Gg,Zh("Query"),t,o),i},mg.prototype.v=function(t,e,o,i){var r,n=[],s=Ih("http://www.opengis.net/wfs","Transaction"),a=i.version||"1.1.0",p="1.0.0"===a?2:3;return s.setAttribute("service","WFS"),s.setAttribute("version",a),i&&(r=i.gmlOptions||{},i.handle&&s.setAttribute("handle",i.handle)),s.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",wg[a]),t&&(a={node:s,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:p,hasZ:i.hasZ,srsName:i.srsName},ht(a,r),_h(a,Ig,Zh("Insert"),t,n)),e&&(a={node:s,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:p,hasZ:i.hasZ,srsName:i.srsName},ht(a,r),_h(a,Ig,Zh("Update"),e,n)),o&&_h({node:s,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:p,srsName:i.srsName},Ig,Zh("Delete"),o,n),i.nativeElements&&_h({node:s,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:p,srsName:i.srsName},Ig,Zh("Native"),i.nativeElements,n),s},mg.prototype.Eg=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.kf(t);return null},mg.prototype.kf=function(t){if(t.firstElementChild&&t.firstElementChild.firstElementChild)for(t=(t=t.firstElementChild.firstElementChild).firstElementChild;t;t=t.nextElementSibling)if(0!==t.childNodes.length&&(1!==t.childNodes.length||3!==t.firstChild.nodeType)){var e=[{}];return this.b.gf(t,e),Bt(e.pop().srsName)}return null},e(Bg,Mc);var Kg={Point:Xg,LineString:Vg,Polygon:Wg,MultiPoint:function(t){for(var e=[],o=0,i=(t=t.Zd()).length;o<i;++o)e.push("("+Xg(t[o])+")");return e.join(",")},MultiLineString:function(t){for(var e=[],o=0,i=(t=t.gd()).length;o<i;++o)e.push("("+Vg(t[o])+")");return e.join(",")},MultiPolygon:function(t){for(var e=[],o=0,i=(t=t.Td()).length;o<i;++o)e.push("("+Wg(t[o])+")");return e.join(",")},GeometryCollection:function(t){for(var e=[],o=0,i=(t=t.Vf()).length;o<i;++o)e.push(Zg(t[o]));return e.join(",")}};function zg(t){this.a=t,this.b=-1}function Yg(t){this.i=t,this.a="XY"}function Hg(t){t.b=function t(e){var o=e.a.charAt(++e.b),i={position:e.b,value:o};if("("==o)i.type=2;else if(","==o)i.type=5;else if(")"==o)i.type=3;else if("0"<=o&&o<="9"||"."==o||"-"==o){i.type=4;var o=e.b,r=!1,n=!1;do{"."==s?r=!0:"e"!=s&&"E"!=s||(n=!0);var s=e.a.charAt(++e.b)}while("0"<=s&&s<="9"||"."==s&&(void 0===r||!r)||!n&&("e"==s||"E"==s)||n&&("-"==s||"+"==s));e=parseFloat(e.a.substring(o,e.b--)),i.value=e}else if("a"<=o&&o<="z"||"A"<=o&&o<="Z"){for(i.type=1,o=e.b;"a"<=(s=e.a.charAt(++e.b))&&s<="z"||"A"<=s&&s<="Z";);e=e.a.substring(o,e.b--).toUpperCase(),i.value=e}else{if(" "==o||"\t"==o||"\r"==o||"\n"==o)return t(e);if(""!==o)throw Error("Unexpected character: "+o);i.type=6}return i}(t.i)}function qg(t,e){return(e=t.b.type==e)&&Hg(t),e}function Jg(t){for(var e=[],o=t.a.length,i=0;i<o;++i){var r=t.b;if(!qg(t,4))break;e.push(r.value)}if(e.length==o)return e;throw Error(td(t))}function _g(t){for(var e=[Jg(t)];qg(t,5);)e.push(Jg(t));return e}function $g(t){for(var e=[t.sg()];qg(t,5);)e.push(t.sg());return e}function Qg(t){var e=1==t.b.type&&"EMPTY"==t.b.value;return e&&Hg(t),e}function td(t){return"Unexpected `"+t.b.value+"` at position "+t.b.position+" in `"+t.i.a+"`"}(Mu=Bg.prototype).ae=function(t,e){return(t=this.wd(t,e))?((e=new Lh).Ra(t),e):null},Mu.zg=function(t,e){var o=[];t=this.wd(t,e),e=[];for(var i=0,r=(o=this.b&&"GeometryCollection"==t.U()?t.a:[t]).length;i<r;++i)(t=new Lh).Ra(o[i]),e.push(t);return e},Mu.wd=function(t,e){return Hg(t=new Yg(new zg(t))),(t=function t(e){var o=e.b;if(qg(e,1)){var o=o.value,i="XY",r=e.b;if(1==e.b.type&&("Z"===(r=r.value)?i="XYZ":"M"===r?i="XYM":"ZM"===r&&(i="XYZM"),"XY"!==i&&Hg(e)),e.a=i,"GEOMETRYCOLLECTION"==o){t:{if(qg(e,2)){for(o=[];o.push(t(e)),qg(e,5););if(qg(e,3)){e=o;break t}}else if(Qg(e)){e=[];break t}throw Error(td(e))}return new ql(e)}if(r=od[o],i=ed[o],!r||!i)throw Error("Invalid geometry type: "+o);return o=r.call(e),new i(o,e.a)}throw Error(td(e))}(t))?il(t,!1,e):null},Mu.ge=function(t,e){return(t=t.V())?this.Cd(t,e):""},Mu.Wg=function(t,e){if(1==t.length)return this.ge(t[0],e);for(var o=[],i=0,r=t.length;i<r;++i)o.push(t[i].V());return t=new ql(o),this.Cd(t,e)},Mu.Cd=function(t,e){return Zg(il(t,!0,e))},(Mu=Yg.prototype).tg=function(){if(qg(this,2)){var t=Jg(this);if(qg(this,3))return t}else if(Qg(this))return null;throw Error(td(this))},Mu.sg=function(){if(qg(this,2)){var t=_g(this);if(qg(this,3))return t}else if(Qg(this))return[];throw Error(td(this))},Mu.ug=function(){if(qg(this,2)){var t=$g(this);if(qg(this,3))return t}else if(Qg(this))return[];throw Error(td(this))},Mu.fp=function(){if(qg(this,2)){var t;if(2==this.b.type)for(t=[this.tg()];qg(this,5);)t.push(this.tg());else t=_g(this);if(qg(this,3))return t}else if(Qg(this))return[];throw Error(td(this))},Mu.ep=function(){if(qg(this,2)){var t=$g(this);if(qg(this,3))return t}else if(Qg(this))return[];throw Error(td(this))},Mu.gp=function(){if(qg(this,2)){for(var t=[this.ug()];qg(this,5);)t.push(this.ug());if(qg(this,3))return t}else if(Qg(this))return[];throw Error(td(this))};var ed={POINT:ar,LINESTRING:pl,POLYGON:br,MULTIPOINT:fl,MULTILINESTRING:ll,MULTIPOLYGON:yl},od={POINT:Yg.prototype.tg,LINESTRING:Yg.prototype.sg,POLYGON:Yg.prototype.ug,MULTIPOINT:Yg.prototype.fp,MULTILINESTRING:Yg.prototype.ep,MULTIPOLYGON:Yg.prototype.gp};function id(){this.version=void 0}function rd(t,e){return qh({},Md,t,e)}function nd(t,e){return qh({},md,t,e)}function sd(t,e){if(e=rd(t,e))return t=[gu(t.getAttribute("width")),gu(t.getAttribute("height"))],e.size=t,e}function ad(t,e){return qh([],Pd,t,e)}e(id,zy),id.prototype.a=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.b(t);return null},id.prototype.b=function(t){return this.version=t.getAttribute("version").trim(),(t=qh({version:this.version},pd,t,[]))?t:null};var Xy=[null,"http://www.opengis.net/wms"],pd=Yh(Xy,{Service:Xh(function(t,e){return qh({},ld,t,e)}),Capability:Xh(function(t,e){return qh({},hd,t,e)})}),hd=Yh(Xy,{Request:Xh(function(t,e){return qh({},bd,t,e)}),Exception:Xh(function(t,e){return qh([],yd,t,e)}),Layer:Xh(function(t,e){return qh({},gd,t,e)})}),ld=Yh(Xy,{Name:Xh(du),Title:Xh(du),Abstract:Xh(du),KeywordList:Xh(ad),OnlineResource:Xh(Ky),ContactInformation:Xh(function(t,e){return qh({},ud,t,e)}),Fees:Xh(du),AccessConstraints:Xh(du),LayerLimit:Xh(yu),MaxWidth:Xh(yu),MaxHeight:Xh(yu)}),ud=Yh(Xy,{ContactPersonPrimary:Xh(function(t,e){return qh({},cd,t,e)}),ContactPosition:Xh(du),ContactAddress:Xh(function(t,e){return qh({},fd,t,e)}),ContactVoiceTelephone:Xh(du),ContactFacsimileTelephone:Xh(du),ContactElectronicMailAddress:Xh(du)}),cd=Yh(Xy,{ContactPerson:Xh(du),ContactOrganization:Xh(du)}),fd=Yh(Xy,{AddressType:Xh(du),Address:Xh(du),City:Xh(du),StateOrProvince:Xh(du),PostCode:Xh(du),Country:Xh(du)}),yd=Yh(Xy,{Format:Uh(du)}),gd=Yh(Xy,{Name:Xh(du),Title:Xh(du),Abstract:Xh(du),KeywordList:Xh(ad),CRS:Bh(du),EX_GeographicBoundingBox:Xh(function(t,e){if(i=qh({},vd,t,e)){t=i.westBoundLongitude,e=i.southBoundLatitude;var o=i.eastBoundLongitude,i=i.northBoundLatitude;if(void 0!==t&&void 0!==e&&void 0!==o&&void 0!==i)return[t,e,o,i]}}),BoundingBox:Bh(function(t){var e=[fu(t.getAttribute("minx")),fu(t.getAttribute("miny")),fu(t.getAttribute("maxx")),fu(t.getAttribute("maxy"))],o=[fu(t.getAttribute("resx")),fu(t.getAttribute("resy"))];return{crs:t.getAttribute("CRS"),extent:e,res:o}}),Dimension:Bh(function(t){return{name:t.getAttribute("name"),units:t.getAttribute("units"),unitSymbol:t.getAttribute("unitSymbol"),default:t.getAttribute("default"),multipleValues:lu(t.getAttribute("multipleValues")),nearestValue:lu(t.getAttribute("nearestValue")),current:lu(t.getAttribute("current")),values:du(t)}}),Attribution:Xh(function(t,e){return qh({},dd,t,e)}),AuthorityURL:Bh(function(t,e){if(e=rd(t,e))return e.name=t.getAttribute("name"),e}),Identifier:Bh(du),MetadataURL:Bh(function(t,e){if(e=rd(t,e))return e.type=t.getAttribute("type"),e}),DataURL:Bh(rd),FeatureListURL:Bh(rd),Style:Bh(function(t,e){return qh({},Sd,t,e)}),MinScaleDenominator:Xh(cu),MaxScaleDenominator:Xh(cu),Layer:Bh(function(t,e){var o=e[e.length-1],i=qh({},gd,t,e);if(i)return void 0===(e=lu(t.getAttribute("queryable")))&&(e=o.queryable),i.queryable=void 0!==e&&e,void 0===(e=gu(t.getAttribute("cascaded")))&&(e=o.cascaded),i.cascaded=e,void 0===(e=lu(t.getAttribute("opaque")))&&(e=o.opaque),i.opaque=void 0!==e&&e,void 0===(e=lu(t.getAttribute("noSubsets")))&&(e=o.noSubsets),i.noSubsets=void 0!==e&&e,(e=fu(t.getAttribute("fixedWidth")))||(e=o.fixedWidth),i.fixedWidth=e,(t=fu(t.getAttribute("fixedHeight")))||(t=o.fixedHeight),i.fixedHeight=t,["Style","CRS","AuthorityURL"].forEach(function(t){t in o&&(i[t]=(i[t]||[]).concat(o[t]))}),"EX_GeographicBoundingBox BoundingBox Dimension Attribution MinScaleDenominator MaxScaleDenominator".split(" ").forEach(function(t){t in i||(i[t]=o[t])}),i})}),dd=Yh(Xy,{Title:Xh(du),OnlineResource:Xh(Ky),LogoURL:Xh(sd)}),vd=Yh(Xy,{westBoundLongitude:Xh(cu),eastBoundLongitude:Xh(cu),southBoundLatitude:Xh(cu),northBoundLatitude:Xh(cu)}),bd=Yh(Xy,{GetCapabilities:Xh(nd),GetMap:Xh(nd),GetFeatureInfo:Xh(nd)}),md=Yh(Xy,{Format:Bh(du),DCPType:Bh(function(t,e){return qh({},wd,t,e)})}),wd=Yh(Xy,{HTTP:Xh(function(t,e){return qh({},xd,t,e)})}),xd=Yh(Xy,{Get:Xh(rd),Post:Xh(rd)}),Sd=Yh(Xy,{Name:Xh(du),Title:Xh(du),Abstract:Xh(du),LegendURL:Bh(sd),StyleSheetURL:Xh(rd),StyleURL:Xh(rd)}),Md=Yh(Xy,{Format:Xh(du),OnlineResource:Xh(Ky)}),Pd=Yh(Xy,{Keyword:Uh(du)});function Ad(t){t=t||{},this.a="http://mapserver.gis.umn.edu/mapserver",this.b=new Ru,this.c=t.layers||null,ru.call(this)}function Ed(){this.i=new Yy}function Td(t){var e=du(t).split(" ");if(e&&2==e.length&&(t=+e[0],e=+e[1],!isNaN(t)&&!isNaN(e)))return[t,e]}e(Ad,ru),Ad.prototype.zc=function(t,e){var o={};e&&ht(o,el(this,t,e)),o=[o],t.setAttribute("namespaceURI",this.a);var i=t.localName;if(e=[],t.childNodes.length){if("msGMLOutput"==i)for(var r=0,n=t.childNodes.length;r<n;r++){var s,a,p,h=t.childNodes[r];h.nodeType===Node.ELEMENT_NODE&&(s=o[0],a=h.localName.replace("_layer",""),this.c&&!d(this.c,a)||(a+="_feature",s.featureType=a,s.featureNS=this.a,(p={})[a]=Uh(this.b.wg,this.b),s=Yh([s.featureNS,null],p),h.setAttribute("namespaceURI",this.a),(h=qh([],s,h,o,this.b))&&c(e,h)))}"FeatureCollection"==i&&(t=qh([],this.b.b,t,[{}],this.b))&&(e=t)}return e},Ad.prototype.Vg=function(){},Ad.prototype.Xb=function(){},Ad.prototype.ie=function(){},e(Ed,zy),Ed.prototype.a=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.b(t);return null},Ed.prototype.b=function(t){var e=t.getAttribute("version").trim(),o=this.i.b(t);return o?(o.version=e,(o=qh(o,jd,t,[]))?o:null):null};var Po=[null,"http://www.opengis.net/wmts/1.0"],Xy=[null,"http://www.opengis.net/ows/1.1"],jd=Yh(Po,{Contents:Xh(function(t,e){return qh({},Cd,t,e)})}),Cd=Yh(Po,{Layer:Bh(function(t,e){return qh({},Ld,t,e)}),TileMatrixSet:Bh(function(t,e){return qh({},Od,t,e)})}),Ld=Yh(Po,{Style:Bh(function(t,e){if(e=qh({},Rd,t,e))return t="true"===t.getAttribute("isDefault"),e.isDefault=t,e}),Format:Bh(du),TileMatrixSetLink:Bh(function(t,e){return qh({},Id,t,e)}),Dimension:Bh(function(t,e){return qh({},kd,t,e)}),ResourceURL:Bh(function(t){var e=t.getAttribute("format"),o=t.getAttribute("template");t=t.getAttribute("resourceType");var i={};return e&&(i.format=e),o&&(i.template=o),t&&(i.resourceType=t),i})},Yh(Xy,{Title:Xh(du),Abstract:Xh(du),WGS84BoundingBox:Xh(function(t,e){if(2==(t=qh([],Dd,t,e)).length)return P(t)}),Identifier:Xh(du)})),Rd=Yh(Po,{LegendURL:Bh(function(t){var e={};return e.format=t.getAttribute("format"),e.href=Ky(t),e})},Yh(Xy,{Title:Xh(du),Identifier:Xh(du)})),Id=Yh(Po,{TileMatrixSet:Xh(du),TileMatrixSetLimits:Xh(function(t,e){return qh([],Nd,t,e)})}),Nd=Yh(Po,{TileMatrixLimits:Uh(function(t,e){return qh({},Fd,t,e)})}),Fd=Yh(Po,{TileMatrix:Xh(du),MinTileRow:Xh(yu),MaxTileRow:Xh(yu),MinTileCol:Xh(yu),MaxTileCol:Xh(yu)}),kd=Yh(Po,{Default:Xh(du),Value:Bh(du)},Yh(Xy,{Identifier:Xh(du)})),Dd=Yh(Xy,{LowerCorner:Uh(Td),UpperCorner:Uh(Td)}),Od=Yh(Po,{WellKnownScaleSet:Xh(du),TileMatrix:Bh(function(t,e){return qh({},Ud,t,e)})},Yh(Xy,{SupportedCRS:Xh(du),Identifier:Xh(du)})),Ud=Yh(Po,{TopLeftCorner:Xh(Td),ScaleDenominator:Xh(cu),TileWidth:Xh(yu),TileHeight:Xh(yu),MatrixWidth:Xh(yu),MatrixHeight:Xh(yu)},Yh(Xy,{Identifier:Xh(du)}));function Gd(t){je.call(this),t=t||{},this.a=null,this.f=Zt,this.c=void 0,de(this,Le("projection"),this.Am,this),de(this,Le("tracking"),this.Bm,this),void 0!==t.projection&&this.Wh(t.projection),void 0!==t.trackingOptions&&this.wj(t.trackingOptions),this.Ke(void 0!==t.tracking&&t.tracking)}function Bd(t,e,o){Xi.call(this),this.Ng(t,e||0,o)}function Xd(t){var e=t.A[t.a]-t.A[0];return e*e+(t=t.A[t.a+1]-t.A[1])*t}function Vd(t,e,o){for(var i,r,n,s,a,p=[],h=t(0),l=t(1),u=e(h),c=e(l),f=[l,h],y=[c,u],g=[1,0],d={},v=1e5;0<--v&&0<g.length;)n=g.pop(),h=f.pop(),u=y.pop(),(l=n.toString())in d||(p.push(u[0],u[1]),d[l]=!0),s=g.pop(),l=f.pop(),c=y.pop(),S((r=e(i=t(a=(n+s)/2)))[0],r[1],u[0],u[1],c[0],c[1])<o?(p.push(c[0],c[1]),d[l=s.toString()]=!0):(g.push(s,a,a,n),y.push(c,r,r,u),f.push(l,i,i,h));return p}function Wd(t){t=t||{},this.j=this.v=null,this.f=this.o=1/0,this.g=this.l=-1/0,this.ra=this.oa=1/0,this.R=this.I=-1/0,this.Jb=void 0!==t.targetSize?t.targetSize:100,this.fb=void 0!==t.maxLines?t.maxLines:100,this.i=[],this.c=[],this.pa=void 0!==t.strokeStyle?t.strokeStyle:Zd,this.D=this.u=void 0,this.a=this.b=this.S=null,1==t.showLabels&&(this.na=t.lonLabelFormatter||Ti.bind(this,"EW"),this.Ua=t.latLabelFormatter||Ti.bind(this,"NS"),this.fa=null==t.lonLabelPosition?0:t.lonLabelPosition,this.T=null==t.latLabelPosition?1:t.latLabelPosition,this.B=void 0!==t.lonLabelStyle?t.lonLabelStyle:new Hc({font:"12px Calibri,sans-serif",textBaseline:"bottom",fill:new Mh({color:"rgba(0,0,0,1)"}),stroke:new Oa({color:"rgba(255,255,255,1)",width:3})}),this.C=void 0!==t.latLabelStyle?t.latLabelStyle:new Hc({font:"12px Calibri,sans-serif",textAlign:"end",fill:new Mh({color:"rgba(0,0,0,1)"}),stroke:new Oa({color:"rgba(255,255,255,1)",width:3})}),this.b=[],this.a=[]),this.setMap(void 0!==t.map?t.map:null)}e(Gd,je),(Mu=Gd.prototype).ka=function(){this.Ke(!1),je.prototype.ka.call(this)},Mu.Am=function(){var t=this.Uh();t&&(this.f=Wt(Bt("EPSG:4326"),t),this.a&&this.set("position",this.f(this.a)))},Mu.Bm=function(){var t;No&&((t=this.Vh())&&void 0===this.c?this.c=navigator.geolocation.watchPosition(this.np.bind(this),this.op.bind(this),this.Gh()):t||void 0===this.c||(navigator.geolocation.clearWatch(this.c),this.c=void 0))},Mu.np=function(t){t=t.coords,this.set("accuracy",t.accuracy),this.set("altitude",null===t.altitude?void 0:t.altitude),this.set("altitudeAccuracy",null===t.altitudeAccuracy?void 0:t.altitudeAccuracy),this.set("heading",null===t.heading?void 0:M(t.heading)),this.a?(this.a[0]=t.longitude,this.a[1]=t.latitude):this.a=[t.longitude,t.latitude];var e=this.f(this.a);this.set("position",e),this.set("speed",null===t.speed?void 0:t.speed),(t=wr(At,this.a,t.accuracy)).Dc(this.f),this.set("accuracyGeometry",t),this.s()},Mu.op=function(t){t.type="error",this.Ke(!1),this.b(t)},Mu.Dk=function(){return this.get("accuracy")},Mu.Ek=function(){return this.get("accuracyGeometry")||null},Mu.Gk=function(){return this.get("altitude")},Mu.Hk=function(){return this.get("altitudeAccuracy")},Mu.ym=function(){return this.get("heading")},Mu.zm=function(){return this.get("position")},Mu.Uh=function(){return this.get("projection")},Mu.ll=function(){return this.get("speed")},Mu.Vh=function(){return this.get("tracking")},Mu.Gh=function(){return this.get("trackingOptions")},Mu.Wh=function(t){this.set("projection",Bt(t))},Mu.Ke=function(t){this.set("tracking",t)},Mu.wj=function(t){this.set("trackingOptions",t)},e(Bd,Xi),(Mu=Bd.prototype).clone=function(){var t=new Bd(null);return Wi(t,this.ja,this.A.slice()),t.s(),t},Mu.Kb=function(t,e,o,i){var r=this.A;t-=r[0];var n=e-r[1];if((e=t*t+n*n)<i){if(e)for(i=this.pd()/Math.sqrt(e),o[0]=r[0]+i*t,o[1]=r[1]+i*n,i=2;i<this.a;++i)o[i]=r[i];else for(i=0;i<this.a;++i)o[i]=r[i];return o.length=this.a,e}return i},Mu.Mc=function(t,e){var o=this.A;return(t-=o[0])*t+(e-=o[1])*e<=Xd(this)},Mu.wa=function(){return this.A.slice(0,this.a)},Mu.se=function(t){var e=this.A,o=e[this.a]-e[0];return F(e[0]-o,e[1]-o,e[0]+o,e[1]+o,t)},Mu.pd=function(){return Math.sqrt(Xd(this))},Mu.U=function(){return"Circle"},Mu.Xa=function(t){var e=this.G();return!!nt(t,e)&&(e=this.wa(),t[0]<=e[0]&&t[2]>=e[0]||t[1]<=e[1]&&t[3]>=e[1]||H(t,this.sb,this))},Mu.ob=function(t){var e,o=this.a,i=t.slice();for(i[o]=i[0]+(this.A[o]-this.A[0]),e=1;e<o;++e)i[o+e]=t[e];Wi(this,this.ja,i),this.s()},Mu.Ng=function(t,e,o){if(t){var i;for(Zi(this,o,t,0),this.A||(this.A=[]),t=$i(o=this.A,t),o[t++]=o[0]+e,e=1,i=this.a;e<i;++e)o[t++]=o[e];o.length=t}else Wi(this,"XY",null);this.s()},Mu.X=function(){},Mu.ma=function(){},Mu.Uc=function(t){this.A[this.a]=this.A[0]+t,this.s()};var Zd=new Oa({color:"rgba(0,0,0,0.2)"}),Kd=[90,45,30,20,10,5,2,1,.5,.2,.1,.05,.01,.005,.002,.001];function zd(t,e,o,i,r,n,s){var a,p,h,l,u=s;return a=e,p=o,h=i,l=t.j,r=r,o=Vd(function(t){return[a,p+(h-p)*t]},Vt(Bt("EPSG:4326"),l),r),(u=void 0!==t.i[u]?t.i[u]:new pl(null)).ba("XY",o),nt(u.G(),n)&&(t.b&&(o=s,n=[(i=u.ga())[0],x(n[1]+Math.abs(n[1]-n[3])*t.fa,Math.max(n[1],i[1]),Math.min(n[3],i[i.length-1]))],(o=t.b[o]?t.b[o].Qd:new ar(null)).ma(n),t.b[s]={Qd:o,text:t.na(e)}),t.i[s++]=u),s}function Yd(t,e,o,i,r){var n,s,a,p,h,l=r;return n=e,s=t.g,a=t.f,p=t.j,h=o,o=Vd(function(t){return[s+(a-s)*t,n]},Vt(Bt("EPSG:4326"),p),h),(l=void 0!==t.c[l]?t.c[l]:new pl(null)).ba("XY",o),nt(l.G(),i)&&(t.a&&(o=r,h=l.ga(),i=[x(i[0]+Math.abs(i[0]-i[2])*t.T,Math.max(i[0],h[0]),Math.min(i[2],h[h.length-2])),h[1]],(o=t.a[o]?t.a[o].Qd:new ar(null)).ma(i),t.a[r]={Qd:o,text:t.Ua(e)}),t.c[r++]=l),r}function Hd(t,e,o,i,r){Ae.call(this),this.f=r,this.extent=t,this.a=o,this.resolution=e,this.state=i}function qd(t,e,o,i,r,n,s){Hd.call(this,t,e,o,0,i),this.j=r,this.M=new Image,null!==n&&(this.M.crossOrigin=n),this.c={},this.i=null,this.state=0,this.g=s}function Jd(t,e,o,i,r,n){this.c=n||null,Hd.call(this,t,e,o,n?0:2,i),this.i=r}function _d(t,e){Ae.call(this),this.ta=t,this.state=e,this.i=null,this.key=""}function $d(t){if(!t.i)return t;var e=t.i;do{if(2==e.getState())return e}while(e=e.i);return t}function Qd(t,e){t.state=e,t.s()}function tv(t,e,o,i,r){_d.call(this,t,e),this.g=o,this.M=new Image,null!==i&&(this.M.crossOrigin=i),this.c=null,this.j=r}function ev(t){t.c.forEach(me),t.c=null}(Mu=Wd.prototype).Cm=function(){return this.v},Mu.al=function(){return this.i},Mu.hl=function(){return this.c},Mu.Kh=function(t){var e,o,i,r,n,s,a,p,h,l,u=t.vectorContext,c=t.frameState,f=c.extent,y=(t=c.viewState).center,g=t.projection,d=t.resolution;for(t=d*d/(4*(t=c.pixelRatio)*t),this.j&&Xt(this.j,g)||(e=Bt("EPSG:4326"),o=g.G(),l=Yt(i=g.g,e,g),r=i[2],n=i[1],s=i[0],a=l[3],p=l[2],h=l[1],l=l[0],this.o=i[3],this.f=r,this.l=n,this.g=s,this.oa=a,this.ra=p,this.I=h,this.R=l,this.u=Vt(e,g),this.D=Vt(g,e),this.S=this.D($(o)),this.j=g),g.i&&(e=rt(g=g.G()),(c=c.focus[0])<g[0]||c>g[2])&&(c=e*Math.ceil((g[0]-c)/e),f=[f[0]+c,f[1],f[2]+c,f[3]]),c=this.S[0],g=this.S[1],e=-1,i=Math.pow(this.Jb*d,2),r=[],n=[],d=0,o=Kd.length;d<o&&(r[0]=c-(s=Kd[d]/2),r[1]=g-s,n[0]=c+s,n[1]=g+s,this.u(r,r),this.u(n,n),!((s=Math.pow(n[0]-r[0],2)+Math.pow(n[1]-r[1],2))<=i));++d)e=Kd[d];if(-1==(d=e))this.i.length=this.c.length=0,this.b&&(this.b.length=0),this.a&&(this.a.length=0);else{for(y=(c=this.D(y))[0],c=c[1],g=this.fb,i=(e=Yt(e=[Math.max(f[0],this.R),Math.max(f[1],this.I),Math.min(f[2],this.ra),Math.min(f[3],this.oa)],this.j,"EPSG:4326"))[3],n=e[1],o=zd(this,r=x(y=Math.floor(y/d)*d,this.g,this.f),n,i,t,f,0),e=0;r!=this.g&&e++<g;)o=zd(this,r=Math.max(r-d,this.g),n,i,t,f,o);for(r=x(y,this.g,this.f),e=0;r!=this.f&&e++<g;)o=zd(this,r=Math.min(r+d,this.f),n,i,t,f,o);for(this.i.length=o,this.b&&(this.b.length=o),o=Yd(this,y=x(c=Math.floor(c/d)*d,this.l,this.o),t,f,0),e=0;y!=this.l&&e++<g;)o=Yd(this,y=Math.max(y-d,this.l),t,f,o);for(y=x(c,this.l,this.o),e=0;y!=this.o&&e++<g;)o=Yd(this,y=Math.min(y+d,this.o),t,f,o);this.c.length=o,this.a&&(this.a.length=o)}for(u.Ma(null,this.pa),t=0,y=this.i.length;t<y;++t)d=this.i[t],u.zb(d);for(t=0,y=this.c.length;t<y;++t)d=this.c[t],u.zb(d);if(this.b)for(t=0,y=this.b.length;t<y;++t)d=this.b[t],this.B.xd(d.text),u.Cb(this.B),u.zb(d.Qd);if(this.a)for(t=0,y=this.a.length;t<y;++t)d=this.a[t],this.C.xd(d.text),u.Cb(this.C),u.zb(d.Qd)},Mu.setMap=function(t){this.v&&(this.v.K("postcompose",this.Kh,this),this.v.render()),t&&(t.J("postcompose",this.Kh,this),t.render()),this.v=t},e(Hd,Ae),Hd.prototype.s=function(){this.b("change")},Hd.prototype.G=function(){return this.extent},Hd.prototype.getState=function(){return this.state},e(qd,Hd),(Mu=qd.prototype).Y=function(t){return void 0===t?this.M:(t=G(t))in this.c?this.c[t]:(e=ct(this.c)?this.M:this.M.cloneNode(!1),this.c[t]=e);var e},Mu.Fm=function(){this.state=3,this.i.forEach(me),this.i=null,this.s()},Mu.Gm=function(){void 0===this.resolution&&(this.resolution=tt(this.extent)/this.M.height),this.state=2,this.i.forEach(me),this.i=null,this.s()},Mu.load=function(){0!=this.state&&3!=this.state||(this.state=1,this.s(),this.i=[ve(this.M,"error",this.Fm,this),ve(this.M,"load",this.Gm,this)],this.g(this,this.j))},Mu.Og=function(t){this.M=t},e(Jd,Hd),Jd.prototype.g=function(t){this.state=t?3:2,this.s()},Jd.prototype.load=function(){0==this.state&&(this.state=1,this.s(),this.c(this.g.bind(this)))},Jd.prototype.Y=function(){return this.i},e(_d,Ae),_d.prototype.s=function(){this.b("change")},_d.prototype.bb=function(){return this.key+"/"+this.ta},_d.prototype.f=function(){return this.ta},_d.prototype.getState=function(){return this.state},e(tv,_d),(Mu=tv.prototype).ka=function(){1==this.state&&ev(this),this.i&&Se(this.i),this.state=5,this.s(),_d.prototype.ka.call(this)},Mu.Y=function(){return this.M},Mu.bb=function(){return this.g},Mu.Dm=function(){this.state=3,this.M=ov,ev(this),this.s()},Mu.Em=function(){this.state=this.M.naturalWidth&&this.M.naturalHeight?2:4,ev(this),this.s()},Mu.load=function(){0!=this.state&&3!=this.state||(this.state=1,this.s(),this.c=[ve(this.M,"error",this.Dm,this),ve(this.M,"load",this.Em,this)],this.j(this,this.g))};var ov=new Image;function iv(t){t=t||{},kr.call(this,{handleEvent:Di}),this.g=t.formatConstructors||[],this.o=t.projection?Bt(t.projection):null,this.a=null,this.target=t.target||null}function rv(t){for(var e=0,o=(t=t.dataTransfer.files).length;e<o;++e){var i=t.item(e),r=new FileReader;r.addEventListener("load",this.j.bind(this,i)),r.readAsText(i)}}function nv(t){t.stopPropagation(),t.preventDefault(),t.dataTransfer.dropEffect="copy"}function sv(t){var e=t.v;e&&(e=t.target||e.a,t.a=[de(e,"drop",rv,t),de(e,"dragenter",nv,t),de(e,"dragover",nv,t),de(e,"drop",nv,t)])}function av(t){t.a&&(t.a.forEach(me),t.a=null)}ov.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",e(iv,kr),iv.prototype.j=function(t,e){e=e.target.result;for(var o=this.v,i=(i=this.o)||o.Z().v,r=[],n=0,s=(o=this.g).length;n<s;++n){var a=new o[n],p={featureProjection:i};try{r=a.Oa(e,p)}catch(t){r=null}if(r&&0<r.length)break}this.b(new hv(pv,t,r,i))},iv.prototype.Ha=function(t){kr.prototype.Ha.call(this,t),(t?sv:av)(this)},iv.prototype.setMap=function(t){av(this),kr.prototype.setMap.call(this,t),this.c()&&sv(this)};var pv="addfeatures";function hv(t,e,o,i){Me.call(this,t),this.features=o,this.file=e,this.projection=i}function lv(t){t=t||{},Jr.call(this,{handleDownEvent:fv,handleDragEvent:uv,handleUpEvent:cv}),this.l=t.condition||zr,this.a=this.g=void 0,this.j=0,this.u=void 0!==t.duration?t.duration:400}function uv(t){var e,o,i;Hr(t)&&(o=(e=t.map).Ob(),t=(i=t.pixel)[0]-o[0]/2,i=o[1]/2-i[1],o=Math.atan2(i,t),t=Math.sqrt(t*t+i*i),(e=e.Z()).g.rotation!==xi&&void 0!==this.g&&(i=o-this.g,Dr(e,e.Qa()-i)),this.g=o,void 0!==this.a&&(o=this.a*(e.Pa()/t),Ur(e,o)),void 0!==this.a&&(this.j=this.a/t),this.a=t)}function cv(t){if(!Hr(t))return!0;Ir(t=t.map.Z(),1,-1);var e=this.j-1,o=t.Qa(),o=t.constrainRotation(o,0);Dr(t,o,void 0,void 0);var o=t.Pa(),i=this.u,o=t.constrainResolution(o,0,e);return Ur(t,o,void 0,i),this.j=0,!1}function fv(t){return!(!Hr(t)||!this.l(t))&&(Ir(t.map.Z(),1,1),!(this.a=this.g=void 0))}function yv(t,e,o,i){this.fb=t,this.Ua=e,this.overlaps=i,this.c=0,this.resolution=o,this.ra=this.oa=null,this.a=[],this.coordinates=[],this.T=Yn(),this.b=[],this.B=null,this.fa=Yn(),this.na=Yn()}function gv(t,e,o,i,r,n,s){var a=t.coordinates.length,p=t.Sf();s&&(o+=r),s=[e[o],e[o+1]];for(var h=[NaN,NaN],l=!0,u=o+r;u<i;u+=r){h[0]=e[u],h[1]=e[u+1];var c=R(p,h),l=c!==f?(l&&(t.coordinates[a++]=s[0],t.coordinates[a++]=s[1]),t.coordinates[a++]=h[0],t.coordinates[a++]=h[1],!1):1!==c||(t.coordinates[a++]=h[0],t.coordinates[a++]=h[1],!1);s[0]=h[0],s[1]=h[1];var f=c}return(n&&l||u===o+r)&&(t.coordinates[a++]=s[0],t.coordinates[a++]=s[1]),a}function dv(t,e){t.oa=[0,e,0],t.a.push(t.oa),t.ra=[0,e,0],t.b.push(t.ra)}function vv(t,e,o,i,r,n,s,a,p){var h;t.B&&U(i,t.T)?h=t.B:(t.B||(t.B=[]),h=Gi(t.coordinates,0,t.coordinates.length,2,i,t.B),_n(t.T,i)),i=!ct(n);for(var l,u,c=0,f=s.length,y=0,g=t.fa,d=t.na,v=0,b=0,m=t.a!=s||t.overlaps?0:200;c<f;)switch((F=s[c])[0]){case 0:y=F[1],i&&n[G(y).toString()]||!y.V()?c=F[2]:void 0===p||nt(p,y.V().G())?++c:c=F[2]+1;break;case 1:m<v&&(t.Va(e,r),v=0),m<b&&(e.stroke(),b=0),v||b||(e.beginPath(),l=u=NaN),++c;break;case 2:w=h[y=F[1]],F=h[y+1],C=h[y+2]-w,y=h[y+3]-F,y=Math.sqrt(C*C+y*y),e.moveTo(w+y,F),e.arc(w,F,y,0,2*Math.PI,!0),++c;break;case 3:e.closePath(),++c;break;case 4:y=F[1];var w=F[2],x=F[3],S=F[4]*o,M=F[5]*o,P=F[6],A=F[7],E=F[8],T=F[9],j=F[10],C=F[11],L=F[12],R=F[13],I=F[14];for(j&&(C+=r);y<w;y+=2){var N,F=h[y]-S,j=h[y+1]-M;R&&(F=Math.round(F),j=Math.round(j)),1==L&&!C||(os(g,N=F+S,k=j+M,L,L,C,-N,-k),e.setTransform.apply(e,g)),N=e.globalAlpha,1!=A&&(e.globalAlpha=N*A);var k=I+E>x.width?x.width-E:I,D=P+T>x.height?x.height-T:P;e.drawImage(x,E,T,k,D,F,j,k*o,D*o),1!=A&&(e.globalAlpha=N),1==L&&!C||e.setTransform.apply(e,d)}++c;break;case 5:for(y=F[1],w=F[2],M=F[3],P=F[4]*o,A=F[5]*o,C=F[6],L=F[7]*o,x=F[8],S=F[9],(j=F[10])&&(C+=r);y<w;y+=2){for(F=h[y]+P,j=h[y+1]+A,1==L&&!C||(os(g,F,j,L,L,C,-F,-j),e.setTransform.apply(e,g)),1<(T=(E=M.split("\n")).length)?j-=(T-1)/2*(R=Math.round(1.5*e.measureText("M").width)):R=0,I=0;I<T;I++)N=E[I],S&&e.strokeText(N,F,j),x&&e.fillText(N,F,j),j+=R;1==L&&!C||e.setTransform.apply(e,d)}++c;break;case 6:if(a&&(y=a(y=F[1])))return y;++c;break;case 7:m?v++:t.Va(e,r),++c;break;case 8:for(y=F[1],w=F[2],F=h[y],L=(j=h[y+1])+.5|0,(C=F+.5|0)===l&&L===u||(e.moveTo(F,j),l=C,u=L),y+=2;y<w;y+=2)C=(F=h[y])+.5|0,L=(j=h[y+1])+.5|0,y!=w-2&&C===l&&L===u||(e.lineTo(F,j),l=C,u=L);++c;break;case 9:t.R=F[2],v&&(t.Va(e,r),v=0,b&&(e.stroke(),b=0)),e.fillStyle=F[1],++c;break;case 10:var y=void 0===F[8]||F[8],O=F[9];w=F[2],b&&(e.stroke(),b=0),e.strokeStyle=F[1],e.lineWidth=y?w*o:w,e.lineCap=F[3],e.lineJoin=F[4],e.miterLimit=F[5],Lo&&(w=F[6],C=F[7],y&&o!==O&&(w=w.map(function(t){return t*o/O}),C*=o/O,F[6]=w,F[7]=C,F[9]=o),e.lineDashOffset=C,e.setLineDash(w)),++c;break;case 11:e.font=F[1],e.textAlign=F[2],e.textBaseline=F[3],++c;break;case 12:m?b++:e.stroke(),++c;break;default:++c}v&&t.Va(e,r),b&&e.stroke()}function bv(t){var e=t.b;e.reverse();for(var o=e.length,i=-1,r=0;r<o;++r){var n=e[r],s=n[0];if(6==s)i=r;else if(0==s){for(n[2]=r,n=t.b,s=r;i<s;){var a=n[i];n[i]=n[s],n[s]=a,++i,--s}i=-1}}}function mv(t,e){t.oa[2]=t.a.length,t.oa=null,t.ra[2]=t.b.length,t.ra=null,t.a.push(e=[6,e]),t.b.push(e)}function wv(t,e,o,i){yv.call(this,t,e,o,i),this.M=this.I=null,this.C=this.D=this.S=this.u=this.v=this.l=this.o=this.j=this.g=this.f=this.i=void 0}function xv(t,e,o,i){yv.call(this,t,e,o,i),this.f=null,this.i={Md:void 0,Gd:void 0,Hd:null,Id:void 0,Jd:void 0,Kd:void 0,Ld:void 0,eg:0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}function Sv(t,e,o,i,r){var n=t.coordinates.length;return e=gv(t,e,o,i,r,!1,!1),t.a.push(n=[8,n,e]),t.b.push(n),i}function Mv(t){var e=t.i,o=e.strokeStyle,i=e.lineCap,r=e.lineDash,n=e.lineDashOffset,s=e.lineJoin,a=e.lineWidth,p=e.miterLimit;e.Md==o&&e.Gd==i&&U(e.Hd,r)&&e.Id==n&&e.Jd==s&&e.Kd==a&&e.Ld==p||(e.eg!=t.coordinates.length&&(t.a.push([12]),e.eg=t.coordinates.length),t.a.push([10,o,a,i,s,p,r,n,!0,1],[1]),e.Md=o,e.Gd=i,e.Hd=r,e.Id=n,e.Jd=s,e.Kd=a,e.Ld=p)}function Pv(t,e,o,i){yv.call(this,t,e,o,i),this.f=null,this.i={oh:void 0,Md:void 0,Gd:void 0,Hd:null,Id:void 0,Jd:void 0,Kd:void 0,Ld: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}}function Av(t,e,o,i,r){var n=void 0!==(s=t.i).fillStyle,s=null!=s.strokeStyle,a=i.length,p=[1];for(t.a.push(p),t.b.push(p),p=0;p<a;++p){var h=i[p],l=t.coordinates.length;o=gv(t,e,o,h,r,!0,!s),t.a.push(o=[8,l,o]),t.b.push(o),s&&(t.a.push(o=[3]),t.b.push(o)),o=h}return t.b.push(e=[7]),n&&t.a.push(e),s&&(t.a.push(n=[12]),t.b.push(n)),o}function Ev(t,e){var o,i=t.i,r=i.fillStyle,n=i.strokeStyle,s=i.lineCap,a=i.lineDash,p=i.lineDashOffset,h=i.lineJoin,l=i.lineWidth,u=i.miterLimit;void 0===r||"string"==typeof r&&i.oh==r||(o=[9,r],"string"!=typeof r&&(e=e.G(),o.push([e[0],e[3]])),t.a.push(o),i.oh=i.fillStyle),void 0===n||i.Md==n&&i.Gd==s&&U(i.Hd,a)&&i.Id==p&&i.Jd==h&&i.Kd==l&&i.Ld==u||(t.a.push([10,n,l,s,h,u,a,p,!0,1]),i.Md=n,i.Gd=s,i.Hd=a,i.Id=p,i.Jd=h,i.Kd=l,i.Ld=u)}function Tv(t,e,o,i){yv.call(this,t,e,o,i),this.C=this.D=this.S=null,this.Ia="",this.o=this.j=0,this.l=void 0,this.u=this.v=0,this.g=this.f=this.i=null}function jv(t,e,o,i,r){this.v=t,this.c=e,this.o=i,this.l=o,this.f=r,this.a={},this.g=Ye(1,1),this.j=Yn()}e(hv,Me),e(lv,Jr),e(yv,gs),yv.prototype.Va=function(t,e){var o;this.R&&(o=$n(this.T,this.R.slice()),t.translate(o[0],o[1]),t.rotate(e)),t.fill(),this.R&&t.setTransform.apply(t,this.na)},yv.prototype.La=function(t,e,o,i,r){vv(this,t,e,o,i,r,this.a,void 0,void 0)},yv.prototype.Te=w,yv.prototype.Sf=function(){return this.Ua},e(wv,yv),wv.prototype.qc=function(t,e){var o,i;this.M&&(dv(this,e),o=t.ga(),i=this.coordinates.length,t=gv(this,o,0,o.length,t.qa(),!1,!1),this.a.push([4,i,t,this.M,this.i,this.f,this.g,this.j,this.o,this.l,this.v,this.u,this.S,this.D,this.C]),this.b.push([4,i,t,this.I,this.i,this.f,this.g,this.j,this.o,this.l,this.v,this.u,this.S,this.D,this.C]),mv(this,e))},wv.prototype.oc=function(t,e){var o,i;this.M&&(dv(this,e),o=t.ga(),i=this.coordinates.length,t=gv(this,o,0,o.length,t.qa(),!1,!1),this.a.push([4,i,t,this.M,this.i,this.f,this.g,this.j,this.o,this.l,this.v,this.u,this.S,this.D,this.C]),this.b.push([4,i,t,this.I,this.i,this.f,this.g,this.j,this.o,this.l,this.v,this.u,this.S,this.D,this.C]),mv(this,e))},wv.prototype.Te=function(){bv(this),this.f=this.i=void 0,this.M=this.I=null,this.C=this.D=this.u=this.v=this.l=this.o=this.j=this.S=this.g=void 0},wv.prototype.Ub=function(t){var e=t.Hc(),o=t.ic(),i=t.qg(1),r=t.Y(1),n=t.Oc();this.i=e[0],this.f=e[1],this.I=i,this.M=r,this.g=o[1],this.j=t.f,this.o=n[0],this.l=n[1],this.v=t.l,this.u=t.g,this.S=t.a,this.D=t.v,this.C=o[0]},e(xv,yv),(Mu=xv.prototype).Sf=function(){return this.f||(this.f=g(this.Ua),0<this.c&&A(this.f,this.resolution*(this.c+1)/2,this.f)),this.f},Mu.mc=function(t,e){var o=this.i,i=o.lineWidth;void 0!==o.strokeStyle&&void 0!==i&&(Mv(this),dv(this,e),this.b.push([10,o.strokeStyle,o.lineWidth,o.lineCap,o.lineJoin,o.miterLimit,o.lineDash,o.lineDashOffset,!0,1],[1]),Sv(this,o=t.ga(),0,o.length,t.qa()),this.b.push([12]),mv(this,e))},Mu.nc=function(t,e){var o=this.i,i=o.lineWidth;if(void 0!==o.strokeStyle&&void 0!==i){Mv(this),dv(this,e),this.b.push([10,o.strokeStyle,o.lineWidth,o.lineCap,o.lineJoin,o.miterLimit,o.lineDash,o.lineDashOffset,!0,1],[1]),o=t.Bb(),i=t.ga(),t=t.qa();for(var r=0,n=0,s=o.length;n<s;++n)r=Sv(this,i,r,o[n],t);this.b.push([12]),mv(this,e)}},Mu.Te=function(){this.i.eg!=this.coordinates.length&&this.a.push([12]),bv(this),this.i=null},Mu.Ma=function(t,e){t=e.a,this.i.strokeStyle=ze(t||fs),t=e.f,this.i.lineCap=void 0!==t?t:"round",t=e.i,this.i.lineDash=t||cs,t=e.g,this.i.lineDashOffset=t||0,t=e.j,this.i.lineJoin=void 0!==t?t:"round",t=e.c,this.i.lineWidth=void 0!==t?t:1,e=e.o,this.i.miterLimit=void 0!==e?e:10,this.i.lineWidth>this.c&&(this.c=this.i.lineWidth,this.f=null)},e(Pv,yv),(Mu=Pv.prototype).Zb=function(t,e){var o,i=this.i,r=i.strokeStyle;void 0===i.fillStyle&&void 0===r||(Ev(this,t),dv(this,e),this.b.push([9,Xe(us)]),void 0!==i.strokeStyle&&this.b.push([10,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset,!0,1]),o=t.ga(),r=this.coordinates.length,gv(this,o,0,o.length,t.qa(),!1,!1),this.a.push(t=[1],r=[2,r]),this.b.push(t,r),this.b.push(t=[7]),void 0!==i.fillStyle&&this.a.push(t),void 0!==i.strokeStyle&&(this.a.push(i=[12]),this.b.push(i)),mv(this,e))},Mu.rc=function(t,e){var o=this.i;Ev(this,t),dv(this,e),this.b.push([9,Xe(us)]),void 0!==o.strokeStyle&&this.b.push([10,o.strokeStyle,o.lineWidth,o.lineCap,o.lineJoin,o.miterLimit,o.lineDash,o.lineDashOffset,!0,1]);o=t.Bb();Av(this,t.ec(),0,o,t.qa()),mv(this,e)},Mu.pc=function(t,e){var o=this.i,i=o.strokeStyle;if(void 0!==o.fillStyle||void 0!==i){Ev(this,t),dv(this,e),this.b.push([9,Xe(us)]),void 0!==o.strokeStyle&&this.b.push([10,o.strokeStyle,o.lineWidth,o.lineCap,o.lineJoin,o.miterLimit,o.lineDash,o.lineDashOffset,!0,1]),o=t.c,i=dl(t),t=t.qa();for(var r=0,n=0,s=o.length;n<s;++n)r=Av(this,i,r,o[n],t);mv(this,e)}},Mu.Te=function(){bv(this),this.i=null;var t=this.fb;if(t)for(var e=this.coordinates,o=0,i=e.length;o<i;++o)e[o]=t*Math.round(e[o]/t)},Mu.Sf=function(){return this.f||(this.f=g(this.Ua),0<this.c&&A(this.f,this.resolution*(this.c+1)/2,this.f)),this.f},Mu.Ma=function(t,e){var o=this.i;t?(t=t.b,o.fillStyle=ze(t||us)):o.fillStyle=void 0,e?(t=e.a,o.strokeStyle=ze(t||fs),t=e.f,o.lineCap=void 0!==t?t:"round",t=e.i,o.lineDash=t?t.slice():cs,t=e.g,o.lineDashOffset=t||0,t=e.j,o.lineJoin=void 0!==t?t:"round",t=e.c,o.lineWidth=void 0!==t?t:1,e=e.o,o.miterLimit=void 0!==e?e:10,o.lineWidth>this.c&&(this.c=o.lineWidth,this.f=null)):(o.strokeStyle=void 0,o.lineCap=void 0,o.lineDash=null,o.lineDashOffset=void 0,o.lineJoin=void 0,o.lineWidth=void 0,o.miterLimit=void 0)},e(Tv,yv),Tv.prototype.yc=function(t,e,o,i,r,n){var s,a;""!==this.Ia&&this.g&&(this.i||this.f)&&(this.i&&(r=this.i,(s=this.S)&&s.fillStyle==r.fillStyle||(a=[9,r.fillStyle],this.a.push(a),this.b.push(a),s?s.fillStyle=r.fillStyle:this.S={fillStyle:r.fillStyle})),this.f&&(r=this.f,(s=this.D)&&s.lineCap==r.lineCap&&s.lineDash==r.lineDash&&s.lineDashOffset==r.lineDashOffset&&s.lineJoin==r.lineJoin&&s.lineWidth==r.lineWidth&&s.miterLimit==r.miterLimit&&s.strokeStyle==r.strokeStyle||(a=[10,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset,!1,1],this.a.push(a),this.b.push(a),s?(s.lineCap=r.lineCap,s.lineDash=r.lineDash,s.lineDashOffset=r.lineDashOffset,s.lineJoin=r.lineJoin,s.lineWidth=r.lineWidth,s.miterLimit=r.miterLimit,s.strokeStyle=r.strokeStyle):this.D={lineCap:r.lineCap,lineDash:r.lineDash,lineDashOffset:r.lineDashOffset,lineJoin:r.lineJoin,lineWidth:r.lineWidth,miterLimit:r.miterLimit,strokeStyle:r.strokeStyle})),r=this.g,(s=this.C)&&s.font==r.font&&s.textAlign==r.textAlign&&s.textBaseline==r.textBaseline||(a=[11,r.font,r.textAlign,r.textBaseline],this.a.push(a),this.b.push(a),s?(s.font=r.font,s.textAlign=r.textAlign,s.textBaseline=r.textBaseline):this.C={font:r.font,textAlign:r.textAlign,textBaseline:r.textBaseline}),dv(this,n),t=[5,r=this.coordinates.length,t=gv(this,t,e,o,i,!1,!1),this.Ia,this.j,this.o,this.v,this.u,!!this.i,!!this.f,this.l],this.a.push(t),this.b.push(t),mv(this,n))},Tv.prototype.Cb=function(t){var e,o,i,r,n,s,a,p,h;t?((o=t.Fa())?(o=ze((o=o.b)||us),this.i?this.i.fillStyle=o:this.i={fillStyle:o}):this.i=null,(s=t.Ga())?(o=s.a,i=s.f,r=s.i,a=s.g,p=s.j,n=s.c,s=s.o,i=void 0!==i?i:"round",r=r?r.slice():cs,a=void 0!==a?a:0,p=void 0!==p?p:"round",n=void 0!==n?n:1,s=void 0!==s?s:10,o=ze(o||fs),this.f?((h=this.f).lineCap=i,h.lineDash=r,h.lineDashOffset=a,h.lineJoin=p,h.lineWidth=n,h.miterLimit=s,h.strokeStyle=o):this.f={lineCap:i,lineDash:r,lineDashOffset:a,lineJoin:p,lineWidth:n,miterLimit:s,strokeStyle:o}):this.f=null,e=t.a,o=t.i,i=t.c,r=t.o,n=t.f,s=t.b,a=t.Na(),p=t.g,h=t.j,t=void 0!==e?e:"10px sans-serif",p=void 0!==p?p:"center",h=void 0!==h?h:"middle",this.g?((e=this.g).font=t,e.textAlign=p,e.textBaseline=h):this.g={font:t,textAlign:p,textBaseline:h},this.Ia=void 0!==a?a:"",this.j=void 0!==o?o:0,this.o=void 0!==i?i:0,this.l=void 0!==r&&r,this.v=void 0!==n?n:0,this.u=void 0!==s?s:1):this.Ia=""},e(jv,Es);var Cv={0:[[!0]]};function Lv(t,e,o){var i,r=Math.floor(t.length/2);if(r<=e)for(i=r;i<e;i++)t[i][o]=!0;else if(e<r)for(i=e+1;i<r;i++)t[i][o]=!0}function Rv(t){for(var e in t.a){var o,i=t.a[e];for(o in i)i[o].Te()}}function Iv(t,e){var o=t.c;t=o[0];var i=o[1],r=o[2];return Gi(t=[t,i,t,o=o[3],r,o,r,i],0,8,2,e,t),t}jv.prototype.Ea=function(t,e,o,i,r,n){var s,a=2*(i=Math.round(i))+1,p=os(this.j,i+.5,i+.5,1/e,-1/e,-o,-t[0],-t[1]),h=this.g;h.canvas.width!==a||h.canvas.height!==a?(h.canvas.width=a,h.canvas.height=a):h.clearRect(0,0,a,a),void 0!==this.f&&(z(s=V(),t),A(s,e*(this.f+i),s));var l=function(t){if(void 0!==Cv[t])return Cv[t];for(var e=2*t+1,o=Array(e),i=0;i<e;i++)o[i]=Array(e);for(var e=t,r=i=0;i<=e;)Lv(o,t+e,t+i),Lv(o,t+i,t+e),Lv(o,t-i,t+e),Lv(o,t-e,t+i),Lv(o,t-e,t-i),Lv(o,t-i,t-e),Lv(o,t+i,t-e),Lv(o,t+e,t-i),0<2*((r+=1+2*++i)-e)+1&&(r+=1-2*--e);return Cv[t]=o}(i);return function(t,e,o,i,r,n,s){var a,p,h=Object.keys(t.a).map(Number);h.sort(function(t,e){return e-t});var l=0;for(a=h.length;l<a;++l){var u=t.a[h[l].toString()];for(p=As.length-1;0<=p;--p){var c=u[As[p]];if(void 0!==c&&(c=vv(c,e,1,o,i,r,c.b,n,s)))return c}}}(this,h,p,o,r,function(t){for(var e=h.getImageData(0,0,a,a).data,o=0;o<a;o++)for(var i=0;i<a;i++)if(l[o][i]&&0<e[4*(i*a+o)+3])return(t=n(t))?t:void h.clearRect(0,0,a,a)},s)},jv.prototype.b=function(t,e){var o=void 0!==t?t.toString():"0";return void 0===(t=this.a[o])&&(this.a[o]=t={}),void 0===(o=t[e])&&(o=new Nv[e](this.v,this.c,this.l,this.o),t[e]=o),o},jv.prototype.i=function(){return ct(this.a)},jv.prototype.La=function(t,e,o,i,r,n){var s=Object.keys(this.a).map(Number);s.sort(D);var a=Iv(this,o);t.save(),t.beginPath(),t.moveTo(a[0],a[1]),t.lineTo(a[2],a[3]),t.lineTo(a[4],a[5]),t.lineTo(a[6],a[7]),t.clip(),n=n||As;for(var a=0,p=s.length;a<p;++a)for(var h=this.a[s[a].toString()],l=0,u=n.length;l<u;++l){var c=h[n[l]];void 0!==c&&c.La(t,e,o,i,r)}t.restore()};var Nv={Circle:Pv,Image:wv,LineString:xv,Polygon:Pv,Text:Tv};function Fv(t){Te.call(this),this.a=t}function kv(t,e){var o=e.getState();return 2!=o&&3!=o&&de(e,"change",t.na,t),0==o&&(e.load(),o=e.getState()),2==o}function Dv(t){var e=t.a;e.Mb()&&"ready"==e.$f()&&t.s()}function Ov(t,e){e.Ki()&&t.postRenderFunctions.push(function(t,e,o){e=G(t).toString(),t.fd(o.viewState.projection,o.usedTiles[e])}.bind(null,e))}function Uv(t,e){if(e)for(var o=0,i=e.length;o<i;++o){var r=e[o];t[G(r).toString()]=r}}function Gv(t,e){void 0!==(e=e.D)&&("string"==typeof e?t.logos[e]="":e&&(O("string"==typeof e.href,44),O("string"==typeof e.src,45),t.logos[e.src]=e.href))}function Bv(t,e,o,i){e=G(e).toString(),o=o.toString(),e in t?o in t[e]?(t=t[e][o],i.ca<t.ca&&(t.ca=i.ca),i.$>t.$&&(t.$=i.$),i.da<t.da&&(t.da=i.da),i.ia>t.ia&&(t.ia=i.ia)):t[e][o]=i:(t[e]={},t[e][o]=i)}function Xv(t,e,o,i,r,n,s,a,p,h){var l=G(e).toString();l in t.wantedTiles||(t.wantedTiles[l]={});var u=t.wantedTiles[l];t=t.tileQueue;for(var c,f=o.minZoom,y=s;f<=y;--y)for(var g,d=ee(o,n,y,d),v=o.Da(y),b=d.ca;b<=d.$;++b)for(c=d.da;c<=d.ia;++c)s-y<=a?(0==(g=e.Nc(y,b,c,i,r)).getState()&&(u[g.bb()]=!0,g.bb()in t.a||t.f([g,l,oe(o,g.ta),v])),p&&p.call(h,g)):e.Ug(y,b,c,r)}function Vv(t){Fv.call(this,t),this.fa=Yn()}function Wv(t,e,o){var i=e.pixelRatio,r=e.size[0]*i,n=e.size[1]*i,s=e.viewState.rotation,a=ot(o),p=it(o),h=_(o);o=J(o),$n(e.coordinateToPixelTransform,a),$n(e.coordinateToPixelTransform,p),$n(e.coordinateToPixelTransform,h),$n(e.coordinateToPixelTransform,o),t.save(),ys(t,-s,r/2,n/2),t.beginPath(),t.moveTo(a[0]*i,a[1]*i),t.lineTo(p[0]*i,p[1]*i),t.lineTo(h[0]*i,h[1]*i),t.lineTo(o[0]*i,o[1]*i),t.clip(),ys(t,s,r/2,n/2)}function Zv(t,e,o,i,r){var n,s,a,p=t.a;Ee(p,e)&&(n=i.size[0]*i.pixelRatio,s=i.size[1]*i.pixelRatio,ys(o,-(a=i.viewState.rotation),n/2,s/2),t=r||Kv(t,i,0),p.b(new ls(e,new ds(o,i.pixelRatio,i.extent,t,i.viewState.rotation),i,o,null)),ys(o,a,n/2,s/2))}function Kv(t,e,o){var i=e.viewState,r=e.pixelRatio,n=r/i.resolution;return os(t.fa,r*e.size[0]/2,r*e.size[1]/2,n,-n,-i.rotation,-i.center[0]+o,-i.center[1])}function zv(t,e){return G(t)-G(e)}function Yv(t,e){return(t=.5*t/e)*t}function Hv(t,e,o,i,r,n){var s,a,p=!1;return(s=o.Y())&&(2==(a=s.Ye())||3==a?s.Bj(r,n):(0==a&&s.load(),s.Nh(r,n),p=!0)),(r=(0,o.Za)(e))&&(i=r.Vd(i),(0,qv[i.U()])(t,i,o,e)),p}e(Fv,Te),Fv.prototype.Ea=w,Fv.prototype.Ue=Oi,Fv.prototype.Nf=function(o,i,r){return function(e,t){return uw(o,i,e,t,function(t){r[e]||(r[e]={}),r[e][t.ta.toString()]=t})}},Fv.prototype.na=function(t){2===t.target.getState()&&Dv(this)},e(Vv,Fv),Vv.prototype.u=function(t,e,o,i){if(this.Ea(t,e,0,Di,this))return o.call(i,this.a,null)},Vv.prototype.ef=function(t,e,o,i){Zv(this,"postcompose",t,e,i)};var qv={Point:function(t,e,o,i){var r=o.Y();if(r){if(2!=r.Ye())return;var n=t.b(o.Ba(),"Image");n.Ub(r),n.qc(e,i)}(r=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(r),t.yc(e.ga(),0,2,2,e,i))},LineString:function(t,e,o,i){var r,n=o.Ga();n&&((r=t.b(o.Ba(),"LineString")).Ma(null,n),r.mc(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),t.yc(hl(e),0,2,2,e,i))},Polygon:function(t,e,o,i){var r,n=o.Fa(),s=o.Ga();(n||s)&&((r=t.b(o.Ba(),"Polygon")).Ma(n,s),r.rc(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),t.yc(mr(e),0,2,2,e,i))},MultiPoint:function(t,e,o,i){var r=o.Y();if(r){if(2!=r.Ye())return;var n=t.b(o.Ba(),"Image");n.Ub(r),n.oc(e,i)}(r=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(r),o=e.ga(),t.yc(o,0,o.length,e.qa(),e,i))},MultiLineString:function(t,e,o,i){var r,n=o.Ga();n&&((r=t.b(o.Ba(),"LineString")).Ma(null,n),r.nc(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),o=ul(e),t.yc(o,0,o.length,2,e,i))},MultiPolygon:function(t,e,o,i){var r,n=o.Fa(),s=o.Ga();(s||n)&&((r=t.b(o.Ba(),"Polygon")).Ma(n,s),r.pc(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),o=gl(e),t.yc(o,0,o.length,2,e,i))},GeometryCollection:function(t,e,o,i){for(var r=0,n=(e=e.a).length;r<n;++r)(0,qv[e[r].U()])(t,e[r],o,i)},Circle:function(t,e,o,i){var r,n=o.Fa(),s=o.Ga();(n||s)&&((r=t.b(o.Ba(),"Circle")).Ma(n,s),r.Zb(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),t.yc(e.wa(),0,2,2,e,i))}};function Jv(t){Vv.call(this,t),this.c=!1,this.v=-1,this.l=NaN,this.j=V(),this.f=this.o=null,this.g=Ye()}function _v(){this.b="precision mediump float;varying vec2 a;uniform float f;uniform sampler2D g;void main(void){vec4 texColor=texture2D(g,a);gl_FragColor.rgb=texColor.rgb;gl_FragColor.a=texColor.a*f;}"}e(Jv,Vv),Jv.prototype.S=function(t,e,o){var i=t.extent,r=t.pixelRatio,n=e.Je?t.skippedFeatureUids:{},s=(a=t.viewState).projection,a=a.rotation,p=s.G(),h=this.a.ha(),l=Kv(this,t,0);Zv(this,"precompose",o,t,l);var u=e.extent,c=void 0!==u;if(c&&Wv(o,t,u),(u=this.f)&&!u.i()){var f,y=0,g=0,d=(f=Ee(this.a,"render")?(f=o.canvas.width,d=o.canvas.height,a&&(y=((v=Math.round(Math.sqrt(f*f+d*d)))-f)/2,g=(v-d)/2,f=d=v),this.g.canvas.width=f,this.g.canvas.height=d,this.g):o).globalAlpha;f.globalAlpha=e.opacity,f!=o&&f.translate(y,g);var v=t.size[0]*r,b=t.size[1]*r;if(ys(f,-a,v/2,b/2),u.La(f,r,l,a,n),h.u&&s.i&&!N(p,i)){for(var s=i[0],h=rt(p),m=0;s<p[0];)l=Kv(this,t,l=h*--m),u.La(f,r,l,a,n),s+=h;for(m=0,s=i[2];s>p[2];)l=Kv(this,t,l=h*++m),u.La(f,r,l,a,n),s-=h;l=Kv(this,t,0)}ys(f,a,v/2,b/2),f!=o&&(Zv(this,"render",f,t,l),o.drawImage(f.canvas,-y,-g),f.translate(-y,-g)),f.globalAlpha=d}c&&o.restore(),this.ef(o,t,e,l)},Jv.prototype.Ea=function(t,e,o,i,r){if(this.f){var n=this.a,s={};return this.f.Ea(t,e.viewState.resolution,e.viewState.rotation,o,{},function(t){var e=G(t).toString();if(!(e in s))return s[e]=!0,i.call(r,t,n)})}},Jv.prototype.D=function(){Dv(this)},Jv.prototype.sd=function(t){function e(t){var e,o=t.Lc();if(o?e=o.call(t,h):(o=n.f)&&(e=o(t,h)),e){if(e){if(o=!1,Array.isArray(e))for(var i=0,r=e.length;i<r;++i)o=Hv(f,t,e[i],Yv(h,l),this.D,this)||o;else o=Hv(f,t,e,Yv(h,l),this.D,this)||o;t=o}else t=!1;this.c=this.c||t}}var n=this.a,o=n.ha();Uv(t.attributions,o.j),Gv(t,o);var i=t.viewHints[0],r=t.viewHints[1],s=n.T,a=n.na;if(!this.c&&!s&&i||!a&&r)return!0;var p=t.extent,i=(a=t.viewState).projection,h=a.resolution,l=t.pixelRatio,r=n.i,u=n.c;if(void 0===(s=n.get(sb))&&(s=zv),p=A(p,u*h),u=a.projection.G(),o.u&&a.projection.i&&!N(u,t.extent)&&(t=Math.max(rt(p)/2,rt(u)),p[0]=u[0]-t,p[2]=u[2]+t),!this.c&&this.l==h&&this.v==r&&this.o==s&&N(this.j,p))return!0;this.f=null,this.c=!1;var c,f=new jv(.5*h/l,p,h,o.T,n.c);return o.Yd(p,h,i),s?(c=[],o.$b(p,function(t){c.push(t)},this),c.sort(s),c.forEach(e,this)):o.$b(p,e,this),Rv(f),this.l=h,this.v=r,this.o=s,this.j=p,this.f=f,!0},e(_v,js);var $v=new _v;function Qv(){this.b="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform mat4 d;uniform mat4 e;void main(void){gl_Position=e*vec4(b,0.,1.);a=(d*vec4(c,0.,1.)).st;}"}e(Qv,Cs);var tb=new Qv;function eb(t,e){this.i=t.getUniformLocation(e,"f"),this.c=t.getUniformLocation(e,"e"),this.g=t.getUniformLocation(e,"d"),this.f=t.getUniformLocation(e,"g"),this.b=t.getAttribLocation(e,"b"),this.a=t.getAttribLocation(e,"c")}function ob(t,e){Fv.call(this,e),this.c=t,this.T=new Zs([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]),this.g=this.Ib=null,this.j=void 0,this.v=Yn(),this.S=Yn(),this.C=ks(),this.u=null}function ib(t,e,o,i){var r;Ee(t=t.a,e)&&(r=i.viewState,t.b(new ls(e,new Fp(o,r.center,r.resolution,r.rotation,i.size,i.extent,i.pixelRatio),i,null,o)))}function rb(t,e){ob.call(this,t,e),this.l=!1,this.R=-1,this.I=NaN,this.D=V(),this.o=this.f=this.B=null}function nb(t){var e=ht({},t=t||{});delete e.style,delete e.renderBuffer,delete e.updateWhileAnimating,delete e.updateWhileInteracting,Vn.call(this,e),this.c=void 0!==t.renderBuffer?t.renderBuffer:100,this.u=null,this.f=void 0,this.g(t.style),this.T=void 0!==t.updateWhileAnimating&&t.updateWhileAnimating,this.na=void 0!==t.updateWhileInteracting&&t.updateWhileInteracting}e(ob,Fv),ob.prototype.Gi=function(t,e,o){ib(this,"precompose",o,t),ta(o,34962,this.T);var i,r=o.b,n=ra(o,$v,tb);this.u?i=this.u:this.u=i=new eb(r,n),o.Qc(n)&&(r.enableVertexAttribArray(i.b),r.vertexAttribPointer(i.b,2,5126,!1,16,0),r.enableVertexAttribArray(i.a),r.vertexAttribPointer(i.a,2,5126,!1,16,8),r.uniform1i(i.f,0)),r.uniformMatrix4fv(i.g,!1,Ds(this.C,this.v)),r.uniformMatrix4fv(i.c,!1,Ds(this.C,this.S)),r.uniform1f(i.i,e.opacity),r.bindTexture(3553,this.Ib),r.drawArrays(5,0,4),ib(this,"postcompose",o,t)},ob.prototype.mg=function(){this.g=this.Ib=null,this.j=void 0},e(rb,ob),(Mu=rb.prototype).Gi=function(t,e,o){this.o=e;var i=t.viewState,r=this.f,n=t.size,s=t.pixelRatio,a=this.c.i;r&&!r.i()&&(a.enable(a.SCISSOR_TEST),a.scissor(0,0,n[0]*s,n[1]*s),r.La(o,i.center,i.resolution,i.rotation,n,s,e.opacity,e.Je?t.skippedFeatureUids:{}),a.disable(a.SCISSOR_TEST))},Mu.ka=function(){var t=this.f;t&&(Lp(t,this.c.f)(),this.f=null),ob.prototype.ka.call(this)},Mu.Ea=function(t,e,o,i,r){if(this.f&&this.o){o=e.viewState;var n=this.a,s={};return this.f.Ea(t,this.c.f,o.center,o.resolution,o.rotation,e.size,e.pixelRatio,this.o.opacity,{},function(t){var e=G(t).toString();if(!(e in s))return s[e]=!0,i.call(r,t,n)})}},Mu.Ue=function(t,e){if(this.f&&this.o){var o=e.viewState;return i=this.f,r=t,n=this.c.f,s=o.resolution,a=o.rotation,t=e.pixelRatio,o=this.o.opacity,e=e.skippedFeatureUids,(p=n.b).bindFramebuffer(p.FRAMEBUFFER,oa(n)),void 0!==Rp(i,n,r,s,a,t,o,e,function(){var t=new Uint8Array(4);return p.readPixels(0,0,1,1,p.RGBA,p.UNSIGNED_BYTE,t),0<t[3]},!1)}var i,r,n,s,a,p;return!1},Mu.lg=function(t,e,o,i){if(t=$n(e.pixelToCoordinateTransform,t.slice()),this.Ue(t,e))return o.call(i,this.a,null)},Mu.Hi=function(){Dv(this)},Mu.ng=function(t,e,o){function i(t){var e,o=t.Lc();if(o?e=o.call(t,h):(o=r.f)&&(e=o(t,h)),e){if(e){if(o=!1,Array.isArray(e))for(var i=e.length-1;0<=i;--i)o=Hv(f,t,e[i],Yv(h,l),this.Hi,this)||o;else o=Hv(f,t,e,Yv(h,l),this.Hi,this)||o;t=o}else t=!1;this.l=this.l||t}}var r=this.a;e=r.ha(),Uv(t.attributions,e.j),Gv(t,e);var n=t.viewHints[0],s=t.viewHints[1],a=r.T,p=r.na;if(!this.l&&!a&&n||!p&&s)return!0;var s=t.extent,n=(a=t.viewState).projection,h=a.resolution,l=t.pixelRatio,a=r.i,u=r.c;if(void 0===(p=r.get(sb))&&(p=zv),s=A(s,u*h),!this.l&&this.I==h&&this.R==a&&this.B==p&&N(this.D,s))return!0;this.f&&t.postRenderFunctions.push(Lp(this.f,o)),this.l=!1;var c,f=new Cp(.5*h/l,s,r.c);return e.Yd(s,h,n),p?(c=[],e.$b(s,function(t){c.push(t)},this),c.sort(p),c.forEach(i,this)):e.$b(s,i,this),function(t,e){for(var o in t.a){var i,r=t.a[o];for(i in r)r[i].Db(e)}}(f,o),this.I=h,this.R=a,this.B=p,this.D=s,this.f=f,!0},e(nb,Vn),nb.prototype.Fd=function(t){var e=null,o=t.U();return"canvas"===o?e=new Jv(this):"webgl"===o&&(e=new rb(t,this)),e},nb.prototype.D=function(){return this.u},nb.prototype.C=function(){return this.f},nb.prototype.g=function(t){this.u=void 0!==t?t:Th,this.f=null===t?void 0:Ah(this.u),this.s()};var sb="renderOrder";function ab(){return[[-1/0,-1/0,1/0,1/0]]}function pb(t){je.call(this),this.c=Bt(t.projection),this.j=hb(t.attributions),this.D=t.logo,this.na=void 0!==t.state?t.state:"ready",this.u=void 0!==t.wrapX&&t.wrapX}function hb(t){if("string"==typeof t)return[new he({html:t})];if(t instanceof he)return[t];if(Array.isArray(t)){for(var e=t.length,o=Array(e),i=0;i<e;i++){var r=t[i];o[i]="string"==typeof r?new he({html:r}):r}return o}return null}function lb(t,e){t.na=e,t.s()}function ub(t){pb.call(this,{attributions:(t=t||{}).attributions,logo:t.logo,projection:void 0,state:"ready",wrapX:void 0===t.wrapX||t.wrapX}),this.B=w,this.C=t.format,this.T=null==t.overlaps||t.overlaps,this.I=t.url,t.loader?this.B=t.loader:void 0!==this.I&&(O(this.C,7),this.B=Qh(this.I,this.C)),this.fa=t.strategy||ab;var e,o,i,r,n=void 0===t.useSpatialIndex||t.useSpatialIndex;this.a=n?new pp:null,this.R=new pp,this.g={},this.o={},this.l={},this.v={},this.f=null,t.features instanceof Ne?e=(o=t.features).a:Array.isArray(t.features)&&(e=t.features),n||o||(o=new Ne(e)),e&&yb(this,e),o&&(i=o,r=!1,de(o=this,"addfeature",function(t){r||(r=!0,i.push(t.feature),r=!1)}),de(o,"removefeature",function(t){r||(r=!0,i.remove(t.feature),r=!1)}),de(i,"add",function(t){r||(r=!0,this.yb(t.element),r=!1)},o),de(i,"remove",function(t){r||(r=!0,this.Gb(t.element),r=!1)},o),o.f=i)}function cb(t,e,o){t.v[e]=[de(o,"change",t.Oi,t),de(o,"propertychange",t.Oi,t)]}function fb(t,e,o){var i=!0,r=o.a;return void 0!==r?r.toString()in t.o?i=!1:t.o[r.toString()]=o:(O(!(e in t.l),30),t.l[e]=o),i}function yb(t,e){for(var o=[],i=[],r=[],n=0,s=e.length;n<s;n++){var a=e[n],p=G(a).toString();fb(t,p,a)&&i.push(a)}for(n=0,s=i.length;n<s;n++)cb(t,p=G(a=i[n]).toString(),a),(e=a.V())?(p=e.G(),o.push(p),r.push(a)):t.g[p]=a;for(t.a&&t.a.load(o,r),n=0,s=i.length;n<s;n++)t.b(new db("addfeature",i[n]))}function gb(t,e){for(var o in t.o)if(t.o[o]===e){delete t.o[o];break}}function db(t,e){Me.call(this,t),this.feature=e}function vb(t){var e;Jr.call(this,{handleDownEvent:mb,handleEvent:bb,handleUpEvent:wb}),this.T=!1,this.fa=null,this.u=!1,this.Yb=t.source||null,this.$a=t.features||null,this.wk=t.snapTolerance||12,this.R=t.type,this.g=("Point"===(e=this.R)||"MultiPoint"===e?n=Tb:"LineString"===e||"MultiLineString"===e?n=jb:"Polygon"===e||"MultiPolygon"===e?n=Cb:"Circle"===e&&(n=Lb),n),this.Sa=t.minPoints||(this.g===Cb?3:2),this.va=t.maxPoints||1/0,this.Cf=t.finishCondition||Di;var o,i,r,n=(n=t.geometryFunction)||("Circle"===this.R?function(t,e){return(e=e||new Bd([NaN,NaN])).Ng(t[0],Math.sqrt(Ii(t[0],t[1]))),e}:((i=this.g)===Tb?o=ar:i===jb?o=pl:i===Cb&&(o=br),function(t,e){return e?i===Cb?e.ma([t[0].concat([t[0][0]])]):e.ma(t):e=new o(t),e}));this.Za=n,this.I=this.C=this.a=this.B=this.j=this.l=null,this.ad=t.clickTolerance?t.clickTolerance*t.clickTolerance:36,this.pa=new nb({source:new ub({useSpatialIndex:!1,wrapX:t.wrapX||!1}),style:t.style||(r=jh(),function(t){return r[t.V().U()]})}),this.xb=t.geometryName,this.vk=t.condition||Kr,this.Df=t.freehand?Di:t.freehandCondition||zr,de(this,Le("active"),this.ri,this)}function bb(t){this.u=this.g!==Tb&&this.Df(t);var e=!this.u;return this.u&&"pointerdrag"===t.type&&null!==this.j?(Pb(this,t),e=!1):"pointermove"===t.type?e=xb(this,t):"dblclick"===t.type&&(e=!1),$r.call(this,t)&&e}function mb(t){return this.T=!this.u,this.u?(this.fa=t.pixel,this.l||Mb(this,t),!0):!!this.vk(t)&&(this.fa=t.pixel,!0)}function wb(t){var e=!0;xb(this,t);var o=this.g===Lb;return this.T?(this.l?this.u||o?this.Pd():Sb(this,t)?this.Cf(t)&&this.Pd():Pb(this,t):(Mb(this,t),this.g===Tb&&this.Pd()),e=!1):this.u&&(this.l=null,Ab(this)),e}function xb(t,e){var o,i,r;return t.fa&&(!t.u&&t.T||t.u&&!t.T)&&(i=t.fa,o=e.pixel,r=(r=i[0]-o[0])*r+(i=i[1]-o[1])*i,t.T=t.u?r>t.ad:r<=t.ad),t.l?(r=e.coordinate,i=t.j.V(),t.g===Tb?o=t.a:t.g===Cb?(o=(o=t.a[0])[o.length-1],Sb(t,e)&&(r=t.l.slice())):o=(o=t.a)[o.length-1],o[0]=r[0],o[1]=r[1],t.Za(t.a,i),t.B&&t.B.V().ma(r),i instanceof br&&t.g!==Cb?(t.C||(t.C=new Lh(new pl(null))),r=i.Ch(0),(e=t.C.V()).ba(r.ja,r.ga())):t.I&&(e=t.C.V()).ma(t.I),Eb(t)):(e=e.coordinate.slice(),t.B?t.B.V().ma(e):(t.B=new Lh(new ar(e)),Eb(t))),!0}function Sb(t,e){var o=!1;if(t.j){var i=!1,r=[t.l];if(t.g===jb?i=t.a.length>t.Sa:t.g===Cb&&(i=t.a[0].length>t.Sa,r=[t.a[0][0],t.a[0][t.a[0].length-2]]),i)for(var i=e.map,n=0,s=r.length;n<s;n++){var a=r[n],p=i.Ja(a),h=e.pixel,o=h[0]-p[0],p=h[1]-p[1];if(o=Math.sqrt(o*o+p*p)<=(t.u?1:t.wk)){t.l=a;break}}}return o}function Mb(t,e){e=e.coordinate,t.l=e,t.g===Tb?t.a=e.slice():t.g===Cb?(t.a=[[e.slice(),e.slice()]],t.I=t.a[0]):(t.a=[e.slice(),e.slice()],t.g===Lb&&(t.I=t.a)),t.I&&(t.C=new Lh(new pl(t.I))),e=t.Za(t.a),t.j=new Lh,t.xb&&t.j.Tc(t.xb),t.j.Ra(e),Eb(t),t.b(new Rb("drawstart",t.j))}function Pb(t,e){e=e.coordinate;var o,i,r=t.j.V();t.g===jb?(t.l=e.slice(),(i=t.a).length>=t.va&&(t.u?i.pop():o=!0),i.push(e.slice()),t.Za(i,r)):t.g===Cb&&((i=t.a[0]).length>=t.va&&(t.u?i.pop():o=!0),i.push(e.slice()),o&&(t.l=i[0]),t.Za(t.a,r)),Eb(t),o&&t.Pd()}function Ab(t){t.l=null;var e=t.j;return e&&(t.j=null,t.B=null,t.C=null,t.pa.ha().clear(!0)),e}function Eb(t){var e=[];t.j&&e.push(t.j),t.C&&e.push(t.C),t.B&&e.push(t.B),(t=t.pa.ha()).clear(!0),t.cd(e)}e(pb,je),(Mu=pb.prototype).Ea=w,Mu.ya=function(){return this.j},Mu.xa=function(){return this.D},Mu.za=function(){return this.c},Mu.getState=function(){return this.na},Mu.sa=function(){this.s()},Mu.ua=function(t){this.j=hb(t),this.s()},e(ub,pb),(Mu=ub.prototype).yb=function(t){var e,o=G(t).toString();fb(this,o,t)&&(cb(this,o,t),(e=t.V())?(o=e.G(),this.a&&this.a.Ca(o,t)):this.g[o]=t,this.b(new db("addfeature",t))),this.s()},Mu.cd=function(t){yb(this,t),this.s()},Mu.clear=function(t){if(t){for(var e in this.v)this.v[e].forEach(me);this.f||(this.v={},this.o={},this.l={})}else if(this.a)for(var o in this.a.forEach(this.Ig,this),this.g)this.Ig(this.g[o]);this.f&&this.f.clear(),this.a&&this.a.clear(),this.R.clear(),this.g={},this.b(new db("clear")),this.s()},Mu.sh=function(t,e){return this.a?this.a.forEach(t,e):this.f?this.f.forEach(t,e):void 0},Mu.$b=function(t,e,o){return this.a?cp(this.a,t,e,o):this.f?this.f.forEach(e,o):void 0},Mu.th=function(e,o,i){return this.$b(e,function(t){if(t.V().Xa(e)&&(t=o.call(i,t)))return t})},Mu.Ah=function(){return this.f},Mu.Xe=function(){var t;return this.f?t=this.f.a:this.a&&(t=lp(this.a),ct(this.g)||c(t,ut(this.g))),t},Mu.zh=function(t){var e,o,i=[];return e=t,o=function(t){i.push(t)},this.$b([e[0],e[1],e[0],e[1]],function(t){if(t.V().sb(e))return o.call(void 0,t)}),i},Mu.Uf=function(t){return up(this.a,t)},Mu.vh=function(t,e){var o=t[0],i=t[1],r=null,n=[NaN,NaN],s=1/0,a=[-1/0,-1/0,1/0,1/0],p=e||Di;return cp(this.a,a,function(t){var e;p(t)&&(e=t.V(),(s=e.Kb(o,i,n,e=s))<e&&(r=t,t=Math.sqrt(s),a[0]=o-t,a[1]=i-t,a[2]=o+t,a[3]=i+t))}),r},Mu.G=function(t){return this.a.G(t)},Mu.yh=function(t){return void 0!==(t=this.o[t.toString()])?t:null},Mu.Mi=function(){return this.C},Mu.Ni=function(){return this.I},Mu.Oi=function(t){var e=G(t=t.target).toString(),o=t.V();o?(o=o.G(),e in this.g?(delete this.g[e],this.a&&this.a.Ca(o,t)):this.a&&hp(this.a,o,t)):e in this.g||(this.a&&this.a.remove(t),this.g[e]=t),void 0!==(o=t.a)?(o=o.toString(),e in this.l?(delete this.l[e],this.o[o]=t):this.o[o]!==t&&(gb(this,t),this.o[o]=t)):e in this.l||(gb(this,t),this.l[e]=t),this.s(),this.b(new db("changefeature",t))},Mu.Yd=function(t,e,o){for(var i=this.R,r=0,n=(t=this.fa(t,e)).length;r<n;++r){var s=t[r];cp(i,s,function(t){return N(t.extent,s)})||(this.B.call(this,s,e,o),i.Ca(s,{extent:s.slice()}))}},Mu.Gb=function(t){var e=G(t).toString();e in this.g?delete this.g[e]:this.a&&this.a.remove(t),this.Ig(t),this.s()},Mu.Ig=function(t){var e=G(t).toString();this.v[e].forEach(me),delete this.v[e];var o=t.a;void 0!==o?delete this.o[o.toString()]:delete this.l[e],this.b(new db("removefeature",t))},e(db,Me),e(vb,Jr),(Mu=vb.prototype).setMap=function(t){Jr.prototype.setMap.call(this,t),this.ri()},Mu.Op=function(){var t,e;this.j&&(t=this.j.V(),this.g===jb?((e=this.a).splice(-2,1),this.Za(e,t),2<=e.length&&(this.l=e[e.length-2].slice())):this.g===Cb&&((e=this.a[0]).splice(-2,1),this.C.V().ma(e),this.Za(this.a,t)),0===e.length&&(this.l=null),Eb(this))},Mu.Pd=function(){var t=Ab(this),e=this.a,o=t.V();this.g===jb?(e.pop(),this.Za(e,o)):this.g===Cb&&(e[0].pop(),this.Za(e,o),e=o.X()),"MultiPoint"===this.R?t.Ra(new fl([e])):"MultiLineString"===this.R?t.Ra(new ll([e])):"MultiPolygon"===this.R&&t.Ra(new yl([e])),this.b(new Rb("drawend",t)),this.$a&&this.$a.push(t),this.Yb&&this.Yb.yb(t)},Mu.vn=function(t){var e=t.V();this.j=t,this.a=e.X(),t=this.a[this.a.length-1],this.l=t.slice(),this.a.push(t.slice()),Eb(this),this.b(new Rb("drawstart",this.j))},Mu.Xc=Oi,Mu.ri=function(){var t=this.v,e=this.c();t&&e||Ab(this),this.pa.setMap(e?t:null)};var Tb="Point",jb="LineString",Cb="Polygon",Lb="Circle";function Rb(t,e){Me.call(this,t),this.feature=e}function Ib(t){var e,o;this.a=this.j=null,this.C=!1,this.B=this.l=null,(t=t||{}).extent&&this.g(t.extent),Jr.call(this,{handleDownEvent:Fb,handleDragEvent:kb,handleEvent:Nb,handleUpEvent:Db}),this.u=new nb({source:new ub({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.boxStyle||(e=jh(),function(){return e.Polygon}),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.I=new nb({source:new ub({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.pointerStyle||(o=jh(),function(){return o.Point}),updateWhileAnimating:!0,updateWhileInteracting:!0})}function Nb(t){return!(t instanceof Wo)||("pointermove"!=t.type||this.D||Bb(this,Gb(this,e=t.pixel,o=t.map)||o.Wa(e)),$r.call(this,t),!1);var e,o}function Fb(t){function e(t){var e=null,o=null;return t[0]==r[0]?e=r[2]:t[0]==r[2]&&(e=r[0]),t[1]==r[1]?o=r[3]:t[1]==r[3]&&(o=r[1]),null!==e&&null!==o?[e,o]:null}var o=t.pixel,i=t.map,r=this.G();return(t=Gb(this,o,i))&&r?(o=t[0]==r[0]||t[0]==r[2]?t[0]:null,i=t[1]==r[1]||t[1]==r[3]?t[1]:null,null!==o&&null!==i?this.a=Ob(e(t)):null!==o?this.a=Ub(e([o,r[1]]),e([o,r[3]])):null!==i&&(this.a=Ub(e([r[0],i]),e([r[2],i])))):(t=i.Wa(o),this.g([t[0],t[1],t[0],t[1]]),this.a=Ob(t)),!0}function kb(t){return this.a&&(t=t.coordinate,this.g(this.a(t)),Bb(this,t)),!0}function Db(){this.a=null;var t=this.G();return t&&q(t)||this.g(null),!1}function Ob(e){return function(t){return P([e,t])}}function Ub(e,o){return e[0]==o[0]?function(t){return P([e,[t[0],o[1]]])}:e[1]==o[1]?function(t){return P([e,[o[0],t[1]]])}:null}function Gb(t,e,o){var i=o.Wa(e);if(r=t.G()){(r=[[[r[0],r[1]],[r[0],r[3]]],[[r[0],r[3]],[r[2],r[3]]],[[r[2],r[3]],[r[2],r[1]]],[[r[2],r[1]],[r[0],r[1]]]]).sort(function(t,e){return Fi(i,t)-Fi(i,e)});var r=r[0],n=Ei(i,r),s=o.Ja(n);if(Ni(e,s)<=10)return e=o.Ja(r[0]),o=o.Ja(r[1]),e=Ii(s,e),o=Ii(s,o),t.C=Math.sqrt(Math.min(e,o))<=10,n=t.C?o<e?r[1]:r[0]:n}return null}function Bb(t,e){var o=t.B;o?o.V().ma(e):(o=new Lh(new ar(e)),t.B=o,t.I.ha().yb(o))}function Xb(t){Me.call(this,Vb),this.b=t}e(Rb,Me),e(Ib,Jr),Ib.prototype.setMap=function(t){this.u.setMap(t),this.I.setMap(t),Jr.prototype.setMap.call(this,t)},Ib.prototype.G=function(){return this.j},Ib.prototype.g=function(t){this.j=t||null;var e=this.l;e?t?e.Ra(xr(t)):e.Ra(void 0):(this.l=e=new Lh(t?xr(t):{}),this.u.ha().yb(e)),this.b(new Xb(this.j))},e(Xb,Me);var Vb="extentchanged";function Wb(t){var e;Jr.call(this,{handleDownEvent:Hb,handleDragEvent:qb,handleEvent:_b,handleUpEvent:Jb}),this.ad=t.condition||qr,this.$a=function(t){return Kr(t)&&Zr(t)},this.xb=t.deleteCondition||this.$a,this.Yb=t.insertVertexCondition||Di,this.Sa=this.g=null,this.va=[0,0],this.C=this.I=!1,this.a=new pp,this.fa=void 0!==t.pixelTolerance?t.pixelTolerance:10,this.l=this.pa=!1,this.j=[],this.B=new nb({source:new ub({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.style||(e=jh(),function(){return e.Point}),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.T={Point:this.Dn,LineString:this.ti,LinearRing:this.ti,Polygon:this.En,MultiPoint:this.Bn,MultiLineString:this.An,MultiPolygon:this.Cn,Circle:this.yn,GeometryCollection:this.zn},this.u=t.features,this.u.forEach(this.kg,this),de(this.u,"add",this.wn,this),de(this.u,"remove",this.xn,this),this.R=null}function Zb(t,e){t.C||(t.C=!0,t.b(new om("modifystart",t.u,e)))}function Kb(t,e){!function(t,e){t=t.a;var o=[];t.forEach(function(t){e===t.feature&&o.push(t)});for(var i=o.length-1;0<=i;--i)t.remove(o[i])}(t,e),t.g&&!t.u.dc()&&(t.B.ha().Gb(t.g),t.g=null),be(e,"change",t.si,t)}function zb(t,e){var o=t.g;o?o.V().ma(e):(o=new Lh(new ar(e)),t.g=o,t.B.ha().yb(o))}function Yb(t,e){return t.index-e.index}function Hb(t){if(!this.ad(t))return!1;$b(this,t.pixel,t.map);var e=t.map.Wa(t.pixel);if(this.j.length=0,this.C=!1,o=this.g){var o,i=[],r=P([o=o.V().X()]),n={};(r=up(this.a,r)).sort(Yb);for(var s=0,a=r.length;s<a;++s){var p=r[s],h=p.la,l=G(p.feature),u=p.depth;u&&(l+="-"+u.join("-")),n[l]||(n[l]=Array(2)),"Circle"===p.geometry.U()&&1===p.index?Ci(h=tm(e,p),o)&&!n[l][0]&&(this.j.push([p,0]),n[l][0]=p):Ci(h[0],o)&&!n[l][0]?(this.j.push([p,0]),n[l][0]=p):Ci(h[1],o)&&!n[l][1]?("LineString"===p.geometry.U()||"MultiLineString"===p.geometry.U())&&n[l][0]&&0===n[l][0].index||(this.j.push([p,1]),n[l][1]=p):this.Yb(t)&&G(h)in this.Sa&&!n[l][0]&&!n[l][1]&&i.push([p,o])}for(i.length&&Zb(this,t),t=i.length-1;0<=t;--t)this.bm.apply(this,i[t])}return!!this.g}function qb(t){this.I=!1,Zb(this,t),t=t.coordinate;for(var e=0,o=this.j.length;e<o;++e){for(var i,r=(p=this.j[e])[0],n=r.depth,s=r.geometry,a=r.la,p=p[1];t.length<s.qa();)t.push(a[p][t.length]);switch(s.U()){case"Point":a[0]=a[1]=i=t;break;case"MultiPoint":(i=s.X())[r.index]=t,a[0]=a[1]=t;break;case"LineString":(i=s.X())[r.index+p]=t,a[p]=t;break;case"MultiLineString":case"Polygon":(i=s.X())[n[0]][r.index+p]=t,a[p]=t;break;case"MultiPolygon":(i=s.X())[n[1]][n[0]][r.index+p]=t,a[p]=t;break;case"Circle":a[0]=a[1]=t,0===r.index?(this.l=!0,s.ob(t)):(this.l=!0,s.Uc(Ni(s.wa(),t))),this.l=!1}i&&(r=s,n=i,this.l=!0,r.ma(n),this.l=!1)}zb(this,t)}function Jb(t){for(var e,o,i,r,n=this.j.length-1;0<=n;--n)"Circle"===(e=(r=this.j[n][0]).geometry).U()?(o=e.wa(),i=r.Pf[0],r=r.Pf[1],i.la[0]=i.la[1]=o,r.la[0]=r.la[1]=o,hp(this.a,k(o),i),hp(this.a,e.G(),r)):hp(this.a,P(r.la),r);return this.C&&(this.b(new om("modifyend",this.u,t)),this.C=!1),!1}function _b(t){return!(t instanceof Wo)||(Lr((this.R=t).map.Z())[1]||"pointermove"!=t.type||this.D||(this.va=t.pixel,$b(this,t.pixel,t.map)),this.g&&this.xb(t)&&(e=!("singleclick"!=t.type||!this.I)||this.hj()),"singleclick"==t.type&&(this.I=!1),$r.call(this,t)&&!e);var e}function $b(t,e,o){var i=o.Wa(e),r=A(k(i),o.Z().Pa()*t.fa);if(0<(r=up(t.a,r)).length){r.sort(function(t,e){return Qb(i,t)-Qb(i,e)});var n=r[0],s=n.la,a=tm(i,n),p=o.Ja(a),h=Ni(e,p);if(h<=t.fa){if(e={},"Circle"===n.geometry.U()&&1===n.index)t.pa=!0,zb(t,a);else for(h=o.Ja(s[0]),n=o.Ja(s[1]),o=Ii(p,h),p=Ii(p,n),h=Math.sqrt(Math.min(o,p)),t.pa=h<=t.fa,zb(t,a=t.pa?p<o?s[1]:s[0]:a),p=1,o=r.length;p<o&&(a=r[p].la,Ci(s[0],a[0])&&Ci(s[1],a[1])||Ci(s[0],a[1])&&Ci(s[1],a[0]));++p)e[G(a)]=!0;return e[G(s)]=!0,void(t.Sa=e)}}t.g&&(t.B.ha().Gb(t.g),t.g=null)}function Qb(t,e){var o=e.geometry;return"Circle"===o.U()&&1===e.index?(t=Ii(o.wa(),t),(o=Math.sqrt(t)-o.pd())*o):Fi(t,e.la)}function tm(t,e){var o=e.geometry;return"Circle"===o.U()&&1===e.index?o.Ab(t):Ei(t,e.la)}function em(t,e,o,i,r){cp(t.a,e.G(),function(t){t.geometry===e&&(void 0===i||void 0===t.depth||U(t.depth,i))&&t.index>o&&(t.index+=r)})}function om(t,e,o){Me.call(this,t),this.features=e,this.mapBrowserEvent=o}function im(t){var e,o;kr.call(this,{handleEvent:rm}),this.C=(t=t||{}).condition||Zr,this.D=t.addCondition||Oi,this.B=t.removeCondition||Oi,this.I=t.toggleCondition||zr,this.l=t.multi||!1,this.o=t.filter||Di,this.j=t.hitTolerance||0,this.g=new nb({source:new ub({useSpatialIndex:!1,features:t.features,wrapX:t.wrapX}),style:t.style||(c((e=jh()).Polygon,e.LineString),c(e.GeometryCollection,e.LineString),function(t){return t.V()?e[t.V().U()]:null}),updateWhileAnimating:!0,updateWhileInteracting:!0}),t=t.layers?"function"==typeof t.layers?t.layers:(o=t.layers,function(t){return d(o,t)}):Di,this.u=t,this.a={},de(t=this.g.ha().f,"add",this.Fn,this),de(t,"remove",this.Jn,this)}function rm(t){if(!this.C(t))return!0;var o=this.D(t),i=this.B(t),r=this.I(t),e=!o&&!i&&!r,n=t.map,s=this.g.ha().f,a=[],p=[];if(e){for(lt(this.a),n.we(t.pixel,function(t,e){if(this.o(t,e))return p.push(t),t=G(t),this.a[t]=e,!this.l}.bind(this),{layerFilter:this.u,hitTolerance:this.j}),e=s.dc()-1;0<=e;--e){var n=s.item(e),h=p.indexOf(n);-1<h?p.splice(h,1):(s.remove(n),a.push(n))}p.length&&s.fg(p)}else{for(n.we(t.pixel,function(t,e){if(this.o(t,e))return!o&&!r||d(s.a,t)?(i||r)&&d(s.a,t)&&(a.push(t),e=G(t),delete this.a[e]):(p.push(t),t=G(t),this.a[t]=e),!this.l}.bind(this),{layerFilter:this.u,hitTolerance:this.j}),e=a.length-1;0<=e;--e)s.remove(a[e]);s.fg(p)}return(0<p.length||0<a.length)&&this.b(new nm(sm,p,a,t)),Wr(t)}function nm(t,e,o,i){Me.call(this,t),this.selected=e,this.deselected=o,this.mapBrowserEvent=i}e(Wb,Jr),(Mu=Wb.prototype).kg=function(t){var e=t.V();e&&e.U()in this.T&&this.T[e.U()].call(this,t,e),(e=this.v)&&e.c&&this.c()&&$b(this,this.va,e),de(t,"change",this.si,this)},Mu.Ha=function(t){this.g&&!t&&(this.B.ha().Gb(this.g),this.g=null),Jr.prototype.Ha.call(this,t)},Mu.setMap=function(t){this.B.setMap(t),Jr.prototype.setMap.call(this,t)},Mu.wn=function(t){this.kg(t.element)},Mu.si=function(t){this.l||(Kb(this,t=t.target),this.kg(t))},Mu.xn=function(t){Kb(this,t.element)},Mu.Dn=function(t,e){var o=e.X();t={feature:t,geometry:e,la:[o,o]},this.a.Ca(e.G(),t)},Mu.Bn=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i){var n={feature:t,geometry:e,depth:[i],index:i,la:[n=o[i],n]};this.a.Ca(e.G(),n)}},Mu.ti=function(t,e){for(var o=e.X(),i=0,r=o.length-1;i<r;++i){var n=o.slice(i,i+2),s={feature:t,geometry:e,index:i,la:n};this.a.Ca(P(n),s)}},Mu.An=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i)for(var n=o[i],s=0,a=n.length-1;s<a;++s){var p=n.slice(s,s+2),h={feature:t,geometry:e,depth:[i],index:s,la:p};this.a.Ca(P(p),h)}},Mu.En=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i)for(var n=o[i],s=0,a=n.length-1;s<a;++s){var p=n.slice(s,s+2),h={feature:t,geometry:e,depth:[i],index:s,la:p};this.a.Ca(P(p),h)}},Mu.Cn=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i)for(var n=o[i],s=0,a=n.length;s<a;++s)for(var p=n[s],h=0,l=p.length-1;h<l;++h){var u=p.slice(h,h+2),c={feature:t,geometry:e,depth:[s,i],index:h,la:u};this.a.Ca(P(u),c)}},Mu.yn=function(t,e){var o=e.wa(),i={feature:t,geometry:e,index:0,la:[o,o]};i.Pf=(t={feature:t,geometry:e,index:1,la:[o,o]}).Pf=[i,t],this.a.Ca(k(o),i),this.a.Ca(e.G(),t)},Mu.zn=function(t,e){var o=e.a;for(e=0;e<o.length;++e)this.T[o[e].U()].call(this,t,o[e])},Mu.bm=function(t,e){for(var o,i=t.la,r=t.feature,n=t.geometry,s=t.depth,a=t.index;e.length<n.qa();)e.push(0);switch(n.U()){case"MultiLineString":case"Polygon":(o=n.X())[s[0]].splice(a+1,0,e);break;case"MultiPolygon":(o=n.X())[s[1]][s[0]].splice(a+1,0,e);break;case"LineString":(o=n.X()).splice(a+1,0,e);break;default:return}this.l=!0,n.ma(o),this.l=!1,(o=this.a).remove(t),em(this,n,a,s,1),t={la:[i[0],e],feature:r,geometry:n,depth:s,index:a},o.Ca(P(t.la),t),this.j.push([t,1]),e={la:[e,i[1]],feature:r,geometry:n,depth:s,index:a+1},o.Ca(P(e.la),e),this.j.push([e,0]),this.I=!0},Mu.hj=function(){if(this.R&&"pointerdrag"!=this.R.type){var t=this.R;Zb(this,t);var e,o=this.j,i={};for(a=o.length-1;0<=a;--a){var r=o[a],n=r[0],s=G(n.feature);n.depth&&(s+="-"+n.depth.join("-")),s in i||(i[s]={}),0===r[1]?(i[s].right=n,i[s].index=n.index):1==r[1]&&(i[s].left=n,i[s].index=n.index+1)}for(s in i){var a,p=i[s].right,h=i[s].left,l=(a=i[s].index)-1;l<0&&(l=0);var u=e=(r=(n=void 0!==h?h:p).geometry).X(),c=!1;switch(r.U()){case"MultiLineString":2<e[n.depth[0]].length&&(e[n.depth[0]].splice(a,1),c=!0);break;case"LineString":2<e.length&&(e.splice(a,1),c=!0);break;case"MultiPolygon":u=u[n.depth[1]];case"Polygon":4<(u=u[n.depth[0]]).length&&(a==u.length-1&&(a=0),u.splice(a,1),c=!0,0===a&&(u.pop(),u.push(u[0]),l=u.length-1))}c&&(c=r,this.l=!0,c.ma(e),this.l=!1,e=[],void 0!==h&&(this.a.remove(h),e.push(h.la[0])),void 0!==p&&(this.a.remove(p),e.push(p.la[1])),void 0!==h&&void 0!==p&&(h={depth:n.depth,feature:n.feature,geometry:n.geometry,index:l,la:e},this.a.Ca(P(h.la),h)),em(this,r,a,n.depth,-1),this.g&&(this.B.ha().Gb(this.g),this.g=null),o.length=0)}return this.b(new om("modifyend",this.u,t)),!(this.C=!1)}return!1},e(om,Me),e(im,kr),(Mu=im.prototype).Gn=function(){return this.g.ha().f},Mu.Hn=function(){return this.j},Mu.In=function(t){return t=G(t),this.a[t]},Mu.Kn=function(t){this.j=t},Mu.setMap=function(t){var e=this.v,o=this.g.ha().f;e&&o.forEach(e.Cj,e),kr.prototype.setMap.call(this,t),this.g.setMap(t),t&&o.forEach(t.xj,t)},Mu.Fn=function(t){var e=this.v;e&&e.xj(t.element)},Mu.Jn=function(t){var e=this.v;e&&e.Cj(t.element)},e(nm,Me);var sm="select";function am(t){Jr.call(this,{handleEvent:hm,handleDownEvent:Di,handleUpEvent:lm}),this.l=(t=t||{}).source||null,this.R=void 0===t.vertex||t.vertex,this.C=void 0===t.edge||t.edge,this.j=t.features||null,this.pa=[],this.B={},this.T={},this.u={},this.I=null,this.g=void 0!==t.pixelTolerance?t.pixelTolerance:10,this.va=function(t,e){return Fi(this.I,t.la)-Fi(this.I,e.la)}.bind(this),this.a=new pp,this.fa={Point:this.Rn,LineString:this.wi,LinearRing:this.wi,Polygon:this.Sn,MultiPoint:this.Pn,MultiLineString:this.On,MultiPolygon:this.Qn,GeometryCollection:this.Nn,Circle:this.Mn}}function pm(t,e,o,i){var r,n=i.Wa([e[0]-t.g,e[1]+t.g]),s=i.Wa([e[0]+t.g,e[1]-t.g]),n=P([n,s]),a=up(t.a,n),p=!1,n=!1,h=s=null;return 0<(a=t.R&&!t.C?a.filter(function(t){return"Circle"!==t.feature.V().U()}):a).length&&(t.I=o,a.sort(t.va),r=a[0].la,p="Circle"===a[0].feature.V().U(),t.R&&!t.C?(o=i.Ja(r[0]),p=i.Ja(r[1]),o=Ii(e,o),e=Ii(e,p),(p=(p=Math.sqrt(Math.min(o,e)))<=t.g)&&(n=!0,s=e<o?r[1]:r[0],h=i.Ja(s))):t.C&&(s=p?function(t,e){var o=e.pd();e=(i=e.wa())[0];var i=i[1],r=t[0]-e;t=t[1]-i,r||t||(r=1);var n=Math.sqrt(r*r+t*t);return[e+o*r/n,i+o*t/n]}(o,a[0].feature.V()):Ei(o,r),Ni(e,h=i.Ja(s))<=t.g&&(n=!0,t.R&&!p&&(o=i.Ja(r[0]),p=i.Ja(r[1]),o=Ii(h,o),e=Ii(h,p),p=(p=Math.sqrt(Math.min(o,e)))<=t.g)))&&(s=e<o?r[1]:r[0],h=i.Ja(s)),n&&(h=[Math.round(h[0]),Math.round(h[1])])),{nq:n,vertex:s,wq:h}}function hm(t){var e=pm(this,t.pixel,t.coordinate,t.map);return e.nq&&(t.coordinate=e.vertex.slice(0,2),t.pixel=e.wq),$r.call(this,t)}function lm(){var t=ut(this.u);return t.length&&(t.forEach(this.Dj,this),this.u={}),!1}function um(t){var e,o;Jr.call(this,{handleDownEvent:cm,handleDragEvent:ym,handleMoveEvent:gm,handleUpEvent:fm}),t=t||{},this.a=null,this.j=void 0!==t.features?t.features:null,o=t.layers?"function"==typeof t.layers?t.layers:(e=t.layers,function(t){return d(e,t)}):Di,this.C=o,this.l=t.hitTolerance||0,this.g=null,de(this,Le("active"),this.u,this)}function cm(t){if(this.g=dm(this,t.pixel,t.map),this.a||!this.g)return!1;this.a=t.coordinate,gm.call(this,t);var e=this.j||new Ne([this.g]);return this.b(new bm("translatestart",e,t.coordinate)),!0}function fm(t){if(this.a){this.a=null,gm.call(this,t);var e=this.j||new Ne([this.g]);return this.b(new bm("translateend",e,t.coordinate)),!0}return!1}function ym(t){var o,i,e;this.a&&(o=(t=t.coordinate)[0]-this.a[0],i=t[1]-this.a[1],(e=this.j||new Ne([this.g])).forEach(function(t){var e=t.V();e.translate(o,i),t.Ra(e)}),this.a=t,this.b(new bm("translating",e,t)))}function gm(t){var e=t.map.a;dm(this,t.pixel,t.map)?(e.classList.remove(this.a?"ol-grab":"ol-grabbing"),e.classList.add(this.a?"ol-grabbing":"ol-grab")):e.classList.remove("ol-grab","ol-grabbing")}function dm(t,e,o){return o.we(e,function(t){if(!this.j||d(this.j.a,t))return t}.bind(t),{layerFilter:t.C,hitTolerance:t.l})}function vm(t,e){var o=t.v;t=t.c(),o&&t||(o=o||e).a.classList.remove("ol-grab","ol-grabbing")}function bm(t,e,o){Me.call(this,t),this.features=e,this.coordinate=o}function mm(t){var e=ht({},t=t||{});delete e.gradient,delete e.radius,delete e.blur,delete e.shadow,delete e.weight,nb.call(this,e),this.j=null,this.R=void 0!==t.shadow?t.shadow:250,this.I=void 0,this.B=null,de(this,Le(Sm),this.Bl,this),this.pj(t.gradient||wm),this.jj(void 0!==t.blur?t.blur:15),this.Uc(void 0!==t.radius?t.radius:8),de(this,Le(xm),this.cg,this),de(this,Le(Mm),this.cg,this),this.cg();var o=t.weight||"weight",i="string"==typeof o?function(t){return t.get(o)}:o;this.g(function(t){var e=255*(t=void 0!==(t=i(t))?x(t,0,1):1)|0,o=this.B[e];return o||(o=[new Ph({image:new Yc({opacity:t,src:this.I})})],this.B[e]=o),o}.bind(this)),this.set(sb,null),de(this,"render",this.Sl,this)}e(am,Jr),(Mu=am.prototype).yb=function(t,e){e=void 0===e||e;var o,i=G(t),r=t.V();!r||(o=this.fa[r.U()])&&(this.T[i]=r.G(V()),o.call(this,t,r)),e&&(this.B[i]=de(t,"change",this.Ln,this))},Mu.Ak=function(t){this.yb(t)},Mu.Bk=function(t){this.Gb(t)},Mu.ui=function(t){var e;t instanceof db?e=t.feature:t instanceof Oe&&(e=t.element),this.yb(e)},Mu.vi=function(t){var e;t instanceof db?e=t.feature:t instanceof Oe&&(e=t.element),this.Gb(e)},Mu.Ln=function(t){var e;t=t.target,this.D?(e=G(t))in this.u||(this.u[e]=t):this.Dj(t)},Mu.Gb=function(e,t){t=void 0===t||t;var o=G(e),i=this.T[o];if(i){var r=this.a,n=[];for(cp(r,i,function(t){e===t.feature&&n.push(t)}),i=n.length-1;0<=i;--i)r.remove(n[i])}t&&(me(this.B[o]),delete this.B[o])},Mu.setMap=function(t){var e,o=this.v,i=this.pa;this.j?e=this.j:this.l&&(e=this.l.Xe()),o&&(i.forEach(me),i.length=0,e.forEach(this.Bk,this)),Jr.prototype.setMap.call(this,t),t&&(this.j?i.push(de(this.j,"add",this.ui,this),de(this.j,"remove",this.vi,this)):this.l&&i.push(de(this.l,"addfeature",this.ui,this),de(this.l,"removefeature",this.vi,this)),e.forEach(this.Ak,this))},Mu.Xc=Oi,Mu.Dj=function(t){this.Gb(t,!1),this.yb(t,!1)},Mu.Mn=function(t,e){for(var o=0,i=(e=Sr(e).X()[0]).length-1;o<i;++o){var r=e.slice(o,o+2),n={feature:t,la:r};this.a.Ca(P(r),n)}},Mu.Nn=function(t,e){var o=e.a;for(e=0;e<o.length;++e){var i=this.fa[o[e].U()];i&&i.call(this,t,o[e])}},Mu.wi=function(t,e){for(var o=0,i=(e=e.X()).length-1;o<i;++o){var r=e.slice(o,o+2),n={feature:t,la:r};this.a.Ca(P(r),n)}},Mu.On=function(t,e){for(var o=0,i=(e=e.X()).length;o<i;++o)for(var r=e[o],n=0,s=r.length-1;n<s;++n){var a=r.slice(n,n+2),p={feature:t,la:a};this.a.Ca(P(a),p)}},Mu.Pn=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i){var n={feature:t,la:[n=o[i],n]};this.a.Ca(e.G(),n)}},Mu.Qn=function(t,e){for(var o=0,i=(e=e.X()).length;o<i;++o)for(var r=e[o],n=0,s=r.length;n<s;++n)for(var a=r[n],p=0,h=a.length-1;p<h;++p){var l=a.slice(p,p+2),u={feature:t,la:l};this.a.Ca(P(l),u)}},Mu.Rn=function(t,e){var o=e.X();t={feature:t,la:[o,o]},this.a.Ca(e.G(),t)},Mu.Sn=function(t,e){for(var o=0,i=(e=e.X()).length;o<i;++o)for(var r=e[o],n=0,s=r.length-1;n<s;++n){var a=r.slice(n,n+2),p={feature:t,la:a};this.a.Ca(P(a),p)}},e(um,Jr),um.prototype.B=function(){return this.l},um.prototype.I=function(t){this.l=t},um.prototype.setMap=function(t){var e=this.v;Jr.prototype.setMap.call(this,t),vm(this,e)},um.prototype.u=function(){vm(this,null)},e(bm,Me),e(mm,nb);var wm=["#00f","#0ff","#0f0","#ff0","#f00"];(Mu=mm.prototype).uh=function(){return this.get(xm)},Mu.Bh=function(){return this.get(Sm)},Mu.yi=function(){return this.get(Mm)},Mu.Bl=function(){for(var t=this.Bh(),e=Ye(1,256),o=e.createLinearGradient(0,0,1,256),i=1/(t.length-1),r=0,n=t.length;r<n;++r)o.addColorStop(r*i,t[r]);e.fillStyle=o,e.fillRect(0,0,1,256),this.j=e.getImageData(0,0,1,256).data},Mu.cg=function(){var t=this.yi(),e=this.uh(),o=t+e+1,i=2*o;(i=Ye(i,i)).shadowOffsetX=i.shadowOffsetY=this.R,i.shadowBlur=e,i.shadowColor="#000",i.beginPath(),e=o-this.R,i.arc(e,e,t,0,2*Math.PI,!0),i.fill(),this.I=i.canvas.toDataURL(),this.B=Array(256),this.s()},Mu.Sl=function(t){for(var e,o=(t=t.context).canvas,i=(o=t.getImageData(0,0,o.width,o.height)).data,r=0,n=i.length;r<n;r+=4)(e=4*i[r+3])&&(i[r]=this.j[e],i[r+1]=this.j[1+e],i[r+2]=this.j[2+e]);t.putImageData(o,0,0)},Mu.jj=function(t){this.set(xm,t)},Mu.pj=function(t){this.set(Sm,t)},Mu.Uc=function(t){this.set(Mm,t)};var xm="blur",Sm="gradient",Mm="radius";function Pm(t){Vv.call(this,t),this.v=Yn(),this.j=null}function Am(t){Pm.call(this,t),this.M=null,this.c=Yn()}function Em(t,e,o,i){var r=zt(o,e,t);return o=Ft(e,i,o),void 0!==(e=e.sc())&&(o*=e),void 0!==(e=t.sc())&&(o/=e),t=Ft(t,o,r)/o,isFinite(t)&&0<t&&(o/=t),o}function Tm(t,e,o,i){t=o-t,e=i-e;var r=Math.sqrt(t*t+e*e);return[Math.round(o+t/r),Math.round(i+e/r)]}function jm(t,e,g,d,o,v,i,r,n,s,a){var b=Ye(Math.round(g*t),Math.round(g*e));if(!n.length)return b.canvas;b.scale(g,g);var m=V();n.forEach(function(t){K(m,t.extent)});var w=Ye(Math.round(g*rt(m)/d),Math.round(g*tt(m)/d)),p=g/d;n.forEach(function(t){w.drawImage(t.image,s,s,t.image.width-2*s,t.image.height-2*s,(t.extent[0]-m[0])*p,-(t.extent[3]-m[3])*p,rt(t.extent)*p,tt(t.extent)*p)});var x=ot(i);return r.c.forEach(function(t){var e=t.source,o=t.target,i=e[1][0],r=e[1][1],n=e[2][0],s=e[2][1];t=(o[0][0]-x[0])/v;var a=-(o[0][1]-x[1])/v,p=(o[1][0]-x[0])/v,h=-(o[1][1]-x[1])/v,l=(o[2][0]-x[0])/v,u=-(o[2][1]-x[1])/v;t:{for(r=(i=[[i=i-(o=e[0][0]),r=r-(e=e[0][1]),0,0,p-t],[n=n-o,s=s-e,0,0,l-t],[0,0,i,r,h-a],[0,0,n,s,u-a]]).length,n=0;n<r;n++){for(var s=n,c=Math.abs(i[n][n]),f=n+1;f<r;f++){var y=Math.abs(i[f][n]);c<y&&(c=y,s=f)}if(!c){i=null;break t}for(c=i[s],i[s]=i[n],i[n]=c,s=n+1;s<r;s++)for(c=-i[s][n]/i[n][n],f=n;f<r+1;f++)i[s][f]=n==f?0:i[s][f]+c*i[n][f]}for(n=Array(r),s=r-1;0<=s;s--)for(n[s]=i[s][r]/i[s][s],c=s-1;0<=c;c--)i[c][r]-=i[c][s]*n[s];i=n}i&&(b.save(),b.beginPath(),r=Tm(n=(t+p+l)/3,s=(a+h+u)/3,t,a),p=Tm(n,s,p,h),l=Tm(n,s,l,u),b.moveTo(p[0],p[1]),b.lineTo(r[0],r[1]),b.lineTo(l[0],l[1]),b.clip(),b.transform(i[0],i[2],i[1],i[3],t,a),b.translate(m[0]-o,m[3]-e),b.scale(d/g,-d/g),b.drawImage(w.canvas,0,0),b.restore())}),a&&(b.save(),b.strokeStyle="black",b.lineWidth=1,r.c.forEach(function(t){t=((n=t.target)[0][0]-x[0])/v;var e=-(n[0][1]-x[1])/v,o=(n[1][0]-x[0])/v,i=-(n[1][1]-x[1])/v,r=(n[2][0]-x[0])/v,n=-(n[2][1]-x[1])/v;b.beginPath(),b.moveTo(o,i),b.lineTo(t,e),b.lineTo(r,n),b.closePath(),b.stroke()}),b.restore()),b.canvas}function Cm(t,e,o,i,r){this.i=t,this.f=e;var n={},s=Vt(this.f,this.i);this.a=function(t){var e=t[0]+"/"+t[1];return n[e]||(n[e]=s(t)),n[e]},this.g=i,this.v=r*r,this.c=[],this.o=!1,this.l=this.i.i&&!!i&&!!this.i.G()&&rt(i)==rt(this.i.G()),this.b=this.i.G()?rt(this.i.G()):null,this.j=this.f.G()?rt(this.f.G()):null,t=ot(o),e=it(o),i=_(o),o=J(o),r=this.a(t);var a,p=this.a(e),h=this.a(i),l=this.a(o);!function t(e,o,i,r,n,s,a,p,h,l){var u=P([s,a,p,h]),c=e.b?rt(u)/e.b:null,f=e.b,y=e.i.i&&.5<c&&c<1,g=!1;{var d;0<l&&(e.f.c&&e.j&&(d=P([o,i,r,n]),g|=.25<rt(d)/e.j),!y&&e.i.c&&c&&(g|=.25<c))}if(g||!e.g||nt(u,e.g)){if(!(g||isFinite(s[0])&&isFinite(s[1])&&isFinite(a[0])&&isFinite(a[1])&&isFinite(p[0])&&isFinite(p[1])&&isFinite(h[0])&&isFinite(h[1]))){if(!(0<l))return;g=!0}if(0<l&&(g||(u=e.a([(o[0]+r[0])/2,(o[1]+r[1])/2]),f=y?(L(s[0],f)+L(p[0],f))/2-L(u[0],f):(s[0]+p[0])/2-u[0],u=(s[1]+p[1])/2-u[1],g=f*f+u*u>e.v),g))Math.abs(o[0]-r[0])<=Math.abs(o[1]-r[1])?(y=[(i[0]+r[0])/2,(i[1]+r[1])/2],f=e.a(y),u=[(n[0]+o[0])/2,(n[1]+o[1])/2],c=e.a(u),t(e,o,i,y,u,s,a,f,c,l-1),t(e,u,y,r,n,c,f,p,h,l-1)):(y=[(o[0]+i[0])/2,(o[1]+i[1])/2],f=e.a(y),u=[(r[0]+n[0])/2,(r[1]+n[1])/2],c=e.a(u),t(e,o,y,u,n,s,f,c,h,l-1),t(e,y,i,r,u,f,a,p,c,l-1));else{if(y){if(!e.l)return;e.o=!0}e.c.push({source:[s,p,h],target:[o,r,n]}),e.c.push({source:[s,a,p],target:[o,i,r]})}}}(this,t,e,i,o,r,p,h,l,10),this.o&&(a=1/0,this.c.forEach(function(t){a=Math.min(a,t.source[0][0],t.source[1][0],t.source[2][0])}),this.c.forEach(function(t){var e;Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-a>this.b/2&&((e=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]])[0][0]-a>this.b/2&&(e[0][0]-=this.b),e[1][0]-a>this.b/2&&(e[1][0]-=this.b),e[2][0]-a>this.b/2&&(e[2][0]-=this.b),Math.max(e[0][0],e[1][0],e[2][0])-Math.min(e[0][0],e[1][0],e[2][0])<this.b/2&&(t.source=e))},this)),n={}}function Lm(t){var e=V();return t.c.forEach(function(t){t=t.source,z(e,t[0]),z(e,t[1]),z(e,t[2])}),e}function Rm(t,e,o,i,r,n){this.v=e,this.l=t.G();var s=(a=e.G())?et(o,a):o,a=Em(t,e,$(s),i);this.j=new Cm(t,e,s,this.l,.5*a),this.c=i,this.i=o,t=Lm(this.j),this.o=(this.Hb=n(t,a,r))?this.Hb.a:1,this.ee=this.g=null,r=2,n=[],this.Hb&&(r=0,n=this.Hb.f),Hd.call(this,o,i,this.o,r,n)}function Im(t){pb.call(this,{attributions:t.attributions,extent:t.extent,logo:t.logo,projection:t.projection,state:t.state}),this.C=void 0!==t.resolutions?t.resolutions:null,this.a=null,this.fa=0}function Nm(t,e){return e=t.C?t.C[v(t.C,e,0)]:e}function Fm(t,e){t.Y().src=e}function km(t,e){Me.call(this,t),this.image=e}e(Pm,Vv),Pm.prototype.S=function(t,e,o){Zv(this,"precompose",o,t,void 0);var i,r,n,s=this.Y();s&&((i=void 0!==(r=e.extent)&&!N(r,t.extent)&&nt(r,t.extent))&&Wv(o,t,r),r=this.C(),n=o.globalAlpha,o.globalAlpha=e.opacity,o.drawImage(s,0,0,+s.width,+s.height,Math.round(r[4]),Math.round(r[5]),Math.round(s.width*r[0]),Math.round(s.height*r[3])),o.globalAlpha=n,i&&o.restore()),this.ef(o,t,e)},Pm.prototype.Ea=function(t,e,o,i,r){var n=this.a;return n.ha().Ea(t,e.viewState.resolution,e.viewState.rotation,o,e.skippedFeatureUids,function(t){return i.call(r,t,n)})},Pm.prototype.u=function(t,e,o,i){if(this.Y()){if(this.a.ha().Ea!==w)return Vv.prototype.u.apply(this,arguments);var r=$n(this.v,t.slice());return Ri(r,e.viewState.resolution/this.f),this.j||(this.j=Ye(1,1)),this.j.clearRect(0,0,1,1),this.j.drawImage(this.Y(),r[0],r[1],1,1,0,0,1,1),0<(r=this.j.getImageData(0,0,1,1).data)[3]?o.call(i,this.a,r):void 0}},e(Am,Pm),Am.prototype.Y=function(){return this.M?this.M.Y():null},Am.prototype.C=function(){return this.c},Am.prototype.sd=function(t,e){var o,i=t.pixelRatio,r=t.size,n=t.viewState,s=n.center,a=n.resolution,p=this.a.ha(),h=t.viewHints,l=t.extent;return void 0!==e.extent&&(l=et(l,e.extent)),h[0]||h[1]||st(l)||(e=p.Y(l,a,i,n.projection))&&kv(this,e)&&(this.M=e),this.M&&(h=(e=this.M).G(),o=i*(l=e.resolution)/(a*(n=e.a)),h=os(this.c,i*r[0]/2,i*r[1]/2,o,o,0,n*(h[0]-s[0])/l,n*(s[1]-h[3])/l),os(this.v,i*r[0]/2-h[4],i*r[1]/2-h[5],i/a,-i/a,0,-s[0],-s[1]),Uv(t.attributions,e.f),Gv(t,p),this.f=a*i/n),!!this.M},e(Rm,Hd),Rm.prototype.ka=function(){1==this.state&&(me(this.ee),this.ee=null),Hd.prototype.ka.call(this)},Rm.prototype.Y=function(){return this.g},Rm.prototype.de=function(){var t=this.Hb.getState();2==t&&(this.g=jm(rt(this.i)/this.c,tt(this.i)/this.c,this.o,this.Hb.resolution,0,this.c,this.i,this.j,[{extent:this.Hb.G(),image:this.Hb.Y()}],0)),this.state=t,this.s()},Rm.prototype.load=function(){var t;0==this.state&&(this.state=1,this.s(),2==(t=this.Hb.getState())||3==t?this.de():(this.ee=de(this.Hb,"change",function(){var t=this.Hb.getState();2!=t&&3!=t||(me(this.ee),this.ee=null,this.de())},this),this.Hb.load()))},e(Im,pb),Im.prototype.Y=function(t,e,o,i){var r=this.c;if(r&&i&&!Xt(r,i)){if(this.a){if(this.fa==this.i&&Xt(this.a.v,i)&&this.a.resolution==e&&this.a.a==o&&Z(this.a.G(),t))return this.a;Se(this.a),this.a=null}return this.a=new Rm(r,i,t,e,o,function(t,e,o){return this.Jc(t,e,o,r)}.bind(this)),this.fa=this.i,this.a}return this.Jc(t,e,o,i=r?r:i)},Im.prototype.o=function(t){switch((t=t.target).getState()){case 1:this.b(new km(Dm,t));break;case 2:this.b(new km(Om,t));break;case 3:this.b(new km(Um,t))}},e(km,Me);var Dm="imageloadstart",Om="imageloadend",Um="imageloaderror";function Gm(t){Im.call(this,{attributions:t.attributions,logo:t.logo,projection:t.projection,resolutions:t.resolutions,state:t.state}),this.pa=t.canvasFunction,this.R=null,this.T=0,this.va=void 0!==t.ratio?t.ratio:1.5}function Bm(t){this.f=t.source,this.$a=Yn(),this.g=Ye(),this.l=[0,0],this.Sa=null==t.renderBuffer?100:t.renderBuffer,this.B=null,Gm.call(this,{attributions:t.attributions,canvasFunction:this.tk.bind(this),logo:t.logo,projection:t.projection,ratio:t.ratio,resolutions:t.resolutions,state:this.f.getState()}),this.I=null,this.v=void 0,this.Ii(t.style),de(this.f,"change",this.ro,this)}function Xm(t,e){ob.call(this,t,e),this.o=this.f=this.M=null}function Vm(t){Vn.call(this,t||{})}function Wm(t){Pm.call(this,t),this.c=null===this.c?null:Ye(),this.o=null,this.g=[],this.l=V(),this.va=new B(0,0,0,0),this.B=Yn(),this.T=0}function Zm(t,e){return e=e.getState(),t=t.a.kd(),2==e||4==e||3==e&&!t}function Km(){this.b="precision mediump float;varying vec2 a;uniform sampler2D e;void main(void){gl_FragColor=texture2D(e,a);}"}e(Gm,Im),Gm.prototype.Jc=function(t,e,o,i){e=Nm(this,e);var r=this.R;return r&&this.T==this.i&&r.resolution==e&&r.a==o&&N(r.G(),t)||(at(t=t.slice(),this.va),(i=this.pa(t,e,o,[rt(t)/e*o,tt(t)/e*o],i))&&(r=new Jd(t,e,o,this.j,i)),this.R=r,this.T=this.i),r},e(Bm,Gm),(Mu=Bm.prototype).tk=function(t,n,s,e,o){var a=new jv(.5*n/s,t,n,this.f.T,this.Sa);this.f.Yd(t,n,o);var i,r,p=!1;return this.f.$b(t,function(t){var e;if(!(i=p))if((i=t.Lc())?e=i.call(t,n):this.v&&(e=this.v(t,n)),e){for(var o=!1,i=0,r=(e=!Array.isArray(e)?[e]:e).length;i<r;++i)o=Hv(a,t,e[i],Yv(n,s),this.qo,this)||o;i=o}else i=!1;p=i},this),Rv(a),p?null:(this.l[0]!=e[0]||this.l[1]!=e[1]?(this.g.canvas.width=e[0],this.g.canvas.height=e[1],this.l[0]=e[0],this.l[1]=e[1]):this.g.clearRect(0,0,e[0],e[1]),i=this,r=$(t),o=e,e=s/(e=n),t=os(i.$a,o[0]/2,o[1]/2,e,-e,0,-r[0],-r[1]),a.La(this.g,s,t,0,{}),this.B=a,this.g.canvas)},Mu.Ea=function(t,e,o,i,r,n){if(this.B){var s={};return this.B.Ea(t,e,0,i,r,function(t){var e=G(t).toString();if(!(e in s))return s[e]=!0,n(t)})}},Mu.no=function(){return this.f},Mu.oo=function(){return this.I},Mu.po=function(){return this.v},Mu.qo=function(){this.s()},Mu.ro=function(){lb(this,this.f.getState())},Mu.Ii=function(t){this.I=void 0!==t?t:Th,this.v=t?Ah(this.I):void 0,this.s()},e(Xm,ob),Xm.prototype.Ea=function(t,e,o,i,r){var n=this.a;return n.ha().Ea(t,e.viewState.resolution,e.viewState.rotation,o,e.skippedFeatureUids,function(t){return i.call(r,t,n)})},Xm.prototype.ng=function(t,e){var o,i,r=this.c.i,n=t.pixelRatio,s=t.viewState,a=s.center,p=s.resolution,h=s.rotation,l=this.M,u=this.Ib,c=this.a.ha(),f=t.viewHints,y=t.extent;return void 0!==e.extent&&(y=et(y,e.extent)),f[0]||f[1]||st(y)||(e=c.Y(y,p,n,s.projection))&&kv(this,e)&&(o=this,i=(i=l=e).Y(),u=aa(o.c.i,i),this.Ib&&t.postRenderFunctions.push(function(t,e){t.isContextLost()||t.deleteTexture(e)}.bind(null,r,this.Ib))),l&&(r=this.c.f.j,s=this,e=r.width,o=r.height,i=n,r=a,a=p,p=h,h=l.G(),e*=a,o*=a,Hn(s=s.S),ts(s,2*i/e,2*i/o),Qn(s,-p),es(s,h[0]-r[0],h[1]-r[1]),ts(s,(h[2]-h[0])/2,(h[3]-h[1])/2),es(s,1,1),this.o=null,Hn(n=this.v),ts(n,1,-1),es(n,0,-1),this.M=l,this.Ib=u,Uv(t.attributions,l.f),Gv(t,c)),!!l},Xm.prototype.Ue=function(t,e){return void 0!==this.Ea(t,e,0,Di,this)},Xm.prototype.lg=function(t,e,o,i){if(this.M&&this.M.Y())if(this.a.ha()instanceof Bm){var r=$n(e.pixelToCoordinateTransform,t.slice());if(this.Ea(r,e,0,Di,this))return o.call(i,this.a,null)}else{var n,s,r=[this.M.Y().width,this.M.Y().height];if(this.o||(n=e.size,es(e=Yn(),-1,-1),ts(e,2/n[0],2/n[1]),es(e,0,n[1]),ts(e,1,-1),n=is(this.S.slice()),es(s=Yn(),0,r[1]),ts(s,1,-1),ts(s,r[0]/2,r[1]/2),es(s,1,1),qn(s,n),qn(s,e),this.o=s),!((t=$n(this.o,t.slice()))[0]<0||t[0]>r[0]||t[1]<0||t[1]>r[1])&&(this.f||(this.f=Ye(1,1)),this.f.clearRect(0,0,1,1),this.f.drawImage(this.M.Y(),t[0],t[1],1,1,0,0,1,1),0<(r=this.f.getImageData(0,0,1,1).data)[3]))return o.call(i,this.a,r)}},e(Vm,Vn),Vm.prototype.Fd=function(t){var e=null,o=t.U();return"canvas"===o?e=new Am(this):"webgl"===o&&(e=new Xm(t,this)),e},e(Wm,Pm),Wm.prototype.sd=function(t,e){var o=t.pixelRatio,i=t.size,r=(s=t.viewState).projection,n=s.resolution,s=s.center,a=this.a,p=a.ha(),h=p.i,l=p.Ta(r),u=l.tc(n,this.T),c=l.Da(u),f=Math.round(n/c)||1,y=t.extent;if(st(y=void 0!==e.extent?et(y,e.extent):y))return!1;var g=te(l,y,c),d=l.Pc(u),v=l.Da(u),b=X(l.gb(u),l.j),d=F(d[0]+g.ca*b[0]*v,d[1]+g.da*b[1]*v,d[0]+(g.$+1)*b[0]*v,d[1]+(g.ia+1)*b[1]*v,void 0),v=p.nb(o);(b={})[u]={};var m=this.Nf(p,r,b),w=this.l,x=this.va,S=!1;for(C=g.ca;C<=g.$;++C)for(L=g.da;L<=g.ia;++L){var M=p.Nc(u,C,L,o,r);3!=M.getState()||this.a.kd()||Qd(M,2),Zm(this,M)||(M=$d(M)),Zm(this,M)?2==M.getState()&&(b[u][M.ta.toString()]=M,S||-1!=this.g.indexOf(M)||(S=!0)):$t(l,M.ta,m,x,w)||(M=Qt(l,M.ta,x,w))&&m(u+1,M)}if(C=(C=t.viewHints)[0]||C[1],!(this.f&&16<Date.now()-t.time&&C||!S&&this.o&&N(this.o,y)&&this.mf==h&&f==this.R&&(C||c*o/v*f==this.f))){(C=this.c)&&(L=p.Xd(u,o,r),M=Math.round((g.$-g.ca+1)*L[0]/f),L=Math.round((g.ia-g.da+1)*L[1]/f),(S=C.canvas).width!=M||S.height!=L?(this.R=f,S.width=M,S.height=L):(C.clearRect(0,0,M,L),f=this.R)),this.g.length=0,(S=Object.keys(b).map(Number)).sort(D);for(var x=0,P=S.length;x<P;++x){C=S[x];var A,m=p.Xd(C,o,r),E=(M=l.Da(C))/c,T=v*p.Wf(r),j=b[C];for(A in j){var M=j[A],C=((L=l.Aa(M.ta,w))[0]-d[0])/c*v/f,L=(d[3]-L[3])/c*v/f,R=m[0]*E/f,I=m[1]*E/f;this.Of(M,t,e,C,L,R,I,T),this.g.push(M)}}this.mf=h,this.f=c*o/v*f,this.o=d}return e=this.f/n,e=os(this.B,o*i[0]/2,o*i[1]/2,e,e,0,(this.o[0]-s[0])/this.f*o,(s[1]-this.o[3])/this.f*o),os(this.v,o*i[0]/2-e[4],o*i[1]/2-e[5],o/n,-o/n,0,-s[0],-s[1]),Bv(t.usedTiles,p,u,g),Xv(t,p,l,o,r,y,u,a.Ud()),Ov(t,p),Gv(t,p),0<this.g.length},Wm.prototype.Of=function(t,e,o,i,r,n,s,a){this.a.ha().Zf(e.viewState.projection)||this.c.clearRect(i,r,n,s),(t=t.Y())&&this.c.drawImage(t,a,a,t.width-2*a,t.height-2*a,i,r,n,s)},Wm.prototype.Y=function(){var t=this.c;return t?t.canvas:null},Wm.prototype.C=function(){return this.B},e(Km,js);var zm=new Km;function Ym(){this.b="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform vec4 d;void main(void){gl_Position=vec4(b*d.xy+d.zw,0.,1.);a=c;}"}e(Ym,Cs);var Hm=new Ym;function qm(t,e){this.i=t.getUniformLocation(e,"e"),this.c=t.getUniformLocation(e,"d"),this.b=t.getAttribLocation(e,"b"),this.a=t.getAttribLocation(e,"c")}function Jm(t,e){ob.call(this,t,e),this.I=zm,this.fa=Hm,this.f=null,this.B=new Zs([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]),this.D=this.o=null,this.l=-1,this.R=[0,0]}function _m(t){var e=ht({},t=t||{});delete e.preload,delete e.useInterimTilesOnError,Vn.call(this,e),this.zi(void 0!==t.preload?t.preload:0),this.Ai(void 0===t.useInterimTilesOnError||t.useInterimTilesOnError)}function $m(t){this.c=null,Wm.call(this,t),this.I=!1,this.D=Yn(),this.T="vector"==t.j?1:0}e(Jm,ob),(Mu=Jm.prototype).ka=function(){ea(this.c.f,this.B),ob.prototype.ka.call(this)},Mu.Nf=function(e,i,r){var n=this.c;return function(o,t){return uw(e,i,o,t,function(t){var e=n.a.b.hasOwnProperty(t.bb());return e&&(r[o]||(r[o]={}),r[o][t.ta.toString()]=t),e})}},Mu.mg=function(){ob.prototype.mg.call(this),this.f=null},Mu.ng=function(t,e,o){var i,r,n,s,a,p=this.c,h=o.b,l=t.viewState,u=l.projection,c=this.a,f=c.ha(),y=f.Ta(u),g=y.tc(l.resolution),d=y.Da(g),v=f.Xd(g,t.pixelRatio,u),b=v[0]/X(y.gb(g),this.R)[0],m=d/b,w=f.nb(b)*f.Wf(u),x=l.center,S=t.extent,M=te(y,S,d);if(this.o&&(s=this.o,a=M,s.ca==a.ca&&s.da==a.da&&s.$==a.$&&s.ia==a.ia)&&this.l==f.i)m=this.D;else{var P=[M.$-M.ca+1,M.ia-M.da+1],P=m*(C=(O(0<(n=Math.max(P[0]*v[0],P[1]*v[1])),29),Math.pow(2,Math.ceil(Math.log(n)/Math.LN2)))),A=y.Pc(g),m=[L=A[0]+M.ca*v[0]*m,m=A[1]+M.da*v[1]*m,L+P,m+P];i=t,r=C,a=(s=this).c.i,void 0===s.j||s.j!=r?(i.postRenderFunctions.push(function(t,e,o){t.isContextLost()||(t.deleteFramebuffer(e),t.deleteTexture(o))}.bind(null,a,s.g,s.Ib)),i=sa(a,r,r),n=a.createFramebuffer(),a.bindFramebuffer(36160,n),a.framebufferTexture2D(36160,36064,3553,i,0),s.Ib=i,s.g=n,s.j=r):a.bindFramebuffer(36160,s.g),h.viewport(0,0,C,C),h.clearColor(0,0,0,0),h.clear(16384),h.disable(3042),C=ra(o,this.I,this.fa),o.Qc(C),this.f||(this.f=new qm(h,C)),ta(o,34962,this.B),h.enableVertexAttribArray(this.f.b),h.vertexAttribPointer(this.f.b,2,5126,!1,16,0),h.enableVertexAttribArray(this.f.a),h.vertexAttribPointer(this.f.a,2,5126,!1,16,8),h.uniform1i(this.f.i,0),(o={})[g]={};for(var E,T=this.Nf(f,u,o),j=c.kd(),C=!0,L=V(),R=new B(0,0,0,0),I=M.ca;I<=M.$;++I)for(E=M.da;E<=M.ia;++E){if(A=f.Nc(g,I,E,b,u),void 0!==e.extent){var N=y.Aa(A.ta,L);if(!nt(N,e.extent))continue}if(2==(N=(A=!(N=2==(N=A.getState())||4==N||3==N&&!j)?$d(A):A).getState())){if(p.a.b.hasOwnProperty(A.bb())){o[g][A.ta.toString()]=A;continue}}else if(4==N||3==N&&!j)continue;C=!1,(N=$t(y,A.ta,T,R,L))||(A=Qt(y,A.ta,R,L))&&T(g+1,A)}(e=Object.keys(o).map(Number)).sort(D);for(var F,T=new Float32Array(4),j=0,R=e.length;j<R;++j)for(F in I=o[e[j]])A=I[F],N=y.Aa(A.ta,L),T[0]=2*(N[2]-N[0])/P,T[1]=2*(N[3]-N[1])/P,T[2]=2*(N[0]-m[0])/P-1,T[3]=2*(N[1]-m[1])/P-1,h.uniform4fv(this.f.c,T),Op(p,A,v,w*b),h.drawArrays(5,0,4);C?(this.o=M,this.D=m,this.l=f.i):(this.D=this.o=null,this.l=-1,t.animate=!0)}Bv(t.usedTiles,f,g,M);var k=p.j;return Xv(t,f,y,b,u,S,g,c.Ud(),function(t){2!=t.getState()||p.a.b.hasOwnProperty(t.bb())||t.bb()in k.a||k.f([t,oe(y,t.ta),y.Da(t.ta[0]),v,w*b])},this),Ov(t,f),Gv(t,f),Hn(h=this.v),es(h,(Math.round(x[0]/d)*d-m[0])/(m[2]-m[0]),(Math.round(x[1]/d)*d-m[1])/(m[3]-m[1])),l.rotation&&Qn(h,l.rotation),ts(h,t.size[0]*l.resolution/(m[2]-m[0]),t.size[1]*l.resolution/(m[3]-m[1])),es(h,-.5,-.5),!0},Mu.lg=function(t,e,o,i){if(this.g){t=[(t=$n(this.v,[t[0]/e.size[0],(e.size[1]-t[1])/e.size[1]].slice()))[0]*this.j,t[1]*this.j],(e=this.c.f.b).bindFramebuffer(e.FRAMEBUFFER,this.g);var r=new Uint8Array(4);if(e.readPixels(t[0],t[1],1,1,e.RGBA,e.UNSIGNED_BYTE,r),0<r[3])return o.call(i,this.a,r)}},e(_m,Vn),(Mu=_m.prototype).Fd=function(t){var e=null,o=t.U();return"canvas"===o?e=new Wm(this):"webgl"===o&&(e=new Jm(t,this)),e},Mu.Ud=function(){return this.get("preload")},Mu.zi=function(t){this.set("preload",t)},Mu.kd=function(){return this.get("useInterimTilesOnError")},Mu.Ai=function(t){this.set("useInterimTilesOnError",t)},e($m,Wm);var Qm={image:As,hybrid:["Polygon","LineString"]},tw={hybrid:["Image","Text"],vector:As};function ew(t){var e=ht({},t=t||{});delete e.preload,delete e.useInterimTilesOnError,nb.call(this,e),this.Bi(t.preload||0),this.Ci(t.useInterimTilesOnError||!0),O(null==t.renderMode||"image"==t.renderMode||"hybrid"==t.renderMode||"vector"==t.renderMode,28),this.j=t.renderMode||"hybrid"}function ow(t,e,o,i){function r(){delete window[s],n.parentNode.removeChild(n)}var n=document.createElement("script"),s="olc_"+G(e);n.async=!0,n.src=t+(-1==t.indexOf("?")?"?":"&")+(i||"callback")+"="+s;var a=setTimeout(function(){r(),o&&o()},1e4);window[s]=function(t){clearTimeout(a),r(),e(t)},document.getElementsByTagName("head")[0].appendChild(n)}function iw(t,e,o,i,r,n,s,a,p,h,l){if(_d.call(this,r,0),this.D=void 0!==l&&l,this.S=s,this.u=a,this.v=null,this.c=e,this.j=i,this.o=n||r,this.a=[],this.yd=null,this.g=0,n=i.Aa(this.o),a=this.j.G(),r=this.c.G(),q(n=a?et(n,a):n))if((a=t.G())&&(r=r?et(r,a):a),i=Em(t,o,$(n),i.Da(this.o[0])),!isFinite(i)||i<=0)this.state=4;else if(this.l=new Cm(t,o,n,r,i*(void 0!==h?h:.5)),this.l.c.length)if(this.g=e.tc(i),o=Lm(this.l),r&&(t.i?(o[1]=x(o[1],r[1],r[3]),o[3]=x(o[3],r[1],r[3])):o=et(o,r)),q(o)){for(e=(t=ee(e,o,this.g)).ca;e<=t.$;e++)for(o=t.da;o<=t.ia;o++)(h=p(this.g,e,o,s))&&this.a.push(h);this.a.length||(this.state=4)}else this.state=4;else this.state=4;else this.state=4}function rw(t,e){for(var o=t.length,i=Array(o),r=0;r<o;++r)i[r]=function(t,o){var i=/\{z\}/g,r=/\{x\}/g,n=/\{y\}/g,s=/\{-y\}/g;return function(e){if(e)return t.replace(i,e[0].toString()).replace(r,e[1].toString()).replace(n,function(){return(-e[2]-1).toString()}).replace(s,function(){var t=o.a?o.a[e[0]]:null;return O(t,55),(t.ia-t.da+1+e[2]).toString()})}}(t[r],e);return nw(i)}function nw(i){return 1===i.length?i[0]:function(t,e,o){if(t)return i[L((t[1]<<t[0])+t[2],i.length)](t,e,o)}}function sw(){}function aw(t){var e=[],o=/\{([a-z])-([a-z])\}/.exec(t);if(o){for(var i=o[2].charCodeAt(0),r=o[1].charCodeAt(0);r<=i;++r)e.push(t.replace(o[0],String.fromCharCode(r)));return e}if(o=/\{(\d+)-(\d+)\}/.exec(t)){for(i=parseInt(o[2],10),r=parseInt(o[1],10);r<=i;r++)e.push(t.replace(o[0],r.toString()));return e}return e.push(t),e}function pw(t){kp.call(this),this.highWaterMark=void 0!==t?t:2048}function hw(t){return t.c>t.highWaterMark}function lw(t){pb.call(this,{attributions:t.attributions,extent:t.extent,logo:t.logo,projection:t.projection,state:t.state,wrapX:t.wrapX}),this.va=void 0!==t.opaque&&t.opaque,this.$a=void 0!==t.tilePixelRatio?t.tilePixelRatio:1,this.tileGrid=void 0!==t.tileGrid?t.tileGrid:null,this.a=new pw(t.cacheSize),this.o=[0,0],this.uc=""}function uw(t,e,o,i,r){if(!(e=t.Wd(e)))return!1;for(var n,s,a=!0,p=i.ca;p<=i.$;++p)for(var h=i.da;h<=i.ia;++h)n=t.Sb(o,p,h),s=!1,e.b.hasOwnProperty(n)&&((s=2===(n=e.get(n)).getState())&&(s=!1!==r(n))),s||(a=!1);return a}function cw(t,e){t.uc!==e&&(t.uc=e,t.s())}function fw(t,e,o){var i,r,n=void 0!==o?o:t.c;return o=t.Ta(n),t.u&&n.c&&(e=(i=e)[0],t=oe(o,i),e=T(n=pe(n),t)?i:(i=rt(n),t[0]+=i*Math.ceil((n[0]-t[0])/i),o.bg(t,e))),i=e[0],n=e[1],t=e[2],(o=!(o.minZoom>i||i>o.maxZoom)&&(!(o=(r=o.G())?ee(o,r,i):o.a?o.a[i]:null)||p(o,n,t)))?e:null}function yw(t,e){Me.call(this,t),this.tile=e}function gw(t){lw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,extent:t.extent,logo:t.logo,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tilePixelRatio:t.tilePixelRatio,wrapX:t.wrapX}),this.tileLoadFunction=t.tileLoadFunction,this.tileUrlFunction=this.Fc?this.Fc.bind(this):sw,this.urls=null,t.urls?this.eb(t.urls):t.url&&this.jb(t.url),t.tileUrlFunction&&this.cb(t.tileUrlFunction)}function dw(t){gw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,extent:t.extent,logo:t.logo,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction||mw,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX}),this.crossOrigin=void 0!==t.crossOrigin?t.crossOrigin:null,this.tileClass=t.tileClass||tv,this.g={},this.v={},this.Sa=t.reprojectionErrorThreshold,this.I=!1}function vw(t,e,o,i,r,n,s){return r=(o=fw(t,e=[e,o,i],n))?t.tileUrlFunction(o,r,n):void 0,(r=new t.tileClass(e,void 0!==r?0:4,void 0!==r?r:"",t.crossOrigin,t.tileLoadFunction)).key=s,de(r,"change",t.Li,t),r}function bw(t,e,o,i,r,n){var s=t.Sb(e,o,i),a=t.uc;if(t.a.b.hasOwnProperty(s)){if((h=t.a.get(s)).key!=a){var p=h,h=vw(t,e,o,i,r,n,a);if(0==p.getState()?h.i=p.i:h.i=p,h.i){e=h.i,o=h;do{if(2==e.getState()){e.i=null;break}}while(1!=e.getState()&&0==e.getState()?o.i=e.i:o=e,e=o.i)}t.a.replace(s,h)}}else h=vw(t,e,o,i,r,n,a),t.a.set(s,h);return h}function mw(t,e){t.Y().src=e}function ww(t){this.B=void 0!==t.hidpi&&t.hidpi,dw.call(this,{cacheSize:t.cacheSize,crossOrigin:"anonymous",opaque:!0,projection:Bt("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:"loading",tileLoadFunction:t.tileLoadFunction,tilePixelRatio:this.B?2:1,wrapX:void 0===t.wrapX||t.wrapX}),this.R=void 0!==t.culture?t.culture:"en-us",this.C=void 0!==t.maxZoom?t.maxZoom:-1,this.f=t.key,this.l=t.imagerySet,ow("https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+this.l+"?uriScheme=https&include=ImageryProviders&key="+this.f,this.pa.bind(this),void 0,"jsonp")}(Mu=$m.prototype).sd=function(t,e){var o=this.a,i=o.i;return this.pa!=i&&(this.g.length=0,o=o.j,this.c||"vector"==o||(this.c=Ye()),this.c&&"vector"==o&&(this.c=null)),this.pa=i,Wm.prototype.sd.apply(this,arguments)},Mu.Of=function(t,e,o,i,r,n,s,a){var p=t,h=this.a,l=e.pixelRatio,u=e.viewState.projection,c=h.i,f=h.get(sb)||null,y=p.o;if(y.Nd||y.mf!=c||y.Kg!=f){for(var g=0,d=p.a.length;g<d;++g){var v=p.c[p.a[g]];v.S=null,y.Nd=!1;var b,m,w=h.ha(),x=w.tileGrid,S=v.ta,M=v.a,P=(E=w.Ta(u)).Da(p.ta[0]),A=x.Da(v.ta[0]),E=et(E=E.Aa(p.v),S=x.Aa(S));for("tile-pixels"==M.a?(b=x=w.nb(),A=$n(A=os(this.D,0,0,1/A*b,-1/A*b,0,-S[0],-S[3]),[E[0],E[3]]).concat($n(A,[E[2],E[1]]))):(x=P,A=E,Xt(u,M)||(m=!0,v.ig(u))),y.Nd=!1,w=new jv(0,A,x,w.l,h.c),A=Yv(x,l),x=v.g,f&&f!==y.Kg&&x.sort(f),S=0,E=x.length;S<E;++S){b=x[S],m&&b.V().tb(M,u);var T=void 0;if((j=b.Lc())?T=j.call(b,P):(j=h.f)&&(T=j(b,P)),T){var j=A,C=w;if(T=!Array.isArray(T)?[T]:T){var L=!1;if(Array.isArray(T))for(var R=0,I=T.length;R<I;++R)L=Hv(C,b,T[R],j,this.Fi,this)||L;else L=Hv(C,b,T,j,this.Fi,this)||L;b=L}else b=!1;this.I=this.I||b,y.Nd=y.Nd||b}}Rv(w),v.c[p.ta.toString()]=w}y.mf=c,y.Kg=f}if(this.c){if(g=e,u=this.a,l=p.o,c=u.i,(h=Qm[u.j])&&l.Lg!==c)for(l.Lg=c,v=(d=p.v)[0],l=g.pixelRatio,u=(P=u.ha()).tileGrid,c=(M=P.Ta(g.viewState.projection)).Da(v),f=P.nb(),p.j||(p.j=Ye()),y=p.j,g=P.Xd(v,l,g.viewState.projection),y.canvas.width=g[0],y.canvas.height=g[1],g=M.Aa(d),d=0,v=p.a.length;d<v;++d)w=(M=p.c[p.a[d]]).ta,m=l/c,P=Hn(this.D),"tile-pixels"==M.a.a?(m=u.Aa(w,this.l),ts(P,A=l/f*(w=u.Da(w[0]))/c,A),es(P,Math.round((m[0]-g[0])/w*f),Math.round((g[3]-m[3])/w*f))):(ts(P,m,-m),es(P,-g[0],-g[3])),M.c[p.ta.toString()].La(y,l,P,0,{},h);Wm.prototype.Of.apply(this,arguments)}},Mu.Ea=function(t,e,o,i,r){var n=e.viewState.resolution,s=e.viewState.rotation;o=null==o?0:o;var a=this.a,p={},h=this.g,l=a.ha();e=l.Ta(e.viewState.projection);for(var u=l.tileGrid,c=0,f=h.length;c<f;++c){var y=h[c],g=y.ta,d=A(g=e.Aa(g,this.l),o*n,d);if(T(d,t))for(var g=0,v=y.a.length;g<v;++g)var b,m="tile-pixels"===(w=y.c[y.a[g]]).a.a?(b=w.ta,m=ot(n=u.Aa(b,this.l)),n=l.nb(),b=u.Da(b[0])/n,[(t[0]-m[0])/b,(m[1]-t[1])/b]):t,w=w.c[y.ta],x=x||w.Ea(m,n,s,o,{},function(t){var e=G(t).toString();if(!(e in p))return p[e]=!0,i.call(r,t,a)})}return x},Mu.Fi=function(){Dv(this)},Mu.ef=function(t,e,o){var i=(l=this.a).ha(),r=tw[l.j];if(r)for(var n=e.pixelRatio,s=e.viewState.rotation,a=e.size,p=Math.round(n*a[0]/2),a=Math.round(n*a[1]/2),h=this.g,l=l.ha().nb(),u=i.tileGrid,i=i.Ta(e.viewState.projection),c=[],f=[],y=h.length-1;0<=y;--y){var g=h[y];if(5!=g.getState())for(var d=g.ta,v=i.Aa(d)[0]-i.Aa(g.v)[0],b=0,m=g.a.length;b<m;++b){var w,x,S,M,P,A=g.c[g.a[b]],E=A.ta[0],T=u.Da(E),j=A,C=e;for(es(C="tile-pixels"==j.a.a?(M=(w=this.a.ha()).tileGrid,P=j.ta,w=M.Da(P[0])/w.nb(),j=C.viewState,x=C.pixelRatio,S=j.resolution/x,P=M.Aa(P,this.l),M=j.center,P=ot(P),C=C.size,os(this.D,Math.round(x*C[0]/2),Math.round(x*C[1]/2),w/S,w/S,j.rotation,(P[0]-M[0])/w,(M[1]-P[1])/w)):Kv(this,C,0),v*l/T,0),T=Iv(A=A.c[d.toString()],C),t.save(),t.globalAlpha=o.opacity,ys(t,-s,p,a),w=0,j=c.length;w<j;++w)x=c[w],E<f[w]&&(t.beginPath(),t.moveTo(T[0],T[1]),t.lineTo(T[2],T[3]),t.lineTo(T[4],T[5]),t.lineTo(T[6],T[7]),t.moveTo(x[6],x[7]),t.lineTo(x[4],x[5]),t.lineTo(x[2],x[3]),t.lineTo(x[0],x[1]),t.clip());A.La(t,n,C,s,{},r),t.restore(),c.push(T),f.push(E)}}Wm.prototype.ef.apply(this,arguments)},e(ew,nb),(Mu=ew.prototype).Fd=function(t){var e=null;return e="canvas"===t.U()?new $m(this):e},Mu.Ud=function(){return this.get("preload")},Mu.kd=function(){return this.get("useInterimTilesOnError")},Mu.Bi=function(t){this.set("preload",t)},Mu.Ci=function(t){this.set("useInterimTilesOnError",t)},e(iw,_d),iw.prototype.ka=function(){1==this.state&&(this.yd.forEach(me),this.yd=null),_d.prototype.ka.call(this)},iw.prototype.Y=function(){return this.v},iw.prototype.de=function(){var t,e,o,i,r,n=[];this.a.forEach(function(t){t&&2==t.getState()&&n.push({extent:this.c.Aa(t.ta),image:t.Y()})},this),this.a.length=0,n.length?(o=this.o[0],t="number"==typeof(e=this.j.gb(o))?e:e[0],e="number"==typeof e?e:e[1],o=this.j.Da(o),i=this.c.Da(this.g),r=this.j.Aa(this.o),this.v=jm(t,e,this.S,i,this.c.G(),o,r,this.l,n,this.u,this.D),this.state=2):this.state=3,this.s()},iw.prototype.load=function(){var i;0==this.state&&(this.state=1,this.s(),i=0,this.yd=[],this.a.forEach(function(e){var o,t=e.getState();0!=t&&1!=t||(i++,o=de(e,"change",function(){var t=e.getState();2!=t&&3!=t&&4!=t||(me(o),--i||(this.yd.forEach(me),this.yd=null,this.de()))},this),this.yd.push(o))},this),this.a.forEach(function(t){0==t.getState()&&t.load()}),i||setTimeout(this.de.bind(this),0))},e(pw,kp),pw.prototype.fd=function(t){for(var e,o,i;hw(this);){if((e=(i=(o=this.a.Yc).ta[0].toString())in t)&&(o=o.ta,e=p(t[i],o[1],o[2])),e)break;Se(this.pop())}},e(lw,pb),(Mu=lw.prototype).Ki=function(){return hw(this.a)},Mu.fd=function(t,e){(t=this.Wd(t))&&t.fd(e)},Mu.Wf=function(){return 0},Mu.Sb=function(t,e,o){return t+"/"+e+"/"+o},Mu.Zf=function(){return this.va},Mu.ab=function(){return this.tileGrid},Mu.Ta=function(t){return this.tileGrid||re(t)},Mu.Wd=function(t){var e=this.c;return e&&!Xt(e,t)?null:this.a},Mu.nb=function(){return this.$a},Mu.Xd=function(t,e,o){return o=this.Ta(o),e=this.nb(e),t=X(o.gb(t),this.o),1==e?t:u(t,e,this.o)},Mu.sa=function(){this.a.clear(),this.s()},Mu.Ug=w,e(yw,Me),e(gw,lw),(Mu=gw.prototype).pb=function(){return this.tileLoadFunction},Mu.qb=function(){return this.tileUrlFunction},Mu.rb=function(){return this.urls},Mu.Li=function(t){switch((t=t.target).getState()){case 1:this.b(new yw("tileloadstart",t));break;case 2:this.b(new yw("tileloadend",t));break;case 3:this.b(new yw("tileloaderror",t))}},Mu.vb=function(t){this.a.clear(),this.tileLoadFunction=t,this.s()},Mu.cb=function(t,e){this.tileUrlFunction=t,void 0!==e?cw(this,e):this.s()},Mu.jb=function(t){var e=this.urls=aw(t);this.cb(this.Fc?this.Fc.bind(this):rw(e,this.tileGrid),t)},Mu.eb=function(t){var e=(this.urls=t).join("\n");this.cb(this.Fc?this.Fc.bind(this):rw(t,this.tileGrid),e)},Mu.Ug=function(t,e,o){t=this.Sb(t,e,o),this.a.b.hasOwnProperty(t)&&this.a.get(t)},e(dw,gw),(Mu=dw.prototype).Ki=function(){if(hw(this.a))return!0;for(var t in this.g)if(hw(this.g[t]))return!0;return!1},Mu.fd=function(t,e){for(var o in t=this.Wd(t),this.a.fd(this.a==t?e:{}),this.g){o=this.g[o];o.fd(o==t?e:{})}},Mu.Wf=function(t){return this.c&&t&&!Xt(this.c,t)?0:this.Xf()},Mu.Xf=function(){return 0},Mu.Zf=function(t){return!(this.c&&t&&!Xt(this.c,t))&&gw.prototype.Zf.call(this,t)},Mu.Ta=function(t){var e=this.c;return!this.tileGrid||e&&!Xt(e,t)?((e=G(t).toString())in this.v||(this.v[e]=re(t)),this.v[e]):this.tileGrid},Mu.Wd=function(t){var e=this.c;return!e||Xt(e,t)?this.a:((t=G(t).toString())in this.g||(this.g[t]=new pw(this.a.highWaterMark)),this.g[t])},Mu.Nc=function(t,e,o,i,r){if(this.c&&r&&!Xt(this.c,r)){var n,s=this.Wd(r);if(t=this.Sb.apply(this,o=[t,e,o]),s.b.hasOwnProperty(t)&&(n=s.get(t)),e=this.uc,n&&n.key==e)return n;var a=this.c,p=this.Ta(a),h=this.Ta(r),l=fw(this,o,r);return(i=new iw(a,p,r,h,o,l,this.nb(i),this.Xf(),function(t,e,o,i){return bw(this,t,e,o,i,a)}.bind(this),this.Sa,this.I)).key=e,n?(i.i=n,s.replace(t,i)):s.set(t,i),i}return bw(this,t,e,o,i,r)},Mu.Pb=function(t){if(this.I!=t){for(var e in this.I=t,this.g)this.g[e].clear();this.s()}},Mu.Qb=function(t,e){(t=Bt(t))&&((t=G(t).toString())in this.v||(this.v[t]=e))},e(ww,dw);var xw=new he({html:'<a class="ol-attribution-bing-tos" href="http://www.microsoft.com/maps/product/terms.html">Terms of Use</a>'});function Sw(t){var e=void 0!==(t=t||{}).projection?t.projection:"EPSG:3857",o=void 0!==t.tileGrid?t.tileGrid:ne({extent:pe(e),maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});dw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,opaque:t.opaque,projection:e,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:o,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX})}function Mw(t){this.C=t.account,this.B=t.map||"",this.f=t.config||{},this.l={},Sw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,maxZoom:void 0!==t.maxZoom?t.maxZoom:18,minZoom:t.minZoom,projection:t.projection,state:"loading",wrapX:t.wrapX}),Pw(this)}function Pw(t){var e,o,i=JSON.stringify(t.f);t.l[i]?Aw(t,t.l[i]):(e="https://"+t.C+".cartodb.com/api/v1/map",t.B&&(e+="/named/"+t.B),(o=new XMLHttpRequest).addEventListener("load",t.Dl.bind(t,i)),o.addEventListener("error",t.Cl.bind(t)),o.open("POST",e),o.setRequestHeader("Content-type","application/json"),o.send(JSON.stringify(t.f)))}function Aw(t,e){t.jb("https://"+e.cdn_url.https+"/"+t.C+"/api/v1/map/"+e.layergroupid+"/{z}/{x}/{y}.png")}function Ew(t){ub.call(this,{attributions:t.attributions,extent:t.extent,logo:t.logo,projection:t.projection,wrapX:t.wrapX}),this.resolution=void 0,this.distance=void 0!==t.distance?t.distance:20,this.features=[],this.geometryFunction=t.geometryFunction||function(t){return O((t=t.V())instanceof ar,10),t},this.source=t.source,this.source.J("change",Ew.prototype.sa,this)}function Tw(t){if(void 0!==t.resolution){t.features.length=0;for(var e=V(),o=t.distance*t.resolution,i=t.source.Xe(),r={},n=0,s=i.length;n<s;n++){var a=i[n];G(a).toString()in r||!(a=t.geometryFunction(a))||(k(a=a.X(),e),A(e,o,e),a=(a=t.source.Uf(e)).filter(function(t){return!((t=G(t).toString())in r)&&(r[t]=!0)}),t.features.push(function(t,e){for(var o=[0,0],i=e.length-1;0<=i;--i){var r=t.geometryFunction(e[i]);r?Ai(o,r.X()):e.splice(i,1)}return Ri(o,1/e.length),(t=new Lh(new ar(o))).set("features",e),t}(t,a)))}}}function jw(t,e){var o=[];Object.keys(e).forEach(function(t){null!==e[t]&&void 0!==e[t]&&o.push(t+"="+encodeURIComponent(e[t]))});var i=o.join("&");return(t=-1===(t=t.replace(/[?&]$/,"")).indexOf("?")?t+"?":t+"&")+i}function Cw(t){Im.call(this,{attributions:(t=t||{}).attributions,logo:t.logo,projection:t.projection,resolutions:t.resolutions}),this.R=void 0!==t.crossOrigin?t.crossOrigin:null,this.T=void 0===t.hidpi||t.hidpi,this.f=t.url,this.g=t.imageLoadFunction||Fm,this.v=t.params||{},this.M=null,this.l=[0,0],this.I=0,this.B=void 0!==t.ratio?t.ratio:1.5}function Lw(t){Im.call(this,{projection:t.projection,resolutions:t.resolutions}),this.R=void 0!==t.crossOrigin?t.crossOrigin:null,this.l=void 0!==t.displayDpi?t.displayDpi:96,this.g=t.params||{},this.I=t.url,this.f=t.imageLoadFunction||Fm,this.T=void 0===t.hidpi||t.hidpi,this.pa=void 0!==t.metersPerUnit?t.metersPerUnit:1,this.v=void 0!==t.ratio?t.ratio:1,this.va=void 0!==t.useOverlay&&t.useOverlay,this.M=null,this.B=0}function Rw(t){var e=t.imageExtent,o=void 0!==t.crossOrigin?t.crossOrigin:null,i=t.imageLoadFunction||Fm;Im.call(this,{attributions:t.attributions,logo:t.logo,projection:Bt(t.projection)}),this.M=new qd(e,void 0,1,this.j,t.url,o,i),this.f=t.imageSize||null,de(this.M,"change",this.o,this)}function Iw(t){Im.call(this,{attributions:(t=t||{}).attributions,logo:t.logo,projection:t.projection,resolutions:t.resolutions}),this.pa=void 0!==t.crossOrigin?t.crossOrigin:null,this.g=t.url,this.v=t.imageLoadFunction||Fm,this.f=t.params||{},this.l=!0,kw(this),this.T=t.serverType,this.va=void 0===t.hidpi||t.hidpi,this.M=null,this.B=[0,0],this.R=0,this.I=void 0!==t.ratio?t.ratio:1.5}ww.prototype.T=function(){return this.f},ww.prototype.fa=function(){return this.l},ww.prototype.pa=function(t){var e,i,s,a,r,n,p;200!=t.statusCode||"OK"!=t.statusDescription||"ValidCredentials"!=t.authenticationResultCode||1!=t.resourceSets.length||1!=t.resourceSets[0].resources.length?lb(this,"error"):(-1==(e=t.brandLogoUri).indexOf("https")&&(e=e.replace("http","https")),i=t.resourceSets[0].resources[0],s=-1==this.C?i.zoomMax:this.C,a=ne({extent:t=pe(this.c),minZoom:i.zoomMin,maxZoom:s,tileSize:(i.imageWidth==i.imageHeight?i.imageWidth:[i.imageWidth,i.imageHeight])/this.nb()}),this.tileGrid=a,r=this.R,n=this.B,this.tileUrlFunction=nw(i.imageUrlSubdomains.map(function(t){var e=[0,0,0],o=i.imageUrl.replace("{subdomain}",t).replace("{culture}",r);return function(t){if(t)return qt(t[0],t[1],-t[2]-1,e),t=o,n&&(t+="&dpi=d1&device=mobile"),t.replace("{quadkey}",function(t){for(var e=t[0],o=Array(e),i=1<<e-1,r=0;r<e;++r){var n=48;t[1]&i&&(n+=1),t[2]&i&&(n+=2),o[r]=String.fromCharCode(n),i>>=1}return o.join("")}(e))}})),i.imageryProviders&&(p=Wt(Bt("EPSG:4326"),this.c),(t=i.imageryProviders.map(function(t){var e=t.attribution,n={};return t.coverageAreas.forEach(function(t){var e,o=t.zoomMin,i=Math.min(t.zoomMax,s);for(t=pt([(t=t.bbox)[1],t[0],t[3],t[2]],p),e=o;e<=i;++e){var r=e.toString(),o=ee(a,t,e);r in n?n[r].push(o):n[r]=[o]}}),new he({html:e,tileRanges:n})})).push(xw),this.ua(t)),this.D=e,lb(this,"ready"))},e(Sw,dw),e(Mw,Sw),(Mu=Mw.prototype).Kk=function(){return this.f},Mu.tq=function(t){ht(this.f,t),Pw(this)},Mu.Xp=function(t){this.f=t||{},Pw(this)},Mu.Dl=function(t,e){if(!(e=e.target).status||200<=e.status&&e.status<300){try{var o=JSON.parse(e.responseText)}catch(t){return void lb(this,"error")}Aw(this,o),this.l[t]=o,lb(this,"ready")}else lb(this,"error")},Mu.Cl=function(){lb(this,"error")},e(Ew,ub),(Mu=Ew.prototype).$n=function(){return this.distance},Mu.ao=function(){return this.source},Mu.Yd=function(t,e,o){this.source.Yd(t,e,o),e!==this.resolution&&(this.clear(),this.resolution=e,Tw(this),this.cd(this.features))},Mu.Yp=function(t){this.distance=t,this.sa()},Mu.sa=function(){this.clear(),Tw(this),this.cd(this.features),ub.prototype.sa.call(this)},e(Cw,Im),(Mu=Cw.prototype).co=function(){return this.v},Mu.Jc=function(t,e,o,i){if(void 0===this.f)return null;e=Nm(this,e),o=this.T?o:1;var r=this.M;if(r&&this.I==this.i&&r.resolution==e&&r.a==o&&N(r.G(),t))return r;ht(r={F:"image",FORMAT:"PNG32",TRANSPARENT:!0},this.v);var n=((t=t.slice())[0]+t[2])/2,s=(t[1]+t[3])/2;1!=this.B&&(a=this.B*rt(t)/2,p=this.B*tt(t)/2,t[0]=n-a,t[1]=s-p,t[2]=n+a,t[3]=s+p);var a=e/o,p=Math.ceil(rt(t)/a),h=Math.ceil(tt(t)/a);return t[0]=n-a*p/2,t[2]=n+a*p/2,t[1]=s-a*h/2,t[3]=s+a*h/2,this.l[0]=p,this.l[1]=h,n=t,s=this.l,a=o,i=i.mb.split(":").pop(),r.SIZE=s[0]+","+s[1],r.BBOX=n.join(","),r.BBOXSR=i,r.IMAGESR=i,r.DPI=Math.round(90*a),(n=(i=this.f).replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage"))==i&&O(!1,50),r=jw(n,r),this.M=new qd(t,e,o,this.j,r,this.R,this.g),this.I=this.i,de(this.M,"change",this.o,this),this.M},Mu.bo=function(){return this.g},Mu.eo=function(){return this.f},Mu.fo=function(t){this.M=null,this.g=t,this.s()},Mu.ho=function(t){t!=this.f&&(this.f=t,this.M=null,this.s())},Mu.io=function(t){ht(this.v,t),this.M=null,this.s()},e(Lw,Im),(Mu=Lw.prototype).ko=function(){return this.g},Mu.Jc=function(t,e,o){e=Nm(this,e),o=this.T?o:1;var i=this.M;if(i&&this.B==this.i&&i.resolution==e&&i.a==o&&N(i.G(),t))return i;1!=this.v&&at(t=t.slice(),this.v);var r,n,s,a,p,h,l,u=[rt(t)/e*o,tt(t)/e*o];return void 0!==this.I?(i=this.I,r=$(t),n=this.pa,s=rt(t),a=tt(t),p=u[0],h=u[1],l=.0254/this.l,u={OPERATION:this.va?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol.source.ImageMapGuide source",CLIP:"1",SETDISPLAYDPI:this.l,SETDISPLAYWIDTH:Math.round(u[0]),SETDISPLAYHEIGHT:Math.round(u[1]),SETVIEWSCALE:p*a<h*s?s*n/(p*l):a*n/(h*l),SETVIEWCENTERX:r[0],SETVIEWCENTERY:r[1]},ht(u,this.g),i=jw(i,u),de(i=new qd(t,e,o,this.j,i,this.R,this.f),"change",this.o,this)):i=null,this.M=i,this.B=this.i,i},Mu.jo=function(){return this.f},Mu.mo=function(t){ht(this.g,t),this.s()},Mu.lo=function(t){this.M=null,this.f=t,this.s()},e(Rw,Im),Rw.prototype.Jc=function(t){return nt(t,this.M.G())?this.M:null},Rw.prototype.o=function(t){var e,o,i,r,n;2==this.M.getState()&&(i=this.M.G(),e=this.M.Y(),n=this.f?(o=this.f[0],this.f[1]):(o=e.width,e.height),(i=Math.ceil(rt(i)/(tt(i)/n)))!=o&&(r=(i=Ye(i,n)).canvas,i.drawImage(e,0,0,o,n,0,0,r.width,r.height),this.M.Og(r))),Im.prototype.o.call(this,t)},e(Iw,Im);var Nw=[101,101];function Fw(t,e,o,i,r,n){if(O(void 0!==t.g,9),n[t.l?"CRS":"SRS"]=r.mb,"STYLES"in t.f||(n.STYLES=""),1!=i)switch(t.T){case"geoserver":i=90*i+.5|0,n.FORMAT_OPTIONS="FORMAT_OPTIONS"in n?n.FORMAT_OPTIONS+";dpi:"+i:"dpi:"+i;break;case"mapserver":n.MAP_RESOLUTION=90*i;break;case"carmentaserver":case"qgis":n.DPI=90*i;break;default:O(!1,8)}return n.WIDTH=o[0],n.HEIGHT=o[1],o=r.b,e=t.l&&"ne"==o.substr(0,2)?[e[1],e[0],e[3],e[2]]:e,n.BBOX=e.join(","),jw(t.g,n)}function kw(t){t.l=0<=Pi(t.f.VERSION||"1.3.0")}function Dw(t){var e=void 0!==(t=t||{}).attributions?t.attributions:[Ow];Sw.call(this,{attributions:e,cacheSize:t.cacheSize,crossOrigin:void 0!==t.crossOrigin?t.crossOrigin:"anonymous",opaque:void 0===t.opaque||t.opaque,maxZoom:void 0!==t.maxZoom?t.maxZoom:19,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,url:void 0!==t.url?t.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png",wrapX:t.wrapX})}(Mu=Iw.prototype).so=function(t,e,o,i){if(void 0!==this.g){var r=Q(t,e,0,Nw),n={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.f.LAYERS};return ht(n,this.f,i),i=Math.floor((r[3]-t[1])/e),n[this.l?"I":"X"]=Math.floor((t[0]-r[0])/e),n[this.l?"J":"Y"]=i,Fw(this,r,Nw,1,Bt(o),n)}},Mu.uo=function(){return this.f},Mu.Jc=function(t,e,o,i){if(void 0===this.g)return null;var r=(e=Nm(this,e))/(o=!(1==o||this.va&&void 0!==this.T)?1:o),n=$(t),s=Q(n,r,0,[Math.ceil(rt(t)/r),Math.ceil(tt(t)/r)]);return t=Q(n,r,0,[Math.ceil(this.I*rt(t)/r),Math.ceil(this.I*tt(t)/r)]),(n=this.M)&&this.R==this.i&&n.resolution==e&&n.a==o&&N(n.G(),s)?n:(ht(s={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0},this.f),this.B[0]=Math.round(rt(t)/r),this.B[1]=Math.round(tt(t)/r),i=Fw(this,t,this.B,o,i,s),this.M=new qd(t,e,o,this.j,i,this.pa,this.v),this.R=this.i,de(this.M,"change",this.o,this),this.M)},Mu.to=function(){return this.v},Mu.vo=function(){return this.g},Mu.wo=function(t){this.M=null,this.v=t,this.s()},Mu.xo=function(t){t!=this.g&&(this.g=t,this.M=null,this.s())},Mu.yo=function(t){ht(this.f,t),kw(this),this.M=null,this.s()},e(Dw,Sw);var Ow=new he({html:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors.'});function Uw(t){this.B=null,this.va=void 0!==t.operationType?t.operationType:"pixel",this.Sa=void 0!==t.threads?t.threads:1,this.g=function(t){for(var e=t.length,o=Array(e),i=0;i<e;++i){var r=i,n=t[i],s=null;n instanceof lw?(n=new _m({source:n}),s=new Wm(n)):n instanceof Im&&(n=new Vm({source:n}),s=new Am(n)),o[r]=s}return o}(t.sources);for(var e=0,o=this.g.length;e<o;++e)de(this.g[e],"change",this.s,this);this.T=new mi(function(){return 1},this.s.bind(this));for(var o={},i=0,r=(e=this.g.map(function(t){return Gn(t.a)})).length;i<r;++i)o[G(e[i].layer)]=e[i];this.f=null,this.I={animate:!1,attributions:{},coordinateToPixelTransform:Yn(),extent:null,focus:null,index:0,layerStates:o,layerStatesArray:e,logos:{},pixelRatio:1,pixelToCoordinateTransform:Yn(),postRenderFunctions:[],size:[0,0],skippedFeatureUids:{},tileQueue:this.T,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{}},Im.call(this,{}),t.operation&&this.v(t.operation,t.lib)}Ya.df={},Ya.df.Af=function(){},function(t){function a(u){var c=!0;try{new ImageData(10,10)}catch(t){c=!1}return function(t){var e=t.buffers,o=t.meta,i=t.width,r=t.height,n=e.length,s=e[0].byteLength;if(t.imageOps){for(s=Array(n),t=0;t<n;++t){var a=t,p=new Uint8ClampedArray(e[t]),h=i,l=r,p=c?new ImageData(p,h,l):{data:p,width:h,height:l};s[a]=p}i=u(s,o).data}else{for(i=new Uint8ClampedArray(s),r=Array(n),a=Array(n),t=0;t<n;++t)r[t]=new Uint8ClampedArray(e[t]),a[t]=[0,0,0,0];for(e=0;e<s;e+=4){for(t=0;t<n;++t)p=r[t],a[t][0]=p[e],a[t][1]=p[e+1],a[t][2]=p[e+2],a[t][3]=p[e+3];t=u(a,o),i[e]=t[0],i[e+1]=t[1],i[e+2]=t[2],i[e+3]=t[3]}}return i.buffer}}function e(t){this.Ff=!!t.$l;var e,o,i,r,n=[];if(e=0===t.threads?0:!this.Ff&&t.threads||1)for(var s=0;s<e;++s)n[s]=function(e,t){var o=Object.keys(e.lib||{}).map(function(t){return"var "+t+" = "+e.lib[t].toString()+";"}).concat(["var __minion__ = ("+a.toString()+")(",e.operation.toString(),");",'self.addEventListener("message", function(event) {'," var buffer = __minion__(event.data);"," self.postMessage({buffer: buffer, meta: event.data.meta}, [buffer]);","});"]),o=URL.createObjectURL(new Blob(o,{type:"text/javascript"}));return(o=new Worker(o)).addEventListener("message",t),o}(t,this.gh.bind(this,s));else n[0]=(o=t,i=this.gh.bind(this,0),r=a(o.operation),{postMessage:function(t){setTimeout(function(){i({data:{buffer:r(t),meta:t.meta}})},0)}});this.qe=n,this.Ed=[],this.fk=t.rp||1/0,this.oe=0,this.bd={},this.Gf=null}var h=!0;try{new ImageData(10,10)}catch(t){h=!1}var l=document.createElement("canvas").getContext("2d");e.prototype.pp=function(t,e,o){this.dk({inputs:t,Qh:e,callback:o}),this.dh()},e.prototype.dk=function(t){for(this.Ed.push(t);this.Ed.length>this.fk;)this.Ed.shift().callback(null,null)},e.prototype.dh=function(){if(0===this.oe&&0<this.Ed.length){var t=this.Gf=this.Ed.shift(),e=t.inputs[0].width,o=t.inputs[0].height,i=t.inputs.map(function(t){return t.data.buffer}),r=this.qe.length;if(1===(this.oe=r))this.qe[0].postMessage({buffers:i,meta:t.Qh,imageOps:this.Ff,width:e,height:o},i);else for(var n=4*Math.ceil(t.inputs[0].data.length/4/r),s=0;s<r;++s){for(var a=s*n,p=[],h=0,l=i.length;h<l;++h)p.push(i[s].slice(a,a+n));this.qe[s].postMessage({buffers:p,meta:t.Qh,imageOps:this.Ff,width:e,height:o},p)}}},e.prototype.gh=function(t,e){this.Jq||(this.bd[t]=e.data,--this.oe,0===this.oe&&this.gk())},e.prototype.gk=function(){var t,e,o=this.Gf,i=this.qe.length;if(1===i)var r=new Uint8ClampedArray(this.bd[0].buffer),n=this.bd[0].meta;else for(var s=o.inputs[0].data.length,r=new Uint8ClampedArray(s),n=Array(s),s=4*Math.ceil(s/4/i),a=0;a<i;++a){var p=a*s;r.set(new Uint8ClampedArray(this.bd[a].buffer),p),n[a]=this.bd[a].meta}this.Gf=null,this.bd={},o.callback(null,(t=r,e=o.inputs[0].width,o=o.inputs[0].height,h?new ImageData(t,e,o):((e=l.createImageData(e,o)).data.set(t),e)),n),this.dh()},t.default={Af:e},t.Af=e}(Ya.df=Ya.df||{}),e(Uw,Im),Uw.prototype.v=function(t,e){this.B=new Ya.df.Af({operation:t,$l:"image"===this.va,rp:1,lib:e,threads:this.Sa}),this.s()},Uw.prototype.Y=function(t,e,o,i){o=!0;for(var r=0,n=this.g.length;r<n;++r)if("ready"!==(h=this.g[r].a.ha()).getState()){o=!1;break}if(!o)return null;if((o=ht({},this.I)).viewState=ht({},o.viewState),h=$(t),o.extent=t.slice(),o.focus=h,o.size[0]=Math.round(rt(t)/e),o.size[1]=Math.round(tt(t)/e),(r=o.viewState).center=h,r.projection=i,r.resolution=e,wi((this.l=o).tileQueue,16,16),this.f&&(i=this.f.resolution,o=this.f.G(),e===i&&Z(t,o)||(this.f=null)),!this.f||this.i!==this.R)t:{for(t=this.l,i=this.g.length,e=Array(i),o=0;o<i;++o){var s,a,p,h=this.g[o],n=t.layerStatesArray[o];if(!(h=h.sd(r=t,n)?(s=r.size[0],a=r.size[1],!Gw||(p=Gw.canvas).width!==s||p.height!==a?Gw=Ye(s,a):Gw.clearRect(0,0,s,a),h.S(r,n,Gw),Gw.getImageData(0,0,s,a)):null))break t;e[o]=h}this.b(new Bw(Xw,t,i={})),this.B.pp(e,i,this.pa.bind(this,t))}return this.f},Uw.prototype.pa=function(t,e,o,i){var r,n;!e&&o&&(e=t.extent,(r=t.viewState.resolution)===this.l.viewState.resolution&&Z(e,this.l.extent)&&(this.f?n=this.f.Y().getContext("2d"):(n=Ye(Math.round(rt(e)/r),Math.round(tt(e)/r)),this.f=new Jd(e,r,1,this.j,n.canvas)),n.putImageData(o,0,0),this.s(),this.R=this.i,this.b(new Bw(Vw,t,i))))};var Gw=null;function Bw(t,e,o){Me.call(this,t),this.extent=e.extent,this.resolution=e.viewState.resolution/e.pixelRatio,this.data=o}e(Bw,Me),Uw.prototype.Jc=function(){return null};var Xw="beforeoperations",Vw="afteroperations";function Ww(t){var e=t.layer.indexOf("-"),e=zw[-1==e?t.layer:t.layer.slice(0,e)],o=Kw[t.layer];Sw.call(this,{attributions:Zw,cacheSize:t.cacheSize,crossOrigin:"anonymous",maxZoom:(null!=t.maxZoom?t:e).maxZoom,minZoom:(null!=t.minZoom?t:e).minZoom,opaque:o.opaque,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,url:void 0!==t.url?t.url:"https://stamen-tiles-{a-d}.a.ssl.fastly.net/"+t.layer+"/{z}/{x}/{y}."+o.Lb,wrapX:t.wrapX})}e(Ww,Sw);var Zw=[new he({html:'Map tiles by <a href="http://stamen.com/">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.'}),Ow],Kw={terrain:{Lb:"jpg",opaque:!0},"terrain-background":{Lb:"jpg",opaque:!0},"terrain-labels":{Lb:"png",opaque:!1},"terrain-lines":{Lb:"png",opaque:!1},"toner-background":{Lb:"png",opaque:!0},toner:{Lb:"png",opaque:!0},"toner-hybrid":{Lb:"png",opaque:!1},"toner-labels":{Lb:"png",opaque:!1},"toner-lines":{Lb:"png",opaque:!1},"toner-lite":{Lb:"png",opaque:!0},watercolor:{Lb:"jpg",opaque:!0}},zw={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:1,maxZoom:16}};function Yw(t){dw.call(this,{attributions:(t=t||{}).attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX}),this.f=t.params||{},this.l=V(),cw(this,Hw(this))}function Hw(t){var e,o=0,i=[];for(e in t.f)i[o++]=e+"-"+t.f[e];return i.join("/")}function qw(t){lw.call(this,{opaque:!1,projection:t.projection,tileGrid:t.tileGrid,wrapX:void 0===t.wrapX||t.wrapX})}function Jw(t,e,o){_d.call(this,t,2),this.c=e,this.Ia=o,this.a=null}function _w(t){var e;this.f=null,dw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,projection:Bt("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:"loading",tileLoadFunction:t.tileLoadFunction,wrapX:void 0===t.wrapX||t.wrapX}),t.url?t.jsonp?ow(t.url,this.og.bind(this),this.Ve.bind(this)):((e=new XMLHttpRequest).addEventListener("load",this.Ao.bind(this)),e.addEventListener("error",this.zo.bind(this)),e.open("GET",t.url),e.send()):t.tileJSON?this.og(t.tileJSON):O(!1,51)}function $w(t){var e;lw.call(this,{projection:Bt("EPSG:3857"),state:"loading"}),this.v=void 0===t.preemptive||t.preemptive,this.l=sw,this.g=void 0,this.f=t.jsonp||!1,t.url?this.f?ow(t.url,this.pg.bind(this),this.We.bind(this)):((e=new XMLHttpRequest).addEventListener("load",this.Eo.bind(this)),e.addEventListener("error",this.Do.bind(this)),e.open("GET",t.url),e.send()):t.tileJSON?this.pg(t.tileJSON):O(!1,51)}function Qw(t,e,o,i,r,n){_d.call(this,t,e),this.o=o,this.a=i,this.v=r,this.c=this.j=this.g=null,this.l=n}function tx(t){var e;0==t.state&&(t.state=1,t.l?ow(t.o,t.Ji.bind(t),t.De.bind(t)):((e=new XMLHttpRequest).addEventListener("load",t.Co.bind(t)),e.addEventListener("error",t.Bo.bind(t)),e.open("GET",t.o),e.send()))}function ex(t){var e=(t=t||{}).params||{};dw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,opaque:!(!("TRANSPARENT"in e)||e.TRANSPARENT),projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX}),this.C=void 0!==t.gutter?t.gutter:0,this.f=e,this.l=!0,this.B=t.serverType,this.T=void 0===t.hidpi||t.hidpi,this.R="",ix(this),this.fa=V(),nx(this),cw(this,rx(this))}function ox(t,e,o,i,r,n,s){var a=t.urls;if(a){if(s.WIDTH=o[0],s.HEIGHT=o[1],s[t.l?"CRS":"SRS"]=n.mb,"STYLES"in t.f||(s.STYLES=""),1!=r)switch(t.B){case"geoserver":o=90*r+.5|0,s.FORMAT_OPTIONS="FORMAT_OPTIONS"in s?s.FORMAT_OPTIONS+";dpi:"+o:"dpi:"+o;break;case"mapserver":s.MAP_RESOLUTION=90*r;break;case"carmentaserver":case"qgis":s.DPI=90*r;break;default:O(!1,52)}return n=n.b,t.l&&"ne"==n.substr(0,2)&&(t=i[0],i[0]=i[1],i[1]=t,t=i[2],i[2]=i[3],i[3]=t),s.BBOX=i.join(","),jw(1==a.length?a[0]:a[L((e[1]<<e[0])+e[2],a.length)],s)}}function ix(t){var e=0,o=[];if(t.urls)for(var i=0,r=t.urls.length;i<r;++i)o[e++]=t.urls[i];t.R=o.join("#")}function rx(t){var e,o=0,i=[];for(e in t.f)i[o++]=e+"-"+t.f[e];return i.join("/")}function nx(t){t.l=0<=Pi(t.f.VERSION||"1.3.0")}function sx(t,e,o,i,r,n,s,a,p,h,l,u,c,f){var y,g;_d.call(this,t,e),this.j=null,this.o={Nd:!1,Kg:null,mf:-1,Lg:-1},this.c=h,this.a=[],this.u=o,this.v=n,this.g=[],this.l=[],n&&(y=p.Aa(n),g=p.Da(t[0]),a.Rf(y,a.tc(g),function(t){var e,o=et(y,a.Aa(t));.5<=rt(o)/g&&.5<=tt(o)/g&&(o=t.toString(),(e=h[o])||(e=s(t,l,u),e=h[o]=new c(t,null==e?4:0,null==e?"":e,i,r),this.l.push(de(e,"change",f))),e.j++,this.a.push(o))}.bind(this)))}function ax(t,e){t.Pg($h(e,t.o,t.$o.bind(t),t.Zo.bind(t)))}function px(t,e,o,i,r){_d.call(this,t,e),this.j=0,this.o=i,this.g=null,this.c={},this.u=r,this.l=o}function hx(t){gw.call(this,{attributions:t.attributions,cacheSize:void 0!==t.cacheSize?t.cacheSize:128,extent:t.extent,logo:t.logo,opaque:!1,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction||ax,tileUrlFunction:t.tileUrlFunction,tilePixelRatio:t.tilePixelRatio,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX}),this.g=t.format||null,this.v={},this.l=null==t.overlaps||t.overlaps,this.tileClass=t.tileClass||px,this.f={},this.tileGrid||(this.tileGrid=this.Ta(Bt(t.projection||"EPSG:3857")))}function lx(t){this.o=t.matrixIds,Jt.call(this,{extent:t.extent,origin:t.origin,origins:t.origins,resolutions:t.resolutions,tileSize:t.tileSize,tileSizes:t.tileSizes,sizes:t.sizes})}function ux(t,e,o){var r=[],n=[],s=[],a=[],p=[],h=void 0!==o?o:[],l=(o=Bt(t.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"))).sc(),u="ne"==o.b.substr(0,2);return t.TileMatrix.sort(function(t,e){return e.ScaleDenominator-t.ScaleDenominator}),t.TileMatrix.forEach(function(e){var t,o,i;(t=!(0<h.length)||b(h,function(t){return e.Identifier==t.TileMatrix}))&&(n.push(e.Identifier),t=28e-5*e.ScaleDenominator/l,o=e.TileWidth,i=e.TileHeight,u?s.push([e.TopLeftCorner[1],e.TopLeftCorner[0]]):s.push(e.TopLeftCorner),r.push(t),a.push(o==i?o:[o,i]),p.push([e.MatrixWidth,-e.MatrixHeight]))}),new lx({extent:e,origins:s,resolutions:r,matrixIds:n,tileSizes:a,sizes:p})}function cx(t){this.fa=void 0!==t.version?t.version:"1.0.0",this.C=void 0!==t.format?t.format:"image/jpeg",this.f=t.dimensions||{},this.B=t.layer,this.l=t.matrixSet,this.R=t.style;var e=t.urls;void 0===e&&void 0!==t.url&&(e=aw(t.url));var i=this.T=void 0!==t.requestEncoding?t.requestEncoding:"KVP",r=t.tileGrid,o={layer:this.B,style:this.R,tilematrixset:this.l};"KVP"==i&&ht(o,{Service:"WMTS",Request:"GetTile",Version:this.fa,Format:this.C});var n=this.f,s=e&&0<e.length?nw(e.map(function(e){return e="KVP"==i?jw(e,o):e.replace(/\{(\w+?)\}/g,function(t,e){return e.toLowerCase()in o?o[e.toLowerCase()]:t}),function(t){if(t){var o={TileMatrix:r.o[t[0]],TileCol:t[1],TileRow:-t[2]-1};return ht(o,n),t=e,"KVP"==i?jw(t,o):t.replace(/\{(\w+?)\}/g,function(t,e){return o[e]})}}})):sw;dw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileClass:t.tileClass,tileGrid:r,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:s,urls:e,wrapX:void 0!==t.wrapX&&t.wrapX}),cw(this,fx(this))}function fx(t){var e,o=0,i=[];for(e in t.f)i[o++]=e+"-"+t.f[e];return i.join("/")}function yx(t){var e=(t=t||{}).size,o=e[0],i=e[1],n=[],r=256;switch(void 0!==t.tierSizeCalculation?t.tierSizeCalculation:dx){case dx:for(;r<o||r<i;)n.push([Math.ceil(o/r),Math.ceil(i/r)]),r+=r;break;case vx:for(;r<o||r<i;)n.push([Math.ceil(o/r),Math.ceil(i/r)]),o>>=1,i>>=1;break;default:O(!1,53)}n.push([1,1]),n.reverse();for(var r=[1],s=[0],i=1,o=n.length;i<o;i++)r.push(1<<i),s.push(n[i-1][0]*n[i-1][1]+s[i-1]);r.reverse(),e=new Jt({extent:e=[0,-e[1],e[0],0],origin:ot(e),resolutions:r}),(r=t.url)&&-1==r.indexOf("{TileGroup}")&&(r+="{TileGroup}/{z}-{x}-{y}.jpg"),r=nw((r=aw(r)).map(function(r){return function(t){if(t){var e=t[0],o=t[1],i={z:e,x:o,y:t=-t[2]-1,TileGroup:"TileGroup"+((o+t*n[e][0]+s[e])/256|0)};return r.replace(/\{(\w+?)\}/g,function(t,e){return i[e]})}}})),dw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileClass:gx,tileGrid:e,tileUrlFunction:r})}function gx(t,e,o,i,r){tv.call(this,t,e,o,i,r),this.a=null}e(Yw,dw),Yw.prototype.C=function(){return this.f},Yw.prototype.nb=function(t){return t},Yw.prototype.Fc=function(t,e,o){var i=this.tileGrid;if(!((i=i||this.Ta(o)).b.length<=t[0])){var r=i.Aa(t,this.l),n=X(i.gb(t[0]),this.o);1!=e&&(n=u(n,e,this.o)),ht(i={F:"image",FORMAT:"PNG32",TRANSPARENT:!0},this.f);var s=this.urls;return t=s?(o=o.mb.split(":").pop(),i.SIZE=n[0]+","+n[1],i.BBOX=r.join(","),i.BBOXSR=o,i.IMAGESR=o,i.DPI=Math.round(i.DPI?i.DPI*e:90*e),jw(t=(1==s.length?s[0]:s[L((t[1]<<t[0])+t[2],s.length)]).replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage"),i)):void 0}},Yw.prototype.B=function(t){ht(this.f,t),cw(this,Hw(this))},e(qw,lw),qw.prototype.Nc=function(t,e,o){var i=this.Sb(t,e,o);if(this.a.b.hasOwnProperty(i))return this.a.get(i);var r=X(this.tileGrid.gb(t)),r=new Jw(t=[t,e,o],r,e=(e=fw(this,t))?fw(this,e).toString():"");return this.a.set(i,r),r},e(Jw,_d),Jw.prototype.Y=function(){if(this.a)return this.a;var t=this.c,e=Ye(t[0],t[1]);return e.strokeStyle="black",e.strokeRect(.5,.5,t[0]+.5,t[1]+.5),e.fillStyle="black",e.textAlign="center",e.textBaseline="middle",e.font="24px sans-serif",e.fillText(this.Ia,t[0]/2,t[1]/2),this.a=e.canvas},Jw.prototype.load=function(){},e(_w,dw),(Mu=_w.prototype).Ao=function(t){if(!(t=t.target).status||200<=t.status&&t.status<300){try{var e=JSON.parse(t.responseText)}catch(t){return void this.Ve()}this.og(e)}else this.Ve()},Mu.zo=function(){this.Ve()},Mu.pl=function(){return this.f},Mu.og=function(t){var e,o=Bt("EPSG:4326"),i=this.c;t.bounds&&(n=Wt(o,i),e=pt(t.bounds,n));var r=t.minzoom||0,n=t.maxzoom||22;if(this.tileGrid=i=ne({extent:pe(i),maxZoom:n,minZoom:r}),this.tileUrlFunction=rw(t.tiles,i),void 0!==t.attribution&&!this.j){o=void 0!==e?e:o.G(),e={};for(;r<=n;++r)e[r.toString()]=[ee(i,o,r)];this.ua([new he({html:t.attribution,tileRanges:e})])}this.f=t,lb(this,"ready")},Mu.Ve=function(){lb(this,"error")},e($w,lw),(Mu=$w.prototype).Eo=function(t){if(!(t=t.target).status||200<=t.status&&t.status<300){try{var e=JSON.parse(t.responseText)}catch(t){return void this.We()}this.pg(e)}else this.We()},Mu.Do=function(){this.We()},Mu.ml=function(){return this.g},Mu.zk=function(t,e,o,i,r){var n,s,a;this.tileGrid?(e=this.tileGrid.Be(t,e),e=this.Nc(e[0],e[1],e[2],1,this.c),n=t,s=o,a=i,t=r,0==e.state&&!0===t?(ve(e,"change",function(){s.call(a,this.getData(n))},e),tx(e)):!0===t?setTimeout(function(){s.call(a,this.getData(n))}.bind(e),0):s.call(a,e.getData(n))):!0===r?setTimeout(function(){o.call(i,null)},0):o.call(i,null)},Mu.We=function(){lb(this,"error")},Mu.pg=function(t){var e,o=Bt("EPSG:4326"),i=this.c;t.bounds&&(n=Wt(o,i),e=pt(t.bounds,n));var r=t.minzoom||0,n=t.maxzoom||22;this.tileGrid=i=ne({extent:pe(i),maxZoom:n,minZoom:r}),this.g=t.template;var s=t.grids;if(s){if(this.l=rw(s,i),void 0!==t.attribution){for(o=void 0!==e?e:o.G(),e={};r<=n;++r)e[s=r.toString()]=[ee(i,o,r)];this.ua([new he({html:t.attribution,tileRanges:e})])}lb(this,"ready")}else lb(this,"error")},Mu.Nc=function(t,e,o,i,r){var n=this.Sb(t,e,o);return this.a.b.hasOwnProperty(n)?this.a.get(n):(e=fw(this,t=[t,e,o],r),i=new Qw(t,void 0!==(i=this.l(e,i,r))?0:4,void 0!==i?i:"",this.tileGrid.Aa(t),this.v,this.f),this.a.set(n,i),i)},Mu.Ug=function(t,e,o){t=this.Sb(t,e,o),this.a.b.hasOwnProperty(t)&&this.a.get(t)},e(Qw,_d),(Mu=Qw.prototype).Y=function(){return null},Mu.getData=function(t){if(!this.g||!this.j)return null;var e=this.g[Math.floor((1-(t[1]-this.a[1])/(this.a[3]-this.a[1]))*this.g.length)];return"string"!=typeof e?null:(93<=(e=e.charCodeAt(Math.floor((t[0]-this.a[0])/(this.a[2]-this.a[0])*e.length)))&&e--,35<=e&&e--,t=null,(e-=32)in this.j&&(e=this.j[e],t=this.c&&e in this.c?this.c[e]:e),t)},Mu.bb=function(){return this.o},Mu.De=function(){this.state=3,this.s()},Mu.Ji=function(t){this.g=t.grid,this.j=t.keys,this.c=t.data,this.state=4,this.s()},Mu.Co=function(t){if(!(t=t.target).status||200<=t.status&&t.status<300){try{var e=JSON.parse(t.responseText)}catch(t){return void this.De()}this.Ji(e)}else this.De()},Mu.Bo=function(){this.De()},Mu.load=function(){this.v&&tx(this)},e(ex,dw),(Mu=ex.prototype).Fo=function(t,e,o,i){if(o=Bt(o),e=(s=(s=this.tileGrid)||this.Ta(o)).Be(t,e),!(s.b.length<=e[0])){var r=s.Da(e[0]),n=s.Aa(e,this.fa),s=X(s.gb(e[0]),this.o),a=this.C;return a&&(s=l(s,a,this.o),n=A(n,r*a,n)),a={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.f.LAYERS},ht(a,this.f,i),i=Math.floor((n[3]-t[1])/r),a[this.l?"I":"X"]=Math.floor((t[0]-n[0])/r),a[this.l?"J":"Y"]=i,ox(this,e,s,n,1,o,a)}},Mu.Xf=function(){return this.C},Mu.Sb=function(t,e,o){return this.R+dw.prototype.Sb.call(this,t,e,o)},Mu.Go=function(){return this.f},Mu.nb=function(t){return this.T&&void 0!==this.B?t:1},Mu.Fc=function(t,e,o){if(!((n=(n=this.tileGrid)||this.Ta(o)).b.length<=t[0])){1==e||this.T&&void 0!==this.B||(e=1);var i=n.Da(t[0]),r=n.Aa(t,this.fa),n=X(n.gb(t[0]),this.o),s=this.C;return s&&(n=l(n,s,this.o),r=A(r,i*s,r)),1!=e&&(n=u(n,e,this.o)),ht(i={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0},this.f),ox(this,t,n,r,e,o,i)}},Mu.eb=function(t){dw.prototype.eb.call(this,t),ix(this)},Mu.Ho=function(t){ht(this.f,t),ix(this),nx(this),cw(this,rx(this))},e(sx,_d),sx.prototype.ka=function(){for(var t=0,e=this.a.length;t<e;++t){var o=this.a[t],i=this.c[o];i.j--,i.j||(delete this.c[o],Se(i))}this.a.length=0,this.c=null,1==this.state&&(this.g.forEach(me),this.g.length=0),this.i&&Se(this.i),this.state=5,this.s(),this.l.forEach(me),this.l.length=0,_d.prototype.ka.call(this)},sx.prototype.Y=function(){return-1==this.o.Lg?null:this.j.canvas},sx.prototype.bb=function(){return this.a.join("/")+"/"+this.u},sx.prototype.load=function(){var r=0,n=!1;0==this.state&&Qd(this,1),1==this.state&&this.a.forEach(function(e){var o,i=this.c[e];0==i.state?(i.Pg(this.S),i.load()):3==i.state?n=!0:4==i.state&&s(this.a,e),1==i.state&&(o=de(i,"change",function(){var t=i.getState();2!=t&&3!=t||(--r,me(o),s(this.g,o),3==t&&(s(this.a,e),n=!0),r||Qd(this,0<this.a.length?2:3))}.bind(this)),this.g.push(o),++r)}.bind(this)),r||setTimeout(function(){Qd(this,0<this.a.length?2:n?3:4)}.bind(this),0)},e(px,_d),(Mu=px.prototype).ka=function(){this.g=null,this.c={},this.state=5,this.s(),_d.prototype.ka.call(this)},Mu.Lm=function(){return this.o},Mu.Km=function(){return this.g},Mu.bb=function(){return this.l},Mu.Mm=function(){return this.a},Mu.load=function(){0==this.state&&(Qd(this,1),this.u(this,this.l),this.v(null,NaN,null))},Mu.$o=function(t,e){this.ig(e),this.mj(t)},Mu.Zo=function(){Qd(this,3)},Mu.mj=function(t){this.g=t,Qd(this,2)},Mu.ig=function(t){this.a=t},Mu.Pg=function(t){this.v=t},e(hx,gw),hx.prototype.Nc=function(t,e,o,i,r){var n=this.Sb(t,e,o);return this.a.b.hasOwnProperty(n)?this.a.get(n):(i=new sx(t=[t,e,o],void 0!==(o=(e=fw(this,t,r))?this.tileUrlFunction(e,i,r):void 0)?0:4,void 0!==o?o:"",this.g,this.tileLoadFunction,e,this.tileUrlFunction,this.tileGrid,this.Ta(r),this.v,i,r,this.tileClass,this.Li.bind(this)),this.a.set(n,i),i)},hx.prototype.Ta=function(t){var e=t.mb,o=this.f[e];return o||(o=this.tileGrid,o=this.f[e]=ae(t,void 0,o?o.gb(o.minZoom):void 0)),o},hx.prototype.nb=function(t){return null==t?gw.prototype.nb.call(this,t):t},hx.prototype.Xd=function(t,e,o){return t=X(this.Ta(o).gb(t)),[Math.round(t[0]*e),Math.round(t[1]*e)]},e(lx,Jt),lx.prototype.l=function(){return this.o},e(cx,dw),(Mu=cx.prototype).Mk=function(){return this.f},Mu.Io=function(){return this.C},Mu.Jo=function(){return this.B},Mu.$k=function(){return this.l},Mu.kl=function(){return this.T},Mu.Ko=function(){return this.R},Mu.rl=function(){return this.fa},Mu.uq=function(t){ht(this.f,t),cw(this,fx(this))},e(yx,dw),e(gx,tv),gx.prototype.Y=function(){if(this.a)return this.a;var t=tv.prototype.Y.call(this);if(2!=this.state)return t;if(256==t.width&&256==t.height)return this.a=t;var e=Ye(256,256);return e.drawImage(t,0,0),this.a=e.canvas};var dx="default",vx="truncated";function bx(t,e){this.b=e,this.a=[{x:0,y:0,width:t,height:t}],this.c={},this.i=Ye(t,t),this.f=this.i.canvas}function mx(t,e,o,i){e=[e,1],0<o.width&&0<o.height&&e.push(o),0<i.width&&0<i.height&&e.push(i),t.a.splice.apply(t.a,e)}function wx(t){this.a=void 0!==(t=t||{}).initialSize?t.initialSize:256,this.i=void 0!==t.maxSize?t.maxSize:void 0!==Xo?Xo:2048,this.b=void 0!==t.space?t.space:1,this.f=[new bx(this.a,this.b)],this.c=this.a,this.g=[new bx(this.c,this.b)]}function xx(t,e,o,i,r,n,s){for(var a=e?t.g:t.f,p=0,h=a.length;p<h;++p){var l=a[p];if(l=l.add(o,i,r,n,s))return l;l||p!==h-1||(e?(l=Math.min(2*t.c,t.i),t.c=l):(l=Math.min(2*t.a,t.i),t.a=l),l=new bx(l,t.b),a.push(l),++h)}return null}return bx.prototype.get=function(t){return this.c[t]||null},bx.prototype.add=function(t,e,o,i,r){for(var n=0,s=this.a.length;n<s;++n){var a=this.a[n];if(a.width>=e+this.b&&a.height>=o+this.b)return s={offsetX:a.x+this.b,offsetY:a.y+this.b,image:this.f},this.c[t]=s,i.call(r,this.i,a.x+this.b,a.y+this.b),e+=this.b,i=o+this.b,e=a.width-e>a.height-i?(o={x:a.x+e,y:a.y,width:a.width-e,height:a.height},{x:a.x,y:a.y+i,width:e,height:a.height-i}):(o={x:a.x+e,y:a.y,width:a.width-e,height:i},{x:a.x,y:a.y+i,width:a.width,height:a.height-i}),mx(this,t=n,o,e),s}return null},wx.prototype.add=function(t,e,o,i,r,n){return!(e+this.b>this.i||o+this.b>this.i)&&(i=xx(this,!1,t,e,o,i,n))?(t=xx(this,!0,t,e,o,r||w,n),{offsetX:i.offsetX,offsetY:i.offsetY,image:i.image,Zl:t.image}):null},t("ol.Attribution",he),he.prototype.getHTML=he.prototype.i,t("ol.Collection",Ne),Ne.prototype.extend=Ne.prototype.fg,Ne.prototype.getArray=Ne.prototype.tm,Ne.prototype.getLength=Ne.prototype.dc,Ne.prototype.insertAt=Ne.prototype.He,Ne.prototype.removeAt=Ne.prototype.Hg,Ne.prototype.setAt=Ne.prototype.Wp,t("ol.color.asArray",Be),t("ol.color.asString",Xe),t("ol.colorlike.asColorLike",ze),t("ol.control.defaults",ao),t("ol.coordinate.add",Ai),t("ol.coordinate.createStringXY",function(e){return function(t){return ki(t,e)}}),t("ol.coordinate.format",ji),t("ol.coordinate.rotate",Li),t("ol.coordinate.toStringHDMS",function(t,e){return t?Ti("NS",t[1],e)+" "+Ti("EW",t[0],e):""}),t("ol.coordinate.toStringXY",ki),t("ol.DeviceOrientation",fh),fh.prototype.getAlpha=fh.prototype.Fk,fh.prototype.getBeta=fh.prototype.Ik,fh.prototype.getGamma=fh.prototype.Ok,fh.prototype.getHeading=fh.prototype.um,fh.prototype.getTracking=fh.prototype.Th,fh.prototype.setTracking=fh.prototype.gg,t("ol.easing.easeIn",to),t("ol.easing.easeOut",eo),t("ol.easing.inAndOut",oo),t("ol.easing.linear",io),t("ol.easing.upAndDown",function(t){return t<.5?oo(2*t):1-oo(2*(t-.5))}),t("ol.extent.boundingExtent",P),t("ol.extent.buffer",A),t("ol.extent.containsCoordinate",T),t("ol.extent.containsExtent",N),t("ol.extent.containsXY",j),t("ol.extent.createEmpty",V),t("ol.extent.equals",Z),t("ol.extent.extend",K),t("ol.extent.getArea",q),t("ol.extent.getBottomLeft",J),t("ol.extent.getBottomRight",_),t("ol.extent.getCenter",$),t("ol.extent.getHeight",tt),t("ol.extent.getIntersection",et),t("ol.extent.getSize",function(t){return[t[2]-t[0],t[3]-t[1]]}),t("ol.extent.getTopLeft",ot),t("ol.extent.getTopRight",it),t("ol.extent.getWidth",rt),t("ol.extent.intersects",nt),t("ol.extent.isEmpty",st),t("ol.extent.applyTransform",pt),t("ol.Feature",Lh),Lh.prototype.getGeometry=Lh.prototype.V,Lh.prototype.getId=Lh.prototype.wm,Lh.prototype.getGeometryName=Lh.prototype.Qk,Lh.prototype.getStyle=Lh.prototype.xm,Lh.prototype.getStyleFunction=Lh.prototype.Lc,Lh.prototype.setGeometry=Lh.prototype.Ra,Lh.prototype.setStyle=Lh.prototype.hg,Lh.prototype.setId=Lh.prototype.jc,Lh.prototype.setGeometryName=Lh.prototype.Tc,t("ol.featureloader.xhr",Qh),t("ol.Geolocation",Gd),Gd.prototype.getAccuracy=Gd.prototype.Dk,Gd.prototype.getAccuracyGeometry=Gd.prototype.Ek,Gd.prototype.getAltitude=Gd.prototype.Gk,Gd.prototype.getAltitudeAccuracy=Gd.prototype.Hk,Gd.prototype.getHeading=Gd.prototype.ym,Gd.prototype.getPosition=Gd.prototype.zm,Gd.prototype.getProjection=Gd.prototype.Uh,Gd.prototype.getSpeed=Gd.prototype.ll,Gd.prototype.getTracking=Gd.prototype.Vh,Gd.prototype.getTrackingOptions=Gd.prototype.Gh,Gd.prototype.setProjection=Gd.prototype.Wh,Gd.prototype.setTracking=Gd.prototype.Ke,Gd.prototype.setTrackingOptions=Gd.prototype.wj,t("ol.Graticule",Wd),Wd.prototype.getMap=Wd.prototype.Cm,Wd.prototype.getMeridians=Wd.prototype.al,Wd.prototype.getParallels=Wd.prototype.hl,t("ol.has.DEVICE_PIXEL_RATIO",Co),t("ol.has.CANVAS",Ro),t("ol.has.DEVICE_ORIENTATION",Io),t("ol.has.GEOLOCATION",No),t("ol.has.TOUCH",Fo),t("ol.has.WEBGL",Go),qd.prototype.getImage=qd.prototype.Y,tv.prototype.getImage=tv.prototype.Y,t("ol.inherits",e),t("ol.interaction.defaults",On),t("ol.Kinetic",Nr),t("ol.loadingstrategy.all",ab),t("ol.loadingstrategy.bbox",function(t){return[t]}),t("ol.loadingstrategy.tile",function(i){return function(t,e){e=i.tc(e),t=ee(i,t,e);var o=[];for((e=[e,0,0])[1]=t.ca;e[1]<=t.$;++e[1])for(e[2]=t.da;e[2]<=t.ia;++e[2])o.push(i.Aa(e));return o}}),t("ol.Map",Xp),Xp.prototype.addControl=Xp.prototype.kk,Xp.prototype.addInteraction=Xp.prototype.lk,Xp.prototype.addLayer=Xp.prototype.ih,Xp.prototype.addOverlay=Xp.prototype.jh,Xp.prototype.forEachFeatureAtPixel=Xp.prototype.we,Xp.prototype.forEachLayerAtPixel=Xp.prototype.Im,Xp.prototype.hasFeatureAtPixel=Xp.prototype.Yl,Xp.prototype.getEventCoordinate=Xp.prototype.Tf,Xp.prototype.getEventPixel=Xp.prototype.xe,Xp.prototype.getTarget=Xp.prototype.ag,Xp.prototype.getTargetElement=Xp.prototype.jd,Xp.prototype.getCoordinateFromPixel=Xp.prototype.Wa,Xp.prototype.getControls=Xp.prototype.Lk,Xp.prototype.getOverlays=Xp.prototype.fl,Xp.prototype.getOverlayById=Xp.prototype.el,Xp.prototype.getInteractions=Xp.prototype.Sk,Xp.prototype.getLayerGroup=Xp.prototype.Kc,Xp.prototype.getLayers=Xp.prototype.Xh,Xp.prototype.getPixelFromCoordinate=Xp.prototype.Ja,Xp.prototype.getSize=Xp.prototype.Ob,Xp.prototype.getView=Xp.prototype.Z,Xp.prototype.getViewport=Xp.prototype.sl,Xp.prototype.renderSync=Xp.prototype.Tp,Xp.prototype.removeControl=Xp.prototype.Mp,Xp.prototype.removeInteraction=Xp.prototype.Np,Xp.prototype.removeLayer=Xp.prototype.Pp,Xp.prototype.removeOverlay=Xp.prototype.Qp,Xp.prototype.setLayerGroup=Xp.prototype.qj,Xp.prototype.setSize=Xp.prototype.Qg,Xp.prototype.setTarget=Xp.prototype.Le,Xp.prototype.setView=Xp.prototype.iq,Xp.prototype.updateSize=Xp.prototype.Ad,t("ol.Object",je),je.prototype.getKeys=je.prototype.O,je.prototype.getProperties=je.prototype.N,je.prototype.setProperties=je.prototype.H,je.prototype.unset=je.prototype.P,t("ol.Observable",Te),t("ol.Observable.unByKey",function(t){if(Array.isArray(t))for(var e=0,o=t.length;e<o;++e)me(t[e]);else me(t)}),Te.prototype.changed=Te.prototype.s,Te.prototype.dispatchEvent=Te.prototype.b,Te.prototype.getRevision=Te.prototype.L,Te.prototype.on=Te.prototype.J,Te.prototype.un=Te.prototype.K,t("ol.Overlay",Vp),Vp.prototype.getElement=Vp.prototype.Rd,Vp.prototype.getId=Vp.prototype.Jm,Vp.prototype.getMap=Vp.prototype.Me,Vp.prototype.getOffset=Vp.prototype.Dh,Vp.prototype.getPosition=Vp.prototype.Yh,Vp.prototype.getPositioning=Vp.prototype.Eh,Vp.prototype.setElement=Vp.prototype.lj,Vp.prototype.setOffset=Vp.prototype.rj,Vp.prototype.setPosition=Vp.prototype.Ne,Vp.prototype.setPositioning=Vp.prototype.uj,t("ol.proj.METERS_PER_UNIT",gt),t("ol.proj.setProj4",function(t){dt=t}),t("ol.proj.getPointResolution",Ft),t("ol.proj.addEquivalentProjections",kt),t("ol.proj.addProjection",Dt),t("ol.proj.addCoordinateTransforms",Ut),t("ol.proj.fromLonLat",function(t,e){return zt(t,"EPSG:4326",void 0!==e?e:"EPSG:3857")}),t("ol.proj.toLonLat",function(t,e){return zt(t,void 0!==e?e:"EPSG:3857","EPSG:4326")}),t("ol.proj.get",Bt),t("ol.proj.equivalent",Xt),t("ol.proj.getTransform",Vt),t("ol.proj.transform",zt),t("ol.proj.transformExtent",Yt),t("ol.render.toContext",function(t,e){var o=t.canvas,i=e||{};return e=i.pixelRatio||Co,(i=i.size)&&(o.width=i[0]*e,o.height=i[1]*e,o.style.width=i[0]+"px",o.style.height=i[1]+"px"),new ds(t,e,o=[0,0,o.width,o.height],i=ts(Yn(),e,e),0)}),t("ol.size.toSize",X),t("ol.Sphere",ft),ft.prototype.geodesicArea=ft.prototype.a,ft.prototype.haversineDistance=ft.prototype.b,_d.prototype.getTileCoord=_d.prototype.f,t("ol.tilegrid.createXYZ",ne),px.prototype.getFormat=px.prototype.Lm,px.prototype.getFeatures=px.prototype.Km,px.prototype.getProjection=px.prototype.Mm,px.prototype.setFeatures=px.prototype.mj,px.prototype.setProjection=px.prototype.ig,px.prototype.setLoader=px.prototype.Pg,t("ol.View",Pr),Pr.prototype.getAnimating=Pr.prototype.Ic,Pr.prototype.getInteracting=Pr.prototype.Rk,Pr.prototype.cancelAnimations=Pr.prototype.ed,Pr.prototype.constrainCenter=Pr.prototype.Ec,Pr.prototype.getCenter=Pr.prototype.wa,Pr.prototype.calculateExtent=Pr.prototype.dd,Pr.prototype.getMaxResolution=Pr.prototype.Nm,Pr.prototype.getMinResolution=Pr.prototype.Pm,Pr.prototype.getMaxZoom=Pr.prototype.Om,Pr.prototype.setMaxZoom=Pr.prototype.eq,Pr.prototype.getMinZoom=Pr.prototype.Qm,Pr.prototype.setMinZoom=Pr.prototype.fq,Pr.prototype.getProjection=Pr.prototype.Rm,Pr.prototype.getResolution=Pr.prototype.Pa,Pr.prototype.getResolutions=Pr.prototype.Sm,Pr.prototype.getResolutionForExtent=Pr.prototype.ze,Pr.prototype.getRotation=Pr.prototype.Qa,Pr.prototype.getZoom=Pr.prototype.Hh,Pr.prototype.getZoomForResolution=Pr.prototype.Ce,Pr.prototype.fit=Pr.prototype.Qf,Pr.prototype.centerOn=Pr.prototype.uk,Pr.prototype.setCenter=Pr.prototype.ob,Pr.prototype.setResolution=Pr.prototype.Vc,Pr.prototype.setRotation=Pr.prototype.Oe,Pr.prototype.setZoom=Pr.prototype.lq,t("ol.xml.getAllTextContent",Nh),t("ol.xml.parse",Dh),Qs.prototype.getGL=Qs.prototype.Wo,Qs.prototype.useProgram=Qs.prototype.Qc,t("ol.tilegrid.TileGrid",Jt),Jt.prototype.forEachTileCoord=Jt.prototype.Rf,Jt.prototype.getMaxZoom=Jt.prototype.Ti,Jt.prototype.getMinZoom=Jt.prototype.Ui,Jt.prototype.getOrigin=Jt.prototype.Pc,Jt.prototype.getResolution=Jt.prototype.Da,Jt.prototype.getResolutions=Jt.prototype.Vi,Jt.prototype.getTileCoordExtent=Jt.prototype.Aa,Jt.prototype.getTileCoordForCoordAndResolution=Jt.prototype.Be,Jt.prototype.getTileCoordForCoordAndZ=Jt.prototype.bg,Jt.prototype.getTileSize=Jt.prototype.gb,Jt.prototype.getZForResolution=Jt.prototype.tc,t("ol.tilegrid.WMTS",lx),lx.prototype.getMatrixIds=lx.prototype.l,t("ol.tilegrid.WMTS.createFromCapabilitiesMatrixSet",ux),t("ol.style.AtlasManager",wx),t("ol.style.Circle",Sh),Sh.prototype.setRadius=Sh.prototype.Uc,t("ol.style.Fill",Mh),Mh.prototype.getColor=Mh.prototype.i,Mh.prototype.setColor=Mh.prototype.c,t("ol.style.Icon",Yc),Yc.prototype.getAnchor=Yc.prototype.Hc,Yc.prototype.getColor=Yc.prototype.Lo,Yc.prototype.getImage=Yc.prototype.Y,Yc.prototype.getOrigin=Yc.prototype.Oc,Yc.prototype.getSrc=Yc.prototype.Mo,Yc.prototype.getSize=Yc.prototype.ic,t("ol.style.Image",mh),mh.prototype.getOpacity=mh.prototype.Ze,mh.prototype.getRotateWithView=mh.prototype.$e,mh.prototype.getRotation=mh.prototype.af,mh.prototype.getScale=mh.prototype.bf,mh.prototype.getSnapToPixel=mh.prototype.Ae,mh.prototype.setOpacity=mh.prototype.td,mh.prototype.setRotation=mh.prototype.cf,mh.prototype.setScale=mh.prototype.ud,t("ol.style.RegularShape",wh),wh.prototype.getAnchor=wh.prototype.Hc,wh.prototype.getAngle=wh.prototype.Pi,wh.prototype.getFill=wh.prototype.Fa,wh.prototype.getImage=wh.prototype.Y,wh.prototype.getOrigin=wh.prototype.Oc,wh.prototype.getPoints=wh.prototype.Qi,wh.prototype.getRadius=wh.prototype.Ri,wh.prototype.getRadius2=wh.prototype.Fh,wh.prototype.getSize=wh.prototype.ic,wh.prototype.getStroke=wh.prototype.Ga,t("ol.style.Stroke",Oa),Oa.prototype.getColor=Oa.prototype.No,Oa.prototype.getLineCap=Oa.prototype.Vk,Oa.prototype.getLineDash=Oa.prototype.Oo,Oa.prototype.getLineDashOffset=Oa.prototype.Wk,Oa.prototype.getLineJoin=Oa.prototype.Xk,Oa.prototype.getMiterLimit=Oa.prototype.bl,Oa.prototype.getWidth=Oa.prototype.Po,Oa.prototype.setColor=Oa.prototype.Qo,Oa.prototype.setLineCap=Oa.prototype.aq,Oa.prototype.setLineDashOffset=Oa.prototype.bq,Oa.prototype.setLineJoin=Oa.prototype.cq,Oa.prototype.setMiterLimit=Oa.prototype.gq,Oa.prototype.setWidth=Oa.prototype.jq,t("ol.style.Style",Ph),Ph.prototype.getGeometry=Ph.prototype.V,Ph.prototype.getGeometryFunction=Ph.prototype.Pk,Ph.prototype.getFill=Ph.prototype.Fa,Ph.prototype.setFill=Ph.prototype.pf,Ph.prototype.getImage=Ph.prototype.Y,Ph.prototype.setImage=Ph.prototype.Og,Ph.prototype.getStroke=Ph.prototype.Ga,Ph.prototype.setStroke=Ph.prototype.qf,Ph.prototype.getText=Ph.prototype.Na,Ph.prototype.setText=Ph.prototype.xd,Ph.prototype.getZIndex=Ph.prototype.Ba,Ph.prototype.setGeometry=Ph.prototype.Ra,Ph.prototype.setZIndex=Ph.prototype.Vb,t("ol.style.Text",Hc),Hc.prototype.getFont=Hc.prototype.Nk,Hc.prototype.getOffsetX=Hc.prototype.cl,Hc.prototype.getOffsetY=Hc.prototype.dl,Hc.prototype.getFill=Hc.prototype.Fa,Hc.prototype.getRotateWithView=Hc.prototype.Ro,Hc.prototype.getRotation=Hc.prototype.So,Hc.prototype.getScale=Hc.prototype.To,Hc.prototype.getStroke=Hc.prototype.Ga,Hc.prototype.getText=Hc.prototype.Na,Hc.prototype.getTextAlign=Hc.prototype.nl,Hc.prototype.getTextBaseline=Hc.prototype.ol,Hc.prototype.setFont=Hc.prototype.nj,Hc.prototype.setOffsetX=Hc.prototype.sj,Hc.prototype.setOffsetY=Hc.prototype.tj,Hc.prototype.setFill=Hc.prototype.pf,Hc.prototype.setRotation=Hc.prototype.Uo,Hc.prototype.setScale=Hc.prototype.Si,Hc.prototype.setStroke=Hc.prototype.qf,Hc.prototype.setText=Hc.prototype.xd,Hc.prototype.setTextAlign=Hc.prototype.vj,Hc.prototype.setTextBaseline=Hc.prototype.hq,t("ol.source.BingMaps",ww),t("ol.source.BingMaps.TOS_ATTRIBUTION",xw),ww.prototype.getApiKey=ww.prototype.T,ww.prototype.getImagerySet=ww.prototype.fa,t("ol.source.CartoDB",Mw),Mw.prototype.getConfig=Mw.prototype.Kk,Mw.prototype.updateConfig=Mw.prototype.tq,Mw.prototype.setConfig=Mw.prototype.Xp,t("ol.source.Cluster",Ew),Ew.prototype.getDistance=Ew.prototype.$n,Ew.prototype.getSource=Ew.prototype.ao,Ew.prototype.setDistance=Ew.prototype.Yp,t("ol.source.Image",Im),t("ol.source.ImageArcGISRest",Cw),Cw.prototype.getParams=Cw.prototype.co,Cw.prototype.getImageLoadFunction=Cw.prototype.bo,Cw.prototype.getUrl=Cw.prototype.eo,Cw.prototype.setImageLoadFunction=Cw.prototype.fo,Cw.prototype.setUrl=Cw.prototype.ho,Cw.prototype.updateParams=Cw.prototype.io,t("ol.source.ImageCanvas",Gm),t("ol.source.ImageMapGuide",Lw),Lw.prototype.getParams=Lw.prototype.ko,Lw.prototype.getImageLoadFunction=Lw.prototype.jo,Lw.prototype.updateParams=Lw.prototype.mo,Lw.prototype.setImageLoadFunction=Lw.prototype.lo,t("ol.source.ImageStatic",Rw),t("ol.source.ImageVector",Bm),Bm.prototype.getSource=Bm.prototype.no,Bm.prototype.getStyle=Bm.prototype.oo,Bm.prototype.getStyleFunction=Bm.prototype.po,Bm.prototype.setStyle=Bm.prototype.Ii,t("ol.source.ImageWMS",Iw),Iw.prototype.getGetFeatureInfoUrl=Iw.prototype.so,Iw.prototype.getParams=Iw.prototype.uo,Iw.prototype.getImageLoadFunction=Iw.prototype.to,Iw.prototype.getUrl=Iw.prototype.vo,Iw.prototype.setImageLoadFunction=Iw.prototype.wo,Iw.prototype.setUrl=Iw.prototype.xo,Iw.prototype.updateParams=Iw.prototype.yo,t("ol.source.OSM",Dw),t("ol.source.OSM.ATTRIBUTION",Ow),t("ol.source.Raster",Uw),Uw.prototype.setOperation=Uw.prototype.v,t("ol.source.Source",pb),pb.prototype.getAttributions=pb.prototype.ya,pb.prototype.getLogo=pb.prototype.xa,pb.prototype.getProjection=pb.prototype.za,pb.prototype.refresh=pb.prototype.sa,pb.prototype.setAttributions=pb.prototype.ua,t("ol.source.Stamen",Ww),t("ol.source.Tile",lw),lw.prototype.getTileGrid=lw.prototype.ab,t("ol.source.TileArcGISRest",Yw),Yw.prototype.getParams=Yw.prototype.C,Yw.prototype.updateParams=Yw.prototype.B,t("ol.source.TileDebug",qw),t("ol.source.TileImage",dw),dw.prototype.setRenderReprojectionEdges=dw.prototype.Pb,dw.prototype.setTileGridForProjection=dw.prototype.Qb,t("ol.source.TileJSON",_w),_w.prototype.getTileJSON=_w.prototype.pl,t("ol.source.TileUTFGrid",$w),$w.prototype.getTemplate=$w.prototype.ml,$w.prototype.forDataAtCoordinateAndResolution=$w.prototype.zk,t("ol.source.TileWMS",ex),ex.prototype.getGetFeatureInfoUrl=ex.prototype.Fo,ex.prototype.getParams=ex.prototype.Go,ex.prototype.updateParams=ex.prototype.Ho,gw.prototype.getTileLoadFunction=gw.prototype.pb,gw.prototype.getTileUrlFunction=gw.prototype.qb,gw.prototype.getUrls=gw.prototype.rb,gw.prototype.setTileLoadFunction=gw.prototype.vb,gw.prototype.setTileUrlFunction=gw.prototype.cb,gw.prototype.setUrl=gw.prototype.jb,gw.prototype.setUrls=gw.prototype.eb,t("ol.source.Vector",ub),ub.prototype.addFeature=ub.prototype.yb,ub.prototype.addFeatures=ub.prototype.cd,ub.prototype.forEachFeature=ub.prototype.sh,ub.prototype.forEachFeatureInExtent=ub.prototype.$b,ub.prototype.forEachFeatureIntersectingExtent=ub.prototype.th,ub.prototype.getFeaturesCollection=ub.prototype.Ah,ub.prototype.getFeatures=ub.prototype.Xe,ub.prototype.getFeaturesAtCoordinate=ub.prototype.zh,ub.prototype.getFeaturesInExtent=ub.prototype.Uf,ub.prototype.getClosestFeatureToCoordinate=ub.prototype.vh,ub.prototype.getExtent=ub.prototype.G,ub.prototype.getFeatureById=ub.prototype.yh,ub.prototype.getFormat=ub.prototype.Mi,ub.prototype.getUrl=ub.prototype.Ni,ub.prototype.removeFeature=ub.prototype.Gb,t("ol.source.VectorTile",hx),t("ol.source.WMTS",cx),cx.prototype.getDimensions=cx.prototype.Mk,cx.prototype.getFormat=cx.prototype.Io,cx.prototype.getLayer=cx.prototype.Jo,cx.prototype.getMatrixSet=cx.prototype.$k,cx.prototype.getRequestEncoding=cx.prototype.kl,cx.prototype.getStyle=cx.prototype.Ko,cx.prototype.getVersion=cx.prototype.rl,cx.prototype.updateDimensions=cx.prototype.uq,t("ol.source.WMTS.optionsFromCapabilities",function(t,r){var e=b(t.Contents.Layer,function(t){return t.Identifier==r.layer});if(null===e)return null;var n=t.Contents.TileMatrixSet,o=1<e.TileMatrixSetLink.length?"projection"in r?m(e.TileMatrixSetLink,function(e){var t=b(n,function(t){return t.Identifier==e.TileMatrixSet}).SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"),o=Bt(t),i=Bt(r.projection);return o&&i?Xt(o,i):t==r.projection}):m(e.TileMatrixSetLink,function(t){return t.TileMatrixSet==r.matrixSet}):0,i=e.TileMatrixSetLink[o=o<0?0:o].TileMatrixSet,s=e.TileMatrixSetLink[o].TileMatrixSetLimits,a=e.Format[0];"format"in r&&(a=r.format),o=m(e.Style,function(t){return"style"in r?t.Title==r.style:t.isDefault});var o=e.Style[o=o<0?0:o].Identifier,p={};"Dimension"in e&&e.Dimension.forEach(function(t){var e=t.Identifier,o=t.Default;void 0===o&&(o=t.Value[0]),p[e]=o});var h,l,u=b(t.Contents.TileMatrixSet,function(t){return t.Identifier==i}),c="projection"in r?Bt(r.projection):Bt(u.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3")),f=e.WGS84BoundingBox;void 0!==f&&(h=Bt("EPSG:4326").G(),h=f[0]==h[0]&&f[2]==h[2],l=Yt(f,"EPSG:4326",c),(f=c.G())&&(N(f,l)||(l=void 0)));var s=ux(u,l,s),y=[],u=void 0!==(u=r.requestEncoding)?u:"";if("OperationsMetadata"in t&&"GetTile"in t.OperationsMetadata)for(l=0,f=(t=t.OperationsMetadata.GetTile.DCP.HTTP.Get).length;l<f;++l){var g=b(t[l].Constraint,function(t){return"GetEncoding"==t.name}).AllowedValues.Value;if("KVP"!==(u=""===u?g[0]:u))break;d(g,"KVP")&&y.push(t[l].href)}return y.length||(u="REST",e.ResourceURL.forEach(function(t){"tile"===t.resourceType&&(a=t.format,y.push(t.template))})),{urls:y,layer:r.layer,matrixSet:i,format:a,projection:c,requestEncoding:u,tileGrid:s,style:o,dimensions:p,wrapX:h,crossOrigin:r.crossOrigin}}),t("ol.source.XYZ",Sw),t("ol.source.Zoomify",yx),Dy.prototype.getExtent=Dy.prototype.G,Dy.prototype.getId=Dy.prototype.Wn,Dy.prototype.getGeometry=Dy.prototype.V,Dy.prototype.getProperties=Dy.prototype.Xn,Dy.prototype.getType=Dy.prototype.U,t("ol.render.VectorContext",gs),Fp.prototype.setStyle=Fp.prototype.rd,Fp.prototype.drawGeometry=Fp.prototype.zb,Fp.prototype.drawFeature=Fp.prototype.te,ds.prototype.drawCircle=ds.prototype.Zb,ds.prototype.setStyle=ds.prototype.rd,ds.prototype.drawGeometry=ds.prototype.zb,ds.prototype.drawFeature=ds.prototype.te,t("ol.proj.common.add",Ht),t("ol.proj.Projection",vt),vt.prototype.getCode=vt.prototype.Jk,vt.prototype.getExtent=vt.prototype.G,vt.prototype.getUnits=vt.prototype.Un,vt.prototype.getMetersPerUnit=vt.prototype.sc,vt.prototype.getWorldExtent=vt.prototype.tl,vt.prototype.isGlobal=vt.prototype.dm,vt.prototype.setGlobal=vt.prototype.$p,vt.prototype.setExtent=vt.prototype.Vn,vt.prototype.setWorldExtent=vt.prototype.kq,vt.prototype.setGetPointResolution=vt.prototype.Zp,t("ol.proj.Units.METERS_PER_UNIT",gt),t("ol.layer.Base",Un),Un.prototype.getExtent=Un.prototype.G,Un.prototype.getMaxResolution=Un.prototype.fc,Un.prototype.getMinResolution=Un.prototype.gc,Un.prototype.getOpacity=Un.prototype.hc,Un.prototype.getVisible=Un.prototype.Mb,Un.prototype.getZIndex=Un.prototype.Ba,Un.prototype.setExtent=Un.prototype.vc,Un.prototype.setMaxResolution=Un.prototype.Ac,Un.prototype.setMinResolution=Un.prototype.Bc,Un.prototype.setOpacity=Un.prototype.wc,Un.prototype.setVisible=Un.prototype.xc,Un.prototype.setZIndex=Un.prototype.Vb,t("ol.layer.Group",Bn),Bn.prototype.getLayers=Bn.prototype.qd,Bn.prototype.setLayers=Bn.prototype.xi,t("ol.layer.Heatmap",mm),mm.prototype.getBlur=mm.prototype.uh,mm.prototype.getGradient=mm.prototype.Bh,mm.prototype.getRadius=mm.prototype.yi,mm.prototype.setBlur=mm.prototype.jj,mm.prototype.setGradient=mm.prototype.pj,mm.prototype.setRadius=mm.prototype.Uc,t("ol.layer.Image",Vm),Vm.prototype.getSource=Vm.prototype.ha,t("ol.layer.Layer",Vn),Vn.prototype.getSource=Vn.prototype.ha,Vn.prototype.setSource=Vn.prototype.Wc,t("ol.layer.Tile",_m),_m.prototype.getPreload=_m.prototype.Ud,_m.prototype.getSource=_m.prototype.ha,_m.prototype.setPreload=_m.prototype.zi,_m.prototype.getUseInterimTilesOnError=_m.prototype.kd,_m.prototype.setUseInterimTilesOnError=_m.prototype.Ai,t("ol.layer.Vector",nb),nb.prototype.getSource=nb.prototype.ha,nb.prototype.getStyle=nb.prototype.D,nb.prototype.getStyleFunction=nb.prototype.C,nb.prototype.setStyle=nb.prototype.g,t("ol.layer.VectorTile",ew),ew.prototype.getPreload=ew.prototype.Ud,ew.prototype.getUseInterimTilesOnError=ew.prototype.kd,ew.prototype.setPreload=ew.prototype.Bi,ew.prototype.setUseInterimTilesOnError=ew.prototype.Ci,t("ol.interaction.DoubleClickZoom",Gr),t("ol.interaction.DoubleClickZoom.handleEvent",Br),t("ol.interaction.DragAndDrop",iv),t("ol.interaction.DragAndDrop.handleEvent",Di),t("ol.interaction.DragBox",un),un.prototype.getGeometry=un.prototype.V,t("ol.interaction.DragPan",Qr),t("ol.interaction.DragRotate",rn),t("ol.interaction.DragRotateAndZoom",lv),t("ol.interaction.DragZoom",wn),t("ol.interaction.Draw",vb),t("ol.interaction.Draw.handleEvent",bb),vb.prototype.removeLastPoint=vb.prototype.Op,vb.prototype.finishDrawing=vb.prototype.Pd,vb.prototype.extend=vb.prototype.vn,t("ol.interaction.Draw.createRegularPolygon",function(r,n){return function(t,e){var o=t[0];t=t[1];var i=Math.sqrt(Ii(o,t));return Mr(e=e||Sr(new Bd(o),r),o,i,n||Math.atan((t[1]-o[1])/(t[0]-o[0]))),e}}),t("ol.interaction.Draw.createBox",function(){return function(t,e){return t=P(t),(e=e||new br(null)).ma([[J(t),_(t),it(t),ot(t),J(t)]]),e}}),t("ol.interaction.Extent",Ib),Ib.prototype.getExtent=Ib.prototype.G,Ib.prototype.setExtent=Ib.prototype.g,Xb.prototype.extent_=Xb.prototype.b,t("ol.interaction.Interaction",kr),kr.prototype.getActive=kr.prototype.c,kr.prototype.getMap=kr.prototype.f,kr.prototype.setActive=kr.prototype.Ha,t("ol.interaction.KeyboardPan",xn),t("ol.interaction.KeyboardPan.handleEvent",Sn),t("ol.interaction.KeyboardZoom",Mn),t("ol.interaction.KeyboardZoom.handleEvent",Pn),t("ol.interaction.Modify",Wb),t("ol.interaction.Modify.handleEvent",_b),Wb.prototype.removePoint=Wb.prototype.hj,t("ol.interaction.MouseWheelZoom",An),t("ol.interaction.MouseWheelZoom.handleEvent",En),An.prototype.setMouseAnchor=An.prototype.T,t("ol.interaction.PinchRotate",Cn),t("ol.interaction.PinchZoom",Nn),t("ol.interaction.Pointer",Jr),t("ol.interaction.Pointer.handleEvent",$r),t("ol.interaction.Select",im),im.prototype.getFeatures=im.prototype.Gn,im.prototype.getHitTolerance=im.prototype.Hn,im.prototype.getLayer=im.prototype.In,t("ol.interaction.Select.handleEvent",rm),im.prototype.setHitTolerance=im.prototype.Kn,t("ol.interaction.Snap",am),am.prototype.addFeature=am.prototype.yb,am.prototype.removeFeature=am.prototype.Gb,t("ol.interaction.Translate",um),um.prototype.getHitTolerance=um.prototype.B,um.prototype.setHitTolerance=um.prototype.I,t("ol.geom.Circle",Bd),Bd.prototype.getCenter=Bd.prototype.wa,Bd.prototype.getRadius=Bd.prototype.pd,Bd.prototype.getType=Bd.prototype.U,Bd.prototype.intersectsExtent=Bd.prototype.Xa,Bd.prototype.setCenter=Bd.prototype.ob,Bd.prototype.setCenterAndRadius=Bd.prototype.Ng,Bd.prototype.setRadius=Bd.prototype.Uc,Bd.prototype.transform=Bd.prototype.tb,t("ol.geom.Geometry",Ui),Ui.prototype.getClosestPoint=Ui.prototype.Ab,Ui.prototype.intersectsCoordinate=Ui.prototype.sb,Ui.prototype.getExtent=Ui.prototype.G,Ui.prototype.simplify=Ui.prototype.Rb,Ui.prototype.transform=Ui.prototype.tb,t("ol.geom.GeometryCollection",ql),ql.prototype.getGeometries=ql.prototype.Vf,ql.prototype.getType=ql.prototype.U,ql.prototype.intersectsExtent=ql.prototype.Xa,ql.prototype.setGeometries=ql.prototype.oj,ql.prototype.applyTransform=ql.prototype.Dc,t("ol.geom.LinearRing",nr),nr.prototype.getArea=nr.prototype.qn,nr.prototype.getCoordinates=nr.prototype.X,nr.prototype.getType=nr.prototype.U,nr.prototype.setCoordinates=nr.prototype.ma,t("ol.geom.LineString",pl),pl.prototype.appendCoordinate=pl.prototype.mk,pl.prototype.forEachSegment=pl.prototype.Ck,pl.prototype.getCoordinateAtM=pl.prototype.nn,pl.prototype.getCoordinates=pl.prototype.X,pl.prototype.getCoordinateAt=pl.prototype.wh,pl.prototype.getLength=pl.prototype.pn,pl.prototype.getType=pl.prototype.U,pl.prototype.intersectsExtent=pl.prototype.Xa,pl.prototype.setCoordinates=pl.prototype.ma,t("ol.geom.MultiLineString",ll),ll.prototype.appendLineString=ll.prototype.nk,ll.prototype.getCoordinateAtM=ll.prototype.rn,ll.prototype.getCoordinates=ll.prototype.X,ll.prototype.getLineString=ll.prototype.Yk,ll.prototype.getLineStrings=ll.prototype.gd,ll.prototype.getType=ll.prototype.U,ll.prototype.intersectsExtent=ll.prototype.Xa,ll.prototype.setCoordinates=ll.prototype.ma,t("ol.geom.MultiPoint",fl),fl.prototype.appendPoint=fl.prototype.qk,fl.prototype.getCoordinates=fl.prototype.X,fl.prototype.getPoint=fl.prototype.il,fl.prototype.getPoints=fl.prototype.Zd,fl.prototype.getType=fl.prototype.U,fl.prototype.intersectsExtent=fl.prototype.Xa,fl.prototype.setCoordinates=fl.prototype.ma,t("ol.geom.MultiPolygon",yl),yl.prototype.appendPolygon=yl.prototype.rk,yl.prototype.getArea=yl.prototype.sn,yl.prototype.getCoordinates=yl.prototype.X,yl.prototype.getInteriorPoints=yl.prototype.Uk,yl.prototype.getPolygon=yl.prototype.jl,yl.prototype.getPolygons=yl.prototype.Td,yl.prototype.getType=yl.prototype.U,yl.prototype.intersectsExtent=yl.prototype.Xa,yl.prototype.setCoordinates=yl.prototype.ma,t("ol.geom.Point",ar),ar.prototype.getCoordinates=ar.prototype.X,ar.prototype.getType=ar.prototype.U,ar.prototype.intersectsExtent=ar.prototype.Xa,ar.prototype.setCoordinates=ar.prototype.ma,t("ol.geom.Polygon",br),br.prototype.appendLinearRing=br.prototype.pk,br.prototype.getArea=br.prototype.tn,br.prototype.getCoordinates=br.prototype.X,br.prototype.getInteriorPoint=br.prototype.Tk,br.prototype.getLinearRingCount=br.prototype.Zk,br.prototype.getLinearRing=br.prototype.Ch,br.prototype.getLinearRings=br.prototype.Sd,br.prototype.getType=br.prototype.U,br.prototype.intersectsExtent=br.prototype.Xa,br.prototype.setCoordinates=br.prototype.ma,t("ol.geom.Polygon.circular",wr),t("ol.geom.Polygon.fromExtent",xr),t("ol.geom.Polygon.fromCircle",Sr),t("ol.geom.SimpleGeometry",Xi),Xi.prototype.getFirstCoordinate=Xi.prototype.ac,Xi.prototype.getLastCoordinate=Xi.prototype.bc,Xi.prototype.getLayout=Xi.prototype.cc,Xi.prototype.applyTransform=Xi.prototype.Dc,t("ol.format.EsriJSON",ml),ml.prototype.readFeature=ml.prototype.Tb,ml.prototype.readFeatures=ml.prototype.Oa,ml.prototype.readGeometry=ml.prototype.Sc,ml.prototype.readProjection=ml.prototype.kb,ml.prototype.writeGeometry=ml.prototype.$c,ml.prototype.writeGeometryObject=ml.prototype.je,ml.prototype.writeFeature=ml.prototype.Bd,ml.prototype.writeFeatureObject=ml.prototype.Zc,ml.prototype.writeFeatures=ml.prototype.Wb,ml.prototype.writeFeaturesObject=ml.prototype.he,t("ol.format.Feature",tl),t("ol.format.filter.and",Yl),t("ol.format.filter.or",function(t){var e=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(Kl,e))}),t("ol.format.filter.not",function(t){return new Wl(t)}),t("ol.format.filter.bbox",Hl),t("ol.format.filter.intersects",function(t,e,o){return new Ol(t,e,o)}),t("ol.format.filter.within",function(t,e,o){return new zl(t,e,o)}),t("ol.format.filter.equalTo",function(t,e,o){return new Nl(t,e,o)}),t("ol.format.filter.notEqualTo",function(t,e,o){return new Zl(t,e,o)}),t("ol.format.filter.lessThan",function(t,e){return new Xl(t,e)}),t("ol.format.filter.lessThanOrEqualTo",function(t,e){return new Vl(t,e)}),t("ol.format.filter.greaterThan",function(t,e){return new Fl(t,e)}),t("ol.format.filter.greaterThanOrEqualTo",function(t,e){return new kl(t,e)}),t("ol.format.filter.isNull",function(t){return new Bl(t)}),t("ol.format.filter.between",function(t,e,o){return new Ul(t,e,o)}),t("ol.format.filter.like",function(t,e,o,i,r,n){return new Gl(t,e,o,i,r,n)}),t("ol.format.filter.during",function(t,e,o){return new Rl(t,e,o)}),t("ol.format.GeoJSON",Ql),Ql.prototype.readFeature=Ql.prototype.Tb,Ql.prototype.readFeatures=Ql.prototype.Oa,Ql.prototype.readGeometry=Ql.prototype.Sc,Ql.prototype.readProjection=Ql.prototype.kb,Ql.prototype.writeFeature=Ql.prototype.Bd,Ql.prototype.writeFeatureObject=Ql.prototype.Zc,Ql.prototype.writeFeatures=Ql.prototype.Wb,Ql.prototype.writeFeaturesObject=Ql.prototype.he,Ql.prototype.writeGeometry=Ql.prototype.$c,Ql.prototype.writeGeometryObject=Ql.prototype.je,t("ol.format.GML",xu),xu.prototype.writeFeatures=xu.prototype.Wb,xu.prototype.writeFeaturesNode=xu.prototype.Xb,t("ol.format.GML2",Ru),t("ol.format.GML3",xu),xu.prototype.writeGeometryNode=xu.prototype.ie,xu.prototype.writeFeatures=xu.prototype.Wb,xu.prototype.writeFeaturesNode=xu.prototype.Xb,au.prototype.readFeatures=au.prototype.Oa,t("ol.format.GPX",Vu),Vu.prototype.readFeature=Vu.prototype.Tb,Vu.prototype.readFeatures=Vu.prototype.Oa,Vu.prototype.readProjection=Vu.prototype.kb,Vu.prototype.writeFeatures=Vu.prototype.Wb,Vu.prototype.writeFeaturesNode=Vu.prototype.Xb,t("ol.format.IGC",Ac),Ac.prototype.readFeature=Ac.prototype.Tb,Ac.prototype.readFeatures=Ac.prototype.Oa,Ac.prototype.readProjection=Ac.prototype.kb,t("ol.format.KML",qc),qc.prototype.readFeature=qc.prototype.Tb,qc.prototype.readFeatures=qc.prototype.Oa,qc.prototype.readName=qc.prototype.Cp,qc.prototype.readNetworkLinks=qc.prototype.Dp,qc.prototype.readRegion=qc.prototype.Gp,qc.prototype.readRegionFromNode=qc.prototype.lf,qc.prototype.readProjection=qc.prototype.kb,qc.prototype.writeFeatures=qc.prototype.Wb,qc.prototype.writeFeaturesNode=qc.prototype.Xb,t("ol.format.MVT",Oy),Oy.prototype.readFeatures=Oy.prototype.Oa,Oy.prototype.readProjection=Oy.prototype.kb,Oy.prototype.setLayers=Oy.prototype.mn,t("ol.format.OSMXML",Gy),Gy.prototype.readFeatures=Gy.prototype.Oa,Gy.prototype.readProjection=Gy.prototype.kb,t("ol.format.Polyline",hg),t("ol.format.Polyline.encodeDeltas",lg),t("ol.format.Polyline.decodeDeltas",ug),t("ol.format.Polyline.encodeFloats",cg),t("ol.format.Polyline.decodeFloats",fg),hg.prototype.readFeature=hg.prototype.Tb,hg.prototype.readFeatures=hg.prototype.Oa,hg.prototype.readGeometry=hg.prototype.Sc,hg.prototype.readProjection=hg.prototype.kb,hg.prototype.writeGeometry=hg.prototype.$c,t("ol.format.TopoJSON",yg),yg.prototype.readFeatures=yg.prototype.Oa,yg.prototype.readProjection=yg.prototype.kb,t("ol.format.WFS",mg),mg.prototype.readFeatures=mg.prototype.Oa,mg.prototype.readTransactionResponse=mg.prototype.j,mg.prototype.readFeatureCollectionMetadata=mg.prototype.g,t("ol.format.WFS.writeFilter",function(t){var e=Ih("http://www.opengis.net/ogc","Filter");return _h({node:e},Gg,Zh(t.kc),[t],[]),e}),mg.prototype.writeGetFeature=mg.prototype.l,mg.prototype.writeTransaction=mg.prototype.v,mg.prototype.readProjection=mg.prototype.kb,t("ol.format.WKT",Bg),Bg.prototype.readFeature=Bg.prototype.Tb,Bg.prototype.readFeatures=Bg.prototype.Oa,Bg.prototype.readGeometry=Bg.prototype.Sc,Bg.prototype.writeFeature=Bg.prototype.Bd,Bg.prototype.writeFeatures=Bg.prototype.Wb,Bg.prototype.writeGeometry=Bg.prototype.$c,t("ol.format.WMSCapabilities",id),t("ol.format.WMSGetFeatureInfo",Ad),Ad.prototype.readFeatures=Ad.prototype.Oa,t("ol.format.WMTSCapabilities",Ed),t("ol.format.filter.And",jl),t("ol.format.filter.Bbox",Cl),t("ol.format.filter.Comparison",Ll),t("ol.format.filter.ComparisonBinary",Il),t("ol.format.filter.During",Rl),t("ol.format.filter.EqualTo",Nl),t("ol.format.filter.Filter",El),t("ol.format.filter.GreaterThan",Fl),t("ol.format.filter.GreaterThanOrEqualTo",kl),t("ol.format.filter.Intersects",Ol),t("ol.format.filter.IsBetween",Ul),t("ol.format.filter.IsLike",Gl),t("ol.format.filter.IsNull",Bl),t("ol.format.filter.LessThan",Xl),t("ol.format.filter.LessThanOrEqualTo",Vl),t("ol.format.filter.Not",Wl),t("ol.format.filter.NotEqualTo",Zl),t("ol.format.filter.Or",Kl),t("ol.format.filter.Spatial",Dl),t("ol.format.filter.Within",zl),t("ol.events.condition.altKeyOnly",function(t){return(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey}),t("ol.events.condition.altShiftKeysOnly",Xr),t("ol.events.condition.always",Di),t("ol.events.condition.click",function(t){return"click"==t.type}),t("ol.events.condition.never",Oi),t("ol.events.condition.pointerMove",Wr),t("ol.events.condition.singleClick",Zr),t("ol.events.condition.doubleClick",function(t){return"dblclick"==t.type}),t("ol.events.condition.noModifierKeys",Kr),t("ol.events.condition.platformModifierKeyOnly",function(t){return!(t=t.originalEvent).altKey&&(jo?t.metaKey:t.ctrlKey)&&!t.shiftKey}),t("ol.events.condition.shiftKeyOnly",zr),t("ol.events.condition.targetNotEditable",Yr),t("ol.events.condition.mouseOnly",Hr),t("ol.events.condition.primaryAction",qr),t("ol.control.Attribution",_e),t("ol.control.Attribution.render",$e),_e.prototype.getCollapsible=_e.prototype.Um,_e.prototype.setCollapsible=_e.prototype.Xm,_e.prototype.setCollapsed=_e.prototype.Wm,_e.prototype.getCollapsed=_e.prototype.Tm,t("ol.control.Control",Je),Je.prototype.getMap=Je.prototype.g,Je.prototype.setTarget=Je.prototype.f,t("ol.control.FullScreen",po),t("ol.control.MousePosition",yo),t("ol.control.MousePosition.render",go),yo.prototype.getCoordinateFormat=yo.prototype.xh,yo.prototype.getProjection=yo.prototype.Zh,yo.prototype.setCoordinateFormat=yo.prototype.kj,yo.prototype.setProjection=yo.prototype.$h,t("ol.control.OverviewMap",_p),t("ol.control.OverviewMap.render",$p),_p.prototype.getCollapsible=_p.prototype.$m,_p.prototype.setCollapsible=_p.prototype.cn,_p.prototype.setCollapsed=_p.prototype.bn,_p.prototype.getCollapsed=_p.prototype.Zm,_p.prototype.getOverviewMap=_p.prototype.gl,t("ol.control.Rotate",ro),t("ol.control.Rotate.render",no),t("ol.control.ScaleLine",oh),oh.prototype.getUnits=oh.prototype.C,t("ol.control.ScaleLine.render",rh),oh.prototype.setUnits=oh.prototype.I,t("ol.control.Zoom",so),t("ol.control.ZoomSlider",ah),t("ol.control.ZoomSlider.render",hh),t("ol.control.ZoomToExtent",ch),je.prototype.changed=je.prototype.s,je.prototype.dispatchEvent=je.prototype.b,je.prototype.getRevision=je.prototype.L,je.prototype.on=je.prototype.J,je.prototype.un=je.prototype.K,Ne.prototype.getKeys=Ne.prototype.O,Ne.prototype.getProperties=Ne.prototype.N,Ne.prototype.setProperties=Ne.prototype.H,Ne.prototype.unset=Ne.prototype.P,Ne.prototype.changed=Ne.prototype.s,Ne.prototype.dispatchEvent=Ne.prototype.b,Ne.prototype.getRevision=Ne.prototype.L,Ne.prototype.on=Ne.prototype.J,Ne.prototype.un=Ne.prototype.K,fh.prototype.getKeys=fh.prototype.O,fh.prototype.getProperties=fh.prototype.N,fh.prototype.setProperties=fh.prototype.H,fh.prototype.unset=fh.prototype.P,fh.prototype.changed=fh.prototype.s,fh.prototype.dispatchEvent=fh.prototype.b,fh.prototype.getRevision=fh.prototype.L,fh.prototype.on=fh.prototype.J,fh.prototype.un=fh.prototype.K,Lh.prototype.getKeys=Lh.prototype.O,Lh.prototype.getProperties=Lh.prototype.N,Lh.prototype.setProperties=Lh.prototype.H,Lh.prototype.unset=Lh.prototype.P,Lh.prototype.changed=Lh.prototype.s,Lh.prototype.dispatchEvent=Lh.prototype.b,Lh.prototype.getRevision=Lh.prototype.L,Lh.prototype.on=Lh.prototype.J,Lh.prototype.un=Lh.prototype.K,Gd.prototype.getKeys=Gd.prototype.O,Gd.prototype.getProperties=Gd.prototype.N,Gd.prototype.setProperties=Gd.prototype.H,Gd.prototype.unset=Gd.prototype.P,Gd.prototype.changed=Gd.prototype.s,Gd.prototype.dispatchEvent=Gd.prototype.b,Gd.prototype.getRevision=Gd.prototype.L,Gd.prototype.on=Gd.prototype.J,Gd.prototype.un=Gd.prototype.K,tv.prototype.getTileCoord=tv.prototype.f,Xp.prototype.getKeys=Xp.prototype.O,Xp.prototype.getProperties=Xp.prototype.N,Xp.prototype.setProperties=Xp.prototype.H,Xp.prototype.unset=Xp.prototype.P,Xp.prototype.changed=Xp.prototype.s,Xp.prototype.dispatchEvent=Xp.prototype.b,Xp.prototype.getRevision=Xp.prototype.L,Xp.prototype.on=Xp.prototype.J,Xp.prototype.un=Xp.prototype.K,Vp.prototype.getKeys=Vp.prototype.O,Vp.prototype.getProperties=Vp.prototype.N,Vp.prototype.setProperties=Vp.prototype.H,Vp.prototype.unset=Vp.prototype.P,Vp.prototype.changed=Vp.prototype.s,Vp.prototype.dispatchEvent=Vp.prototype.b,Vp.prototype.getRevision=Vp.prototype.L,Vp.prototype.on=Vp.prototype.J,Vp.prototype.un=Vp.prototype.K,sx.prototype.getTileCoord=sx.prototype.f,px.prototype.getTileCoord=px.prototype.f,Pr.prototype.getKeys=Pr.prototype.O,Pr.prototype.getProperties=Pr.prototype.N,Pr.prototype.setProperties=Pr.prototype.H,Pr.prototype.unset=Pr.prototype.P,Pr.prototype.changed=Pr.prototype.s,Pr.prototype.dispatchEvent=Pr.prototype.b,Pr.prototype.getRevision=Pr.prototype.L,Pr.prototype.on=Pr.prototype.J,Pr.prototype.un=Pr.prototype.K,lx.prototype.forEachTileCoord=lx.prototype.Rf,lx.prototype.getMaxZoom=lx.prototype.Ti,lx.prototype.getMinZoom=lx.prototype.Ui,lx.prototype.getOrigin=lx.prototype.Pc,lx.prototype.getResolution=lx.prototype.Da,lx.prototype.getResolutions=lx.prototype.Vi,lx.prototype.getTileCoordExtent=lx.prototype.Aa,lx.prototype.getTileCoordForCoordAndResolution=lx.prototype.Be,lx.prototype.getTileCoordForCoordAndZ=lx.prototype.bg,lx.prototype.getTileSize=lx.prototype.gb,lx.prototype.getZForResolution=lx.prototype.tc,wh.prototype.getOpacity=wh.prototype.Ze,wh.prototype.getRotateWithView=wh.prototype.$e,wh.prototype.getRotation=wh.prototype.af,wh.prototype.getScale=wh.prototype.bf,wh.prototype.getSnapToPixel=wh.prototype.Ae,wh.prototype.setOpacity=wh.prototype.td,wh.prototype.setRotation=wh.prototype.cf,wh.prototype.setScale=wh.prototype.ud,Sh.prototype.getAngle=Sh.prototype.Pi,Sh.prototype.getFill=Sh.prototype.Fa,Sh.prototype.getPoints=Sh.prototype.Qi,Sh.prototype.getRadius=Sh.prototype.Ri,Sh.prototype.getRadius2=Sh.prototype.Fh,Sh.prototype.getStroke=Sh.prototype.Ga,Sh.prototype.getOpacity=Sh.prototype.Ze,Sh.prototype.getRotateWithView=Sh.prototype.$e,Sh.prototype.getRotation=Sh.prototype.af,Sh.prototype.getScale=Sh.prototype.bf,Sh.prototype.getSnapToPixel=Sh.prototype.Ae,Sh.prototype.setOpacity=Sh.prototype.td,Sh.prototype.setRotation=Sh.prototype.cf,Sh.prototype.setScale=Sh.prototype.ud,Yc.prototype.getOpacity=Yc.prototype.Ze,Yc.prototype.getRotateWithView=Yc.prototype.$e,Yc.prototype.getRotation=Yc.prototype.af,Yc.prototype.getScale=Yc.prototype.bf,Yc.prototype.getSnapToPixel=Yc.prototype.Ae,Yc.prototype.setOpacity=Yc.prototype.td,Yc.prototype.setRotation=Yc.prototype.cf,Yc.prototype.setScale=Yc.prototype.ud,pb.prototype.getKeys=pb.prototype.O,pb.prototype.getProperties=pb.prototype.N,pb.prototype.setProperties=pb.prototype.H,pb.prototype.unset=pb.prototype.P,pb.prototype.changed=pb.prototype.s,pb.prototype.dispatchEvent=pb.prototype.b,pb.prototype.getRevision=pb.prototype.L,pb.prototype.on=pb.prototype.J,pb.prototype.un=pb.prototype.K,lw.prototype.getAttributions=lw.prototype.ya,lw.prototype.getLogo=lw.prototype.xa,lw.prototype.getProjection=lw.prototype.za,lw.prototype.refresh=lw.prototype.sa,lw.prototype.setAttributions=lw.prototype.ua,lw.prototype.getKeys=lw.prototype.O,lw.prototype.getProperties=lw.prototype.N,lw.prototype.setProperties=lw.prototype.H,lw.prototype.unset=lw.prototype.P,lw.prototype.changed=lw.prototype.s,lw.prototype.dispatchEvent=lw.prototype.b,lw.prototype.getRevision=lw.prototype.L,lw.prototype.on=lw.prototype.J,lw.prototype.un=lw.prototype.K,gw.prototype.getTileGrid=gw.prototype.ab,gw.prototype.refresh=gw.prototype.sa,gw.prototype.getAttributions=gw.prototype.ya,gw.prototype.getLogo=gw.prototype.xa,gw.prototype.getProjection=gw.prototype.za,gw.prototype.setAttributions=gw.prototype.ua,gw.prototype.getKeys=gw.prototype.O,gw.prototype.getProperties=gw.prototype.N,gw.prototype.setProperties=gw.prototype.H,gw.prototype.unset=gw.prototype.P,gw.prototype.changed=gw.prototype.s,gw.prototype.dispatchEvent=gw.prototype.b,gw.prototype.getRevision=gw.prototype.L,gw.prototype.on=gw.prototype.J,gw.prototype.un=gw.prototype.K,dw.prototype.getTileLoadFunction=dw.prototype.pb,dw.prototype.getTileUrlFunction=dw.prototype.qb,dw.prototype.getUrls=dw.prototype.rb,dw.prototype.setTileLoadFunction=dw.prototype.vb,dw.prototype.setTileUrlFunction=dw.prototype.cb,dw.prototype.setUrl=dw.prototype.jb,dw.prototype.setUrls=dw.prototype.eb,dw.prototype.getTileGrid=dw.prototype.ab,dw.prototype.refresh=dw.prototype.sa,dw.prototype.getAttributions=dw.prototype.ya,dw.prototype.getLogo=dw.prototype.xa,dw.prototype.getProjection=dw.prototype.za,dw.prototype.setAttributions=dw.prototype.ua,dw.prototype.getKeys=dw.prototype.O,dw.prototype.getProperties=dw.prototype.N,dw.prototype.setProperties=dw.prototype.H,dw.prototype.unset=dw.prototype.P,dw.prototype.changed=dw.prototype.s,dw.prototype.dispatchEvent=dw.prototype.b,dw.prototype.getRevision=dw.prototype.L,dw.prototype.on=dw.prototype.J,dw.prototype.un=dw.prototype.K,ww.prototype.setRenderReprojectionEdges=ww.prototype.Pb,ww.prototype.setTileGridForProjection=ww.prototype.Qb,ww.prototype.getTileLoadFunction=ww.prototype.pb,ww.prototype.getTileUrlFunction=ww.prototype.qb,ww.prototype.getUrls=ww.prototype.rb,ww.prototype.setTileLoadFunction=ww.prototype.vb,ww.prototype.setTileUrlFunction=ww.prototype.cb,ww.prototype.setUrl=ww.prototype.jb,ww.prototype.setUrls=ww.prototype.eb,ww.prototype.getTileGrid=ww.prototype.ab,ww.prototype.refresh=ww.prototype.sa,ww.prototype.getAttributions=ww.prototype.ya,ww.prototype.getLogo=ww.prototype.xa,ww.prototype.getProjection=ww.prototype.za,ww.prototype.setAttributions=ww.prototype.ua,ww.prototype.getKeys=ww.prototype.O,ww.prototype.getProperties=ww.prototype.N,ww.prototype.setProperties=ww.prototype.H,ww.prototype.unset=ww.prototype.P,ww.prototype.changed=ww.prototype.s,ww.prototype.dispatchEvent=ww.prototype.b,ww.prototype.getRevision=ww.prototype.L,ww.prototype.on=ww.prototype.J,ww.prototype.un=ww.prototype.K,Sw.prototype.setRenderReprojectionEdges=Sw.prototype.Pb,Sw.prototype.setTileGridForProjection=Sw.prototype.Qb,Sw.prototype.getTileLoadFunction=Sw.prototype.pb,Sw.prototype.getTileUrlFunction=Sw.prototype.qb,Sw.prototype.getUrls=Sw.prototype.rb,Sw.prototype.setTileLoadFunction=Sw.prototype.vb,Sw.prototype.setTileUrlFunction=Sw.prototype.cb,Sw.prototype.setUrl=Sw.prototype.jb,Sw.prototype.setUrls=Sw.prototype.eb,Sw.prototype.getTileGrid=Sw.prototype.ab,Sw.prototype.refresh=Sw.prototype.sa,Sw.prototype.getAttributions=Sw.prototype.ya,Sw.prototype.getLogo=Sw.prototype.xa,Sw.prototype.getProjection=Sw.prototype.za,Sw.prototype.setAttributions=Sw.prototype.ua,Sw.prototype.getKeys=Sw.prototype.O,Sw.prototype.getProperties=Sw.prototype.N,Sw.prototype.setProperties=Sw.prototype.H,Sw.prototype.unset=Sw.prototype.P,Sw.prototype.changed=Sw.prototype.s,Sw.prototype.dispatchEvent=Sw.prototype.b,Sw.prototype.getRevision=Sw.prototype.L,Sw.prototype.on=Sw.prototype.J,Sw.prototype.un=Sw.prototype.K,Mw.prototype.setRenderReprojectionEdges=Mw.prototype.Pb,Mw.prototype.setTileGridForProjection=Mw.prototype.Qb,Mw.prototype.getTileLoadFunction=Mw.prototype.pb,Mw.prototype.getTileUrlFunction=Mw.prototype.qb,Mw.prototype.getUrls=Mw.prototype.rb,Mw.prototype.setTileLoadFunction=Mw.prototype.vb,Mw.prototype.setTileUrlFunction=Mw.prototype.cb,Mw.prototype.setUrl=Mw.prototype.jb,Mw.prototype.setUrls=Mw.prototype.eb,Mw.prototype.getTileGrid=Mw.prototype.ab,Mw.prototype.refresh=Mw.prototype.sa,Mw.prototype.getAttributions=Mw.prototype.ya,Mw.prototype.getLogo=Mw.prototype.xa,Mw.prototype.getProjection=Mw.prototype.za,Mw.prototype.setAttributions=Mw.prototype.ua,Mw.prototype.getKeys=Mw.prototype.O,Mw.prototype.getProperties=Mw.prototype.N,Mw.prototype.setProperties=Mw.prototype.H,Mw.prototype.unset=Mw.prototype.P,Mw.prototype.changed=Mw.prototype.s,Mw.prototype.dispatchEvent=Mw.prototype.b,Mw.prototype.getRevision=Mw.prototype.L,Mw.prototype.on=Mw.prototype.J,Mw.prototype.un=Mw.prototype.K,ub.prototype.getAttributions=ub.prototype.ya,ub.prototype.getLogo=ub.prototype.xa,ub.prototype.getProjection=ub.prototype.za,ub.prototype.refresh=ub.prototype.sa,ub.prototype.setAttributions=ub.prototype.ua,ub.prototype.getKeys=ub.prototype.O,ub.prototype.getProperties=ub.prototype.N,ub.prototype.setProperties=ub.prototype.H,ub.prototype.unset=ub.prototype.P,ub.prototype.changed=ub.prototype.s,ub.prototype.dispatchEvent=ub.prototype.b,ub.prototype.getRevision=ub.prototype.L,ub.prototype.on=ub.prototype.J,ub.prototype.un=ub.prototype.K,Ew.prototype.addFeature=Ew.prototype.yb,Ew.prototype.addFeatures=Ew.prototype.cd,Ew.prototype.forEachFeature=Ew.prototype.sh,Ew.prototype.forEachFeatureInExtent=Ew.prototype.$b,Ew.prototype.forEachFeatureIntersectingExtent=Ew.prototype.th,Ew.prototype.getFeaturesCollection=Ew.prototype.Ah,Ew.prototype.getFeatures=Ew.prototype.Xe,Ew.prototype.getFeaturesAtCoordinate=Ew.prototype.zh,Ew.prototype.getFeaturesInExtent=Ew.prototype.Uf,Ew.prototype.getClosestFeatureToCoordinate=Ew.prototype.vh,Ew.prototype.getExtent=Ew.prototype.G,Ew.prototype.getFeatureById=Ew.prototype.yh,Ew.prototype.getFormat=Ew.prototype.Mi,Ew.prototype.getUrl=Ew.prototype.Ni,Ew.prototype.removeFeature=Ew.prototype.Gb,Ew.prototype.getAttributions=Ew.prototype.ya,Ew.prototype.getLogo=Ew.prototype.xa,Ew.prototype.getProjection=Ew.prototype.za,Ew.prototype.refresh=Ew.prototype.sa,Ew.prototype.setAttributions=Ew.prototype.ua,Ew.prototype.getKeys=Ew.prototype.O,Ew.prototype.getProperties=Ew.prototype.N,Ew.prototype.setProperties=Ew.prototype.H,Ew.prototype.unset=Ew.prototype.P,Ew.prototype.changed=Ew.prototype.s,Ew.prototype.dispatchEvent=Ew.prototype.b,Ew.prototype.getRevision=Ew.prototype.L,Ew.prototype.on=Ew.prototype.J,Ew.prototype.un=Ew.prototype.K,Im.prototype.getAttributions=Im.prototype.ya,Im.prototype.getLogo=Im.prototype.xa,Im.prototype.getProjection=Im.prototype.za,Im.prototype.refresh=Im.prototype.sa,Im.prototype.setAttributions=Im.prototype.ua,Im.prototype.getKeys=Im.prototype.O,Im.prototype.getProperties=Im.prototype.N,Im.prototype.setProperties=Im.prototype.H,Im.prototype.unset=Im.prototype.P,Im.prototype.changed=Im.prototype.s,Im.prototype.dispatchEvent=Im.prototype.b,Im.prototype.getRevision=Im.prototype.L,Im.prototype.on=Im.prototype.J,Im.prototype.un=Im.prototype.K,Cw.prototype.getAttributions=Cw.prototype.ya,Cw.prototype.getLogo=Cw.prototype.xa,Cw.prototype.getProjection=Cw.prototype.za,Cw.prototype.refresh=Cw.prototype.sa,Cw.prototype.setAttributions=Cw.prototype.ua,Cw.prototype.getKeys=Cw.prototype.O,Cw.prototype.getProperties=Cw.prototype.N,Cw.prototype.setProperties=Cw.prototype.H,Cw.prototype.unset=Cw.prototype.P,Cw.prototype.changed=Cw.prototype.s,Cw.prototype.dispatchEvent=Cw.prototype.b,Cw.prototype.getRevision=Cw.prototype.L,Cw.prototype.on=Cw.prototype.J,Cw.prototype.un=Cw.prototype.K,Gm.prototype.getAttributions=Gm.prototype.ya,Gm.prototype.getLogo=Gm.prototype.xa,Gm.prototype.getProjection=Gm.prototype.za,Gm.prototype.refresh=Gm.prototype.sa,Gm.prototype.setAttributions=Gm.prototype.ua,Gm.prototype.getKeys=Gm.prototype.O,Gm.prototype.getProperties=Gm.prototype.N,Gm.prototype.setProperties=Gm.prototype.H,Gm.prototype.unset=Gm.prototype.P,Gm.prototype.changed=Gm.prototype.s,Gm.prototype.dispatchEvent=Gm.prototype.b,Gm.prototype.getRevision=Gm.prototype.L,Gm.prototype.on=Gm.prototype.J,Gm.prototype.un=Gm.prototype.K,Lw.prototype.getAttributions=Lw.prototype.ya,Lw.prototype.getLogo=Lw.prototype.xa,Lw.prototype.getProjection=Lw.prototype.za,Lw.prototype.refresh=Lw.prototype.sa,Lw.prototype.setAttributions=Lw.prototype.ua,Lw.prototype.getKeys=Lw.prototype.O,Lw.prototype.getProperties=Lw.prototype.N,Lw.prototype.setProperties=Lw.prototype.H,Lw.prototype.unset=Lw.prototype.P,Lw.prototype.changed=Lw.prototype.s,Lw.prototype.dispatchEvent=Lw.prototype.b,Lw.prototype.getRevision=Lw.prototype.L,Lw.prototype.on=Lw.prototype.J,Lw.prototype.un=Lw.prototype.K,Rw.prototype.getAttributions=Rw.prototype.ya,Rw.prototype.getLogo=Rw.prototype.xa,Rw.prototype.getProjection=Rw.prototype.za,Rw.prototype.refresh=Rw.prototype.sa,Rw.prototype.setAttributions=Rw.prototype.ua,Rw.prototype.getKeys=Rw.prototype.O,Rw.prototype.getProperties=Rw.prototype.N,Rw.prototype.setProperties=Rw.prototype.H,Rw.prototype.unset=Rw.prototype.P,Rw.prototype.changed=Rw.prototype.s,Rw.prototype.dispatchEvent=Rw.prototype.b,Rw.prototype.getRevision=Rw.prototype.L,Rw.prototype.on=Rw.prototype.J,Rw.prototype.un=Rw.prototype.K,Bm.prototype.getAttributions=Bm.prototype.ya,Bm.prototype.getLogo=Bm.prototype.xa,Bm.prototype.getProjection=Bm.prototype.za,Bm.prototype.refresh=Bm.prototype.sa,Bm.prototype.setAttributions=Bm.prototype.ua,Bm.prototype.getKeys=Bm.prototype.O,Bm.prototype.getProperties=Bm.prototype.N,Bm.prototype.setProperties=Bm.prototype.H,Bm.prototype.unset=Bm.prototype.P,Bm.prototype.changed=Bm.prototype.s,Bm.prototype.dispatchEvent=Bm.prototype.b,Bm.prototype.getRevision=Bm.prototype.L,Bm.prototype.on=Bm.prototype.J,Bm.prototype.un=Bm.prototype.K,Iw.prototype.getAttributions=Iw.prototype.ya,Iw.prototype.getLogo=Iw.prototype.xa,Iw.prototype.getProjection=Iw.prototype.za,Iw.prototype.refresh=Iw.prototype.sa,Iw.prototype.setAttributions=Iw.prototype.ua,Iw.prototype.getKeys=Iw.prototype.O,Iw.prototype.getProperties=Iw.prototype.N,Iw.prototype.setProperties=Iw.prototype.H,Iw.prototype.unset=Iw.prototype.P,Iw.prototype.changed=Iw.prototype.s,Iw.prototype.dispatchEvent=Iw.prototype.b,Iw.prototype.getRevision=Iw.prototype.L,Iw.prototype.on=Iw.prototype.J,Iw.prototype.un=Iw.prototype.K,Dw.prototype.setRenderReprojectionEdges=Dw.prototype.Pb,Dw.prototype.setTileGridForProjection=Dw.prototype.Qb,Dw.prototype.getTileLoadFunction=Dw.prototype.pb,Dw.prototype.getTileUrlFunction=Dw.prototype.qb,Dw.prototype.getUrls=Dw.prototype.rb,Dw.prototype.setTileLoadFunction=Dw.prototype.vb,Dw.prototype.setTileUrlFunction=Dw.prototype.cb,Dw.prototype.setUrl=Dw.prototype.jb,Dw.prototype.setUrls=Dw.prototype.eb,Dw.prototype.getTileGrid=Dw.prototype.ab,Dw.prototype.refresh=Dw.prototype.sa,Dw.prototype.getAttributions=Dw.prototype.ya,Dw.prototype.getLogo=Dw.prototype.xa,Dw.prototype.getProjection=Dw.prototype.za,Dw.prototype.setAttributions=Dw.prototype.ua,Dw.prototype.getKeys=Dw.prototype.O,Dw.prototype.getProperties=Dw.prototype.N,Dw.prototype.setProperties=Dw.prototype.H,Dw.prototype.unset=Dw.prototype.P,Dw.prototype.changed=Dw.prototype.s,Dw.prototype.dispatchEvent=Dw.prototype.b,Dw.prototype.getRevision=Dw.prototype.L,Dw.prototype.on=Dw.prototype.J,Dw.prototype.un=Dw.prototype.K,Uw.prototype.getAttributions=Uw.prototype.ya,Uw.prototype.getLogo=Uw.prototype.xa,Uw.prototype.getProjection=Uw.prototype.za,Uw.prototype.refresh=Uw.prototype.sa,Uw.prototype.setAttributions=Uw.prototype.ua,Uw.prototype.getKeys=Uw.prototype.O,Uw.prototype.getProperties=Uw.prototype.N,Uw.prototype.setProperties=Uw.prototype.H,Uw.prototype.unset=Uw.prototype.P,Uw.prototype.changed=Uw.prototype.s,Uw.prototype.dispatchEvent=Uw.prototype.b,Uw.prototype.getRevision=Uw.prototype.L,Uw.prototype.on=Uw.prototype.J,Uw.prototype.un=Uw.prototype.K,Ww.prototype.setRenderReprojectionEdges=Ww.prototype.Pb,Ww.prototype.setTileGridForProjection=Ww.prototype.Qb,Ww.prototype.getTileLoadFunction=Ww.prototype.pb,Ww.prototype.getTileUrlFunction=Ww.prototype.qb,Ww.prototype.getUrls=Ww.prototype.rb,Ww.prototype.setTileLoadFunction=Ww.prototype.vb,Ww.prototype.setTileUrlFunction=Ww.prototype.cb,Ww.prototype.setUrl=Ww.prototype.jb,Ww.prototype.setUrls=Ww.prototype.eb,Ww.prototype.getTileGrid=Ww.prototype.ab,Ww.prototype.refresh=Ww.prototype.sa,Ww.prototype.getAttributions=Ww.prototype.ya,Ww.prototype.getLogo=Ww.prototype.xa,Ww.prototype.getProjection=Ww.prototype.za,Ww.prototype.setAttributions=Ww.prototype.ua,Ww.prototype.getKeys=Ww.prototype.O,Ww.prototype.getProperties=Ww.prototype.N,Ww.prototype.setProperties=Ww.prototype.H,Ww.prototype.unset=Ww.prototype.P,Ww.prototype.changed=Ww.prototype.s,Ww.prototype.dispatchEvent=Ww.prototype.b,Ww.prototype.getRevision=Ww.prototype.L,Ww.prototype.on=Ww.prototype.J,Ww.prototype.un=Ww.prototype.K,Yw.prototype.setRenderReprojectionEdges=Yw.prototype.Pb,Yw.prototype.setTileGridForProjection=Yw.prototype.Qb,Yw.prototype.getTileLoadFunction=Yw.prototype.pb,Yw.prototype.getTileUrlFunction=Yw.prototype.qb,Yw.prototype.getUrls=Yw.prototype.rb,Yw.prototype.setTileLoadFunction=Yw.prototype.vb,Yw.prototype.setTileUrlFunction=Yw.prototype.cb,Yw.prototype.setUrl=Yw.prototype.jb,Yw.prototype.setUrls=Yw.prototype.eb,Yw.prototype.getTileGrid=Yw.prototype.ab,Yw.prototype.refresh=Yw.prototype.sa,Yw.prototype.getAttributions=Yw.prototype.ya,Yw.prototype.getLogo=Yw.prototype.xa,Yw.prototype.getProjection=Yw.prototype.za,Yw.prototype.setAttributions=Yw.prototype.ua,Yw.prototype.getKeys=Yw.prototype.O,Yw.prototype.getProperties=Yw.prototype.N,Yw.prototype.setProperties=Yw.prototype.H,Yw.prototype.unset=Yw.prototype.P,Yw.prototype.changed=Yw.prototype.s,Yw.prototype.dispatchEvent=Yw.prototype.b,Yw.prototype.getRevision=Yw.prototype.L,Yw.prototype.on=Yw.prototype.J,Yw.prototype.un=Yw.prototype.K,qw.prototype.getTileGrid=qw.prototype.ab,qw.prototype.refresh=qw.prototype.sa,qw.prototype.getAttributions=qw.prototype.ya,qw.prototype.getLogo=qw.prototype.xa,qw.prototype.getProjection=qw.prototype.za,qw.prototype.setAttributions=qw.prototype.ua,qw.prototype.getKeys=qw.prototype.O,qw.prototype.getProperties=qw.prototype.N,qw.prototype.setProperties=qw.prototype.H,qw.prototype.unset=qw.prototype.P,qw.prototype.changed=qw.prototype.s,qw.prototype.dispatchEvent=qw.prototype.b,qw.prototype.getRevision=qw.prototype.L,qw.prototype.on=qw.prototype.J,qw.prototype.un=qw.prototype.K,_w.prototype.setRenderReprojectionEdges=_w.prototype.Pb,_w.prototype.setTileGridForProjection=_w.prototype.Qb,_w.prototype.getTileLoadFunction=_w.prototype.pb,_w.prototype.getTileUrlFunction=_w.prototype.qb,_w.prototype.getUrls=_w.prototype.rb,_w.prototype.setTileLoadFunction=_w.prototype.vb,_w.prototype.setTileUrlFunction=_w.prototype.cb,_w.prototype.setUrl=_w.prototype.jb,_w.prototype.setUrls=_w.prototype.eb,_w.prototype.getTileGrid=_w.prototype.ab,_w.prototype.refresh=_w.prototype.sa,_w.prototype.getAttributions=_w.prototype.ya,_w.prototype.getLogo=_w.prototype.xa,_w.prototype.getProjection=_w.prototype.za,_w.prototype.setAttributions=_w.prototype.ua,_w.prototype.getKeys=_w.prototype.O,_w.prototype.getProperties=_w.prototype.N,_w.prototype.setProperties=_w.prototype.H,_w.prototype.unset=_w.prototype.P,_w.prototype.changed=_w.prototype.s,_w.prototype.dispatchEvent=_w.prototype.b,_w.prototype.getRevision=_w.prototype.L,_w.prototype.on=_w.prototype.J,_w.prototype.un=_w.prototype.K,$w.prototype.getTileGrid=$w.prototype.ab,$w.prototype.refresh=$w.prototype.sa,$w.prototype.getAttributions=$w.prototype.ya,$w.prototype.getLogo=$w.prototype.xa,$w.prototype.getProjection=$w.prototype.za,$w.prototype.setAttributions=$w.prototype.ua,$w.prototype.getKeys=$w.prototype.O,$w.prototype.getProperties=$w.prototype.N,$w.prototype.setProperties=$w.prototype.H,$w.prototype.unset=$w.prototype.P,$w.prototype.changed=$w.prototype.s,$w.prototype.dispatchEvent=$w.prototype.b,$w.prototype.getRevision=$w.prototype.L,$w.prototype.on=$w.prototype.J,$w.prototype.un=$w.prototype.K,ex.prototype.setRenderReprojectionEdges=ex.prototype.Pb,ex.prototype.setTileGridForProjection=ex.prototype.Qb,ex.prototype.getTileLoadFunction=ex.prototype.pb,ex.prototype.getTileUrlFunction=ex.prototype.qb,ex.prototype.getUrls=ex.prototype.rb,ex.prototype.setTileLoadFunction=ex.prototype.vb,ex.prototype.setTileUrlFunction=ex.prototype.cb,ex.prototype.setUrl=ex.prototype.jb,ex.prototype.setUrls=ex.prototype.eb,ex.prototype.getTileGrid=ex.prototype.ab,ex.prototype.refresh=ex.prototype.sa,ex.prototype.getAttributions=ex.prototype.ya,ex.prototype.getLogo=ex.prototype.xa,ex.prototype.getProjection=ex.prototype.za,ex.prototype.setAttributions=ex.prototype.ua,ex.prototype.getKeys=ex.prototype.O,ex.prototype.getProperties=ex.prototype.N,ex.prototype.setProperties=ex.prototype.H,ex.prototype.unset=ex.prototype.P,ex.prototype.changed=ex.prototype.s,ex.prototype.dispatchEvent=ex.prototype.b,ex.prototype.getRevision=ex.prototype.L,ex.prototype.on=ex.prototype.J,ex.prototype.un=ex.prototype.K,hx.prototype.getTileLoadFunction=hx.prototype.pb,hx.prototype.getTileUrlFunction=hx.prototype.qb,hx.prototype.getUrls=hx.prototype.rb,hx.prototype.setTileLoadFunction=hx.prototype.vb,hx.prototype.setTileUrlFunction=hx.prototype.cb,hx.prototype.setUrl=hx.prototype.jb,hx.prototype.setUrls=hx.prototype.eb,hx.prototype.getTileGrid=hx.prototype.ab,hx.prototype.refresh=hx.prototype.sa,hx.prototype.getAttributions=hx.prototype.ya,hx.prototype.getLogo=hx.prototype.xa,hx.prototype.getProjection=hx.prototype.za,hx.prototype.setAttributions=hx.prototype.ua,hx.prototype.getKeys=hx.prototype.O,hx.prototype.getProperties=hx.prototype.N,hx.prototype.setProperties=hx.prototype.H,hx.prototype.unset=hx.prototype.P,hx.prototype.changed=hx.prototype.s,hx.prototype.dispatchEvent=hx.prototype.b,hx.prototype.getRevision=hx.prototype.L,hx.prototype.on=hx.prototype.J,hx.prototype.un=hx.prototype.K,cx.prototype.setRenderReprojectionEdges=cx.prototype.Pb,cx.prototype.setTileGridForProjection=cx.prototype.Qb,cx.prototype.getTileLoadFunction=cx.prototype.pb,cx.prototype.getTileUrlFunction=cx.prototype.qb,cx.prototype.getUrls=cx.prototype.rb,cx.prototype.setTileLoadFunction=cx.prototype.vb,cx.prototype.setTileUrlFunction=cx.prototype.cb,cx.prototype.setUrl=cx.prototype.jb,cx.prototype.setUrls=cx.prototype.eb,cx.prototype.getTileGrid=cx.prototype.ab,cx.prototype.refresh=cx.prototype.sa,cx.prototype.getAttributions=cx.prototype.ya,cx.prototype.getLogo=cx.prototype.xa,cx.prototype.getProjection=cx.prototype.za,cx.prototype.setAttributions=cx.prototype.ua,cx.prototype.getKeys=cx.prototype.O,cx.prototype.getProperties=cx.prototype.N,cx.prototype.setProperties=cx.prototype.H,cx.prototype.unset=cx.prototype.P,cx.prototype.changed=cx.prototype.s,cx.prototype.dispatchEvent=cx.prototype.b,cx.prototype.getRevision=cx.prototype.L,cx.prototype.on=cx.prototype.J,cx.prototype.un=cx.prototype.K,yx.prototype.setRenderReprojectionEdges=yx.prototype.Pb,yx.prototype.setTileGridForProjection=yx.prototype.Qb,yx.prototype.getTileLoadFunction=yx.prototype.pb,yx.prototype.getTileUrlFunction=yx.prototype.qb,yx.prototype.getUrls=yx.prototype.rb,yx.prototype.setTileLoadFunction=yx.prototype.vb,yx.prototype.setTileUrlFunction=yx.prototype.cb,yx.prototype.setUrl=yx.prototype.jb,yx.prototype.setUrls=yx.prototype.eb,yx.prototype.getTileGrid=yx.prototype.ab,yx.prototype.refresh=yx.prototype.sa,yx.prototype.getAttributions=yx.prototype.ya,yx.prototype.getLogo=yx.prototype.xa,yx.prototype.getProjection=yx.prototype.za,yx.prototype.setAttributions=yx.prototype.ua,yx.prototype.getKeys=yx.prototype.O,yx.prototype.getProperties=yx.prototype.N,yx.prototype.setProperties=yx.prototype.H,yx.prototype.unset=yx.prototype.P,yx.prototype.changed=yx.prototype.s,yx.prototype.dispatchEvent=yx.prototype.b,yx.prototype.getRevision=yx.prototype.L,yx.prototype.on=yx.prototype.J,yx.prototype.un=yx.prototype.K,iw.prototype.getTileCoord=iw.prototype.f,Fv.prototype.changed=Fv.prototype.s,Fv.prototype.dispatchEvent=Fv.prototype.b,Fv.prototype.getRevision=Fv.prototype.L,Fv.prototype.on=Fv.prototype.J,Fv.prototype.un=Fv.prototype.K,ob.prototype.changed=ob.prototype.s,ob.prototype.dispatchEvent=ob.prototype.b,ob.prototype.getRevision=ob.prototype.L,ob.prototype.on=ob.prototype.J,ob.prototype.un=ob.prototype.K,Xm.prototype.changed=Xm.prototype.s,Xm.prototype.dispatchEvent=Xm.prototype.b,Xm.prototype.getRevision=Xm.prototype.L,Xm.prototype.on=Xm.prototype.J,Xm.prototype.un=Xm.prototype.K,Jm.prototype.changed=Jm.prototype.s,Jm.prototype.dispatchEvent=Jm.prototype.b,Jm.prototype.getRevision=Jm.prototype.L,Jm.prototype.on=Jm.prototype.J,Jm.prototype.un=Jm.prototype.K,rb.prototype.changed=rb.prototype.s,rb.prototype.dispatchEvent=rb.prototype.b,rb.prototype.getRevision=rb.prototype.L,rb.prototype.on=rb.prototype.J,rb.prototype.un=rb.prototype.K,Vv.prototype.changed=Vv.prototype.s,Vv.prototype.dispatchEvent=Vv.prototype.b,Vv.prototype.getRevision=Vv.prototype.L,Vv.prototype.on=Vv.prototype.J,Vv.prototype.un=Vv.prototype.K,Pm.prototype.changed=Pm.prototype.s,Pm.prototype.dispatchEvent=Pm.prototype.b,Pm.prototype.getRevision=Pm.prototype.L,Pm.prototype.on=Pm.prototype.J,Pm.prototype.un=Pm.prototype.K,Am.prototype.changed=Am.prototype.s,Am.prototype.dispatchEvent=Am.prototype.b,Am.prototype.getRevision=Am.prototype.L,Am.prototype.on=Am.prototype.J,Am.prototype.un=Am.prototype.K,Wm.prototype.changed=Wm.prototype.s,Wm.prototype.dispatchEvent=Wm.prototype.b,Wm.prototype.getRevision=Wm.prototype.L,Wm.prototype.on=Wm.prototype.J,Wm.prototype.un=Wm.prototype.K,Jv.prototype.changed=Jv.prototype.s,Jv.prototype.dispatchEvent=Jv.prototype.b,Jv.prototype.getRevision=Jv.prototype.L,Jv.prototype.on=Jv.prototype.J,Jv.prototype.un=Jv.prototype.K,$m.prototype.changed=$m.prototype.s,$m.prototype.dispatchEvent=$m.prototype.b,$m.prototype.getRevision=$m.prototype.L,$m.prototype.on=$m.prototype.J,$m.prototype.un=$m.prototype.K,Un.prototype.getKeys=Un.prototype.O,Un.prototype.getProperties=Un.prototype.N,Un.prototype.setProperties=Un.prototype.H,Un.prototype.unset=Un.prototype.P,Un.prototype.changed=Un.prototype.s,Un.prototype.dispatchEvent=Un.prototype.b,Un.prototype.getRevision=Un.prototype.L,Un.prototype.on=Un.prototype.J,Un.prototype.un=Un.prototype.K,Bn.prototype.getExtent=Bn.prototype.G,Bn.prototype.getMaxResolution=Bn.prototype.fc,Bn.prototype.getMinResolution=Bn.prototype.gc,Bn.prototype.getOpacity=Bn.prototype.hc,Bn.prototype.getVisible=Bn.prototype.Mb,Bn.prototype.getZIndex=Bn.prototype.Ba,Bn.prototype.setExtent=Bn.prototype.vc,Bn.prototype.setMaxResolution=Bn.prototype.Ac,Bn.prototype.setMinResolution=Bn.prototype.Bc,Bn.prototype.setOpacity=Bn.prototype.wc,Bn.prototype.setVisible=Bn.prototype.xc,Bn.prototype.setZIndex=Bn.prototype.Vb,Bn.prototype.getKeys=Bn.prototype.O,Bn.prototype.getProperties=Bn.prototype.N,Bn.prototype.setProperties=Bn.prototype.H,Bn.prototype.unset=Bn.prototype.P,Bn.prototype.changed=Bn.prototype.s,Bn.prototype.dispatchEvent=Bn.prototype.b,Bn.prototype.getRevision=Bn.prototype.L,Bn.prototype.on=Bn.prototype.J,Bn.prototype.un=Bn.prototype.K,Vn.prototype.getExtent=Vn.prototype.G,Vn.prototype.getMaxResolution=Vn.prototype.fc,Vn.prototype.getMinResolution=Vn.prototype.gc,Vn.prototype.getOpacity=Vn.prototype.hc,Vn.prototype.getVisible=Vn.prototype.Mb,Vn.prototype.getZIndex=Vn.prototype.Ba,Vn.prototype.setExtent=Vn.prototype.vc,Vn.prototype.setMaxResolution=Vn.prototype.Ac,Vn.prototype.setMinResolution=Vn.prototype.Bc,Vn.prototype.setOpacity=Vn.prototype.wc,Vn.prototype.setVisible=Vn.prototype.xc,Vn.prototype.setZIndex=Vn.prototype.Vb,Vn.prototype.getKeys=Vn.prototype.O,Vn.prototype.getProperties=Vn.prototype.N,Vn.prototype.setProperties=Vn.prototype.H,Vn.prototype.unset=Vn.prototype.P,Vn.prototype.changed=Vn.prototype.s,Vn.prototype.dispatchEvent=Vn.prototype.b,Vn.prototype.getRevision=Vn.prototype.L,Vn.prototype.on=Vn.prototype.J,Vn.prototype.un=Vn.prototype.K,nb.prototype.setSource=nb.prototype.Wc,nb.prototype.getExtent=nb.prototype.G,nb.prototype.getMaxResolution=nb.prototype.fc,nb.prototype.getMinResolution=nb.prototype.gc,nb.prototype.getOpacity=nb.prototype.hc,nb.prototype.getVisible=nb.prototype.Mb,nb.prototype.getZIndex=nb.prototype.Ba,nb.prototype.setExtent=nb.prototype.vc,nb.prototype.setMaxResolution=nb.prototype.Ac,nb.prototype.setMinResolution=nb.prototype.Bc,nb.prototype.setOpacity=nb.prototype.wc,nb.prototype.setVisible=nb.prototype.xc,nb.prototype.setZIndex=nb.prototype.Vb,nb.prototype.getKeys=nb.prototype.O,nb.prototype.getProperties=nb.prototype.N,nb.prototype.setProperties=nb.prototype.H,nb.prototype.unset=nb.prototype.P,nb.prototype.changed=nb.prototype.s,nb.prototype.dispatchEvent=nb.prototype.b,nb.prototype.getRevision=nb.prototype.L,nb.prototype.on=nb.prototype.J,nb.prototype.un=nb.prototype.K,mm.prototype.getSource=mm.prototype.ha,mm.prototype.getStyle=mm.prototype.D,mm.prototype.getStyleFunction=mm.prototype.C,mm.prototype.setStyle=mm.prototype.g,mm.prototype.setSource=mm.prototype.Wc,mm.prototype.getExtent=mm.prototype.G,mm.prototype.getMaxResolution=mm.prototype.fc,mm.prototype.getMinResolution=mm.prototype.gc,mm.prototype.getOpacity=mm.prototype.hc,mm.prototype.getVisible=mm.prototype.Mb,mm.prototype.getZIndex=mm.prototype.Ba,mm.prototype.setExtent=mm.prototype.vc,mm.prototype.setMaxResolution=mm.prototype.Ac,mm.prototype.setMinResolution=mm.prototype.Bc,mm.prototype.setOpacity=mm.prototype.wc,mm.prototype.setVisible=mm.prototype.xc,mm.prototype.setZIndex=mm.prototype.Vb,mm.prototype.getKeys=mm.prototype.O,mm.prototype.getProperties=mm.prototype.N,mm.prototype.setProperties=mm.prototype.H,mm.prototype.unset=mm.prototype.P,mm.prototype.changed=mm.prototype.s,mm.prototype.dispatchEvent=mm.prototype.b,mm.prototype.getRevision=mm.prototype.L,mm.prototype.on=mm.prototype.J,mm.prototype.un=mm.prototype.K,Vm.prototype.setSource=Vm.prototype.Wc,Vm.prototype.getExtent=Vm.prototype.G,Vm.prototype.getMaxResolution=Vm.prototype.fc,Vm.prototype.getMinResolution=Vm.prototype.gc,Vm.prototype.getOpacity=Vm.prototype.hc,Vm.prototype.getVisible=Vm.prototype.Mb,Vm.prototype.getZIndex=Vm.prototype.Ba,Vm.prototype.setExtent=Vm.prototype.vc,Vm.prototype.setMaxResolution=Vm.prototype.Ac,Vm.prototype.setMinResolution=Vm.prototype.Bc,Vm.prototype.setOpacity=Vm.prototype.wc,Vm.prototype.setVisible=Vm.prototype.xc,Vm.prototype.setZIndex=Vm.prototype.Vb,Vm.prototype.getKeys=Vm.prototype.O,Vm.prototype.getProperties=Vm.prototype.N,Vm.prototype.setProperties=Vm.prototype.H,Vm.prototype.unset=Vm.prototype.P,Vm.prototype.changed=Vm.prototype.s,Vm.prototype.dispatchEvent=Vm.prototype.b,Vm.prototype.getRevision=Vm.prototype.L,Vm.prototype.on=Vm.prototype.J,Vm.prototype.un=Vm.prototype.K,_m.prototype.setSource=_m.prototype.Wc,_m.prototype.getExtent=_m.prototype.G,_m.prototype.getMaxResolution=_m.prototype.fc,_m.prototype.getMinResolution=_m.prototype.gc,_m.prototype.getOpacity=_m.prototype.hc,_m.prototype.getVisible=_m.prototype.Mb,_m.prototype.getZIndex=_m.prototype.Ba,_m.prototype.setExtent=_m.prototype.vc,_m.prototype.setMaxResolution=_m.prototype.Ac,_m.prototype.setMinResolution=_m.prototype.Bc,_m.prototype.setOpacity=_m.prototype.wc,_m.prototype.setVisible=_m.prototype.xc,_m.prototype.setZIndex=_m.prototype.Vb,_m.prototype.getKeys=_m.prototype.O,_m.prototype.getProperties=_m.prototype.N,_m.prototype.setProperties=_m.prototype.H,_m.prototype.unset=_m.prototype.P,_m.prototype.changed=_m.prototype.s,_m.prototype.dispatchEvent=_m.prototype.b,_m.prototype.getRevision=_m.prototype.L,_m.prototype.on=_m.prototype.J,_m.prototype.un=_m.prototype.K,ew.prototype.getSource=ew.prototype.ha,ew.prototype.getStyle=ew.prototype.D,ew.prototype.getStyleFunction=ew.prototype.C,ew.prototype.setStyle=ew.prototype.g,ew.prototype.setSource=ew.prototype.Wc,ew.prototype.getExtent=ew.prototype.G,ew.prototype.getMaxResolution=ew.prototype.fc,ew.prototype.getMinResolution=ew.prototype.gc,ew.prototype.getOpacity=ew.prototype.hc,ew.prototype.getVisible=ew.prototype.Mb,ew.prototype.getZIndex=ew.prototype.Ba,ew.prototype.setExtent=ew.prototype.vc,ew.prototype.setMaxResolution=ew.prototype.Ac,ew.prototype.setMinResolution=ew.prototype.Bc,ew.prototype.setOpacity=ew.prototype.wc,ew.prototype.setVisible=ew.prototype.xc,ew.prototype.setZIndex=ew.prototype.Vb,ew.prototype.getKeys=ew.prototype.O,ew.prototype.getProperties=ew.prototype.N,ew.prototype.setProperties=ew.prototype.H,ew.prototype.unset=ew.prototype.P,ew.prototype.changed=ew.prototype.s,ew.prototype.dispatchEvent=ew.prototype.b,ew.prototype.getRevision=ew.prototype.L,ew.prototype.on=ew.prototype.J,ew.prototype.un=ew.prototype.K,kr.prototype.getKeys=kr.prototype.O,kr.prototype.getProperties=kr.prototype.N,kr.prototype.setProperties=kr.prototype.H,kr.prototype.unset=kr.prototype.P,kr.prototype.changed=kr.prototype.s,kr.prototype.dispatchEvent=kr.prototype.b,kr.prototype.getRevision=kr.prototype.L,kr.prototype.on=kr.prototype.J,kr.prototype.un=kr.prototype.K,Gr.prototype.getActive=Gr.prototype.c,Gr.prototype.getMap=Gr.prototype.f,Gr.prototype.setActive=Gr.prototype.Ha,Gr.prototype.getKeys=Gr.prototype.O,Gr.prototype.getProperties=Gr.prototype.N,Gr.prototype.setProperties=Gr.prototype.H,Gr.prototype.unset=Gr.prototype.P,Gr.prototype.changed=Gr.prototype.s,Gr.prototype.dispatchEvent=Gr.prototype.b,Gr.prototype.getRevision=Gr.prototype.L,Gr.prototype.on=Gr.prototype.J,Gr.prototype.un=Gr.prototype.K,iv.prototype.getActive=iv.prototype.c,iv.prototype.getMap=iv.prototype.f,iv.prototype.setActive=iv.prototype.Ha,iv.prototype.getKeys=iv.prototype.O,iv.prototype.getProperties=iv.prototype.N,iv.prototype.setProperties=iv.prototype.H,iv.prototype.unset=iv.prototype.P,iv.prototype.changed=iv.prototype.s,iv.prototype.dispatchEvent=iv.prototype.b,iv.prototype.getRevision=iv.prototype.L,iv.prototype.on=iv.prototype.J,iv.prototype.un=iv.prototype.K,Jr.prototype.getActive=Jr.prototype.c,Jr.prototype.getMap=Jr.prototype.f,Jr.prototype.setActive=Jr.prototype.Ha,Jr.prototype.getKeys=Jr.prototype.O,Jr.prototype.getProperties=Jr.prototype.N,Jr.prototype.setProperties=Jr.prototype.H,Jr.prototype.unset=Jr.prototype.P,Jr.prototype.changed=Jr.prototype.s,Jr.prototype.dispatchEvent=Jr.prototype.b,Jr.prototype.getRevision=Jr.prototype.L,Jr.prototype.on=Jr.prototype.J,Jr.prototype.un=Jr.prototype.K,un.prototype.getActive=un.prototype.c,un.prototype.getMap=un.prototype.f,un.prototype.setActive=un.prototype.Ha,un.prototype.getKeys=un.prototype.O,un.prototype.getProperties=un.prototype.N,un.prototype.setProperties=un.prototype.H,un.prototype.unset=un.prototype.P,un.prototype.changed=un.prototype.s,un.prototype.dispatchEvent=un.prototype.b,un.prototype.getRevision=un.prototype.L,un.prototype.on=un.prototype.J,un.prototype.un=un.prototype.K,Qr.prototype.getActive=Qr.prototype.c,Qr.prototype.getMap=Qr.prototype.f,Qr.prototype.setActive=Qr.prototype.Ha,Qr.prototype.getKeys=Qr.prototype.O,Qr.prototype.getProperties=Qr.prototype.N,Qr.prototype.setProperties=Qr.prototype.H,Qr.prototype.unset=Qr.prototype.P,Qr.prototype.changed=Qr.prototype.s,Qr.prototype.dispatchEvent=Qr.prototype.b,Qr.prototype.getRevision=Qr.prototype.L,Qr.prototype.on=Qr.prototype.J,Qr.prototype.un=Qr.prototype.K,rn.prototype.getActive=rn.prototype.c,rn.prototype.getMap=rn.prototype.f,rn.prototype.setActive=rn.prototype.Ha,rn.prototype.getKeys=rn.prototype.O,rn.prototype.getProperties=rn.prototype.N,rn.prototype.setProperties=rn.prototype.H,rn.prototype.unset=rn.prototype.P,rn.prototype.changed=rn.prototype.s,rn.prototype.dispatchEvent=rn.prototype.b,rn.prototype.getRevision=rn.prototype.L,rn.prototype.on=rn.prototype.J,rn.prototype.un=rn.prototype.K,lv.prototype.getActive=lv.prototype.c,lv.prototype.getMap=lv.prototype.f,lv.prototype.setActive=lv.prototype.Ha,lv.prototype.getKeys=lv.prototype.O,lv.prototype.getProperties=lv.prototype.N,lv.prototype.setProperties=lv.prototype.H,lv.prototype.unset=lv.prototype.P,lv.prototype.changed=lv.prototype.s,lv.prototype.dispatchEvent=lv.prototype.b,lv.prototype.getRevision=lv.prototype.L,lv.prototype.on=lv.prototype.J,lv.prototype.un=lv.prototype.K,wn.prototype.getGeometry=wn.prototype.V,wn.prototype.getActive=wn.prototype.c,wn.prototype.getMap=wn.prototype.f,wn.prototype.setActive=wn.prototype.Ha,wn.prototype.getKeys=wn.prototype.O,wn.prototype.getProperties=wn.prototype.N,wn.prototype.setProperties=wn.prototype.H,wn.prototype.unset=wn.prototype.P,wn.prototype.changed=wn.prototype.s,wn.prototype.dispatchEvent=wn.prototype.b,wn.prototype.getRevision=wn.prototype.L,wn.prototype.on=wn.prototype.J,wn.prototype.un=wn.prototype.K,vb.prototype.getActive=vb.prototype.c,vb.prototype.getMap=vb.prototype.f,vb.prototype.setActive=vb.prototype.Ha,vb.prototype.getKeys=vb.prototype.O,vb.prototype.getProperties=vb.prototype.N,vb.prototype.setProperties=vb.prototype.H,vb.prototype.unset=vb.prototype.P,vb.prototype.changed=vb.prototype.s,vb.prototype.dispatchEvent=vb.prototype.b,vb.prototype.getRevision=vb.prototype.L,vb.prototype.on=vb.prototype.J,vb.prototype.un=vb.prototype.K,Ib.prototype.getActive=Ib.prototype.c,Ib.prototype.getMap=Ib.prototype.f,Ib.prototype.setActive=Ib.prototype.Ha,Ib.prototype.getKeys=Ib.prototype.O,Ib.prototype.getProperties=Ib.prototype.N,Ib.prototype.setProperties=Ib.prototype.H,Ib.prototype.unset=Ib.prototype.P,Ib.prototype.changed=Ib.prototype.s,Ib.prototype.dispatchEvent=Ib.prototype.b,Ib.prototype.getRevision=Ib.prototype.L,Ib.prototype.on=Ib.prototype.J,Ib.prototype.un=Ib.prototype.K,xn.prototype.getActive=xn.prototype.c,xn.prototype.getMap=xn.prototype.f,xn.prototype.setActive=xn.prototype.Ha,xn.prototype.getKeys=xn.prototype.O,xn.prototype.getProperties=xn.prototype.N,xn.prototype.setProperties=xn.prototype.H,xn.prototype.unset=xn.prototype.P,xn.prototype.changed=xn.prototype.s,xn.prototype.dispatchEvent=xn.prototype.b,xn.prototype.getRevision=xn.prototype.L,xn.prototype.on=xn.prototype.J,xn.prototype.un=xn.prototype.K,Mn.prototype.getActive=Mn.prototype.c,Mn.prototype.getMap=Mn.prototype.f,Mn.prototype.setActive=Mn.prototype.Ha,Mn.prototype.getKeys=Mn.prototype.O,Mn.prototype.getProperties=Mn.prototype.N,Mn.prototype.setProperties=Mn.prototype.H,Mn.prototype.unset=Mn.prototype.P,Mn.prototype.changed=Mn.prototype.s,Mn.prototype.dispatchEvent=Mn.prototype.b,Mn.prototype.getRevision=Mn.prototype.L,Mn.prototype.on=Mn.prototype.J,Mn.prototype.un=Mn.prototype.K,Wb.prototype.getActive=Wb.prototype.c,Wb.prototype.getMap=Wb.prototype.f,Wb.prototype.setActive=Wb.prototype.Ha,Wb.prototype.getKeys=Wb.prototype.O,Wb.prototype.getProperties=Wb.prototype.N,Wb.prototype.setProperties=Wb.prototype.H,Wb.prototype.unset=Wb.prototype.P,Wb.prototype.changed=Wb.prototype.s,Wb.prototype.dispatchEvent=Wb.prototype.b,Wb.prototype.getRevision=Wb.prototype.L,Wb.prototype.on=Wb.prototype.J,Wb.prototype.un=Wb.prototype.K,An.prototype.getActive=An.prototype.c,An.prototype.getMap=An.prototype.f,An.prototype.setActive=An.prototype.Ha,An.prototype.getKeys=An.prototype.O,An.prototype.getProperties=An.prototype.N,An.prototype.setProperties=An.prototype.H,An.prototype.unset=An.prototype.P,An.prototype.changed=An.prototype.s,An.prototype.dispatchEvent=An.prototype.b,An.prototype.getRevision=An.prototype.L,An.prototype.on=An.prototype.J,An.prototype.un=An.prototype.K,Cn.prototype.getActive=Cn.prototype.c,Cn.prototype.getMap=Cn.prototype.f,Cn.prototype.setActive=Cn.prototype.Ha,Cn.prototype.getKeys=Cn.prototype.O,Cn.prototype.getProperties=Cn.prototype.N,Cn.prototype.setProperties=Cn.prototype.H,Cn.prototype.unset=Cn.prototype.P,Cn.prototype.changed=Cn.prototype.s,Cn.prototype.dispatchEvent=Cn.prototype.b,Cn.prototype.getRevision=Cn.prototype.L,Cn.prototype.on=Cn.prototype.J,Cn.prototype.un=Cn.prototype.K,Nn.prototype.getActive=Nn.prototype.c,Nn.prototype.getMap=Nn.prototype.f,Nn.prototype.setActive=Nn.prototype.Ha,Nn.prototype.getKeys=Nn.prototype.O,Nn.prototype.getProperties=Nn.prototype.N,Nn.prototype.setProperties=Nn.prototype.H,Nn.prototype.unset=Nn.prototype.P,Nn.prototype.changed=Nn.prototype.s,Nn.prototype.dispatchEvent=Nn.prototype.b,Nn.prototype.getRevision=Nn.prototype.L,Nn.prototype.on=Nn.prototype.J,Nn.prototype.un=Nn.prototype.K,im.prototype.getActive=im.prototype.c,im.prototype.getMap=im.prototype.f,im.prototype.setActive=im.prototype.Ha,im.prototype.getKeys=im.prototype.O,im.prototype.getProperties=im.prototype.N,im.prototype.setProperties=im.prototype.H,im.prototype.unset=im.prototype.P,im.prototype.changed=im.prototype.s,im.prototype.dispatchEvent=im.prototype.b,im.prototype.getRevision=im.prototype.L,im.prototype.on=im.prototype.J,im.prototype.un=im.prototype.K,am.prototype.getActive=am.prototype.c,am.prototype.getMap=am.prototype.f,am.prototype.setActive=am.prototype.Ha,am.prototype.getKeys=am.prototype.O,am.prototype.getProperties=am.prototype.N,am.prototype.setProperties=am.prototype.H,am.prototype.unset=am.prototype.P,am.prototype.changed=am.prototype.s,am.prototype.dispatchEvent=am.prototype.b,am.prototype.getRevision=am.prototype.L,am.prototype.on=am.prototype.J,am.prototype.un=am.prototype.K,um.prototype.getActive=um.prototype.c,um.prototype.getMap=um.prototype.f,um.prototype.setActive=um.prototype.Ha,um.prototype.getKeys=um.prototype.O,um.prototype.getProperties=um.prototype.N,um.prototype.setProperties=um.prototype.H,um.prototype.unset=um.prototype.P,um.prototype.changed=um.prototype.s,um.prototype.dispatchEvent=um.prototype.b,um.prototype.getRevision=um.prototype.L,um.prototype.on=um.prototype.J,um.prototype.un=um.prototype.K,Ui.prototype.getKeys=Ui.prototype.O,Ui.prototype.getProperties=Ui.prototype.N,Ui.prototype.setProperties=Ui.prototype.H,Ui.prototype.unset=Ui.prototype.P,Ui.prototype.changed=Ui.prototype.s,Ui.prototype.dispatchEvent=Ui.prototype.b,Ui.prototype.getRevision=Ui.prototype.L,Ui.prototype.on=Ui.prototype.J,Ui.prototype.un=Ui.prototype.K,Xi.prototype.getClosestPoint=Xi.prototype.Ab,Xi.prototype.intersectsCoordinate=Xi.prototype.sb,Xi.prototype.getExtent=Xi.prototype.G,Xi.prototype.simplify=Xi.prototype.Rb,Xi.prototype.transform=Xi.prototype.tb,Xi.prototype.getKeys=Xi.prototype.O,Xi.prototype.getProperties=Xi.prototype.N,Xi.prototype.setProperties=Xi.prototype.H,Xi.prototype.unset=Xi.prototype.P,Xi.prototype.changed=Xi.prototype.s,Xi.prototype.dispatchEvent=Xi.prototype.b,Xi.prototype.getRevision=Xi.prototype.L,Xi.prototype.on=Xi.prototype.J,Xi.prototype.un=Xi.prototype.K,Bd.prototype.getFirstCoordinate=Bd.prototype.ac,Bd.prototype.getLastCoordinate=Bd.prototype.bc,Bd.prototype.getLayout=Bd.prototype.cc,Bd.prototype.getClosestPoint=Bd.prototype.Ab,Bd.prototype.intersectsCoordinate=Bd.prototype.sb,Bd.prototype.getExtent=Bd.prototype.G,Bd.prototype.simplify=Bd.prototype.Rb,Bd.prototype.getKeys=Bd.prototype.O,Bd.prototype.getProperties=Bd.prototype.N,Bd.prototype.setProperties=Bd.prototype.H,Bd.prototype.unset=Bd.prototype.P,Bd.prototype.changed=Bd.prototype.s,Bd.prototype.dispatchEvent=Bd.prototype.b,Bd.prototype.getRevision=Bd.prototype.L,Bd.prototype.on=Bd.prototype.J,Bd.prototype.un=Bd.prototype.K,ql.prototype.getClosestPoint=ql.prototype.Ab,ql.prototype.intersectsCoordinate=ql.prototype.sb,ql.prototype.getExtent=ql.prototype.G,ql.prototype.simplify=ql.prototype.Rb,ql.prototype.transform=ql.prototype.tb,ql.prototype.getKeys=ql.prototype.O,ql.prototype.getProperties=ql.prototype.N,ql.prototype.setProperties=ql.prototype.H,ql.prototype.unset=ql.prototype.P,ql.prototype.changed=ql.prototype.s,ql.prototype.dispatchEvent=ql.prototype.b,ql.prototype.getRevision=ql.prototype.L,ql.prototype.on=ql.prototype.J,ql.prototype.un=ql.prototype.K,nr.prototype.getFirstCoordinate=nr.prototype.ac,nr.prototype.getLastCoordinate=nr.prototype.bc,nr.prototype.getLayout=nr.prototype.cc,nr.prototype.getClosestPoint=nr.prototype.Ab,nr.prototype.intersectsCoordinate=nr.prototype.sb,nr.prototype.getExtent=nr.prototype.G,nr.prototype.simplify=nr.prototype.Rb,nr.prototype.transform=nr.prototype.tb,nr.prototype.getKeys=nr.prototype.O,nr.prototype.getProperties=nr.prototype.N,nr.prototype.setProperties=nr.prototype.H,nr.prototype.unset=nr.prototype.P,nr.prototype.changed=nr.prototype.s,nr.prototype.dispatchEvent=nr.prototype.b,nr.prototype.getRevision=nr.prototype.L,nr.prototype.on=nr.prototype.J,nr.prototype.un=nr.prototype.K,pl.prototype.getFirstCoordinate=pl.prototype.ac,pl.prototype.getLastCoordinate=pl.prototype.bc,pl.prototype.getLayout=pl.prototype.cc,pl.prototype.getClosestPoint=pl.prototype.Ab,pl.prototype.intersectsCoordinate=pl.prototype.sb,pl.prototype.getExtent=pl.prototype.G,pl.prototype.simplify=pl.prototype.Rb,pl.prototype.transform=pl.prototype.tb,pl.prototype.getKeys=pl.prototype.O,pl.prototype.getProperties=pl.prototype.N,pl.prototype.setProperties=pl.prototype.H,pl.prototype.unset=pl.prototype.P,pl.prototype.changed=pl.prototype.s,pl.prototype.dispatchEvent=pl.prototype.b,pl.prototype.getRevision=pl.prototype.L,pl.prototype.on=pl.prototype.J,pl.prototype.un=pl.prototype.K,ll.prototype.getFirstCoordinate=ll.prototype.ac,ll.prototype.getLastCoordinate=ll.prototype.bc,ll.prototype.getLayout=ll.prototype.cc,ll.prototype.getClosestPoint=ll.prototype.Ab,ll.prototype.intersectsCoordinate=ll.prototype.sb,ll.prototype.getExtent=ll.prototype.G,ll.prototype.simplify=ll.prototype.Rb,ll.prototype.transform=ll.prototype.tb,ll.prototype.getKeys=ll.prototype.O,ll.prototype.getProperties=ll.prototype.N,ll.prototype.setProperties=ll.prototype.H,ll.prototype.unset=ll.prototype.P,ll.prototype.changed=ll.prototype.s,ll.prototype.dispatchEvent=ll.prototype.b,ll.prototype.getRevision=ll.prototype.L,ll.prototype.on=ll.prototype.J,ll.prototype.un=ll.prototype.K,fl.prototype.getFirstCoordinate=fl.prototype.ac,fl.prototype.getLastCoordinate=fl.prototype.bc,fl.prototype.getLayout=fl.prototype.cc,fl.prototype.getClosestPoint=fl.prototype.Ab,fl.prototype.intersectsCoordinate=fl.prototype.sb,fl.prototype.getExtent=fl.prototype.G,fl.prototype.simplify=fl.prototype.Rb,fl.prototype.transform=fl.prototype.tb,fl.prototype.getKeys=fl.prototype.O,fl.prototype.getProperties=fl.prototype.N,fl.prototype.setProperties=fl.prototype.H,fl.prototype.unset=fl.prototype.P,fl.prototype.changed=fl.prototype.s,fl.prototype.dispatchEvent=fl.prototype.b,fl.prototype.getRevision=fl.prototype.L,fl.prototype.on=fl.prototype.J,fl.prototype.un=fl.prototype.K,yl.prototype.getFirstCoordinate=yl.prototype.ac,yl.prototype.getLastCoordinate=yl.prototype.bc,yl.prototype.getLayout=yl.prototype.cc,yl.prototype.getClosestPoint=yl.prototype.Ab,yl.prototype.intersectsCoordinate=yl.prototype.sb,yl.prototype.getExtent=yl.prototype.G,yl.prototype.simplify=yl.prototype.Rb,yl.prototype.transform=yl.prototype.tb,yl.prototype.getKeys=yl.prototype.O,yl.prototype.getProperties=yl.prototype.N,yl.prototype.setProperties=yl.prototype.H,yl.prototype.unset=yl.prototype.P,yl.prototype.changed=yl.prototype.s,yl.prototype.dispatchEvent=yl.prototype.b,yl.prototype.getRevision=yl.prototype.L,yl.prototype.on=yl.prototype.J,yl.prototype.un=yl.prototype.K,ar.prototype.getFirstCoordinate=ar.prototype.ac,ar.prototype.getLastCoordinate=ar.prototype.bc,ar.prototype.getLayout=ar.prototype.cc,ar.prototype.getClosestPoint=ar.prototype.Ab,ar.prototype.intersectsCoordinate=ar.prototype.sb,ar.prototype.getExtent=ar.prototype.G,ar.prototype.simplify=ar.prototype.Rb,ar.prototype.transform=ar.prototype.tb,ar.prototype.getKeys=ar.prototype.O,ar.prototype.getProperties=ar.prototype.N,ar.prototype.setProperties=ar.prototype.H,ar.prototype.unset=ar.prototype.P,ar.prototype.changed=ar.prototype.s,ar.prototype.dispatchEvent=ar.prototype.b,ar.prototype.getRevision=ar.prototype.L,ar.prototype.on=ar.prototype.J,ar.prototype.un=ar.prototype.K,br.prototype.getFirstCoordinate=br.prototype.ac,br.prototype.getLastCoordinate=br.prototype.bc,br.prototype.getLayout=br.prototype.cc,br.prototype.getClosestPoint=br.prototype.Ab,br.prototype.intersectsCoordinate=br.prototype.sb,br.prototype.getExtent=br.prototype.G,br.prototype.simplify=br.prototype.Rb,br.prototype.transform=br.prototype.tb,br.prototype.getKeys=br.prototype.O,br.prototype.getProperties=br.prototype.N,br.prototype.setProperties=br.prototype.H,br.prototype.unset=br.prototype.P,br.prototype.changed=br.prototype.s,br.prototype.dispatchEvent=br.prototype.b,br.prototype.getRevision=br.prototype.L,br.prototype.on=br.prototype.J,br.prototype.un=br.prototype.K,xu.prototype.readFeatures=xu.prototype.Oa,Ru.prototype.readFeatures=Ru.prototype.Oa,xu.prototype.readFeatures=xu.prototype.Oa,Je.prototype.getKeys=Je.prototype.O,Je.prototype.getProperties=Je.prototype.N,Je.prototype.setProperties=Je.prototype.H,Je.prototype.unset=Je.prototype.P,Je.prototype.changed=Je.prototype.s,Je.prototype.dispatchEvent=Je.prototype.b,Je.prototype.getRevision=Je.prototype.L,Je.prototype.on=Je.prototype.J,Je.prototype.un=Je.prototype.K,_e.prototype.getMap=_e.prototype.g,_e.prototype.setTarget=_e.prototype.f,_e.prototype.getKeys=_e.prototype.O,_e.prototype.getProperties=_e.prototype.N,_e.prototype.setProperties=_e.prototype.H,_e.prototype.unset=_e.prototype.P,_e.prototype.changed=_e.prototype.s,_e.prototype.dispatchEvent=_e.prototype.b,_e.prototype.getRevision=_e.prototype.L,_e.prototype.on=_e.prototype.J,_e.prototype.un=_e.prototype.K,po.prototype.getMap=po.prototype.g,po.prototype.setTarget=po.prototype.f,po.prototype.getKeys=po.prototype.O,po.prototype.getProperties=po.prototype.N,po.prototype.setProperties=po.prototype.H,po.prototype.unset=po.prototype.P,po.prototype.changed=po.prototype.s,po.prototype.dispatchEvent=po.prototype.b,po.prototype.getRevision=po.prototype.L,po.prototype.on=po.prototype.J,po.prototype.un=po.prototype.K,yo.prototype.getMap=yo.prototype.g,yo.prototype.setTarget=yo.prototype.f,yo.prototype.getKeys=yo.prototype.O,yo.prototype.getProperties=yo.prototype.N,yo.prototype.setProperties=yo.prototype.H,yo.prototype.unset=yo.prototype.P,yo.prototype.changed=yo.prototype.s,yo.prototype.dispatchEvent=yo.prototype.b,yo.prototype.getRevision=yo.prototype.L,yo.prototype.on=yo.prototype.J,yo.prototype.un=yo.prototype.K,_p.prototype.getMap=_p.prototype.g,_p.prototype.setTarget=_p.prototype.f,_p.prototype.getKeys=_p.prototype.O,_p.prototype.getProperties=_p.prototype.N,_p.prototype.setProperties=_p.prototype.H,_p.prototype.unset=_p.prototype.P,_p.prototype.changed=_p.prototype.s,_p.prototype.dispatchEvent=_p.prototype.b,_p.prototype.getRevision=_p.prototype.L,_p.prototype.on=_p.prototype.J,_p.prototype.un=_p.prototype.K,ro.prototype.getMap=ro.prototype.g,ro.prototype.setTarget=ro.prototype.f,ro.prototype.getKeys=ro.prototype.O,ro.prototype.getProperties=ro.prototype.N,ro.prototype.setProperties=ro.prototype.H,ro.prototype.unset=ro.prototype.P,ro.prototype.changed=ro.prototype.s,ro.prototype.dispatchEvent=ro.prototype.b,ro.prototype.getRevision=ro.prototype.L,ro.prototype.on=ro.prototype.J,ro.prototype.un=ro.prototype.K,oh.prototype.getMap=oh.prototype.g,oh.prototype.setTarget=oh.prototype.f,oh.prototype.getKeys=oh.prototype.O,oh.prototype.getProperties=oh.prototype.N,oh.prototype.setProperties=oh.prototype.H,oh.prototype.unset=oh.prototype.P,oh.prototype.changed=oh.prototype.s,oh.prototype.dispatchEvent=oh.prototype.b,oh.prototype.getRevision=oh.prototype.L,oh.prototype.on=oh.prototype.J,oh.prototype.un=oh.prototype.K,so.prototype.getMap=so.prototype.g,so.prototype.setMap,so.prototype.setTarget=so.prototype.f,so.prototype.get,so.prototype.getKeys=so.prototype.O,so.prototype.getProperties=so.prototype.N,so.prototype.set,so.prototype.setProperties=so.prototype.H,so.prototype.unset=so.prototype.P,so.prototype.changed=so.prototype.s,so.prototype.dispatchEvent=so.prototype.b,so.prototype.getRevision=so.prototype.L,so.prototype.on=so.prototype.J,so.prototype.once,so.prototype.un=so.prototype.K,ah.prototype.getMap=ah.prototype.g,ah.prototype.setTarget=ah.prototype.f,ah.prototype.getKeys=ah.prototype.O,ah.prototype.getProperties=ah.prototype.N,ah.prototype.setProperties=ah.prototype.H,ah.prototype.unset=ah.prototype.P,ah.prototype.changed=ah.prototype.s,ah.prototype.dispatchEvent=ah.prototype.b,ah.prototype.getRevision=ah.prototype.L,ah.prototype.on=ah.prototype.J,ah.prototype.un=ah.prototype.K,ch.prototype.getMap=ch.prototype.g,ch.prototype.setTarget=ch.prototype.f,ch.prototype.getKeys=ch.prototype.O,ch.prototype.getProperties=ch.prototype.N,ch.prototype.setProperties=ch.prototype.H,ch.prototype.unset=ch.prototype.P,ch.prototype.changed=ch.prototype.s,ch.prototype.dispatchEvent=ch.prototype.b,ch.prototype.getRevision=ch.prototype.L,ch.prototype.on=ch.prototype.J,ch.prototype.un=ch.prototype.K,r.ol})