mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-26 15:15:53 -05:00
1 line
479 KiB
JavaScript
1 line
479 KiB
JavaScript
!function(t,e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define([],e):t.ol=e()}(this,function(){var e,o,r={},n=this;function t(t,e){var o,i=r;t=t.split("."),i=i||n,t[0]in i||!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 G(t,e){return e<t?1:t<e?-1:0}function d(t,e){return 0<=t.indexOf(e)}function b(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 v(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=us,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 i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t}function w(){}function B(t){return t.Vo||(t.Vo=++a)}var a=0;function p(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 X(t,e){if(!t)throw new p(e)}function V(t,e,o,i){this.ca=t,this.$=e,this.da=o,this.ia=i}function l(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)}i(p,Error);var u="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 g(t,e,o){return void 0===o&&(o=[0,0]),o[0]=t[0]+2*e,o[1]=t[1]+2*e,o}function P(t,e,o){return void 0===o&&(o=[0,0]),o[0]=t[0]*e+.5|0,o[1]=t[1]*e+.5|0,o}function W(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:e[0]=e[1]=t,e)}function A(t){for(var e=Z(),o=0,i=t.length;o<i;++o)H(e,t[o]);return e}function E(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 T(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function j(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 R(t,e){return I(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 I(t,e,o){return t[0]<=e&&e<=t[2]&&t[1]<=o&&o<=t[3]}function F(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 Z(){return[1/0,1/0,-1/0,-1/0]}function k(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 D(t){return k(1/0,1/0,-1/0,-1/0,t)}function O(t,e){var o=t[0];return k(o,t=t[1],o,t,e)}function K(t,e,o,i,r){return q(r=D(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 Y(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 H(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 q(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 J(t,e,o){var i;return((i=e.call(o,$(t)))||(i=e.call(o,Q(t)))||(i=e.call(o,nt(t)))||!!(i=e.call(o,rt(t))))&&i}function _(t){var e=0;return pt(t)||(e=st(t)*ot(t)),e}function $(t){return[t[0],t[1]]}function Q(t){return[t[2],t[1]]}function tt(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function et(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=i*s,p=t[0],h=t[1];t=p-o+a,i=p-o-a,s=p+o-a,o=p+o+a;var a=h-n-e,p=h-n+e,l=h+n+e,n=h+n-e;return k(Math.min(t,i,s,o),Math.min(a,p,l,n),Math.max(t,i,s,o),Math.max(a,p,l,n),r)}function ot(t){return t[3]-t[1]}function it(t,e,o){return o=o||Z(),at(t,e)&&(o[0]=t[0]>e[0]?t[0]:e[0],o[1]=t[1]>e[1]?t[1]:e[1],o[2]=t[2]<e[2]?t[2]:e[2],o[3]=t[3]<e[3]?t[3]:e[3]),o}function rt(t){return[t[0],t[3]]}function nt(t){return[t[2],t[3]]}function st(t){return t[2]-t[0]}function at(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function pt(t){return t[2]<t[0]||t[3]<t[1]}function ht(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 lt(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 k(e=Math.min.apply(null,i),t=Math.min.apply(null,r),Math.max.apply(null,i),Math.max.apply(null,r),o)}var ut="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 ct(t){for(var e in t)delete t[e]}function ft(t){var e,o=[];for(e in t)o.push(t[e]);return o}function yt(t){for(var e in t)return!1;return!e}function gt(t){this.radius=t}gt.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},gt.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))},gt.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 dt=new gt(6370997),vt={};vt.degrees=2*Math.PI*dt.radius/360,vt.ft=.3048,vt.m=1,vt["us-ft"]=1200/3937;var bt=null;function mt(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=bt||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 wt(t){mt.call(this,{code:t,units:"m",extent:St,global:!0,worldExtent:Mt,getPointResolution:function(t,e){return t/u(e[1]/6378137)}})}(Eu=mt.prototype).Jk=function(){return this.mb},Eu.G=function(){return this.f},Eu.Un=function(){return this.a},Eu.sc=function(){return this.l||vt[this.a]},Eu.tl=function(){return this.g},Eu.dm=function(){return this.c},Eu.$p=function(t){this.c=t,this.i=!(!t||!this.f)},Eu.Vn=function(t){this.f=t,this.i=!(!this.c||!t)},Eu.kq=function(t){this.g=t},Eu.Zp=function(t){this.o=t},i(wt,mt);var xt=6378137*Math.PI,St=[-xt,-xt,xt,xt],Mt=[-180,-85,180,85],Pt="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 wt(t)});function At(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]=xt*t[r]/180;var n=6378137*Math.log(Math.tan(Math.PI*(t[r+1]+90)/360));xt<n?n=xt:n<-xt&&(n=-xt),e[r+1]=n}return e}function Et(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]/xt,e[r+1]=360*Math.atan(Math.exp(t[r+1]/6378137))/Math.PI-90;return e}var Tt=new gt(6378137);function jt(t,e){mt.call(this,{code:t,units:"degrees",extent:Ct,axisOrientation:e,global:!0,metersPerUnit:Lt,worldExtent:Ct})}i(jt,mt);var Ct=[-180,-90,180,90],Lt=Math.PI*Tt.radius/180,Rt=[new jt("CRS:84"),new jt("EPSG:4326","neu"),new jt("urn:ogc:def:crs:EPSG::4326","neu"),new jt("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new jt("urn:ogc:def:crs:OGC:1.3:CRS84"),new jt("urn:ogc:def:crs:OGC:2:84"),new jt("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new jt("urn:x-ogc:def:crs:EPSG:4326","neu")],It={},Nt={};function Ft(t,e,o){t=t.mb,e=e.mb,t in Nt||(Nt[t]={}),Nt[t][e]=o}function kt(t,e){var o;return t in Nt&&e in Nt[t]&&(o=Nt[t][e]),o}function Dt(t,e,o){var i=(t=Vt(t)).o;return i?e=i(e,o):"degrees"!=t.a&&(e=(i=Kt(t,Vt("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=(dt.b(e.slice(0,2),e.slice(2,4))+dt.b(e.slice(4,6),e.slice(6,8)))/2,void 0!==(t=t.sc())&&(e/=t)),e}function Ot(t){t.forEach(Ut),t.forEach(function(e){t.forEach(function(t){e!==t&&Ft(e,t,Yt)})})}function Ut(t){Ft(It[t.mb]=t,t,Yt)}function Gt(t){return t?"string"==typeof t?Vt(t):t:Vt("EPSG:3857")}function Bt(t,e,o,i){Ft(t=Vt(t),e=Vt(e),Xt(o)),Ft(e,t,Xt(i))}function Xt(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 Vt(t){var e,o=null;return t instanceof mt?o=t:"string"==typeof t&&(o=It[t]||null,e=bt||window.proj4,o||"function"!=typeof e||void 0===e.defs(t)||Ut(o=new mt({code:t}))),o}function Wt(t,e){if(t===e)return!0;var o=t.a===e.a;return(t.mb===e.mb||Kt(t,e)===Yt)&&o}function Zt(t,e){return Kt(t=Vt(t),e=Vt(e))}function Kt(t,e){var o,i,r,n=t.mb,s=e.mb,a=kt(n,s);return a||"function"==typeof(o=bt||window.proj4)&&(i=o.defs(n),r=o.defs(s),void 0!==i&&void 0!==r&&(i===r?Ot([e,t]):Bt(e,t,(a=o(s,n)).forward,a.inverse),a=kt(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 Yt(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 Ht(t,e,o){return Zt(e,o)(t,void 0,t.length)}function qt(t,e,o){return lt(t,e=Zt(e,o))}function Jt(){Ot(Pt),Ot(Rt),Rt.forEach(function(e){Pt.forEach(function(t){Ft(e,t,At),Ft(t,e,Et)})})}function _t(t,e,o,i){return void 0!==i?(i[0]=t,i[1]=e,i[2]=o,i):[t,e,o]}function $t(t){var o,i;this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.b=t.resolutions,X((o=this.b,i=function(t,e){return e-t}||G,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,X(this.c.length==this.b.length,20));var e=t.extent;void 0===e||this.i||this.c||(this.i=rt(e)),X(!this.i&&this.c||this.i&&!this.c,18),this.f=null,void 0!==t.tileSizes&&(this.f=t.tileSizes,X(this.f.length==this.b.length,19)),this.g=void 0!==t.tileSize?t.tileSize:this.f?null:256,X(!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 V(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]=ie(t,e,r);t.a=i}(this,e)}Jt();var Qt=[0,0,0];function te(t,e,o,i,r){for(r=t.Aa(e,r),e=e[0]-1;e>=t.minZoom;){if(o.call(null,e,ie(t,r,e,i)))return!0;--e}return!1}function ee(t,e,o,i){return e[0]<t.maxZoom?(i=t.Aa(e,i),ie(t,i,e[0]+1,o)):null}function oe(t,e,o,i){ne(t,e[0],e[1],o,!1,Qt);var r=Qt[1],n=Qt[2];return ne(t,e[2],e[3],o,!0,Qt),t=Qt[1],e=Qt[2],void 0!==i?(i.ca=r,i.$=t,i.da=n,i.ia=e):i=new V(r,t,n,e),i}function ie(t,e,o,i){return oe(t,e,t.Da(o),i)}function re(t,e){var o=t.Pc(e[0]),i=t.Da(e[0]);return t=W(t.gb(e[0]),t.j),[o[0]+(e[1]+.5)*t[0]*i,o[1]+(e[2]+.5)*t[1]*i]}function ne(t,e,o,i,r,n){var s=t.tc(i),a=i/t.Da(s),p=t.Pc(s);return t=W(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)),_t(s,e,o,n)}function se(t){var e=t.j;return e||(e=he(t),t.j=e),e}function ae(t){var e={};return ut(e,t||{}),void 0===e.extent&&(e.extent=Vt("EPSG:3857").G()),e.resolutions=pe(e.extent,e.maxZoom,e.tileSize),delete e.maxZoom,new $t(e)}function pe(t,e,o){e=void 0!==e?e:42;var i=ot(t);for(t=st(t),o=W(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 he(t,e,o){return e=pe(t=le(t),e,o),new $t({extent:t,origin:rt(t),resolutions:e,tileSize:o})}function le(t){var e=(t=Vt(t)).G();return e||(e=k(-(t=180*vt.degrees/t.sc()),-t,t,t)),e}function ue(t){this.b=t.html,this.a=t.tileRanges?t.tileRanges:null}function ce(t){return t}function fe(i){return i.mh=function(t){var e=i.listener,o=i.lh||i.target;return i.nh&&xe(i),e.call(o,t)}}function ye(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 ge(t,e){return(t=t.fb)?t[e]:void 0}function de(t){return t.fb||(t.fb={})}function ve(t,e){var o=ge(t,e);if(o){for(var i=0,r=o.length;i<r;++i)t.removeEventListener(e,o[i].mh),ct(o[i]);o.length=0,(o=t.fb)&&(delete o[e],Object.keys(o).length||delete t.fb)}}function be(t,e,o,i,r){var n=de(t),s=n[e];return(n=ye(s=s||(n[e]=[]),o,i,!1))?r||(n.nh=!1):(n={lh:i,nh:!!r,listener:o,target:t,type:e},t.addEventListener(e,fe(n)),s.push(n)),n}function me(t,e,o,i){return be(t,e,o,i,!0)}function we(t,e,o,i){(t=ge(t,e))&&(o=ye(t,o,i,!0))&&xe(o)}function xe(t){var e,o;t&&t.target&&(t.target.removeEventListener(t.type,t.mh),(e=ge(t.target,t.type))&&(-1!==(o="deleteIndex"in t?t.deleteIndex:e.indexOf(t))&&e.splice(o,1),e.length||ve(t.target,t.type)),ct(t))}function Se(t){var e,o=de(t);for(e in o)ve(t,e)}function Me(){}function Pe(t){t.Jb||(t.Jb=!0,t.ka())}function Ae(t){this.type=t,this.target=null}function Ee(t){t.stopPropagation()}function Te(){this.Ua={},this.ra={},this.oa={}}function je(t,e){return e?e in t.oa:0<Object.keys(t.oa).length}function Ce(){Te.call(this),this.i=0}function Le(t){Ce.call(this),B(this),this.S={},void 0!==t&&this.H(t)}(Eu=$t.prototype).Rf=function(t,e,o){for(var i=(t=ie(this,t,e)).ca,r=t.$;i<=r;++i)for(var n=t.da,s=t.ia;n<=s;++n)o([e,i,n])},Eu.G=function(){return this.v},Eu.Ti=function(){return this.maxZoom},Eu.Ui=function(){return this.minZoom},Eu.Pc=function(t){return this.i?this.i:this.c[t]},Eu.Da=function(t){return this.b[t]},Eu.Vi=function(){return this.b},Eu.Aa=function(t,e){var o=this.Pc(t[0]),i=this.Da(t[0]),r=W(this.gb(t[0]),this.j),n=o[0]+t[1]*r[0]*i;return k(n,t=o[1]+t[2]*r[1]*i,n+r[0]*i,t+r[1]*i,e)},Eu.Be=function(t,e,o){return ne(this,t[0],t[1],e,!1,o)},Eu.bg=function(t,e,o){return ne(this,t[0],t[1],this.Da(e),!1,o)},Eu.gb=function(t){return this.g?this.g:this.f[t]},Eu.tc=function(t,e){return x(b(this.b,t,e||0),this.minZoom,this.maxZoom)},Me.prototype.Jb=!(ue.prototype.i=function(){return this.b}),Me.prototype.ka=w,Ae.prototype.preventDefault=Ae.prototype.stopPropagation=function(){this.qp=!0},i(Te,Me),Te.prototype.addEventListener=function(t,e){var o=this.oa[t];-1===(o=o||(this.oa[t]=[])).indexOf(e)&&o.push(e)},Te.prototype.b=function(t){var e="string"==typeof t?new Ae(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}},Te.prototype.ka=function(){Se(this)},Te.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]))},i(Ce,Te),(Eu=Ce.prototype).s=function(){++this.i,this.b("change")},Eu.L=function(){return this.i},Eu.J=function(t,e,o){if(Array.isArray(t)){for(var i=t.length,r=Array(i),n=0;n<i;++n)r[n]=be(this,t[n],e,o);return r}return be(this,t,e,o)},Eu.once=function(t,e,o){if(Array.isArray(t)){for(var i=t.length,r=Array(i),n=0;n<i;++n)r[n]=me(this,t[n],e,o);return r}return me(this,t,e,o)},Eu.K=function(t,e,o){if(Array.isArray(t))for(var i=0,r=t.length;i<r;++i)we(this,t[i],e,o);else we(this,t,e,o)},i(Le,Ce);var Re={};function Ie(t){return Re.hasOwnProperty(t)?Re[t]:Re[t]="change:"+t}function Ne(t,e,o){var i=Ie(e);t.b(new Fe(i,e,o)),t.b(new Fe("propertychange",e,o))}function Fe(t,e,o){Ae.call(this,t),this.key=e,this.oldValue=o}function ke(t,e){if(Le.call(this),this.c=!!(e||{}).unique,this.a=t||[],this.c)for(t=0,e=this.a.length;t<e;++t)Oe(this,this.a[t],t);De(this)}function De(t){t.set(Ue,t.a.length)}function Oe(t,e,o){for(var i=0,r=t.a.length;i<r;++i)if(t.a[i]===e&&i!==o)throw new p(58)}(Eu=Le.prototype).get=function(t){var e;return this.S.hasOwnProperty(t)&&(e=this.S[t]),e},Eu.O=function(){return Object.keys(this.S)},Eu.N=function(){return ut({},this.S)},Eu.set=function(t,e,o){o?this.S[t]=e:(o=this.S[t])!==(this.S[t]=e)&&Ne(this,t,o)},Eu.H=function(t,e){for(var o in t)this.set(o,t[o],e)},Eu.P=function(t,e){var o;t in this.S&&(o=this.S[t],delete this.S[t],e||Ne(this,t,o))},i(Fe,Ae),i(ke,Le),(Eu=ke.prototype).clear=function(){for(;0<this.dc();)this.pop()},Eu.fg=function(t){for(var e=0,o=t.length;e<o;++e)this.push(t[e]);return this},Eu.forEach=function(t,e){this.a.forEach(t,e)},Eu.tm=function(){return this.a},Eu.item=function(t){return this.a[t]},Eu.dc=function(){return this.get(Ue)},Eu.He=function(t,e){this.c&&Oe(this,e),this.a.splice(t,0,e),De(this),this.b(new Ge("add",e))},Eu.pop=function(){return this.Hg(this.dc()-1)},Eu.push=function(t){this.c&&Oe(this,t);var e=this.dc();return this.He(e,t),this.dc()},Eu.remove=function(t){for(var e=this.a,o=0,i=e.length;o<i;++o)if(e[o]===t)return this.Hg(o)},Eu.Hg=function(t){var e=this.a[t];return this.a.splice(t,1),De(this),this.b(new Ge("remove",e)),e},Eu.Wp=function(t,e){var o=this.dc();if(t<o)this.c&&Oe(this,e,t),o=this.a[t],this.a[t]=e,this.b(new Ge("remove",o)),this.b(new Ge("add",e));else{for(;o<t;++o)this.He(o,void 0);this.He(t,e)}};var Ue="length";function Ge(t,e){Ae.call(this,t),this.element=e}i(Ge,Ae);var Be=/^#(?:[0-9a-f]{3}){1,2}$/i,Xe=/^([a-z]*)$/i;function Ve(t){return Array.isArray(t)?t:ze(t)}function We(t){var e,o,i;return"string"!=typeof t&&((e=t[0])!=(0|e)&&(e=e+.5|0),(o=t[1])!=(0|o)&&(o=o+.5|0),(i=t[2])!=(0|i)&&(i=i+.5|0),t="rgba("+e+","+o+","+i+","+(void 0===t[3]?1:t[3])+")"),t}var Ze,Ke,ze=(Ze={},Ke=0,function(t){if(Ze.hasOwnProperty(t))var e=Ze[t];else{if(1024<=Ke)for(var o in e=0,Ze)3&e++||(delete Ze[o],--Ke);var i,r;e=t,Xe.exec(e)&&((o=document.createElement("div")).style.color=e,document.body.appendChild(o),e=getComputedStyle(o).color,document.body.removeChild(o)),Be.exec(e)?(X(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(")?X(!1,14):((e=e.slice(4,-1).split(",").map(Number)).push(1),r=Ye(e)):r=Ye(e=e.slice(5,-1).split(",").map(Number)),e=r,Ze[t]=e,++Ke}return e});function Ye(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 He(t){return"string"==typeof t||t instanceof CanvasPattern||t instanceof CanvasGradient?t:We(t)}function qe(t,e){var o=document.createElement("CANVAS");return t&&(o.width=t),e&&(o.height=e),o.getContext("2d")}function Je(t,e){var o=e.parentNode;o&&o.replaceChild(t,e)}function _e(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function $e(t){Le.call(this),this.element=t.element?t.element:null,this.a=this.R=null,this.v=[],this.render=t.render?t.render:w,t.target&&this.f(t.target)}function Qe(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),be(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),$e.call(this,{element:o,render:t.render?t.render:to,target:t.target}),this.B=!0,this.l={},this.j={},this.T={}}function to(t){if(t=t.frameState){var e,o,i,r,n,s,a,p=t.layerStatesArray,h=ut({},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=B(o).toString();if(i=o.j)for(var g=0,d=i.length;g<d;g++){var v=i[g],b=B(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=ie(x,le(S),parseInt(m,10)),j=T.$-T.ca+1;if((M.ca<T.ca||M.$>T.$)&&(C(E,new V(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]):(_e(this.l[r]),delete this.l[r],delete this.j[r]);for(r in f)(g=document.createElement("LI")).innerHTML=f[r].b,this.I.appendChild(g),this.l[r]=g,this.j[r]=!0;for(r in a)(g=document.createElement("LI")).innerHTML=a[r].b,g.style.display="none",this.I.appendChild(g),this.l[r]=g;for(s in r=!yt(this.j)||!yt(t.logos),this.B!=r&&(this.element.style.display=r?"":"none",this.B=r),r&&yt(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||(_e(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=yt(t)?"none":""}else this.B&&(this.element.style.display="none",this.B=!1)}function eo(t){t.element.classList.toggle("ol-collapsed"),t.c?Je(t.D,t.C):Je(t.C,t.D),t.c=!t.c}function oo(t){return Math.pow(t,3)}function io(t){return 1-oo(1-t)}function ro(t){return 3*t*t-2*t*t*t}function no(t){return t}function so(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?t.tipLabel:"Reset rotation";(o=document.createElement("button")).className=e+"-reset",o.setAttribute("type","button"),o.title=i,o.appendChild(this.c),be(o,"click",so.prototype.D,this),(i=document.createElement("div")).className=e+" ol-unselectable ol-control",i.appendChild(o),e=t.render?t.render:ao,this.o=t.resetNorth?t.resetNorth:void 0,$e.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 ao(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 po(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),be(a,"click",po.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),be(i,"click",po.prototype.j.bind(this,-o)),(o=document.createElement("div")).className=e+" ol-unselectable ol-control",o.appendChild(a),o.appendChild(i),$e.call(this,{element:o,target:t.target}),this.c=void 0!==t.duration?t.duration:250}function ho(t){t=t||{};var e=new ke;return void 0!==t.zoom&&!t.zoom||e.push(new po(t.zoomOptions)),void 0!==t.rotate&&!t.rotate||e.push(new so(t.rotateOptions)),void 0!==t.attribution&&!t.attribution||e.push(new Qe(t.attributionOptions)),e}function lo(t){t=t||{},this.c=void 0!==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?t.tipLabel:"Toggle full-screen";(e=document.createElement("button")).className=this.c+"-"+co(),e.setAttribute("type","button"),e.title=o,e.appendChild(this.o),be(e,"click",this.C,this),(o=document.createElement("div")).className=this.c+" ol-unselectable ol-control "+(uo()?"":"ol-unsupported"),o.appendChild(e),$e.call(this,{element:o,target:t.target}),this.D=void 0!==t.keys&&t.keys,this.j=t.source}function uo(){var t=document.body;return t.webkitRequestFullscreen||t.mozRequestFullScreen&&document.mozFullScreenEnabled||t.msRequestFullscreen&&document.msFullscreenEnabled||t.requestFullscreen&&document.fullscreenEnabled}function co(){return!!(document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement||document.fullscreenElement)}function fo(t){t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen&&t.webkitRequestFullscreen()}i($e,Le),$e.prototype.ka=function(){_e(this.element),Le.prototype.ka.call(this)},$e.prototype.g=function(){return this.a},$e.prototype.setMap=function(t){this.a&&_e(this.element);for(var e=0,o=this.v.length;e<o;++e)xe(this.v[e]);this.v.length=0,(this.a=t)&&((this.R?this.R:t.D).appendChild(this.element),this.render!==w&&this.v.push(be(t,"postrender",this.render,this)),t.render())},$e.prototype.f=function(t){this.R="string"==typeof t?document.getElementById(t):t},i(Qe,$e),(Eu=Qe.prototype).Vm=function(t){t.preventDefault(),eo(this)},Eu.Um=function(){return this.o},Eu.Xm=function(t){this.o!==t&&(this.o=t,this.element.classList.toggle("ol-uncollapsible"),!t&&this.c&&eo(this))},Eu.Wm=function(t){this.o&&this.c!==t&&eo(this)},Eu.Tm=function(){return this.c},i(so,$e),so.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:io}):t.Oe(0))},i(po,$e),po.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:io})):e.Vc(t))},i(lo,$e),lo.prototype.C=function(t){t.preventDefault(),uo()&&(t=this.a)&&(co()?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):fo(t):fo(t)))},lo.prototype.u=function(){var t=this.element.firstElementChild,e=this.a;co()?(t.className=this.c+"-true",Je(this.l,this.o)):(t.className=this.c+"-false",Je(this.o,this.l)),e&&e.Ad()},lo.prototype.setMap=function(t){$e.prototype.setMap.call(this,t),t&&this.v.push(be(document,go(),this.u,this))};var yo,go=function(){var t;return yo||((t=document.body).webkitRequestFullscreen?yo="webkitfullscreenchange":t.mozRequestFullScreen?yo="mozfullscreenchange":t.msRequestFullscreen?yo="MSFullscreenChange":t.requestFullscreen&&(yo="fullscreenchange")),yo};function vo(t){t=t||{};var e=document.createElement("DIV");e.className=void 0!==t.className?t.className:"ol-mouse-position",$e.call(this,{element:e,render:t.render?t.render:bo,target:t.target}),be(this,Ie(wo),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 bo(t){(t=t.frameState)?this.c!=t.viewState.projection&&(this.c=t.viewState.projection,this.j=null):this.c=null,mo(this,this.o)}function mo(t,e){var o,i=t.u;e&&t.c&&(t.j||(o=t.Zh(),t.j=o?Kt(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)}i(vo,$e),(Eu=vo.prototype).Ym=function(){this.j=null},Eu.xh=function(){return this.get(xo)},Eu.Zh=function(){return this.get(wo)},Eu.Ll=function(t){this.o=this.a.xe(t),mo(this,this.o)},Eu.Ml=function(){mo(this,null),this.o=null},Eu.setMap=function(t){$e.prototype.setMap.call(this,t),t&&(t=t.a,this.v.push(be(t,"mousemove",this.Ll,this),be(t,"mouseout",this.Ml,this)))},Eu.kj=function(t){this.set(xo,t)},Eu.$h=function(t){this.set(wo,Vt(t))};var wo="projection",xo="coordinateFormat";function So(t,e,o){Ae.call(this,t),this.map=e,this.frameState=void 0!==o?o:null}function Mo(t,e,o,i,r){So.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}i(So,Ae),i(Mo,So),Mo.prototype.preventDefault=function(){So.prototype.preventDefault.call(this),this.originalEvent.preventDefault()},Mo.prototype.stopPropagation=function(){So.prototype.stopPropagation.call(this),this.originalEvent.stopPropagation()};var Po=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function Ao(t,e){for(var o,i=Po.length,r=0;r<i;++r)try{if(o=t.getContext(Po[r],e))return o}catch(t){}return null}var Eo,To,jo="undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"",Co=-1!==jo.indexOf("firefox"),Lo=-1!==jo.indexOf("safari")&&-1==jo.indexOf("chrom"),Ro=-1!==jo.indexOf("webkit")&&-1==jo.indexOf("edge"),Io=-1!==jo.indexOf("macintosh"),No=window.devicePixelRatio||1,Fo=!1,ko=function(){if(!("HTMLCanvasElement"in window))return!1;try{var t=document.createElement("CANVAS").getContext("2d");return!!t&&(void 0!==t.setLineDash&&(Fo=!0),!0)}catch(t){return!1}}(),Do="DeviceOrientationEvent"in window,Oo="geolocation"in navigator,Uo="ontouchstart"in window,Go="PointerEvent"in window,Bo=!!navigator.msPointerEnabled,Xo=!1,Vo=[];if("WebGLRenderingContext"in window)try{var Wo=Ao(document.createElement("CANVAS"),{failIfMajorPerformanceCaveat:!0});Wo&&(Xo=!0,To=Wo.getParameter(Wo.MAX_TEXTURE_SIZE),Vo=Wo.getSupportedExtensions())}catch(t){}Eo=Xo,o=Vo,e=To;var Zo={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 Ko(t,e,o,i,r){Mo.call(this,t,e,o.b,i,r),this.b=o}function zo(t,e){this.b=t,this.f=e}function Yo(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 Ho(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 qo(t){var e=si(t,t),o=e.preventDefault;return e.preventDefault=function(){t.preventDefault(),o()},e.pointerId=1,e.isPrimary=!0,e.pointerType="mouse",e}function Jo(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 _o(t,e){var o=e;return"number"==typeof e.pointerType&&((o=si(e,e)).pointerType=t.i[e.pointerType]),o}function $o(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 Qo(t,e,o){var i,r;Ae.call(this,t),this.b=e,t=o||{},this.buttons=function(t){if(t.buttons||ti)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),this.pressure=(i=t,r=this.buttons,i.pressure?i.pressure:r?.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()})}i(Ko,Mo),i(Yo,zo),(Eu=Yo.prototype).fm=function(t){var e;Ho(this,t)||(1..toString()in this.a&&this.cancel(t),e=qo(t),this.a[1..toString()]=t,li(this.b,"pointerdown",e,t))},Eu.gm=function(t){var e;Ho(this,t)||(e=qo(t),li(this.b,"pointermove",e,t))},Eu.jm=function(t){var e;Ho(this,t)||(e=this.a[1..toString()])&&e.button===t.button&&(e=qo(t),li(this.b,"pointerup",e,t),delete this.a[1..toString()])},Eu.im=function(t){var e;Ho(this,t)||(e=qo(t),hi(this.b,e,t))},Eu.hm=function(t){var e;Ho(this,t)||(e=qo(t),pi(this.b,e,t))},Eu.cancel=function(t){var e=qo(t);this.b.cancel(e,t),delete this.a[1..toString()]},i(Jo,zo),(Eu=Jo.prototype).om=function(t){this.a[t.pointerId.toString()]=t;var e=_o(this,t);li(this.b,"pointerdown",e,t)},Eu.pm=function(t){var e=_o(this,t);li(this.b,"pointermove",e,t)},Eu.sm=function(t){var e=_o(this,t);li(this.b,"pointerup",e,t),delete this.a[t.pointerId.toString()]},Eu.qm=function(t){var e=_o(this,t);pi(this.b,e,t)},Eu.rm=function(t){var e=_o(this,t);hi(this.b,e,t)},Eu.nm=function(t){var e=_o(this,t);this.b.cancel(e,t),delete this.a[t.pointerId.toString()]},Eu.mm=function(t){this.b.b(new Qo("lostpointercapture",t,t))},Eu.lm=function(t){this.b.b(new Qo("gotpointercapture",t,t))},i($o,zo),(Eu=$o.prototype).ip=function(t){ui(this.b,t)},Eu.jp=function(t){ui(this.b,t)},Eu.mp=function(t){ui(this.b,t)},Eu.kp=function(t){ui(this.b,t)},Eu.lp=function(t){ui(this.b,t)},Eu.hp=function(t){ui(this.b,t)},Eu.em=function(t){ui(this.b,t)},Eu.ul=function(t){ui(this.b,t)},i(Qo,Ae);var ti=!1;try{ti=1===new MouseEvent("click",{buttons:1}).buttons}catch(t){}function ei(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 oi(t,e,o){function i(){e.preventDefault()}for(var r,n,s,a=Array.prototype.slice.call(e.changedTouches),p=a.length,h=0;h<p;++h){var l=(r=t,n=e,s=a[h],(n=si(n,s)).pointerId=s.identifier+2,n.bubbles=!0,n.cancelable=!0,n.detail=r.g,n.button=0,n.buttons=1,n.width=s.webkitRadiusX||s.radiusX||0,n.height=s.webkitRadiusY||s.radiusY||0,n.pressure=s.webkitForce||s.force||.5,n.isPrimary=r.i===s.identifier,n.pointerType="touch",n.clientX=s.clientX,n.clientY=s.clientY,n.screenX=s.screenX,n.screenY=s.screenY,n);l.preventDefault=i,o.call(t,e,l)}}function ii(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 ri(t){Te.call(this),this.g=t,this.i={},this.f={},this.a=[],Go?ni(this,new $o(this)):Bo?ni(this,new Jo(this)):(ni(this,t=new Yo(this)),Uo&&ni(this,new ei(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){be(this.g,t,this.c,this)},o)}function ni(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 si(t,e){for(var o,i={},r=0,n=ci.length;r<n;r++)i[o=ci[r][0]]=t[o]||e[o]||ci[r][1];return i}function ai(t,e,o){e.bubbles=!1,li(t,"pointerleave",e,o)}function pi(t,e,o){t.out(e,o);var i=e.target,r=e.relatedTarget;i&&r&&i.contains(r)||ai(t,e,o)}function hi(t,e,o){e.bubbles=!0,li(t,"pointerover",e,o);var i=e.target,r=e.relatedTarget;i&&r&&i.contains(r)||(e.bubbles=!1,li(t,"pointerenter",e,o))}function li(t,e,o,i){t.b(new Qo(e,i,o))}function ui(t,e){t.b(new Qo(e.type,e,e))}i(ei,zo),(Eu=ei.prototype).ij=function(){this.g=0,this.c=void 0},Eu.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)),ii(this,t),this.g++,oi(this,t,this.cp)},Eu.cp=function(t,e){this.a[e.pointerId]={target:e.target,out:e,Wi:e.target};var o=this.b;e.bubbles=!0,li(o,"pointerover",e,t),o=this.b,e.bubbles=!1,li(o,"pointerenter",e,t),li(this.b,"pointerdown",e,t)},Eu.qq=function(t){t.preventDefault(),oi(this,t,this.km)},Eu.km=function(t,e){var o,i,r=this.a[e.pointerId];r&&(o=r.out,i=r.Wi,li(this.b,"pointermove",e,t),o&&i!==e.target&&(o.relatedTarget=e.target,e.relatedTarget=i,o.target=i,e.target?(pi(this.b,o,t),hi(this.b,e,t)):(e.target=i,e.relatedTarget=null,this.Kf(t,e))),r.out=e,r.Wi=e.target)},Eu.pq=function(t){ii(this,t),oi(this,t,this.sq)},Eu.sq=function(t,e){li(this.b,"pointerup",e,t),this.b.out(e,t),ai(this.b,e,t),delete this.a[e.pointerId],e.isPrimary&&(this.i=void 0,this.c=setTimeout(this.ij.bind(this),200))},Eu.oq=function(t){oi(this,t,this.Kf)},Eu.Kf=function(t,e){this.b.cancel(e,t),this.b.out(e,t),ai(this.b,e,t),delete this.a[e.pointerId],e.isPrimary&&(this.i=void 0,this.c=setTimeout(this.ij.bind(this),200))},i(ri,Te),ri.prototype.c=function(t){var e=this.f[t.type];e&&e(t)},ri.prototype.out=function(t,e){t.bubbles=!0,li(this,"pointerout",t,e)},ri.prototype.cancel=function(t,e){li(this,"pointercancel",t,e)};var ci=[["bubbles",!(ri.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){we(this.g,t,this.c,this)},e);Te.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 fi(t,e){Te.call(this),this.i=t,this.j=0,this.o=!1,this.f=[],this.D=e?e*No:No,this.c=null,t=this.i.a,this.S=0,this.u={},this.g=new ri(t),this.a=null,this.l=be(this.g,"pointerdown",this.Ol,this),this.v=be(this.g,"pointermove",this.Lp,this)}function yi(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 gi(t,e){return Math.abs(e.clientX-t.c.clientX)>t.D||Math.abs(e.clientY-t.c.clientY)>t.D}function di(t,e){this.l=t,this.c=e,this.b=[],this.i=[],this.a={}}function vi(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(),bi(t,0)),e=t.c(i),delete t.a[e],i}function bi(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,mi(t,a,e)}function mi(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 wi(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--)bi(t,e)}function xi(e,t){di.call(this,function(t){return e.apply(null,t)},function(t){return t[0].bb()}),this.v=t,this.j=0,this.g={}}function Si(t,e,o){for(var i,r,n=0;t.j<e&&n<o&&0<t.b.length;)r=(i=vi(t)[0]).bb(),0!==i.getState()||r in t.g||(t.g[r]=!0,++t.j,++n,i.load())}function Mi(t){if(void 0!==t)return 0}function Pi(t,e){if(void 0!==t)return t+e}function Ai(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 Ei(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 Ti(t,e){return t[0]+=e[0],t[1]+=e[1],t}function ji(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 Ci(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+"° "+Ai(s)+"′ "+Ai(i,o)+"″"+(e?" "+t.charAt(e<0?1:0):"")}function Li(t,e,o){return t?e.replace("{x}",t[0].toFixed(o)).replace("{y}",t[1].toFixed(o)):""}function Ri(t,e){for(var o=!0,i=t.length-1;0<=i;--i)if(t[i]!=e[i]){o=!1;break}return o}function Ii(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 Ni(t,e){t[0]*=e,t[1]*=e}function Fi(t,e){var o=t[0]-e[0];return o*o+(t=t[1]-e[1])*t}function ki(t,e){return Math.sqrt(Fi(t,e))}function Di(t,e){return Fi(t,ji(t,e))}function Oi(t,e){return Li(t,"{x}, {y}",e)}function Ui(){return!0}function Gi(){return!1}function Bi(){Le.call(this),this.l=Z(),this.v=-1,this.f={},this.o=this.g=0}function Xi(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 Vi(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 Wi(){Bi.call(this),this.ja="XY",this.a=2,this.A=null}function Zi(t){var e;return"XY"==t?e=2:"XYZ"==t||"XYM"==t?e=3:"XYZM"==t&&(e=4),e}function Ki(t,e,o){t.a=Zi(e),t.ja=e,t.A=o}function zi(t,e,o,i){if(e)o=Zi(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 Yi(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 Hi(t,e,o,i){for(var r=0,n=0,s=o.length;n<s;++n){var a=o[n],r=r+Yi(t,e,a,i);e=a}return r}function qi(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 Ji(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 _i(t,e,o,i,r){for(var n=0,s=o.length;n<s;++n){var a=o[n];r=Ji(t,e,a,i,r),e=a}return r}function $i(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(qi(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&&(qi(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 Qi(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=$i(t,e,f,i,r,n,s,a,p,h,l),e=f}return h}function tr(t,e){for(var o=0,i=0,r=e.length;i<r;++i)t[o++]=e[i];return o}function er(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 or(t,e,o,i,r){r=r||[];for(var n=0,s=0,a=o.length;s<a;++s)e=er(t,e,o[s],i),r[n++]=e;return r.length=n,r}function ir(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 rr(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++]=ir(t,e,p,i,r[n]),e=p}return r.length=n,r}function nr(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 sr(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 ar(t,e){Wi.call(this),this.c=this.j=-1,this.ma(t,e)}function pr(t,e,o){Ki(t,e,o),t.s()}function hr(t,e){Wi.call(this),this.ma(t,e)}function lr(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 ur(t,e,o,i,r,n){if(!o.length||!lr(t,e,o[0],i,r,n))return!1;var s;for(e=1,s=o.length;e<s;++e)if(lr(t,o[e-1],o[e],i,r,n))return!1;return!0}function cr(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)&&(l=(a-u)/(y-u)*(f-l)+l,p.push(l)),l=f,u=y}for(h=NaN,u=-1/0,p.sort(G),l=p[0],c=1,y=p.length;c<y;++c){f=p[c];var g=Math.abs(f-l);u<g&&(ur(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 fr(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 yr(t,e,o,i,l){var r=q(Z(),t,e,o,i);return!!at(l,r)&&(!!(N(l,r)||r[0]>=l[0]&&r[2]<=l[2]||r[1]>=l[1]&&r[3]<=l[3])||fr(t,e,o,i,function(t,e){var o,i,r,n,s,a=!1,p=F(l,t),h=F(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]),2&h&&!(2&p)&&(a=o<=(a=s-(e-n)/t)&&a<=r),a||!(4&h)||4&p||(a=i<=(a=e-(s-r)*t)&&a<=n),a||!(8&h)||8&p||(a=o<=(a=s-(e-i)/t)&&a<=r),a||!(16&h)||16&p||(a=i<=(a=e-(s-o)*t)&&a<=n)),a}))}function gr(t,e,o,i,r){var n=o[0];if(!(yr(t,e,n,i,r)||lr(t,e,n,i,r[0],r[1])||lr(t,e,n,i,r[0],r[3])||lr(t,e,n,i,r[2],r[1])||lr(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!J(t,function(t){return!lr(e,o,i,r,t[0],t[1])})}(t,o[e-1],o[e],i,r))return!1;return!0}function dr(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 vr(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=dr(t,r,a,o);if(n){if(i&&!r||!i&&r)return}else if(i&&r||!i&&!r)return;r=a}return 1}function br(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=dr(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 mr(t,e,o,i){for(var r=0,n=0,s=e.length;n<s;++n)r=br(t,r,e[n],o,i);return r}function wr(t,e){Wi.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 xr(t){var e;return t.u!=t.i&&(e=tt(t.G()),t.D=cr(t.ec(),0,t.c,t.a,e,0),t.u=t.i),t.D}function Sr(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 wr(null)).ba("XY",i,[i.length]),t}function Mr(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 wr(null)).ba("XY",e,[e.length]),o}function Pr(t,e,o){for(var i=e||32,r=t.qa(),n=new wr(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]),Ar(n,t.wa(),t.pd(),o),n}function Ar(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 Er(t){Le.call(this),t=ut({},t),this.o=[0,0],this.c=[],this.wf=this.wf.bind(this),this.v=Gt(t.projection),Tr(this,t)}function Tr(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,g=void 0!==e.minZoom?e.minZoom:0,d=void 0!==e.maxZoom?e.maxZoom:28,v=void 0!==e.zoomFactor?e.zoomFactor:2,d=void 0!==e.resolutions?(s=(d=e.resolutions)[0],i=d[d.length-1],l=d,function(t,e,o){if(void 0!==t)return(t=x((t=b(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]}):(n=(r=((i=(s=Gt(e.projection)).G())?Math.max(st(i),ot(i)):360*vt.degrees/s.sc())/256/Math.pow(2,0))/Math.pow(2,28),void 0!==(s=e.maxResolution)?g=0:s=r/Math.pow(v,g),void 0===(i=e.minResolution)&&(i=void 0!==e.maxZoom?void 0!==e.maxResolution?s/Math.pow(v,d):r/Math.pow(v,d):n),d=g+Math.floor(Math.log(s/i)/Math.log(v)),i=s/Math.pow(v,d-g),a=v,p=s,h=d-g,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=s,t.f=i,t.C=v,t.j=e.resolutions,t.l=g,g=void 0===e.enableRotation||e.enableRotation?void 0===(g=e.constrainRotation)||!0===g?(f=M(5),function(t,e){if(void 0!==t)return Math.abs(t+e)<=f?0:t+e}):!1!==g&&"number"==typeof g?(u=g,c=2*Math.PI/u,function(t,e){if(void 0!==t)return Math.floor((t+e)/c+.5)*c}):Pi:Mi,t.g={center:void 0!==e.extent?(y=e.extent,function(t){if(t)return[x(t[0],y[0],y[2]),x(t[1],y[1],y[3])]}):ce,resolution:d,rotation:g},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 jr(t,e){var o=ut({},t.D);return void 0!==o.resolution?o.resolution=t.Pa():o.zoom=t.Hh(),o.center=t.wa(),o.rotation=t.Qa(),ut({},o,e)}function Cr(t,e,o){var i,r=t.wa();return void 0!==r&&(Ii(i=[r[0]-o[0],r[1]-o[1]],e-t.Qa()),Ti(i,o)),i}function Lr(t,e,o){var i,r=t.wa();return t=t.Pa(),void 0!==r&&void 0!==t&&(i=[o[0]-e*(o[0]-r[0])/t,o[1]-e*(o[1]-r[1])/t]),i}function Rr(t){var e=[100,100];return t='.ol-viewport[data-view="'+B(t)+'"]',(t=document.querySelector(t))&&(t=getComputedStyle(t),e[0]=parseInt(t.width,10),e[1]=parseInt(t.height,10)),e}function Ir(t,e){return void 0!==e?(e[0]=t.o[0],e[1]=t.o[1],e):t.o.slice()}function Nr(t){return t.wa()&&void 0!==t.Pa()}function Fr(t,e,o){t.o[e]+=o,t.s()}function kr(t,e,o){this.f=t,this.c=e,this.g=o,this.b=[],this.a=this.i=0}function Dr(t){t.b.length=0,t.i=0,t.a=0}function Or(t){Le.call(this),this.v=null,this.Ha(!0),this.handleEvent=t.handleEvent}function Ur(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:io}):t.rotate(e,o))}function Gr(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=Lr(t,e,o),o=t.Ec(o),o=[(e*r[0]-n*o[0])/(e-n),(e*r[1]-n*o[1])/(e-n)]),Br(t,e,o,i)}function Br(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:io}):(o&&(o=Lr(t,e,o),t.ob(o)),t.Vc(e)))}function Xr(t){t=t||{},this.a=t.delta?t.delta:1,Or.call(this,{handleEvent:Vr}),this.g=void 0!==t.duration?t.duration:250}function Vr(t){var e=!1,o=t.originalEvent;return"dblclick"==t.type&&(e=t.coordinate,o=o.shiftKey?-this.a:this.a,Gr(t.map.Z(),o,e,this.g),t.preventDefault(),e=!0),!e}function Wr(t){return(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey}function Zr(t){return!((t=t.originalEvent).button||Ro&&Io&&t.ctrlKey)}function Kr(t){return"pointermove"==t.type}function zr(t){return"singleclick"==t.type}function Yr(t){return!(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey}function Hr(t){return!(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey}function qr(t){return"INPUT"!==(t=t.originalEvent.target.tagName)&&"SELECT"!==t&&"TEXTAREA"!==t}function Jr(t){return X(t.b,56),"mouse"==t.b.pointerType}function _r(t){return(t=t.b).isPrimary&&0===t.button}function $r(t){Or.call(this,{handleEvent:(t=t||{}).handleEvent?t.handleEvent:tn}),this.yf=t.handleDownEvent?t.handleDownEvent:Gi,this.If=t.handleDragEvent?t.handleDragEvent:w,this.Jf=t.handleMoveEvent?t.handleMoveEvent:w,this.sk=t.handleUpEvent?t.handleUpEvent:Gi,this.D=!1,this.na={},this.o=[]}function Qr(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 tn(t){if(!(t instanceof Ko))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=ft(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 en(t){$r.call(this,{handleDownEvent:nn,handleDragEvent:on,handleUpEvent:rn}),t=t||{},this.a=t.kinetic,this.g=null,this.u=t.condition?t.condition:Yr,this.j=!1}function on(t){var e,o,i=this.o,r=Qr(i);i.length==this.l?(this.a&&this.a.b.push(r[0],r[1],Date.now()),this.g&&(Ni(o=[o=this.g[0]-r[0],r[1]-this.g[1]],(e=(t=t.map.Z()).getState()).resolution),Ii(o,e.rotation),Ti(o,e.center),o=t.Ec(o),t.ob(o))):this.a&&Dr(this.a),this.g=r,this.l=i.length}function rn(t){var e,o,i,r=t.map;return t=r.Z(),this.o.length?(this.a&&Dr(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:io})),Fr(t,1,-1),!1)}function nn(t){if(0<this.o.length&&this.u(t)){var e=t.map.Z();return this.g=null,this.D||Fr(e,1,1),Ir(e)[0]&&e.ob(t.frameState.viewState.center),this.a&&Dr(this.a),this.j=1<this.o.length,!0}return!1}function sn(t){t=t||{},$r.call(this,{handleDownEvent:hn,handleDragEvent:an,handleUpEvent:pn}),this.g=t.condition?t.condition:Wr,this.a=void 0,this.j=void 0!==t.duration?t.duration:250}function an(t){var e,o,i;!Jr(t)||(e=(o=t.map).Z()).g.rotation!==Mi&&(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(),Ur(e,i-o)),this.a=t)}function pn(t){if(!Jr(t))return!0;Fr(t=t.map.Z(),1,-1);var e=t.Qa(),o=this.j,e=t.constrainRotation(e,0);return Ur(t,e,void 0,o),!1}function hn(t){return!!(Jr(t)&&Zr(t)&&this.g(t))&&(Fr(t.map.Z(),1,1),!(this.a=void 0))}function ln(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 un(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 cn(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 wr([e])}function fn(t){$r.call(this,{handleDownEvent:vn,handleDragEvent:gn,handleUpEvent:dn}),t=t||{},this.a=new ln(t.className||"ol-dragbox"),this.u=void 0!==t.minArea?t.minArea:64,this.g=null,this.C=t.condition?t.condition:Ui,this.l=t.boxEndCondition?t.boxEndCondition:yn}function yn(t,e,o){return(t=o[0]-e[0])*t+(e=o[1]-e[1])*e>=this.u}function gn(t){var e,o;Jr(t)&&(e=this.a,o=t.pixel,e.c=this.g,e.i=o,cn(e),un(e),this.b(new xn(mn,t.coordinate,t)))}function dn(t){return!Jr(t)||(this.a.setMap(null),this.l(t,this.g,t.pixel)&&(this.j(t),this.b(new xn(wn,t.coordinate,t))),!1)}function vn(t){if(Jr(t)&&Zr(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,cn(e),un(e),this.b(new xn(bn,t.coordinate,t)),!0}return!1}i(fi,Te),(Eu=fi.prototype).Jh=function(t){yi(this,t);var e,o,i,r=new Ko("pointerup",this.i,t);this.b(r),this.o||t.button||(o=(e=this).c,i=new Ko("click",e.i,o),e.b(i),e.j?(clearTimeout(e.j),e.j=0,i=new Ko("dblclick",e.i,o),e.b(i)):e.j=setTimeout(function(){this.j=0;var t=new Ko("singleclick",this.i,o);this.b(t)}.bind(e),250)),this.S||(this.f.forEach(xe),this.f.length=0,this.o=!1,this.c=null,Pe(this.a),this.a=null)},Eu.Ol=function(t){yi(this,t);var e=new Ko("pointerdown",this.i,t);this.b(e),this.c=t,this.f.length||(this.a=new ri(document),this.f.push(be(this.a,"pointermove",this.Hm,this),be(this.a,"pointerup",this.Jh,this),be(this.g,"pointercancel",this.Jh,this)))},Eu.Hm=function(t){var e;gi(this,t)&&(this.o=!0,e=new Ko("pointerdrag",this.i,t,this.o),this.b(e)),t.preventDefault()},Eu.Lp=function(t){this.b(new Ko(t.type,this.i,t,!(!this.c||!gi(this,t))))},Eu.ka=function(){this.v&&(xe(this.v),this.v=null),this.l&&(xe(this.l),this.l=null),this.f.forEach(xe),this.f.length=0,this.a&&(Pe(this.a),this.a=null),this.g&&(Pe(this.g),this.g=null),Te.prototype.ka.call(this)},di.prototype.clear=function(){this.b.length=0,this.i.length=0,ct(this.a)},di.prototype.f=function(t){X(!(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,mi(this,0,this.b.length-1),!0)},i(xi,di),xi.prototype.f=function(t){var e=di.prototype.f.call(this,t);return e&&be(t[0],"change",this.o,this),e},xi.prototype.o=function(t){var e=(t=t.target).getState();2!==e&&3!==e&&4!==e&&5!==e||(we(t,"change",this.o,this),(t=t.bb())in this.g&&(delete this.g[t],--this.j),this.v())},i(Bi,Le),(Eu=Bi.prototype).Ab=function(t,e){return e=e||[NaN,NaN],this.Kb(t[0],t[1],e,1/0),e},Eu.sb=function(t){return this.Mc(t[0],t[1])},Eu.Mc=Gi,Eu.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},Eu.Rb=function(t){return this.Vd(t*t)},Eu.tb=function(t,e){return this.Dc(Zt(t,e)),this},i(Wi,Bi),(Eu=Wi.prototype).Mc=Gi,Eu.se=function(t){return K(this.A,0,this.A.length,this.a,t)},Eu.ac=function(){return this.A.slice(0,this.a)},Eu.ga=function(){return this.A},Eu.bc=function(){return this.A.slice(this.A.length-this.a)},Eu.cc=function(){return this.ja},Eu.Vd=function(t){if(this.o!=this.i&&(ct(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)},Eu.hd=function(){return this},Eu.qa=function(){return this.a},Eu.Dc=function(t){this.A&&(t(this.A,this.A,this.a),this.s())},Eu.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()}},Eu.scale=function(t,e,o){var i=e;if(void 0===i&&(i=t),a=(a=o)||tt(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()}},Eu.translate=function(t,e){var o=this.ga();o&&(Vi(o,0,o.length,this.qa(),t,e,o),this.s())},i(ar,Wi),(Eu=ar.prototype).clone=function(){var t=new ar(null);return pr(t,this.ja,this.A.slice()),t},Eu.Kb=function(t,e,o,i){return i<j(this.G(),t,e)?i:(this.c!=this.i&&(this.j=Math.sqrt(Ji(this.A,0,this.A.length,this.a,0)),this.c=this.i),$i(this.A,0,this.A.length,this.a,this.j,!0,t,e,o,i))},Eu.qn=function(){return Yi(this.A,0,this.A.length,this.a)},Eu.X=function(){return ir(this.A,0,this.A.length,this.a)},Eu.hd=function(t){var e=[];return e.length=nr(this.A,0,this.A.length,this.a,t,e,0),pr(t=new ar(null),"XY",e),t},Eu.U=function(){return"LinearRing"},Eu.Xa=function(){},Eu.ma=function(t,e){t?(zi(this,e,t,1),this.A||(this.A=[]),this.A.length=er(this.A,0,t,this.a),this.s()):pr(this,"XY",null)},i(hr,Wi),(Eu=hr.prototype).clone=function(){var t=new hr(null);return t.ba(this.ja,this.A.slice()),t},Eu.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},Eu.X=function(){return this.A?this.A.slice():[]},Eu.se=function(t){return O(this.A,t)},Eu.U=function(){return"Point"},Eu.Xa=function(t){return I(t,this.A[0],this.A[1])},Eu.ma=function(t,e){t?(zi(this,e,t,0),this.A||(this.A=[]),this.A.length=tr(this.A,t),this.s()):this.ba("XY",null)},Eu.ba=function(t,e){Ki(this,t,e),this.s()},i(wr,Wi),(Eu=wr.prototype).pk=function(t){this.A?c(this.A,t.ga()):this.A=t.ga().slice(),this.c.push(this.A.length),this.s()},Eu.clone=function(){var t=new wr(null);return t.ba(this.ja,this.A.slice(),this.c.slice()),t},Eu.Kb=function(t,e,o,i){return i<j(this.G(),t,e)?i:(this.C!=this.i&&(this.B=Math.sqrt(_i(this.A,0,this.c,this.a,0)),this.C=this.i),Qi(this.A,0,this.c,this.a,this.B,!0,t,e,o,i))},Eu.Mc=function(t,e){return ur(this.ec(),0,this.c,this.a,t,e)},Eu.tn=function(){return Hi(this.ec(),0,this.c,this.a)},Eu.X=function(t){var e;return void 0!==t?br(e=this.ec().slice(),0,this.c,this.a,t):e=this.A,rr(e,0,this.c,this.a)},Eu.Bb=function(){return this.c},Eu.Tk=function(){return new hr(xr(this))},Eu.Zk=function(){return this.c.length},Eu.Ch=function(t){if(t<0||this.c.length<=t)return null;var e=new ar(null);return pr(e,this.ja,this.A.slice(t?this.c[t-1]:0,this.c[t])),e},Eu.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 ar(null);pr(p,t,e.slice(r,a)),i.push(p),r=a}return i},Eu.ec=function(){var t;return this.I!=this.i&&(vr(t=this.A,this.c,this.a)?this.j=t:(this.j=t.slice(),this.j.length=br(this.j,0,this.c,this.a)),this.I=this.i),this.j},Eu.hd=function(t){var e=[],o=[];return e.length=sr(this.A,0,this.c,this.a,Math.sqrt(t),e,0,o),(t=new wr(null)).ba("XY",e,o),t},Eu.U=function(){return"Polygon"},Eu.Xa=function(t){return gr(this.ec(),0,this.c,this.a,t)},Eu.ma=function(t,e){t?(zi(this,e,t,2),this.A||(this.A=[]),t=or(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)},Eu.ba=function(t,e,o){Ki(this,t,e),this.c=o,this.s()},i(Er,Le),(Eu=Er.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||ro};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),Fr(this,0,1),this.wf()},Eu.Ic=function(){return 0<Ir(this)[0]},Eu.Rk=function(){return 0<Ir(this)[1]},Eu.ed=function(){Fr(this,0,-Ir(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},Eu.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",Lr(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",Cr(this,e,a.anchor)),this.set("rotation",e)),e=!0,!a.complete)break}}r&&(this.c[o]=null,Fr(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))}},Eu.Ec=function(t){return this.g.center(t)},Eu.constrainResolution=function(t,e,o){return this.g.resolution(t,e||0,o||0)},Eu.constrainRotation=function(t,e){return this.g.rotation(t,e||0)},Eu.wa=function(){return this.get("center")},Eu.dd=function(t){t=t||Rr(this);var e=this.wa();X(e,1);var o=this.Pa();X(void 0!==o,2);var i=this.Qa();return X(void 0!==i,3),et(e,o,i,t)},Eu.Nm=function(){return this.a},Eu.Pm=function(){return this.f},Eu.Om=function(){return this.Ce(this.f)},Eu.eq=function(t){Tr(this,jr(this,{maxZoom:t}))},Eu.Qm=function(){return this.Ce(this.a)},Eu.fq=function(t){Tr(this,jr(this,{minZoom:t}))},Eu.Rm=function(){return this.v},Eu.Pa=function(){return this.get("resolution")},Eu.Sm=function(){return this.j},Eu.ze=function(t,e){return e=e||Rr(this),Math.max(st(t)/e[0],ot(t)/e[1])},Eu.Qa=function(){return this.get("rotation")},Eu.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}},Eu.Hh=function(){var t,e=this.Pa();return void 0!==e&&(t=this.Ce(e)),t},Eu.Ce=function(t){if(t>=this.f&&t<=this.a){var e=this.l||0;if(this.j){if(e+=i=b(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},Eu.Qf=function(t,e){var o=(o=(e=e||{}).size)||Rr(this);t instanceof Wi?"Circle"===t.U()?(f=Mr(t=t.G())).rotate(this.Qa(),tt(t)):f=t:(X(Array.isArray(t),24),X(!pt(t),25),f=Mr(t));var i=e.padding?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),!n&&s<o&&(s=this.constrainResolution(s,-1,0)),o=s),p=-p,t=[(s=(h+u)/2+(i[1]-i[3])/2*o)*t-(i=(l+c)/2+(i[0]-i[2])/2*o)*p,i*t+s*p],i=e.callback?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))},Eu.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,i=-i,this.ob([n*r-t*i,t*r+n*i])},Eu.rotate=function(t,e){void 0!==e&&(e=Cr(this,t,e),this.ob(e)),this.Oe(t)},Eu.ob=function(t){this.set("center",t),this.Ic()&&this.ed()},Eu.Vc=function(t){this.set("resolution",t),this.Ic()&&this.ed()},Eu.Oe=function(t){this.set("rotation",t),this.Ic()&&this.ed()},Eu.lq=function(t){t=this.constrainResolution(this.a,t-this.l,0),this.Vc(t)},i(Or,Le),Or.prototype.c=function(){return this.get("active")},Or.prototype.f=function(){return this.v},Or.prototype.Ha=function(t){this.set("active",t)},Or.prototype.setMap=function(t){this.v=t},i(Xr,Or),i($r,Or),$r.prototype.Xc=function(t){return t},i(en,$r),en.prototype.Xc=Gi,i(sn,$r),sn.prototype.Xc=Gi,i(ln,Me),ln.prototype.ka=function(){this.setMap(null)},ln.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)},ln.prototype.V=function(){return this.Gc},i(fn,$r),fn.prototype.V=function(){return this.a.V()},fn.prototype.j=w;var bn="boxstart",mn="boxdrag",wn="boxend";function xn(t,e,o){Ae.call(this,t),this.coordinate=e,this.mapBrowserEvent=o}function Sn(t){var e=(t=t||{}).condition?t.condition:Hr;this.B=void 0!==t.duration?t.duration:200,this.I=void 0!==t.out&&t.out,fn.call(this,{condition:e,className:t.className||"ol-dragzoom"})}function Mn(t){Or.call(this,{handleEvent:Pn}),t=t||{},this.a=function(t){return Yr(t)&&qr(t)},this.g=t.condition?t.condition:this.a,this.j=void 0!==t.duration?t.duration:100,this.o=void 0!==t.pixelDelta?t.pixelDelta:128}function Pn(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,Ii(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:no,center:o}):n.ob(o)),t.preventDefault(),n=!0)),!n}function An(t){Or.call(this,{handleEvent:En}),t=t||{},this.g=t.condition?t.condition:qr,this.a=t.delta?t.delta:1,this.j=void 0!==t.duration?t.duration:100}function En(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,Gr(e=t.map.Z(),o,void 0,this.j),t.preventDefault(),o=!0)),!o}function Tn(t){Or.call(this,{handleEvent:jn}),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 jn(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,Co&&i.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(e/=No),i.deltaMode===WheelEvent.DOM_DELTA_LINE&&(e*=40)):"mousewheel"==t.type&&(e=-i.wheelDeltaY,Lo&&(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?Cn:Ln),this.o!==Cn)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):Fr(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=Lr(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:io,anchor:this.a,duration:this.D}),0<a?o.animate({resolution:n,easing:io,anchor:this.a,duration:500}):a<0&&o.animate({resolution:s,easing:io,anchor:this.a,duration:500}),this.g=t,!1}i(xn,Ae),i(Sn,fn),Sn.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($(o)),r.Ja(nt(o))],r=D(void 0),n=0,s=o.length;n<s;++n)H(r,o[n]);ht(i,1/(o=t.ze(r,e))),o=i}e=t.constrainResolution(t.ze(o,e)),i=tt(o),i=t.Ec(i),t.animate({resolution:e,center:i,duration:this.B,easing:io})},i(Mn,Or),i(An,Or),i(Tn,Or),Tn.prototype.B=function(){this.l=void 0,Fr(this.v.Z(),1,-1)},Tn.prototype.I=function(t){(t=t.Z()).Ic()&&t.ed(),Gr(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},Tn.prototype.T=function(t){(this.C=t)||(this.a=null)};var Cn="trackpad",Ln="wheel";function Rn(t){$r.call(this,{handleDownEvent:Fn,handleDragEvent:In,handleUpEvent:Nn}),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 In(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!==Mi&&(r=t.a.getBoundingClientRect(),(e=Qr(this.o))[0]-=r.left,e[1]-=r.top,this.g=t.Wa(e),this.a&&(r=i.Qa(),t.render(),Ur(i,r+o,this.g)))}function Nn(t){var e,o,i;return!(this.o.length<2)||(Fr(t=t.map.Z(),1,-1),this.a&&(i=t.Qa(),e=this.g,o=this.u,i=t.constrainRotation(i,0),Ur(t,i,e,o)),!1)}function Fn(t){return 2<=this.o.length&&(t=t.map,this.g=null,this.j=void 0,this.a=!1,this.l=0,this.D||Fr(t.Z(),1,1),!0)}function kn(t){$r.call(this,{handleDownEvent:Un,handleDragEvent:Dn,handleUpEvent:On}),t=t||{},this.l=t.constrainResolution||!1,this.g=null,this.u=void 0!==t.duration?t.duration:400,this.a=void 0,this.j=1}function Dn(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=Qr(this.o))[0]-=e.left,i[1]-=e.top,this.g=t.Wa(i),t.render(),Br(r,o,this.g)}function On(t){if(this.o.length<2){Fr(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),Br(t,i,e,o)),!1}return!0}function Un(t){return 2<=this.o.length&&(t=t.map,this.g=null,this.a=void 0,this.j=1,this.D||Fr(t.Z(),1,1),!0)}function Gn(t){t=t||{};var e=new ke,o=new kr(-.005,.05,100);return void 0!==t.altShiftDragRotate&&!t.altShiftDragRotate||e.push(new sn),void 0!==t.doubleClickZoom&&!t.doubleClickZoom||e.push(new Xr({delta:t.zoomDelta,duration:t.zoomDuration})),void 0!==t.dragPan&&!t.dragPan||e.push(new en({kinetic:o})),void 0!==t.pinchRotate&&!t.pinchRotate||e.push(new Rn),void 0!==t.pinchZoom&&!t.pinchZoom||e.push(new kn({constrainResolution:t.constrainResolution,duration:t.zoomDuration})),void 0!==t.keyboard&&!t.keyboard||(e.push(new Mn),e.push(new An({delta:t.zoomDelta,duration:t.zoomDuration}))),void 0!==t.mouseWheelZoom&&!t.mouseWheelZoom||e.push(new Tn({constrainResolution:t.constrainResolution,duration:t.zoomDuration})),void 0!==t.shiftDragZoom&&!t.shiftDragZoom||e.push(new Sn({duration:t.zoomDuration})),e}function Bn(t){Le.call(this);var e=ut({},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 Xn(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 Vn(t){var e=t||{};delete(t=ut({},e)).layers,e=e.layers,Bn.call(this,t),this.f=[],this.c={},be(this,Ie(Wn),this.Hl,this),e?Array.isArray(e)?e=new ke(e.slice(),{unique:!0}):X(e instanceof ke,43):e=new ke(void 0,{unique:!0}),this.xi(e)}i(Rn,$r),Rn.prototype.Xc=Gi,i(kn,$r),kn.prototype.Xc=Gi,i(Bn,Le),(Eu=Bn.prototype).G=function(){return this.get("extent")},Eu.fc=function(){return this.get("maxResolution")},Eu.gc=function(){return this.get("minResolution")},Eu.hc=function(){return this.get("opacity")},Eu.Mb=function(){return this.get("visible")},Eu.Ba=function(){return this.get("zIndex")},Eu.vc=function(t){this.set("extent",t)},Eu.Ac=function(t){this.set("maxResolution",t)},Eu.Bc=function(t){this.set("minResolution",t)},Eu.wc=function(t){this.set("opacity",t)},Eu.xc=function(t){this.set("visible",t)},Eu.Vb=function(t){this.set("zIndex",t)},i(Vn,Bn),(Eu=Vn.prototype).Fd=function(){},Eu.Fe=function(){this.Mb()&&this.s()},Eu.Hl=function(){this.f.forEach(xe),this.f.length=0;var t=this.qd();for(e in this.f.push(be(t,"add",this.Gl,this),be(t,"remove",this.Il,this)),this.c)this.c[e].forEach(xe);ct(this.c);for(var e=0,o=(t=t.a).length;e<o;e++){var i=t[e];this.c[B(i).toString()]=[be(i,"propertychange",this.Fe,this),be(i,"change",this.Fe,this)]}this.s()},Eu.Gl=function(t){var e=B(t=t.element).toString();this.c[e]=[be(t,"propertychange",this.Fe,this),be(t,"change",this.Fe,this)],this.s()},Eu.Il=function(t){t=B(t.element).toString(),this.c[t].forEach(xe),delete this.c[t],this.s()},Eu.qd=function(){return this.get(Wn)},Eu.xi=function(t){this.set(Wn,t)},Eu.Yf=function(t){var e,o=void 0!==t?t:[],i=o.length;for(this.qd().forEach(function(t){t.Yf(o)}),t=Xn(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?it(r.extent,t.extent):t.extent)}return o},Eu.$f=function(){return"ready"};var Wn="layers";function Zn(t){var e=ut({},t);delete e.source,Bn.call(this,e),this.v=this.l=this.o=null,t.map&&this.setMap(t.map),be(this,Ie("source"),this.Ul,this),this.Wc(t.source?t.source:null)}function Kn(t,e){return t.visible&&e>=t.minResolution&&e<t.maxResolution}function zn(){this.b={},this.a=0}i(Zn,Bn),(Eu=Zn.prototype).Yf=function(t){return(t=t||[]).push(Xn(this)),t},Eu.ha=function(){return this.get("source")||null},Eu.$f=function(){var t=this.ha();return t?t.getState():"undefined"},Eu.Tn=function(){this.s()},Eu.Ul=function(){this.v&&(xe(this.v),this.v=null);var t=this.ha();t&&(this.v=be(t,"change",this.Tn,this)),this.s()},Eu.setMap=function(t){this.o&&(xe(this.o),this.o=null),t||this.s(),this.l&&(xe(this.l),this.l=null),t&&(this.o=be(t,"precompose",function(t){var e=Xn(this);e.Je=!1,e.zIndex=1/0,t.frameState.layerStatesArray.push(e),t.frameState.layerStates[B(this)]=e},this),this.l=be(this,"change",t.render,t),this.s())},Eu.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?We(o):"null"))in this.b?this.b[t]:null},zn.prototype.set=function(t,e,o,i){this.b[e+":"+t+":"+(o?We(o):"null")]=i,++this.a};var Yn=new zn,Hn=Array(6);function qn(){return[1,0,0,1,0,0]}function Jn(t){return $n(t,1,0,0,1,0,0)}function _n(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 $n(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 Qn(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 ts(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 es(t,e){var o=Math.cos(e);e=Math.sin(e),_n(t,$n(Hn,o,e,-e,o,0,0))}function os(t,e,o){return _n(t,$n(Hn,e,0,0,o,0,0))}function is(t,e,o){_n(t,$n(Hn,1,0,0,1,e,o))}function rs(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 ns(t){var e=t[0]*t[3]-t[1]*t[2];X(!!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 ss(t,e){this.o=e,this.c={},this.v={}}function as(t){var e=t.viewState,o=t.coordinateToPixelTransform,i=t.pixelToCoordinateTransform;rs(o,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),ns(Qn(i,o))}function ps(){if(32<Yn.a){var t,e=0;for(t in Yn.b){var o=Yn.b[t];3&e++||je(o)||(delete Yn.b[t],--Yn.a)}}}function hs(t,e){var o=B(e).toString();return o in t.c?t.c[o]:(e=e.Fd(t),t.c[o]=e,t.v[o]=be(e,"change",t.Fl,t),e)}function ls(t,e){for(var o in t.c)if(!(o in e.layerStates)){e.postRenderFunctions.push(t.Rp.bind(t));break}}function us(t,e){return t.zIndex-e.zIndex}function cs(t,e,o,i,r){Ae.call(this,t),this.vectorContext=e,this.frameState=o,this.context=i,this.glContext=r}i(ss,Me),(Eu=ss.prototype).ka=function(){for(var t in this.c)Pe(this.c[t])},Eu.Ea=function(t,r,e,n,s,o,i){function a(t,e){var o=B(t).toString(),i=r.layerStates[B(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=st(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(Kn(f,l)&&o.call(i,y)&&(f=hs(this,y),y.ha()&&(p=f.Ea(y.ha().u?c:t,r,e,a,s)),p))return p}},Eu.Ei=function(t,e,o,i,r){return void 0!==this.Ea(t,e,o,Ui,this,i,r)},Eu.Fl=function(){this.o.render()},Eu.Jg=w,Eu.Rp=function(t,e){for(var o in this.c){var i;e&&o in e.layerStates||(t=o,i=this.c[t],delete this.c[t],xe(this.v[t]),delete this.v[t],Pe(i))}},i(cs,Ae);var fs=[0,0,0,1],ys=[],gs=[0,0,0,1];function ds(t,e,o,i){e&&(t.translate(o,i),t.rotate(e),t.translate(-o,-i))}function vs(){}function bs(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=qn()}function ms(t,e,o){if(t.M){e=Xi(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||(rs(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 ws(t,e,o,i){var r=0;if(t.ra&&""!==t.Ia){t.g&&Ms(t,t.g),t.o&&Ps(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=Xi(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=rs(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 xs(t,e,o,i,r,n){var s=t.i;for(t=Xi(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 Ss(t,e,o,i,r){for(var n=0,s=i.length;n<s;++n)o=xs(t,e,o,i[n],r,!0);return o}function Ms(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 Ps(t,e){var o=t.i,i=t.R;i?(i.lineCap!=e.lineCap&&(i.lineCap=o.lineCap=e.lineCap),Fo&&!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,Fo&&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 As(t,e){ss.call(this,0,e),this.i=qe(),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=qn()}function Es(t,e,o){var i,r,n,s,a,p=t.o,h=t.i;je(p,e)&&(i=o.extent,r=o.pixelRatio,n=o.viewState.rotation,s=o.viewState,a=o.pixelRatio/s.resolution,t=rs(t.f,t.b.width/2,t.b.height/2,a,-a,-s.rotation,-s.center[0],-s.center[1]),p.b(new cs(e,new bs(h,r,i,t,n),o,h,null)))}(Eu=vs.prototype).zb=function(){},Eu.rd=function(){},Eu.Zb=function(){},Eu.te=function(){},Eu.ue=function(){},Eu.mc=function(){},Eu.nc=function(){},Eu.oc=function(){},Eu.pc=function(){},Eu.qc=function(){},Eu.rc=function(){},Eu.yc=function(){},Eu.Ma=function(){},Eu.Ub=function(){},Eu.Cb=function(){},i(bs,vs),(Eu=bs.prototype).Zb=function(t){var e,o,i;at(this.c,t.G())&&((this.a||this.b)&&(this.a&&Ms(this,this.a),this.b&&Ps(this,this.b),e=this.S,o=this.v,o=(e=(i=t.ga())?Xi(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&&ws(this,t.wa(),2,2))},Eu.rd=function(t){this.Ma(t.Fa(),t.Ga()),this.Ub(t.Y()),this.Cb(t.Na())},Eu.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)}},Eu.te=function(t,e){(t=(0,e.Za)(t))&&at(this.c,t.G())&&(this.rd(e),this.zb(t))},Eu.ue=function(t){for(var e=0,o=(t=t.a).length;e<o;++e)this.zb(t[e])},Eu.qc=function(t){var e=t.ga();t=t.qa(),this.M&&ms(this,e,e.length),""!==this.Ia&&ws(this,e,e.length,t)},Eu.oc=function(t){var e=t.ga();t=t.qa(),this.M&&ms(this,e,e.length),""!==this.Ia&&ws(this,e,e.length,t)},Eu.mc=function(t){var e,o;at(this.c,t.G())&&(this.b&&(Ps(this,this.b),e=this.i,o=t.ga(),e.beginPath(),xs(this,o,0,o.length,t.qa(),!1),e.stroke()),""!==this.Ia&&ws(this,t=cl(t),2,2))},Eu.nc=function(t){var e=t.G();if(at(this.c,e)){if(this.b){Ps(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=xs(this,o,i,r[s],n,!1);e.stroke()}""!==this.Ia&&ws(this,t=yl(t),t.length,2)}},Eu.rc=function(t){var e;at(this.c,t.G())&&((this.b||this.a)&&(this.a&&Ms(this,this.a),this.b&&Ps(this,this.b),(e=this.i).beginPath(),Ss(this,t.ec(),0,t.Bb(),t.qa()),this.a&&e.fill(),this.b&&e.stroke()),""!==this.Ia&&ws(this,t=xr(t),2,2))},Eu.pc=function(t){if(at(this.c,t.G())){if(this.b||this.a){this.a&&Ms(this,this.a),this.b&&Ps(this,this.b);var e=this.i,o=ml(t),i=0,r=t.c,n=t.qa();e.beginPath();for(var s=0,a=r.length;s<a;++s)i=Ss(this,o,i,r[s],n);this.a&&e.fill(),this.b&&e.stroke()}""!==this.Ia&&ws(this,t=bl(t),t.length,2)}},Eu.Ma=function(t,e){var o,i,r,n,s;t?(t=t.b,this.a={fillStyle:He(t||fs)}):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||ys,lineDashOffset:r||0,lineJoin:void 0!==n?n:"round",lineWidth:this.u*(void 0!==s?s:1),miterLimit:void 0!==e?e:10,strokeStyle:He(t||gs)}):this.b=null},Eu.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},Eu.Cb=function(t){var e,o,i,r,n,s,a,p;t?((e=t.Fa())?(e=e.b,this.g={fillStyle:He(e||fs)}):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||ys,lineDashOffset:r||0,lineJoin:void 0!==n?n:"round",lineWidth:void 0!==s?s:1,miterLimit:void 0!==a?a:10,strokeStyle:He(e||gs)}):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=""},i(As,ss),As.prototype.U=function(){return"canvas"},As.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,as(t),Es(this,"precompose",t);var n=t.layerStatesArray;h(n),o&&(e.save(),ds(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=hs(this,p=a.layer);Kn(a,i)&&"ready"==a.yj&&p.sd(t,a)&&p.S(t,a,e)}o&&e.restore(),Es(this,"postcompose",t),this.a||(this.b.style.display="",this.a=!0),ls(this,t),t.postRenderFunctions.push(ps)}else this.a&&(this.b.style.display="none",this.a=!1)},As.prototype.Di=function(t,e,o,i,r,n){var s=e.viewState.resolution,a=e.layerStatesArray,p=a.length;for(t=ts(e.pixelToCoordinateTransform,t.slice()),--p;0<=p;--p){var h=a[p],l=h.layer;if(Kn(h,s)&&r.call(n,l)&&(h=hs(this,l).u(t,e,o,i)))return h}};var Ts=["Polygon","Circle","LineString","Image","Text"];function js(){}function Cs(t){this.b=t}function Ls(t){this.b=t}function Rs(t){this.b=t}function Is(){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;}}"}i(Ls,Cs),Ls.prototype.U=function(){return 35632},i(Rs,Cs),Rs.prototype.U=function(){return 35633},i(Is,Ls);var Ns=new Is;function Fs(){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);}}"}i(Fs,Rs);var ks=new Fs;function Ds(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 Os(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function Us(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 Gs(t,e){this.origin=tt(e),this.xb=qn(),this.Sa=qn(),this.$a=qn(),this.Jb=Os(),this.b=[],this.o=null,this.i=[],this.f=[],this.a=[],this.l=null,this.g=void 0}function Bs(t,e,o,i){t.drawElements(4,i-o,e.g?5125:5123,o*(e.g?4:2))}i(Gs,vs),Gs.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)),oa(t,34962,this.l),oa(t,34963,this.o),n=this.rf(m,t,r,n);var w,x=Jn(this.xb);return os(x,2/(o*r[0]),2/(o*r[1])),es(x,-i),is(x,-(e[0]-this.origin[0]),-(e[1]-this.origin[1])),os(e=Jn(this.$a),2/r[0],2/r[1]),r=Jn(this.Sa),i&&es(r,-i),m.uniformMatrix4fv(n.i,!1,Us(this.Jb,x)),m.uniformMatrix4fv(n.f,!1,Us(this.Jb,e)),m.uniformMatrix4fv(n.c,!1,Us(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 Xs=[0,0,0,1],Vs=[],Ws=[0,0,0,1];function Zs(t,e,o,i,r,n){return(t=(o-t)*(n-e)-(r-t)*(i-e))<=Ks&&-Ks<=t?void 0:0<t}var Ks=Number.EPSILON||2220446049250313e-31;function zs(t){this.b=void 0!==t?t:[],this.a=Ys}var Ys=35044;function Hs(t,e){Gs.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 qs(t,e,o,i){e.uniform4fv(t.v.R,o),e.uniform1f(t.v.oa,i)}function Js(){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;}"}i(Hs,Gs),(Eu=Hs.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=Vi(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))},Eu.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},Eu.Eb=function(t){var e=this.l,o=this.o;return function(){ia(t,e),ia(t,o)}},Eu.rf=function(t,e,o,i){var r,n=sa(e,Ns,ks);return this.v?r=this.v:this.v=r=new Ds(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},Eu.sf=function(t,e){t.disableVertexAttribArray(e.b),t.disableVertexAttribArray(e.j),t.disableVertexAttribArray(e.S)},Eu.Od=function(t,e,o){if(yt(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]),qs(this,t,n[1],n[2]),Bs(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]),qs(this,t,a[1],a[2]),a=this.u[r];0<=s&&this.i[s]>=a;){var p=this.i[s];o[B(this.f[s]).toString()]&&(i!==n&&Bs(t,e,i,n),n=p),s--,i=p}i!==n&&Bs(t,e,i,n),i=n=a}},Eu.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]),qs(this,t,h[1],h[2]),n=this.u[p];0<=s&&this.i[s]>=n;){h=this.i[s];var l=this.f[s];if(void 0===o[B(l).toString()]&&l.V()&&(void 0===r||at(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),Bs(t,e,h,a),a=i(l)))return a;s--,a=h}}},Eu.Ma=function(t,e){var o;e=e?(o=e.i,this.c.lineDash=o||Vs,o=e.g,this.c.lineDashOffset=o||0,o=!((o=e.a)instanceof CanvasGradient||o instanceof CanvasPattern)&&Ve(o).map(function(t,e){return 3!=e?t/255:t})||Ws,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)&&Ve(t).map(function(t,e){return 3!=e?t/255:t})||Xs,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]))},i(Js,Ls);var _s=new Js;function $s(){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;}"}i($s,Rs);var Qs=new $s;function ta(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 ea(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(o,"OES_element_index_uint"))&&e.getExtension("OES_element_index_uint"),be(this.j,"webglcontextlost",this.Xo,this),be(this.j,"webglcontextrestored",this.Yo,this)}function oa(t,e,o){var i,r,n=t.b,s=o.b,a=String(B(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 ia(t,e){var o=t.b;e=String(B(e));var i=t.a[e];o.isContextLost()||o.deleteBuffer(i.buffer),delete t.a[e]}function ra(t){var e,o,i,r;return t.f||(o=(e=t.b).createFramebuffer(),e.bindFramebuffer(e.FRAMEBUFFER,o),i=pa(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 na(t,e){var o=String(B(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 sa(t,e,o){var i=B(e)+"/"+B(o);if(i in t.i)return t.i[i];var r=t.b,n=r.createProgram();return r.attachShader(n,na(t,e)),r.attachShader(n,na(t,o)),r.linkProgram(n),t.i[i]=n}function aa(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 pa(t,e,o){var i=aa(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 ha(t,e){var o=aa(t,33071,33071);return t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e),o}function la(t,e){Gs.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 ua(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 ca(t,e,o,i){for(var r=e.length,n=0;n<r;++n){var s=e[n],a=B(s).toString();a in o?s=o[a]:(s=ha(i,s),o[a]=s),t[n]=s}}function fa(t,e,o){var i=e-o;return t[0]===t[i]&&t[1]===t[1+i]&&3<e/o&&!!Yi(t,0,e,o)}function ya(){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;}"}i(ea,Me),(Eu=ea.prototype).ka=function(){Se(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)}},Eu.Wo=function(){return this.b},Eu.Xo=function(){ct(this.a),ct(this.c),ct(this.i),this.l=this.v=this.f=this.o=null},Eu.Yo=function(){},Eu.Qc=function(t){return t!=this.o&&(this.b.useProgram(t),this.o=t,!0)},i(la,Gs),(Eu=la.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])}ia(o,i),ia(o,r)}},Eu.oc=function(t,e){this.i.push(this.b.length),this.f.push(e),ua(this,e=t.ga(),e.length,t.qa())},Eu.qc=function(t,e){this.i.push(this.b.length),this.f.push(e),ua(this,e=t.ga(),e.length,t.qa())},Eu.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={};ca(this.va,this.j,e,t),ca(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},Eu.rf=function(t,e){var o,i=sa(e,_s,Qs);return this.B?o=this.B:this.B=o=new ta(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},Eu.sf=function(t,e){t.disableVertexAttribArray(e.b),t.disableVertexAttribArray(e.v),t.disableVertexAttribArray(e.C),t.disableVertexAttribArray(e.u),t.disableVertexAttribArray(e.D)},Eu.Od=function(t,e,o,i){var r=i?this.u:this.va;if(i=i?this.v:this.S,yt(o)){o=0;for(var n=r.length,s=0;o<n;++o){t.bindTexture(3553,r[o]);var a=i[o];Bs(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[B(this.f[n]).toString()]?(l!==p&&Bs(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&&Bs(t,e,l,p)}},Eu.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[B(l).toString()]&&l.V()&&(void 0===r||at(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),Bs(t,e,h,p),p=i(l)))return p;p=h,n--}}},Eu.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?B(this.j[this.j.length-1])!=B(o)&&(this.S.push(this.b.length),this.j.push(o)):this.j.push(o),this.c.length?B(this.c[this.c.length-1])!=B(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]},i(ya,Ls);var ga=new ya;function da(){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);}}"}i(da,Rs);var va=new da;function ba(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 ma(t,e){Gs.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 wa(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=fa(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=xa(t,y=y||[0,0],g,[0,0],l*Ta*(a||1),r),r=xa(t,y,g,[0,0],-l*Ta*(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=xa(t,y,g,[0,0],l*Ca*a,r),r=xa(t,y,g,[0,0],-l*Ca*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=xa(t,[0,0],g,c,l*ja*a,r),r=xa(t,[0,0],g,c,-l*ja*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=xa(t,[0,0],g,c,l*Ea*(a||1),r),h=(r=xa(t,[0,0],g,c,-l*Ea*(a||1),r))/7-1;continue}y=[e[o-2*i],e[o-2*i+1]];var d=c}var v=Zs(y[0],y[1],g[0],g[1],c[0],c[1])?-1:1,r=xa(t,y,g,c,v*La*(s||1),r);r=xa(t,y,g,c,v*Ra*(s||1),r),r=xa(t,y,g,c,-v*Ia*(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=xa(t,y,g,c,v*Na*s,r),t.b[n++]=f+1,t.b[n++]=f+3,t.b[n++]=f)}p&&(f=f||r/7,r=xa(t,y,g,c,(v=dr([y[0],y[1],g[0],g[1],c[0],c[1]],0,6,2)?1:-1)*La*(s||1),r),xa(t,y,g,c,-v*Ia*(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 xa(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 Sa(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 Ma(t,e,o,i){var r;if(fa(e,e.length,i)||(e.push(e[0]),e.push(e[1])),wa(t,e,e.length,i),o.length)for(e=0,r=o.length;e<r;++e)fa(o[e],o[e].length,i)||(o[e].push(o[e][0]),o[e].push(o[e][1])),wa(t,o[e],o[e].length,i)}function Pa(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 Aa(t,e,o,i,r){e.uniform4fv(t.v.B,o),e.uniform1f(t.v.oa,i),e.uniform1f(t.v.R,r)}i(ma,Gs),(Eu=ma.prototype).mc=function(t,e){var o=t.ga();t=t.qa(),Sa(o,0,o.length,t)&&(o=Vi(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),wa(this,o,o.length,t))},Eu.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){Sa(r,i[s-1],i[s],t)&&wa(this,n=Vi(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))},Eu.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},Eu.Eb=function(t){var e=this.l,o=this.o;return function(){ia(t,e),ia(t,o)}},Eu.rf=function(t,e,o,i){var r,n=sa(e,ga,va);return this.v?r=this.v:this.v=r=new ba(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},Eu.sf=function(t,e){t.disableVertexAttribArray(e.o),t.disableVertexAttribArray(e.b),t.disableVertexAttribArray(e.l),t.disableVertexAttribArray(e.g)},Eu.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)),yt(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];Aa(this,t,p[0],p[1],p[2]),Bs(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(Aa(this,t,l[0],l[1],l[2]),l=this.j[a];0<=h&&this.i[h]>=l;){var u=this.i[h];o[B(this.f[h]).toString()]&&(s!==p&&(Bs(t,e,s,p),t.clear(t.DEPTH_BUFFER_BIT)),p=u),h--,s=u}s!==p&&(Bs(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))},Eu.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){var h=this.u[p];for(Aa(this,t,h[0],h[1],h[2]),n=this.j[p];0<=s&&this.i[s]>=n;){h=this.i[s];var l=this.f[s];if(void 0===o[B(l).toString()]&&l.V()&&(void 0===r||at(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),Bs(t,e,h,a),a=i(l)))return a;s--,a=h}}},Eu.Ma=function(t,e){t=e.f,this.c.lineCap=void 0!==t?t:"round",t=e.i,this.c.lineDash=t||Vs,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)&&Ve(t).map(function(t,e){return 3!=e?t/255:t})||Ws;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 Ea=3,Ta=5,ja=7,Ca=11,La=13,Ra=17,Ia=19,Na=23;function Fa(){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;}"}i(Fa,Ls);var ka=new Fa;function Da(){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);}"}i(Da,Rs);var Oa=new Da;function Ua(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 Ga(t){t=t||{},this.a=void 0!==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 Ba(t){this.b=this.a=this.i=void 0,this.f=void 0===t||t,this.c=0}function Xa(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 Va(t){if(t.b=t.i,t.b)return t.b.data}function Wa(t){if(t.b&&t.b.next)return t.b=t.b.next,t.b.data}function Za(t){if(t.b&&t.b.next)return t.b.next.data}function Ka(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 Ya(t){if(t.b)return t.b.data}(Eu=Ga.prototype).clone=function(){var t=this.a;return new Ga({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})},Eu.No=function(){return this.a},Eu.Vk=function(){return this.f},Eu.Oo=function(){return this.i},Eu.Wk=function(){return this.g},Eu.Xk=function(){return this.j},Eu.bl=function(){return this.o},Eu.Po=function(){return this.c},Eu.Qo=function(t){this.a=t,this.b=void 0},Eu.aq=function(t){this.f=t,this.b=void 0},Eu.setLineDash=function(t){this.i=t,this.b=void 0},Eu.bq=function(t){this.g=t,this.b=void 0},Eu.cq=function(t){this.j=t,this.b=void 0},Eu.gq=function(t){this.o=t,this.b=void 0},Eu.jq=function(t){this.c=t,this.b=void 0},Ba.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 Ha,qa,Ja={$d:function(){}};function _a(t,e,o){var i=t[e];t[e]=t[o],t[o]=i}function $a(t,e){return t<e?-1:e<t?1:0}function Qa(t,e){if(!(this instanceof Qa))return new Qa(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 tp(t,e){ep(t,0,t.children.length,e,t)}function ep(t,e,o,i,r){(r=r||hp(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],op(r,t.ib?i(n):n);return r}function op(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 ip(t,e){return t.ca-e.ca}function rp(t,e){return t.da-e.da}function np(t){return(t.$-t.ca)*(t.ia-t.da)}function sp(t){return t.$-t.ca+(t.ia-t.da)}function ap(t,e){return t.ca<=e.ca&&t.da<=e.da&&e.$<=t.$&&e.ia<=t.ia}function pp(t,e){return e.ca<=t.$&&e.da<=t.ia&&e.$>=t.ca&&e.ia>=t.da}function hp(t){return{children:t,height:1,ib:!0,ca:1/0,da:1/0,$:-1/0,ia:-1/0}}function lp(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,qa(t,n,e,o,r),s.push(e,n,n,o))}function up(t){this.a=Ja.$d(t),this.b={}}function cp(t,e,o){var i=t.b[B(o)];z([i.ca,i.da,i.$,i.ia],e)||(t.remove(o),t.Ca(e,o))}function fp(t){return t.a.all().map(function(t){return t.value})}function yp(t,e){return t.a.search({ca:e[0],da:e[1],$:e[2],ia:e[3]}).map(function(t){return t.value})}function gp(t,e,o,i){return dp(yp(t,e),o,i)}function dp(t,e,o){for(var i,r=0,n=t.length;r<n&&!(i=e.call(o,t[r]));r++);return i}function vp(t,e){Gs.call(this,0,e),this.g=new ma(0,e),this.v=null,this.u=[],this.c=[],this.j={fillColor:null,s:!1}}function bp(t,e,o,i){var r=new Ba,n=new up;if(e=mp(t,e,i,r,n,!0),o.length){for(var s=[],a=0,p=o.length;a<p;++a){var h={list:new Ba,$:void 0,Mg:new up};s.push(h),h.$=mp(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=Va(o=s[a].list);do{if(jp(p,n).length){var l=!0;break}p=Wa(o)}while(i!==p);l||(wp(o,s[a].Mg,!0),function(t,e,o,i,r){for(var n=Va(t);n.W.x!==e;)n=Wa(t);e=n.W,i={x:i,y:e.y,hb:-1};var s,a=1/0,p=jp({aa:e,W:i},r,!0),h=0;for(s=p.length;h<s;++h){var l,u=p[h],c=Cp(e,i,u.aa,u.W,!0),f=Math.abs(e.x-c[0]);f<a&&void 0!==Zs(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=Tp(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=Va(o);n.W.x!==p.x||n.W.y!==p.y;)n=Wa(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},Za(t).aa=i,Ap(e,n.W,t,r),Ap(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),wp(r,n,!1)))}}else wp(r,n,!1);!function t(e,o,i){for(var r=!1,n=Mp(o,i);3<o.c;)if(n){if(!xp(e,o,i,n,r)&&!wp(o,i,r)&&!Sp(e,o,i,!0))break}else if(!xp(e,o,i,n,r)&&!wp(o,i,r)&&!Sp(e,o,i)){if(!(n=Mp(o,i))){n=e,s=a=Va(r=o);do{if((p=jp(s,i)).length){for(a=p[0],p=Cp(s.aa,s.W,a.aa,a.W),p=Pp(n,p[0],p[1],n.a.length/2),h=new Ba,l=new up,Ap(p,s.W,h,l),s.W=p,cp(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=Wa(r);s!==a;)Ap(s.aa,s.W,h,l),i.remove(s),Xa(r),s=Ya(r);Ap(a.aa,p,h,l),a.aa=p,cp(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),wp(r,i,!1),t(n,r,i),wp(h,l,!1),t(n,h,l);break}s=Wa(r)}while(s!==a);break}for(var r=o,s=2*r.c,a=Array(s),p=Va(r),h=p,l=0;a[l++]=h.aa.x,a[l++]=h.aa.y,(h=Wa(r))!==p;);r=!dr(a,0,s,2),wp(o,i,r)}3===o.c&&(n=e.b.length,e.b[n++]=za(o).aa.hb,e.b[n++]=Ya(o).aa.hb,e.b[n++]=Za(o).aa.hb)}(t,r,n)}function mp(t,e,o,i,r,n){var s,a=t.a.length/2,p=[],h=[];if(n===dr(e,0,e.length,o)){var l=s=Pp(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=Pp(t,e[c],e[c+1],a++);h.push(Ap(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=Pp(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=Pp(t,e[c],e[c+1],a++),h.push(Ap(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(Ap(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 wp(t,e,o){var i=Va(t),r=i,n=Wa(t),s=!1;do{var a=o?Zs(n.W.x,n.W.y,r.W.x,r.W.y,r.aa.x,r.aa.y):Zs(r.aa.x,r.aa.y,r.W.x,r.W.y,n.W.x,n.W.y);void 0===a?(Ep(r,n,t,e),s=!0,n===i&&(i=Za(t)),n=r,Ka(t)):r.W.Fb!==a&&(r.W.Fb=a,s=!0),r=n,n=Wa(t)}while(r!==i);return s}function xp(t,e,o,i,r){var n=t.b.length,s=Va(e),a=za(e),p=s,h=Wa(e),l=Za(e),u=!1;do{var c,f=p.aa,y=p.W,g=h.W;!1===y.Fb&&(c=r?Lp(l.W,g,y,f,a.aa):Lp(a.aa,f,y,g,l.W),!i&&jp({aa:f,W:g},o).length||!c||Tp(f,y,g,o,!0).length||!i&&!1!==f.Fb&&!1!==g.Fb&&dr([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,Ep(p,h,e,o),h===s&&(s=l),u=!0)),a=za(e),p=Ya(e),h=Wa(e),l=Za(e)}while(p!==s&&3<e.c);return u}function Sp(t,e,o,i){var r=Va(e);Wa(e);var n=r,s=Wa(e),a=!1;do{var p=Cp(n.aa,n.W,s.aa,s.W,i);if(p){var a=t.b.length,h=t.a.length/2,l=Ka(e);Xa(e),o.remove(l);var u=l===r;if(i?(u=p[0]===n.aa.x&&p[1]===n.aa.y?(Ka(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),Xa(e)):(p=Pp(t,p[0],p[1],h),n.W=p,s.aa=p,cp(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),cp(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}n=za(e),s=Wa(e)}while(n!==r);return a}function Mp(t,e){var o=Va(t),i=o;do{if(jp(i,e).length)return!1;i=Wa(t)}while(i!==o);return!0}function Pp(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 Ap(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 Ep(t,e,o,i){Ya(o)===e&&(Xa(o),t.W=e.W,i.remove(e),cp(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 Tp(t,e,o,i,r){var n,s,a=[],p=yp(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)||!lr([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 jp(t,e,o){for(var i=t.aa,r=t.W,n=[],s=0,a=(e=yp(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)&&Cp(i,r,p.aa,p.W,o)&&n.push(p)}return n}function Cp(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&&Ks<i&&i<1-Ks&&Ks<o&&o<1-Ks||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 Lp(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 Rp(){}function Ip(t,e,o){this.f=e,this.g=t,this.c=o,this.a={}}function Np(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 Fp(t,e,o,i,r,n,s,a,p,h,l){var u=kp,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=Ts.length-1;0<=d;--d){var v=g[Ts[d]];if(void 0!==v&&(v=v.La(e,o,i,r,u,n,s,a,p,h,l)))return v}}Ha=Ja.$d=Ja.$d||{},qa=function t(e,o,i,r,n){for(i=i||0,r=r||e.length-1,n=n||$a;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,_a(e,a=i,o),0<n(e[r],s)&&_a(e,i,r);a<p;){for(_a(e,a,p),a++,p--;n(e[a],s)<0;)a++;for(;0<n(e[p],s);)p--}0===n(e[i],s)?_a(e,i,p):_a(e,++p,r),p<=o&&(i=p+1),o<=p&&(r=p-1)}},Qa.prototype={all:function(){return this.$g(this.data,[])},search:function(t){var e=this.data,o=[],i=this.wb;if(!pp(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],pp(t,a=e.ib?i(s):s)&&(e.ib?o.push(s):ap(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=hp([]),this},remove:function(t,e){if(!t)return this;for(var o,i,r,n,s=this.data,a=this.wb(t),p=[],h=[];s||p.length;){if(s||(s=p.pop(),i=p[p.length-1],o=h.pop(),n=!0),s.ib){t:{r=t;var l=s.children,u=e;if(u){for(var c=0;c<l.length;c++)if(u(r,l[c])){r=c;break t}r=-1}else r=l.indexOf(r)}if(-1!==r){s.children.splice(r,1),p.push(s),this.ck(p);break}}n||s.ib||!ap(s,a)?i?(o++,s=i.children[o],n=!1):s=null:(p.push(s),h.push(o),o=0,s=(i=s).children[0])}return this},wb:function(t){return t},Lf:ip,Mf:rp,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=hp(t.slice(e,o+1));return tp(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=hp([])).ib=!1,a.height=i,lp(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(lp(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 tp(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=np(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 i=[],r=this.bk(o,this.data,e,i);for(r.children.push(t),op(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=hp(o.children.splice(i,o.children.length-i))).height=o.height,i.ib=o.ib,tp(o,this.wb),tp(i,this.wb),e?t[e-1].children.push(i):this.hh(o,i)},hh:function(t,e){this.data=hp([t,e]),this.data.height=t.height+1,this.data.ib=!1,tp(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=ep(t,0,r,this.wb),p=ep(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=np(a)+np(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:ip,r=t.ib?this.Mf:rp;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=ep(t,0,e,i=this.wb),n=ep(t,o-e,o,i),s=sp(r)+sp(n),a=e;a<o-e;a++){var p=t.children[a];op(r,t.ib?i(p):p),s+=sp(r)}for(a=o-e-1;e<=a;a--)p=t.children[a],op(n,t.ib?i(p):p),s+=sp(n);return s},Zj:function(t,e,o){for(;0<=o;o--)op(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():tp(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]+"};")}},Ha.default=Qa,Ja.$d=Ja.$d.default,(Eu=up.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[B(e)]=t},Eu.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[B(s)]=n}this.a.load(o)},Eu.remove=function(t){t=B(t);var e=this.b[t];return delete this.b[t],null!==this.a.remove(e)},Eu.forEach=function(t,e){return dp(fp(this),t,e)},Eu.clear=function(){this.a.clear(),this.b={}},Eu.G=function(t){var e=this.a.data;return k(e.ca,e.da,e.$,e.ia,t)},Eu.concat=function(t){for(var e in this.a.load(t.a.all()),t.b)this.b[0|e]=t.b[0|e]},i(vp,Gs),(Eu=vp.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=Vi(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=Vi(t,p[c-1],p[c],i,-this.origin[0],-this.origin[1]),u.push(l))}Ma(this.g,h,u,i),bp(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&&Pa(this.g,e,n)},Eu.rc=function(t,e){var o=t.Bb(),i=t.qa();if(0<o.length){var r=Vi(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=Vi(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),Pa(this.g,e),Ma(this.g,r,s,i),bp(this,r,s,i)}}},Eu.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},Eu.Eb=function(t){var e=this.l,o=this.o,i=this.g.Eb(t);return function(){ia(t,e),ia(t,o),i()}},Eu.rf=function(t,e){var o,i=sa(e,ka,Oa);return this.v?o=this.v:this.v=o=new Ua(t,i),e.Qc(i),t.enableVertexAttribArray(o.b),t.vertexAttribPointer(o.b,2,5126,!1,8,0),o},Eu.sf=function(t,e){t.disableVertexAttribArray(e.b)},Eu.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)),yt(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),Bs(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[B(this.f[h]).toString()]&&(s!==p&&(Bs(t,e,s,p),t.clear(t.DEPTH_BUFFER_BIT)),p=u),h--,s=u}s!==p&&(Bs(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))},Eu.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;){h=this.i[s];var l=this.f[s];if(void 0===o[B(l).toString()]&&l.V()&&(void 0===r||at(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),Bs(t,e,h,a),a=i(l)))return a;s--,a=h}}},Eu.Ma=function(t,e){t=!((t=t?t.b:[0,0,0,0])instanceof CanvasGradient||t instanceof CanvasPattern)&&Ve(t).map(function(t,e){return 3!=e?t/255:t})||Xs,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 Ga({color:[0,0,0,0],lineWidth:0}))},Rp.prototype.La=function(){},i(Ip,js),Ip.prototype.b=function(t,e){var o=void 0!==t?t.toString():"0";return void 0===(t=this.a[o])&&(t={},this.a[o]=t),void 0===(o=t[e])&&(o=new Dp[e](this.g,this.f),t[e]=o),o},Ip.prototype.i=function(){return yt(this.a)},Ip.prototype.La=function(t,e,o,i,r,n,s,a){var p=Object.keys(this.a).map(Number);p.sort(G);for(var h=0,l=p.length;h<l;++h)for(var u=this.a[p[h].toString()],c=0,f=Ts.length;c<f;++c){var y=u[Ts[c]];void 0!==y&&y.La(t,e,o,i,r,n,s,a,void 0,!1)}},Ip.prototype.Ea=function(t,e,o,i,r,n,s,a,p,h){var l,u=e.b;return u.bindFramebuffer(u.FRAMEBUFFER,ra(e)),void 0!==this.c&&(l=E(O(t),i*this.c)),Fp(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)};var kp=[1,1],Dp={Circle:Hs,Image:la,LineString:ma,Polygon:vp,Text:Rp};function Op(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 Up(){this.c=0,this.b={},this.i=this.a=null}function Gp(t,e){ss.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=qe(),this.l=!0,this.i=Ao(this.b,{antialias:!0,depth:!0,failIfMajorPerformanceCaveat:!0,preserveDrawingBuffer:!1,stencil:!0}),this.f=new ea(this.b,this.i),be(this.b,"webglcontextlost",this.Yn,this),be(this.b,"webglcontextrestored",this.Zn,this),this.a=new Up,this.u=null,this.j=new di(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&&(wi(this.j),Bp(this,(t=vi(this.j))[0],t[3],t[4])),!1}.bind(this),this.g=0,Vp(this)}function Bp(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 Xp(t,e,o){var i,r=t.o;je(r,e)&&(t=t.f,i=o.viewState,r.b(new cs(e,new Op(t,i.center,i.resolution,i.rotation,o.size,o.extent,o.pixelRatio),o,null,t)))}function Vp(t){(t=t.i).activeTexture(33984),t.blendFuncSeparate(770,771,1,771),t.disable(2884),t.disable(2929),t.disable(3089),t.disable(2960)}i(Op,vs),(Eu=Op.prototype).rd=function(t){this.Ma(t.Fa(),t.Ga()),this.Ub(t.Y())},Eu.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)}},Eu.te=function(t,e){(t=(0,e.Za)(t))&&at(this.a,t.G())&&(this.rd(e),this.zb(t))},Eu.ue=function(t){for(var e=0,o=(t=t.a).length;e<o;++e)this.zb(t[e])},Eu.qc=function(t,e){var o=this.b,i=new Ip(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)()},Eu.oc=function(t,e){var o=this.b,i=new Ip(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)()},Eu.mc=function(t,e){var o=this.b,i=new Ip(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)()},Eu.nc=function(t,e){var o=this.b,i=new Ip(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)()},Eu.rc=function(t,e){var o=this.b,i=new Ip(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)()},Eu.pc=function(t,e){var o=this.b,i=new Ip(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)()},Eu.Zb=function(t,e){var o=this.b,i=new Ip(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)()},Eu.Ub=function(t){this.v=t},Eu.Ma=function(t,e){this.l=t,this.o=e},(Eu=Up.prototype).clear=function(){this.c=0,this.b={},this.i=this.a=null},Eu.forEach=function(t,e){for(var o=this.a;o;)t.call(e,o.Yc,o.uc,this),o=o.Nb},Eu.get=function(t){return X(!!(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)},Eu.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},Eu.replace=function(t,e){this.get(t),this.b[t].Yc=e},Eu.set=function(t,e){X(!(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},i(Gp,ss),(Eu=Gp.prototype).ka=function(){var e=this.i;e.isContextLost()||this.a.forEach(function(t){t&&e.deleteTexture(t.Ib)}),Pe(this.f),ss.prototype.ka.call(this)},Eu.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()}},Eu.U=function(){return"webgl"},Eu.Yn=function(t){for(var e in t.preventDefault(),this.a.clear(),this.g=0,t=this.c)t[e].mg()},Eu.Zn=function(){Vp(this),this.o.render()},Eu.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,Xp(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];!Kn(p,n)||"ready"!=p.yj||hs(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)hs(this,(p=i[s]).layer).Gi(t,p,e);this.l||(this.b.style.display="",this.l=!0),as(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),Xp(this,"postcompose",t),ls(this,t),t.postRenderFunctions.push(ps)},Eu.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(Kn(l,a.resolution)&&n.call(s,u)&&(l=hs(this,u).Ea(t,e,o,i,r)))return l}},Eu.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(Kn(p,n.resolution)&&i.call(r,h)&&(o=hs(this,h).Ue(t,e)))return!0}return o},Eu.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(Kn(p,n.resolution)&&r.call(i,h)&&(p=hs(this,h).lg(t,e,o,i)))return p}};var Wp=["canvas","webgl"];function Zp(t){Le.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[B(s).toString()]=s:s&&(X("string"==typeof s.href,44),X("string"==typeof s.src,45),i[s.src]=s.href)}s=t.layers instanceof Vn?t.layers:new Vn({layers:t.layers}),o.layergroup=s,o.target=t.target,o.view=void 0!==t.view?t.view:new Er;var r,n,s=ss;void 0!==t.renderer?(Array.isArray(t.renderer)?r=t.renderer:"string"==typeof t.renderer?r=[t.renderer]:X(!1,46),0<=r.indexOf("dom")&&(r=r.concat(Wp))):r=Wp;var a=0;for(n=r.length;a<n;++a){var p=r[a];if("canvas"==p){if(ko){s=As;break}}else if("webgl"==p&&Eo){s=Gp;break}}return r=void 0!==t.controls?Array.isArray(t.controls)?new ke(t.controls.slice()):(X(t.controls instanceof ke,47),t.controls):ho(),a=void 0!==t.interactions?Array.isArray(t.interactions)?new ke(t.interactions.slice()):(X(t.interactions instanceof ke,48),t.interactions):Gn(),t=void 0!==t.overlays?Array.isArray(t.overlays)?new ke(t.overlays.slice()):(X(t.overlays instanceof ke,49),t.overlays):new ke,{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:No,this.yf=e.logos,this.pa=function(){this.j=void 0,this.Sp.call(this,Date.now())}.bind(this),this.Yb=qn(),this.Jf=qn(),this.ad=0,this.I=this.R=this.T=this.g=this.c=null,this.a=document.createElement("DIV"),this.a.className="ol-viewport"+(Uo?" 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)be(this.D,i[r],Ee);for(o in this.a.appendChild(this.D),this.Sa=new fi(this,t.moveTolerance),Zo)be(this.Sa,Zo[o],this.Ih,this);this.va=e.keyboardEventTarget,this.u=null,be(this.a,"wheel",this.ld,this),be(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 xi(this.ql.bind(this),this.Wl.bind(this)),this.fa={},be(this,Ie("layergroup"),this.El,this),be(this,Ie("view"),this.Xl,this),be(this,Ie("size"),this.Tl,this),be(this,Ie("target"),this.Vl,this),this.H(e.values),this.l.forEach(function(t){t.setMap(this)},this),be(this.l,"add",function(t){t.element.setMap(this)},this),be(this.l,"remove",function(t){t.element.setMap(null)},this),this.o.forEach(function(t){t.setMap(this)},this),be(this.o,"add",function(t){t.element.setMap(this)},this),be(this.o,"remove",function(t){t.element.setMap(null)},this),this.v.forEach(this.kh,this),be(this.v,"add",function(t){this.kh(t.element)},this),be(this.v,"remove",function(t){var e=t.element.g;void 0!==e&&delete this.rg[e.toString()],t.element.setMap(null)},this)}function Kp(t){Le.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,be(this,Ie(qp),this.zl,this),be(this,Ie(Jp),this.Jl,this),be(this,Ie(_p),this.Nl,this),be(this,Ie($p),this.Pl,this),be(this,Ie(Qp),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 zp(t,e){var o=t.getBoundingClientRect();return[t=o.left+window.pageXOffset,o=o.top+window.pageYOffset,t+e[0],o+e[1]]}function Yp(t,e){t.a.visible!==e&&(t.c.style.display=e?"":"none",t.a.visible=e)}function Hp(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(),Yp(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))):Yp(t,!1)}i(Zp,Le),(Eu=Zp.prototype).kk=function(t){this.l.push(t)},Eu.lk=function(t){this.o.push(t)},Eu.ih=function(t){this.Kc().qd().push(t)},Eu.jh=function(t){this.v.push(t)},Eu.kh=function(t){var e=t.g;void 0!==e&&(this.rg[e.toString()]=t),t.setMap(this)},Eu.ka=function(){Pe(this.Sa),Pe(this.B),we(this.a,"wheel",this.ld,this),we(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),Le.prototype.ka.call(this)},Eu.we=function(t,e,o){if(this.c)return t=this.Wa(t),o=o||{},this.B.Ea(t,this.c,void 0!==o.hitTolerance?o.hitTolerance*this.c.pixelRatio:0,e,null,o.layerFilter?o.layerFilter:Ui,null)},Eu.Im=function(t,e,o,i,r){if(this.c)return this.B.Di(t,this.c,e,void 0!==o?o:null,i||Ui,void 0!==r?r:null)},Eu.Yl=function(t,e){return!!this.c&&(t=this.Wa(t),e=e||{},this.B.Ei(t,this.c,void 0!==e.hitTolerance?e.hitTolerance*this.c.pixelRatio:0,e.layerFilter?e.layerFilter:Ui,null))},Eu.Tf=function(t){return this.Wa(this.xe(t))},Eu.xe=function(t){var e=this.a.getBoundingClientRect();return[(t=t.changedTouches?t.changedTouches[0]:t).clientX-e.left,t.clientY-e.top]},Eu.ag=function(){return this.get("target")},Eu.jd=function(){var t=this.ag();return void 0!==t?"string"==typeof t?document.getElementById(t):t:null},Eu.Wa=function(t){var e=this.c;return e?ts(e.pixelToCoordinateTransform,t.slice()):null},Eu.Lk=function(){return this.l},Eu.fl=function(){return this.v},Eu.el=function(t){return void 0!==(t=this.rg[t.toString()])?t:null},Eu.Sk=function(){return this.o},Eu.Kc=function(){return this.get("layergroup")},Eu.Xh=function(){return this.Kc().qd()},Eu.Ja=function(t){var e=this.c;return e?ts(e.coordinateToPixelTransform,t.slice(0,2)):null},Eu.Ob=function(){return this.get("size")},Eu.Z=function(){return this.get("view")},Eu.sl=function(){return this.a},Eu.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},Eu.ld=function(t,e){t=new Mo(e||t.type,this,t),this.Ih(t)},Eu.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}}},Eu.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&&(wi(r),Si(r,t,e))),t=0,e=(r=this.xb).length;t<e;++t)r[t](this,i);r.length=0},Eu.Tl=function(){this.render()},Eu.Vl=function(){var t;if(this.ag()&&(t=this.jd()),this.u){for(var e=0,o=this.u.length;e<o;++e)xe(this.u[e]);this.u=null}t?(t.appendChild(this.a),t=this.va?this.va:t,this.u=[be(t,"keydown",this.ld,this),be(t,"keypress",this.ld,this)],this.f||(this.f=this.Ad.bind(this),window.addEventListener("resize",this.f,!1))):(_e(this.a),this.f&&(window.removeEventListener("resize",this.f,!1),this.f=void 0)),this.Ad()},Eu.Wl=function(){this.render()},Eu.Lh=function(){this.render()},Eu.Xl=function(){this.T&&(xe(this.T),this.T=null),this.R&&(xe(this.R),this.R=null);var t=this.Z();t&&(this.a.setAttribute("data-view",B(t)),this.T=be(t,"propertychange",this.Lh,this),this.R=be(t,"change",this.Lh,this)),this.render()},Eu.El=function(){this.I&&(this.I.forEach(xe),this.I=null);var t=this.Kc();t&&(this.I=[be(t,"propertychange",this.render,this),be(t,"change",this.render,this)]),this.render()},Eu.Tp=function(){this.j&&cancelAnimationFrame(this.j),this.pa()},Eu.render=function(){void 0===this.j&&(this.j=requestAnimationFrame(this.pa))},Eu.Mp=function(t){return this.l.remove(t)},Eu.Np=function(t){return this.o.remove(t)},Eu.Pp=function(t){return this.Kc().qd().remove(t)},Eu.Qp=function(t){return this.v.remove(t)},Eu.Sp=function(t){var e=this.Ob(),o=this.Z(),i=Z(),r=this.c,n=null;if(void 0!==e&&0<e[0]&&0<e[1]&&o&&Nr(o)){for(var n=Ir(o,this.c?this.c.viewHints:void 0),s=this.Kc().Yf(),a={},p=0,h=s.length;p<h;++p)a[B(s[p].layer)]=s[p];p=o.getState(),n={animate:!1,attributions:{},coordinateToPixelTransform:this.Yb,extent:i,focus:this.na?this.na:p.center,index:this.ad++,layerStates:a,layerStatesArray:s,logos:ut({},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=et(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&&(pt(this.g)||z(n.extent,this.g))||(this.b(new So("movestart",this,r)),this.g=D(this.g)),!this.g||n.viewHints[0]||n.viewHints[1]||z(n.extent,this.g)||(this.b(new So("moveend",this,n)),T(n.extent,this.g))),this.b(new So("postrender",this,n)),setTimeout(this.Rl.bind(this),0)},Eu.qj=function(t){this.set("layergroup",t)},Eu.Qg=function(t){this.set("size",t)},Eu.Le=function(t){this.set("target",t)},Eu.iq=function(t){this.set("view",t)},Eu.xj=function(t){t=B(t).toString(),this.fa[t]=!0,this.render()},Eu.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)},Eu.Cj=function(t){t=B(t).toString(),delete this.fa[t],this.render()},i(Kp,Le),(Eu=Kp.prototype).Rd=function(){return this.get(qp)},Eu.Jm=function(){return this.g},Eu.Me=function(){return this.get(Jp)},Eu.Dh=function(){return this.get(_p)},Eu.Yh=function(){return this.get($p)},Eu.Eh=function(){return this.get(Qp)},Eu.zl=function(){for(var t=this.c;t.lastChild;)t.removeChild(t.lastChild);(t=this.Rd())&&this.c.appendChild(t)},Eu.Jl=function(){this.f&&(_e(this.c),xe(this.f),this.f=null);var t=this.Me();t&&(this.f=be(t,"postrender",this.render,this),Hp(this),t=this.v?t.D:t.C,this.l?t.insertBefore(this.c,t.childNodes[0]||null):t.appendChild(this.c))},Eu.render=function(){Hp(this)},Eu.Nl=function(){Hp(this)},Eu.Pl=function(){var t,e,o,i,r,n,s;Hp(this),this.get($p)&&this.autoPan&&((t=this.Me())&&t.jd()&&(e=zp(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=zp(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}))))},Eu.Ql=function(){Hp(this)},Eu.lj=function(t){this.set(qp,t)},Eu.setMap=function(t){this.set(Jp,t)},Eu.rj=function(t){this.set(_p,t)},Eu.Ne=function(t){this.set($p,t)},Eu.uj=function(t){this.set(Qp,t)};var qp="element",Jp="map",_p="offset",$p="position",Qp="positioning";function th(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)}t=t||{},this.j=void 0===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),be(n,"click",this.an,this),this.C=document.createElement("DIV"),this.C.className="ol-overviewmap-map";var a=this.c=new Zp({controls:new ke,interactions:new ke,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 Kp({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),$e.call(this,{element:r,render:t.render?t.render:eh,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 eh(){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(rt(r)),o=n.Ja(Q(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?oh(this):N(t,r)||(r=this.c,t=this.a.Z(),r.Z().ob(t.wa()))),ih(this)}function oh(t){var e=t.a;t=t.c;var o=e.Ob(),e=e.Z().dd(o);t=t.Z(),ht(e,1/(.1*Math.pow(2,Math.log(7.5)/Math.LN2/2))),t.Qf(e)}function ih(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=$(o),n=nt(o),(t=t.a.Z().wa())&&(Ii(s=[r[0]-t[0],r[1]-t[1]],p),Ti(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 rh(t){t.element.classList.toggle("ol-collapsed"),t.j?Je(t.u,t.D):Je(t.D,t.u),t.j=!t.j;var e=t.c;t.j||e.c||(e.Ad(),oh(t),me(e,"postrender",function(){ih(this)},t))}function nh(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="",$e.call(this,{element:this.c,render:t.render?t.render:ah,target:t.target}),be(this,Ie(hh),this.T,this),this.I(t.units||"metric")}i(th,$e),(Eu=th.prototype).setMap=function(t){var e=this.a;t!==e&&(e&&((e=e.Z())&&we(e,Ie("rotation"),this.Ge,this),this.c.Le(null)),$e.prototype.setMap.call(this,t),t&&(this.c.Le(this.C),this.v.push(be(t,"propertychange",this.Kl,this)),this.c.Xh().dc()||this.c.qj(t.Kc()),t=t.Z()))&&(be(t,Ie("rotation"),this.Ge,this),Nr(t)&&(this.c.Ad(),oh(this)))},Eu.Kl=function(t){"view"===t.key&&((t=t.oldValue)&&we(t,Ie("rotation"),this.Ge,this),be(t=this.a.Z(),Ie("rotation"),this.Ge,this))},Eu.Ge=function(){this.c.Z().Oe(this.a.Z().Qa())},Eu.an=function(t){t.preventDefault(),rh(this)},Eu.$m=function(){return this.o},Eu.cn=function(t){this.o!==t&&(this.o=t,this.element.classList.toggle("ol-uncollapsible"),!t&&this.j&&rh(this))},Eu.bn=function(t){this.o&&this.j!==t&&rh(this)},Eu.Zm=function(){return this.j},Eu.gl=function(){return this.c},i(nh,$e);var sh=[1,2,5];function ah(t){(t=t.frameState)?this.u=t.viewState:this.u=null,ph(this)}function ph(t){if(o=t.u){var e=(i=o.projection).sc(),o=Dt(i,o.resolution,o.center)*e,e=t.l*o,i="";"degrees"==(n=t.C())?(o/=i=vt.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):X(!1,33);for(var r,n=3*Math.floor(Math.log(t.l*o)/Math.log(10));;){if(r=sh[(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}o=r+" "+i,t.D!=o&&(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)}nh.prototype.C=function(){return this.get(hh)},nh.prototype.T=function(){ph(this)},nh.prototype.I=function(t){this.set(hh,t)};var hh="units";function lh(t){t=t||{},this.c=void 0,this.j=uh,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 ri(i),be(this.o,"pointerdown",this.yl,this),be(this.o,"pointermove",this.wl,this),be(this.o,"pointerup",this.xl,this),be(i,"click",this.vl,this),be(o,"click",Ee),$e.call(this,{element:i,render:t.render?t.render:ch})}i(lh,$e),lh.prototype.ka=function(){Pe(this.o),$e.prototype.ka.call(this)};var uh=0;function ch(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=uh,this.l=o-n),this.na=!0),(t=t.frameState.viewState.resolution)!==this.c&&(this.c=t,fh(this,t)))}function fh(t,e){var o,i,r;e=1-(o=t.a.Z(),i=o.a,r=Math.log(i/o.f)/Math.log(2),function(t){return Math.log(i/t)/Math.log(2)/r}(e));var n=t.element.firstElementChild;1==t.j?n.style.left=t.D*e+"px":n.style.top=t.l*e+"px"}function yh(t,e){return o=t.a.Z(),i=o.a,r=Math.log(i/o.f)/Math.log(2),function(t){return i/Math.pow(2,t*r)}(1-e);var o,i,r}function gh(t){t=t||{},this.c=t.extent?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),be(r,"click",this.j,this),(o=document.createElement("div")).className=e+" ol-unselectable ol-control",o.appendChild(r),$e.call(this,{element:o,target:t.target})}function dh(t){Le.call(this),t=t||{},this.a=null,be(this,Ie(xh),this.vm,this),this.gg(void 0!==t.tracking&&t.tracking)}(Eu=lh.prototype).setMap=function(t){$e.prototype.setMap.call(this,t),t&&t.render()},Eu.vl=function(t){var e=this.a.Z();t=yh(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:io})},Eu.yl=function(t){this.u||t.b.target!==this.element.firstElementChild||(Fr(this.a.Z(),1,1),this.C=t.clientX,this.B=t.clientY,this.u=!0)},Eu.wl=function(t){var e;this.u&&(e=this.element.firstElementChild,this.c=yh(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),fh(this,this.c),this.C=t.clientX,this.B=t.clientY)},Eu.xl=function(){var t;this.u&&(Fr(t=this.a.Z(),1,-1),t.animate({resolution:t.constrainResolution(this.c),duration:this.T,easing:io}),this.u=!1,this.B=this.C=void 0)},i(gh,$e),gh.prototype.j=function(t){t.preventDefault(),t=this.a.Z();var e=this.c?this.c:t.v.G();t.Qf(e)},i(dh,Le),(Eu=dh.prototype).ka=function(){this.gg(!1),Le.prototype.ka.call(this)},Eu.ap=function(t){var e;null!==t.alpha&&(e=M(t.alpha),this.set(vh,e),"boolean"==typeof t.absolute&&t.absolute?this.set(wh,e):"number"==typeof t.webkitCompassHeading&&-1!=t.webkitCompassAccuracy&&this.set(wh,M(t.webkitCompassHeading))),null!==t.beta&&this.set(bh,M(t.beta)),null!==t.gamma&&this.set(mh,M(t.gamma)),this.s()},Eu.Fk=function(){return this.get(vh)},Eu.Ik=function(){return this.get(bh)},Eu.Ok=function(){return this.get(mh)},Eu.um=function(){return this.get(wh)},Eu.Th=function(){return this.get(xh)},Eu.vm=function(){var t;Do&&((t=this.Th())&&!this.a?this.a=be(window,"deviceorientation",this.ap,this):t||null===this.a||(xe(this.a),this.a=null))},Eu.gg=function(t){this.set(xh,t)};var vh="alpha",bh="beta",mh="gamma",wh="heading",xh="tracking";function Sh(t){this.f=t.opacity,this.l=t.rotateWithView,this.g=t.rotation,this.a=t.scale,this.v=t.snapToPixel}function Mh(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,Ph(this,this.S),Sh.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 Ph(t,e){var o,i="",r="",n=0,s=null,a=0;t.Ya&&(null===(o=t.Ya.a)&&(o=gs),o=He(o),void 0===(a=t.Ya.c)&&(a=1),s=t.Ya.i,Fo||(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=qe(h,h),t.u=p.canvas,e=h=t.u.width,t.rh(i,p,0,0),t.Va?t.D=t.u:(p=qe(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+B(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?B(s.b).toString():"f"+(s.b?We(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 Ah(t){Mh.call(this,{points:1/0,fill:(t=t||{}).fill,radius:t.radius,snapToPixel:t.snapToPixel,stroke:t.stroke,atlasManager:t.atlasManager})}function Eh(t){t=t||{},this.b=void 0!==t.color?t.color:null,this.a=void 0}function Th(t){t=t||{},this.Gc=null,this.Za=Ih,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 jh(t){var e;return"function"!=typeof t&&(e=Array.isArray(t)?t:(X(t instanceof Th,41),[t]),t=function(){return e}),t}(Eu=Sh.prototype).Ze=function(){return this.f},Eu.$e=function(){return this.l},Eu.af=function(){return this.g},Eu.bf=function(){return this.a},Eu.Ae=function(){return this.v},Eu.td=function(t){this.f=t},Eu.cf=function(t){this.g=t},Eu.ud=function(t){this.a=t},i(Mh,Sh),(Eu=Mh.prototype).clone=function(){var t=new Mh({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},Eu.Hc=function(){return this.C},Eu.Pi=function(){return this.j},Eu.Fa=function(){return this.Va},Eu.qg=function(){return this.D},Eu.Y=function(){return this.u},Eu.ye=function(){return this.B},Eu.Ye=function(){return 2},Eu.Oc=function(){return this.oa},Eu.Qi=function(){return this.o},Eu.Ri=function(){return this.b},Eu.Fh=function(){return this.i},Eu.ic=function(){return this.ra},Eu.Ga=function(){return this.Ya},Eu.Nh=function(){},Eu.load=function(){},Eu.Bj=function(){},Eu.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&&(null===(o=this.Va.b)&&(o=fs),e.fillStyle=He(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()},Eu.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=fs,e.fill(),this.Ya&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.zj,t.lineDash&&e.setLineDash(t.lineDash),e.stroke()),e.closePath()},i(Ah,Mh),Ah.prototype.clone=function(){var t=new Ah({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},Ah.prototype.Uc=function(t){this.b=t,Ph(this,this.S)},Eh.prototype.clone=function(){var t=this.b;return new Eh({color:t&&t.slice?t.slice():t||void 0})},Eh.prototype.i=function(){return this.b},Eh.prototype.c=function(t){this.b=t,this.a=void 0},(Eu=Th.prototype).clone=function(){var t=this.V();return t&&t.clone&&(t=t.clone()),new Th({geometry: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()})},Eu.V=function(){return this.Gc},Eu.Pk=function(){return this.Za},Eu.Fa=function(){return this.Va},Eu.pf=function(t){this.Va=t},Eu.Y=function(){return this.M},Eu.Og=function(t){this.M=t},Eu.Ga=function(){return this.Ya},Eu.qf=function(t){this.Ya=t},Eu.Na=function(){return this.Ia},Eu.xd=function(t){this.Ia=t},Eu.Ba=function(){return this.Fj},Eu.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=Ih,this.Gc=e},Eu.Vb=function(t){this.Fj=t};var Ch=null;function Lh(){var t,e;return Ch||(t=new Eh({color:"rgba(255,255,255,0.4)"}),e=new Ga({color:"#3399CC",width:1.25}),Ch=[new Th({image:new Ah({fill:t,stroke:e,radius:5}),fill:t,stroke:e})]),Ch}function Rh(){var t={},e=[255,255,255,1],o=[0,153,255,1];return t.Polygon=[new Th({fill:new Eh({color:[255,255,255,.5]})})],t.MultiPolygon=t.Polygon,t.LineString=[new Th({stroke:new Ga({color:e,width:5})}),new Th({stroke:new Ga({color:o,width:3})})],t.MultiLineString=t.LineString,t.Circle=t.Polygon.concat(t.LineString),t.Point=[new Th({image:new Ah({radius:6,fill:new Eh({color:o}),stroke:new Ga({color:e,width:1.5})}),zIndex:1/0})],t.MultiPoint=t.Point,t.GeometryCollection=t.Polygon.concat(t.LineString,t.Point),t}function Ih(t){return t.V()}function Nh(t){Le.call(this),this.a=void 0,this.c="geometry",this.g=null,this.j=void 0,this.f=null,be(this,Ie(this.c),this.Ee,this),void 0!==t&&(t instanceof Bi||!t?this.Ra(t):this.H(t))}i(Nh,Le),(Eu=Nh.prototype).clone=function(){var t=new Nh(this.N());t.Tc(this.c);var e=this.V();return e&&t.Ra(e.clone()),(e=this.g)&&t.hg(e),t},Eu.V=function(){return this.get(this.c)},Eu.wm=function(){return this.a},Eu.Qk=function(){return this.c},Eu.xm=function(){return this.g},Eu.Lc=function(){return this.j},Eu.Al=function(){this.s()},Eu.Ee=function(){this.f&&(xe(this.f),this.f=null);var t=this.V();t&&(this.f=be(t,"change",this.Al,this)),this.s()},Eu.Ra=function(t){this.set(this.c,t)},Eu.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:(X(e instanceof Th,41),[e]),function(){return o})}return t}(t):void 0,this.s()},Eu.jc=function(t){this.a=t,this.s()},Eu.Tc=function(t){we(this,Ie(this.c),this.Ee,this),this.c=t,be(this,Ie(this.c),this.Ee,this),this.Ee()};var Fh=document.implementation.createDocument("","",null);function kh(t,e){return Fh.createElementNS(t,e)}function Dh(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 Oh(t){return t instanceof Document}function Uh(t){return t instanceof Node}function Gh(t){return(new DOMParser).parseFromString(t,"application/xml")}function Bh(o,i){return function(t,e){void 0!==(t=o.call(i,t,e))&&c(e[e.length-1],t)}}function Xh(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 Vh(o,i){return function(t,e){void 0!==(t=o.call(void 0!==i?i:this,t,e))&&(e[e.length-1]=t)}}function Wh(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 Zh(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 Kh(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 zh(r){var n,s;return function(t,e,o){var i;n||(n={},(i={})[t.localName]=r,n[t.namespaceURI]=i,s=Yh(t.localName)),Qh(n,s,e,o)}}function Yh(i,r){return function(t,e,o){return t=e[e.length-1].node,void 0===(e=i)&&(e=o),void 0===(o=r)&&(o=t.namespaceURI),kh(o,e)}}var Hh=Yh();function qh(t,e){for(var o=e.length,i=Array(o),r=0;r<o;++r)i[r]=t[e[r]];return i}function Jh(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 _h(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 $h(t,e,o,i,r){return i.push(t),_h(e,o,i,r),i.pop()}function Qh(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 tl(t,e,o,i,r,n,s){r.push(t),Qh(e,o,i,r,n,s),r.pop()}function el(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=Gh(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 ol(t,e){return el(t,e,function(t){this.cd(t)},w)}function il(){this.f=this.defaultDataProjection=null}function rl(t,e,o){var i;return o&&(i={dataProjection:o.dataProjection?o.dataProjection:t.kb(e),featureProjection:o.featureProjection}),nl(t,i)}function nl(t,e){return ut({dataProjection:t.defaultDataProjection,featureProjection:t.f},e)}function sl(t,e,o){var i,r=o?Vt(o.featureProjection):null,n=o?Vt(o.dataProjection):null,s=r&&n&&!Wt(r,n)?t instanceof Bi?(e?t.clone():t).tb(e?r:n,e?n:r):qt(t,n,r):t;return e&&o&&void 0!==o.decimals&&(i=Math.pow(10,o.decimals),s===t&&(s=s.clone()),s.Dc(function(t){for(var e=0,o=t.length;e<o;++e)t[e]=Math.round(t[e]*i)/i;return t})),s}function al(){il.call(this)}function pl(t){return"string"==typeof t?(t=JSON.parse(t))?t:null:null!==t?t:null}function hl(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=+G(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 ll(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 ul(t,e){Wi.call(this),this.c=null,this.u=this.D=this.j=-1,this.ma(t,e)}function cl(t){return t.j!=t.i&&(t.c=t.wh(.5,t.c),t.j=t.i),t.c}function fl(t,e){Wi.call(this),this.c=[],this.j=this.u=-1,this.ma(t,e)}function yl(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=hl(o,i,a,t,.5)),i=a}return e}function gl(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 dl(t,e){Wi.call(this),this.ma(t,e)}function vl(t,e){Wi.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 bl(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=K(e,r,a[0],i);n.push((r[0]+r[2])/2,(r[1]+r[3])/2),r=a[a.length-1]}for(e=ml(t),o=t.c,i=t.a,h=[],a=s=0,r=o.length;a<r;++a)var p=o[a],h=cr(e,s,p,i,n,2*a,h),s=p[p.length-1];t.D=h,t.u=t.i}return t.D}function ml(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(!vr(e,o[i],t.a,void 0)){o=!1;break t}o=!0}o?t.j=e:(t.j=e.slice(),t.j.length=mr(t.j,t.c,t.a)),t.I=t.i}return t.j}function wl(t,e,o,i){Ki(t,e,o),t.c=i,t.s()}function xl(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)}wl(t,o,i,r)}function Sl(t){t=t||{},il.call(this),this.b=t.geometryName}function Ml(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=Pl(t),n=[],s=[],o=[],a=0,p=i.length;a<p;++a)n.length=0,er(n,0,i[a],r.length),dr(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 ar(s[a][0]).G(),new ar(i).G())){s[a].push(i),r=!0;break}r||s.push([i.reverse()])}t=ut({},t),1===s.length?(o="Polygon",t.rings=s[0]):(o="MultiPolygon",t.rings=s)}return sl((0,El[o])(t),!1,e)}function Pl(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 Al(t){return{hasZ:"XYZ"===(t=t.ja)||"XYZM"===t,hasM:"XYM"===t||"XYZM"===t}}i(al,il),(Eu=al.prototype).U=function(){return"json"},Eu.Tb=function(t,e){return this.Rc(pl(t),rl(this,t,e))},Eu.Oa=function(t,e){return this.yg(pl(t),rl(this,t,e))},Eu.Sc=function(t,e){return this.Cg(pl(t),rl(this,t,e))},Eu.kb=function(t){return this.Fg(pl(t))},Eu.Bd=function(t,e){return JSON.stringify(this.Zc(t,e))},Eu.Wb=function(t,e){return JSON.stringify(this.he(t,e))},Eu.$c=function(t,e){return JSON.stringify(this.je(t,e))},i(ul,Wi),(Eu=ul.prototype).mk=function(t){this.A?c(this.A,t):this.A=t.slice(),this.s()},Eu.clone=function(){var t=new ul(null);return t.ba(this.ja,this.A.slice()),t},Eu.Kb=function(t,e,o,i){return i<j(this.G(),t,e)?i:(this.u!=this.i&&(this.D=Math.sqrt(Ji(this.A,0,this.A.length,this.a,0)),this.u=this.i),$i(this.A,0,this.A.length,this.a,this.D,!1,t,e,o,i))},Eu.Ck=function(t,e){return fr(this.A,0,this.A.length,this.a,t,e)},Eu.nn=function(t,e){return"XYM"!=this.ja&&"XYZM"!=this.ja?null:ll(this.A,0,this.A.length,this.a,t,void 0!==e&&e)},Eu.X=function(){return ir(this.A,0,this.A.length,this.a)},Eu.wh=function(t,e){return hl(this.A,0,this.A.length,this.a,t,e)},Eu.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},Eu.hd=function(t){var e=[];return e.length=nr(this.A,0,this.A.length,this.a,t,e,0),(t=new ul(null)).ba("XY",e),t},Eu.U=function(){return"LineString"},Eu.Xa=function(t){return yr(this.A,0,this.A.length,this.a,t)},Eu.ma=function(t,e){t?(zi(this,e,t,1),this.A||(this.A=[]),this.A.length=er(this.A,0,t,this.a),this.s()):this.ba("XY",null)},Eu.ba=function(t,e){Ki(this,t,e),this.s()},i(fl,Wi),(Eu=fl.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()},Eu.clone=function(){var t=new fl(null);return t.ba(this.ja,this.A.slice(),this.c.slice()),t},Eu.Kb=function(t,e,o,i){return i<j(this.G(),t,e)?i:(this.j!=this.i&&(this.u=Math.sqrt(_i(this.A,0,this.c,this.a,0)),this.j=this.i),Qi(this.A,0,this.c,this.a,this.u,!1,t,e,o,i))},Eu.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 ll(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 ll(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)},Eu.X=function(){return rr(this.A,0,this.c,this.a)},Eu.Bb=function(){return this.c},Eu.Yk=function(t){if(t<0||this.c.length<=t)return null;var e=new ul(null);return e.ba(this.ja,this.A.slice(t?this.c[t-1]:0,this.c[t])),e},Eu.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 ul(null);p.ba(o,t.slice(r,a)),i.push(p),r=a}return i},Eu.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=nr(i,s,l,n,t,e,a);o.push(a),s=l}return e.length=a,(t=new fl(null)).ba("XY",e,o),t},Eu.U=function(){return"MultiLineString"},Eu.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(yr(e,r,o[n],i,t)){t=!0;break t}r=o[n]}t=!1}return t},Eu.ma=function(t,e){t?(zi(this,e,t,2),this.A||(this.A=[]),t=or(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)},Eu.ba=function(t,e,o){Ki(this,t,e),this.c=o,this.s()},i(dl,Wi),(Eu=dl.prototype).qk=function(t){this.A?c(this.A,t.ga()):this.A=t.ga().slice(),this.s()},Eu.clone=function(){var t=new dl(null);return t.ba(this.ja,this.A.slice()),t},Eu.Kb=function(t,e,o,i){if(i<j(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},Eu.X=function(){return ir(this.A,0,this.A.length,this.a)},Eu.il=function(t){var e=this.A?this.A.length/this.a:0;return t<0||e<=t?null:((e=new hr(null)).ba(this.ja,this.A.slice(t*this.a,(t+1)*this.a)),e)},Eu.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 hr(null);s.ba(e,t.slice(r,r+o)),i.push(s)}return i},Eu.U=function(){return"MultiPoint"},Eu.Xa=function(t){for(var e=this.A,o=this.a,i=0,r=e.length;i<r;i+=o){if(I(t,e[i],e[i+1]))return!0}return!1},Eu.ma=function(t,e){t?(zi(this,e,t,1),this.A||(this.A=[]),this.A.length=er(this.A,0,t,this.a),this.s()):this.ba("XY",null)},Eu.ba=function(t,e){Ki(this,t,e),this.s()},i(vl,Wi),(Eu=vl.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()},Eu.clone=function(){for(var t=new vl(null),e=this.c.length,o=Array(e),i=0;i<e;++i)o[i]=this.c[i].slice();return wl(t,this.ja,this.A.slice(),o),t},Eu.Kb=function(t,e,o,i){if(i<j(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=_i(this.A,n,h,this.a,s),n=h[h.length-1];this.B=Math.sqrt(s),this.C=this.i}r=ml(this),n=this.c,s=this.a,a=this.B;for(var h=[NaN,NaN],l=p=0,u=n.length;l<u;++l){var c=n[l];i=Qi(r,p,c,s,a,!0,t,e,o,i,h),p=c[c.length-1]}return i},Eu.Mc=function(t,e){t:{var o=ml(this),i=this.c,r=0;if(i.length)for(var n=0,s=i.length;n<s;++n){var a=i[n];if(ur(o,r,a,this.a,t,e)){t=!0;break t}r=a[a.length-1]}t=!1}return t},Eu.sn=function(){for(var t=ml(this),e=this.c,o=0,i=0,r=0,n=e.length;r<n;++r)var s=e[r],i=i+Hi(t,o,s,this.a),o=s[s.length-1];return i},Eu.X=function(t){var e;void 0!==t?mr(e=ml(this).slice(),this.c,this.a,t):e=this.A,t=e,e=this.c;for(var o=this.a,i=0,r=[],n=0,s=0,a=e.length;s<a;++s){var p=e[s];r[n++]=rr(t,i,p,o,r[n]),i=p[p.length-1]}return r.length=n,r},Eu.Uk=function(){var t=new dl(null);return t.ba("XY",bl(this).slice()),t},Eu.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=sr(i,s,l,n,t,e,a,u);o.push(u),s=l[l.length-1]}return e.length=a,wl(i=new vl(null),"XY",e,o),i},Eu.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 wr(null)).ba(this.ja,this.A.slice(e,o),t),i},Eu.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 wr(null)).ba(t,e.slice(r,p),a),i.push(h),r=p}return i},Eu.U=function(){return"MultiPolygon"},Eu.Xa=function(t){t:{for(var e=ml(this),o=this.c,i=this.a,r=0,n=0,s=o.length;n<s;++n){var a=o[n];if(gr(e,r,a,i,t)){t=!0;break t}r=a[a.length-1]}t=!1}return t},Eu.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=or(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 wl(this,"XY",null,this.c)},i(Sl,al);var El={Point:function(t){return void 0!==t.m&&void 0!==t.z?new hr([t.x,t.y,t.z,t.m],"XYZM"):void 0!==t.z?new hr([t.x,t.y,t.z],"XYZ"):void 0!==t.m?new hr([t.x,t.y,t.m],"XYM"):new hr([t.x,t.y])},LineString:function(t){return new ul(t.paths[0],Pl(t))},Polygon:function(t){return new wr(t.rings,Pl(t))},MultiPoint:function(t){return new dl(t.points,Pl(t))},MultiLineString:function(t){return new fl(t.paths,Pl(t))},MultiPolygon:function(t){return new vl(t.rings,Pl(t))}},Tl={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]}:X(!1,34),e},LineString:function(t){var e=Al(t);return{hasZ:e.hasZ,hasM:e.hasM,paths:[t.X()]}},Polygon:function(t){var e=Al(t);return{hasZ:e.hasZ,hasM:e.hasM,rings:t.X(!1)}},MultiPoint:function(t){var e=Al(t);return{hasZ:e.hasZ,hasM:e.hasM,points:t.X()}},MultiLineString:function(t){var e=Al(t);return{hasZ:e.hasZ,hasM:e.hasM,paths:t.X()}},MultiPolygon:function(t){var e=Al(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 jl(t,e){return(0,Tl[t.U()])(sl(t,!0,e),e)}function Cl(t){this.kc=t}function Ll(t,e){this.kc=t,this.b=Array.prototype.slice.call(arguments,1),X(2<=this.b.length,57)}function Rl(t){var e=["And"].concat(Array.prototype.slice.call(arguments));Ll.apply(this,e)}function Il(t,e,o){this.kc="BBOX",this.geometryName=t,this.extent=e,this.srsName=o}function Nl(t,e){this.kc=t,this.b=e}function Fl(t,e,o){Nl.call(this,"During",t),this.a=e,this.i=o}function kl(t,e,o,i){Nl.call(this,t,e),this.i=o,this.a=i}function Dl(t,e,o){kl.call(this,"PropertyIsEqualTo",t,e,o)}function Ol(t,e){kl.call(this,"PropertyIsGreaterThan",t,e)}function Ul(t,e){kl.call(this,"PropertyIsGreaterThanOrEqualTo",t,e)}function Gl(t,e,o,i){this.kc=t,this.geometryName=e||"the_geom",this.geometry=o,this.srsName=i}function Bl(t,e,o){Gl.call(this,"Intersects",t,e,o)}function Xl(t,e,o){Nl.call(this,"PropertyIsBetween",t),this.a=e,this.i=o}function Vl(t,e,o,i,r,n){Nl.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 Wl(t){Nl.call(this,"PropertyIsNull",t)}function Zl(t,e){kl.call(this,"PropertyIsLessThan",t,e)}function Kl(t,e){kl.call(this,"PropertyIsLessThanOrEqualTo",t,e)}function zl(t){this.kc="Not",this.condition=t}function Yl(t,e,o){kl.call(this,"PropertyIsNotEqualTo",t,e,o)}function Hl(t){var e=["Or"].concat(Array.prototype.slice.call(arguments));Ll.apply(this,e)}function ql(t,e,o){Gl.call(this,"Within",t,e,o)}function Jl(t){var e=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(Rl,e))}function _l(t,e,o){return new Il(t,e,o)}function $l(t){Bi.call(this),this.a=t||null,eu(this)}function Ql(t){for(var e=[],o=0,i=t.length;o<i;++o)e.push(t[o].clone());return e}function tu(t){if(t.a)for(var e=0,o=t.a.length;e<o;++e)we(t.a[e],"change",t.s,t)}function eu(t){if(t.a)for(var e=0,o=t.a.length;e<o;++e)be(t.a[e],"change",t.s,t)}function ou(t){t=t||{},il.call(this),this.defaultDataProjection=Vt(t.defaultDataProjection?t.defaultDataProjection:"EPSG:4326"),t.featureProjection&&(this.f=Vt(t.featureProjection)),this.b=t.geometryName}function iu(t,e){return t?sl((0,nu[t.type])(t),!1,e):null}function ru(t,e){return(0,su[t.U()])(sl(t,!0,e),e)}(Eu=Sl.prototype).Rc=function(t,e){var o=Ml(t.geometry,e),i=new Nh;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},Eu.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)]},Eu.Cg=Ml,Eu.Fg=function(t){return t.spatialReference&&t.spatialReference.wkid?Vt("EPSG:"+t.spatialReference.wkid):null},Eu.je=function(t,e){return jl(t,nl(this,e))},Eu.Zc=function(t,e){e=nl(this,e);var o={},i=t.V();return i&&(o.geometry=jl(i,e)),delete(i=t.N())[t.c],o.attributes=yt(i)?{}:i,e&&e.featureProjection&&(o.spatialReference={wkid:Vt(e.featureProjection).mb.split(":").pop()}),o},Eu.he=function(t,e){e=nl(this,e);for(var o=[],i=0,r=t.length;i<r;++i)o.push(this.Zc(t[i],e));return{features:o}},i(Ll,Cl),i(Rl,Ll),i(Il,Cl),i(Nl,Cl),i(Fl,Nl),i(kl,Nl),i(Dl,kl),i(Ol,kl),i(Ul,kl),i(Gl,Cl),i(Bl,Gl),i(Xl,Nl),i(Vl,Nl),i(Wl,Nl),i(Zl,kl),i(Kl,kl),i(zl,Cl),i(Yl,kl),i(Hl,Ll),i(ql,Gl),i($l,Bi),(Eu=$l.prototype).clone=function(){var t=new $l(null);return t.oj(this.a),t},Eu.Kb=function(t,e,o,i){if(i<j(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},Eu.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},Eu.se=function(t){D(t);for(var e=this.a,o=0,i=e.length;o<i;++o)Y(t,e[o].G());return t},Eu.Vf=function(){return Ql(this.a)},Eu.Vd=function(t){if(this.o!=this.i&&(ct(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?(tu(t=new $l(null)),t.a=o,eu(t),t.s(),this.f[e]=t):(this.g=t,this)},Eu.U=function(){return"GeometryCollection"},Eu.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},Eu.rotate=function(t,e){for(var o=this.a,i=0,r=o.length;i<r;++i)o[i].rotate(t,e);this.s()},Eu.scale=function(t,e,o){o=o||tt(this.G());for(var i=this.a,r=0,n=i.length;r<n;++r)i[r].scale(t,e,o);this.s()},Eu.oj=function(t){t=Ql(t),tu(this),this.a=t,eu(this),this.s()},Eu.Dc=function(t){for(var e=this.a,o=0,i=e.length;o<i;++o)e[o].Dc(t);this.s()},Eu.translate=function(t,e){for(var o=this.a,i=0,r=o.length;i<r;++i)o[i].translate(t,e);this.s()},Eu.ka=function(){tu(this),Bi.prototype.ka.call(this)},i(ou,al);var nu={Point:function(t){return new hr(t.coordinates)},LineString:function(t){return new ul(t.coordinates)},Polygon:function(t){return new wr(t.coordinates)},MultiPoint:function(t){return new dl(t.coordinates)},MultiLineString:function(t){return new fl(t.coordinates)},MultiPolygon:function(t){return new vl(t.coordinates)},GeometryCollection:function(t,e){return new $l(t=t.geometries.map(function(t){return iu(t,e)}))}},su={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=ut({},o);return delete e.featureProjection,ru(t,e)})}},Circle:function(){return{type:"GeometryCollection",geometries:[]}}};function au(){this.i=new XMLSerializer,il.call(this)}function pu(t,e,o){return 0<(t=hu(t,e,o)).length?t[0]:null}function hu(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 lu(t){t=t||{},this.featureType=t.featureType,this.featureNS=t.featureNS,this.srsName=t.srsName,this.schemaLocation="",this.b={},this.b["http://www.opengis.net/gml"]={featureMember:Vh(lu.prototype.be),featureMembers:Vh(lu.prototype.be)},au.call(this)}(Eu=ou.prototype).Rc=function(t,e){e=iu((t="Feature"===t.type?t:{type:"Feature",geometry:t}).geometry,e);var o=new Nh;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},Eu.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},Eu.Cg=iu,Eu.Fg=function(t){var e;return(t=t.crs)?"name"==t.type?e=Vt(t.properties.name):"EPSG"==t.type?e=Vt("EPSG:"+t.properties.code):X(!1,36):e=this.defaultDataProjection,e},Eu.Zc=function(t,e){e=nl(this,e);var o={type:"Feature"},i=t.a;return void 0!==i&&(o.id=i),(i=t.V())?o.geometry=ru(i,e):o.geometry=null,delete(e=t.N())[t.c],yt(e)?o.properties=null:o.properties=e,o},Eu.he=function(t,e){e=nl(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}},Eu.je=function(t,e){return ru(t,nl(this,e))},i(au,il),(Eu=au.prototype).U=function(){return"xml"},Eu.Tb=function(t,e){return Oh(t)?pu(this,t,e):Uh(t)?this.xg(t,e):"string"==typeof t?pu(this,t=Gh(t),e):null},Eu.xg=function(){return null},Eu.Oa=function(t,e){return Oh(t)?hu(this,t,e):Uh(t)?this.zc(t,e):"string"==typeof t?hu(this,t=Gh(t),e):[]},Eu.Sc=function(t,e){return Oh(t)?null:Uh(t)?this.aj(t,e):("string"==typeof t&&Gh(t),null)},Eu.aj=function(){return null},Eu.kb=function(t){return Oh(t)?this.Eg(t):Uh(t)?this.kf(t):"string"==typeof t?(t=Gh(t),this.Eg(t)):null},Eu.Eg=function(){return this.defaultDataProjection},Eu.kf=function(){return this.defaultDataProjection},Eu.Bd=function(t,e){return this.i.serializeToString(this.Vg(t,e))},Eu.Vg=function(){return null},Eu.Wb=function(t,e){return t=this.Xb(t,e),this.i.serializeToString(t)},Eu.Xb=function(){return null},Eu.$c=function(t,e){return t=this.ie(t,e),this.i.serializeToString(t)},Eu.ie=function(){return null},i(lu,au);var uu=/^[\s\xa0]*$/;function cu(t){return fu(t=Dh(t,!1))}function fu(t){if(t=/^\s*(true|1)|(false|0)\s*$/.exec(t))return void 0!==t[1]||!1}function yu(t){return t=Dh(t,!1),t=Date.parse(t),isNaN(t)?void 0:t/1e3}function gu(t){return du(t=Dh(t,!1))}function du(t){if(t=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(t))return parseFloat(t[1])}function vu(t){return bu(t=Dh(t,!1))}function bu(t){if(t=/^\s*(\d+)\s*$/.exec(t))return parseInt(t[1],10)}function mu(t){return Dh(t,!1).trim()}function wu(t,e){Mu(t,e?"1":"0")}function xu(t,e){t.appendChild(Fh.createTextNode(e.toPrecision()))}function Su(t,e){t.appendChild(Fh.createTextNode(e.toString()))}function Mu(t,e){t.appendChild(Fh.createTextNode(e))}function Pu(t){lu.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?t.schemaLocation:"http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd"}function Au(t,e,o){var i=o[o.length-1];o=i.hasZ,i=i.srsName;for(var r,n=(e=e.X()).length,s=Array(n),a=0;a<n;++a){r=e[a];var p=a,h=o,l="enu";i&&(l=Vt(i).b),l="en"===l.substr(0,2)?r[0]+" "+r[1]:r[1]+" "+r[0],h&&(l+=" "+(r[2]||0)),s[p]=l}Mu(t,s.join(" "))}(Eu=lu.prototype).be=function(t,e){var o=t.localName,i=null;if("FeatureCollection"==o)i="http://www.opengis.net/wfs"===t.namespaceURI?$h([],this.b,t,e,this):$h(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=[],n={};for(var 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?Xh:Vh)(this.wg,this));y[n[f]]=p}i=$h("featureMember"==o?void 0:[],y,t,e)}return null===i&&(i=[]),i},Eu.gf=function(t,e){var o=e[0];if(o.srsName=t.firstElementChild.getAttribute("srsName"),t=$h(null,this.Zg,t,e,this))return sl(t,!1,o)},Eu.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=Dh(t,!1),uu.test(n)&&(n=void 0),r[s]=n):("boundedBy"!==s&&(i=s),r[s]=this.gf(t,e))}return e=new Nh(r),i&&e.Tc(i),o&&e.jc(o),e},Eu.fj=function(t,e){if(t=this.ff(t,e))return(e=new hr(null)).ba("XYZ",t),e},Eu.dj=function(t,e){if(t=$h([],this.Nj,t,e,this))return new dl(t)},Eu.cj=function(t,e){if(t=$h([],this.Mj,t,e,this))return gl(e=new fl(null),t),e},Eu.ej=function(t,e){if(t=$h([],this.Oj,t,e,this))return xl(e=new vl(null),t),e},Eu.Xi=function(t,e){_h(this.Rj,t,e,this)},Eu.Mh=function(t,e){_h(this.Kj,t,e,this)},Eu.Yi=function(t,e){_h(this.Sj,t,e,this)},Eu.hf=function(t,e){if(t=this.ff(t,e))return(e=new ul(null)).ba("XYZ",t),e},Eu.wp=function(t,e){if(t=$h(null,this.ke,t,e,this))return t},Eu.bj=function(t,e){if(t=this.ff(t,e))return pr(e=new ar(null),"XYZ",t),e},Eu.jf=function(t,e){if((t=$h([null],this.zf,t,e,this))&&t[0]){e=new wr(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}},Eu.ff=function(t,e){return $h(null,this.ke,t,e,this)},Eu.Nj={"http://www.opengis.net/gml":{pointMember:Xh(lu.prototype.Xi),pointMembers:Xh(lu.prototype.Xi)}},Eu.Mj={"http://www.opengis.net/gml":{lineStringMember:Xh(lu.prototype.Mh),lineStringMembers:Xh(lu.prototype.Mh)}},Eu.Oj={"http://www.opengis.net/gml":{polygonMember:Xh(lu.prototype.Yi),polygonMembers:Xh(lu.prototype.Yi)}},Eu.Rj={"http://www.opengis.net/gml":{Point:Xh(lu.prototype.ff)}},Eu.Kj={"http://www.opengis.net/gml":{LineString:Xh(lu.prototype.hf)}},Eu.Sj={"http://www.opengis.net/gml":{Polygon:Xh(lu.prototype.jf)}},Eu.le={"http://www.opengis.net/gml":{LinearRing:Vh(lu.prototype.wp)}},Eu.aj=function(t,e){return(t=this.gf(t,[rl(this,t,e||{})]))?t:null},Eu.zc=function(t,e){var o={featureType:this.featureType,featureNS:this.featureNS};return e&&ut(o,rl(this,t,e)),this.be(t,[o])||[]},Eu.kf=function(t){return Vt(this.srsName?this.srsName:t.firstElementChild.getAttribute("srsName"))},i(Pu,lu),(Eu=Pu.prototype).Ap=function(t,e){if(t=$h([],this.Lj,t,e,this))return gl(e=new fl(null),t),e},Eu.Bp=function(t,e){if(t=$h([],this.Pj,t,e,this))return xl(e=new vl(null),t),e},Eu.ph=function(t,e){_h(this.Hj,t,e,this)},Eu.Aj=function(t,e){_h(this.Uj,t,e,this)},Eu.Ep=function(t,e){return $h([null],this.Qj,t,e,this)},Eu.Hp=function(t,e){return $h([null],this.Tj,t,e,this)},Eu.Fp=function(t,e){return $h([null],this.zf,t,e,this)},Eu.zp=function(t,e){return $h([null],this.ke,t,e,this)},Eu.cm=function(t,e){(t=$h(void 0,this.le,t,e,this))&&e[e.length-1].push(t)},Eu.yk=function(t,e){(t=$h(void 0,this.le,t,e,this))&&(e[e.length-1][0]=t)},Eu.gj=function(t,e){if((t=$h([null],this.Vj,t,e,this))&&t[0]){e=new wr(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}},Eu.Zi=function(t,e){if(t=$h([null],this.Ij,t,e,this))return(e=new ul(null)).ba("XYZ",t),e},Eu.vp=function(t,e){return k((t=$h([null],this.Jj,t,e,this))[1][0],t[1][1],t[2][0],t[2][1])},Eu.xp=function(t,e){var o,i=Dh(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",(e=e[0].srsName)&&(i=Vt(e).b),"neu"===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}},Eu.Bg=function(t,e){var o=Dh(t,!1).replace(/^\s*|\s*$/g,""),i=e[0].srsName,r=t.parentNode.getAttribute("srsDimension");e="enu",i&&(e=Vt(i).b),o=o.split(/\s+/),i=2,t.getAttribute("srsDimension")?i=bu(t.getAttribute("srsDimension")):t.getAttribute("dimension")?i=bu(t.getAttribute("dimension")):r&&(i=bu(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},Eu.ke={"http://www.opengis.net/gml":{pos:Vh(Pu.prototype.xp),posList:Vh(Pu.prototype.Bg)}},Eu.zf={"http://www.opengis.net/gml":{interior:Pu.prototype.cm,exterior:Pu.prototype.yk}},Eu.Zg={"http://www.opengis.net/gml":{Point:Vh(lu.prototype.fj),MultiPoint:Vh(lu.prototype.dj),LineString:Vh(lu.prototype.hf),MultiLineString:Vh(lu.prototype.cj),LinearRing:Vh(lu.prototype.bj),Polygon:Vh(lu.prototype.jf),MultiPolygon:Vh(lu.prototype.ej),Surface:Vh(Pu.prototype.gj),MultiSurface:Vh(Pu.prototype.Bp),Curve:Vh(Pu.prototype.Zi),MultiCurve:Vh(Pu.prototype.Ap),Envelope:Vh(Pu.prototype.vp)}},Eu.Lj={"http://www.opengis.net/gml":{curveMember:Xh(Pu.prototype.ph),curveMembers:Xh(Pu.prototype.ph)}},Eu.Pj={"http://www.opengis.net/gml":{surfaceMember:Xh(Pu.prototype.Aj),surfaceMembers:Xh(Pu.prototype.Aj)}},Eu.Hj={"http://www.opengis.net/gml":{LineString:Xh(lu.prototype.hf),Curve:Xh(Pu.prototype.Zi)}},Eu.Uj={"http://www.opengis.net/gml":{Polygon:Xh(lu.prototype.jf),Surface:Xh(Pu.prototype.gj)}},Eu.Vj={"http://www.opengis.net/gml":{patches:Vh(Pu.prototype.Ep)}},Eu.Ij={"http://www.opengis.net/gml":{segments:Vh(Pu.prototype.Hp)}},Eu.Jj={"http://www.opengis.net/gml":{lowerCorner:Xh(Pu.prototype.Bg),upperCorner:Xh(Pu.prototype.Bg)}},Eu.Qj={"http://www.opengis.net/gml":{PolygonPatch:Vh(Pu.prototype.Fp)}},Eu.Tj={"http://www.opengis.net/gml":{LineStringSegment:Vh(Pu.prototype.zp)}},Eu.ni=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),i=kh(t.namespaceURI,"pos"),t.appendChild(i),t=(o=o[o.length-1]).hasZ;var r=o.srsName;o="enu",r&&(o=Vt(r).b),e=e.X(),o="en"===o.substr(0,2)?e[0]+" "+e[1]:e[1]+" "+e[0],t&&(o+=" "+(e[2]||0)),Mu(i,o)};var Eu,Tu={"http://www.opengis.net/gml":{lowerCorner:Kh(Mu),upperCorner:Kh(Mu)}};(Eu=Pu.prototype).jn=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),tl({node:t},Tu,Hh,[e[0]+" "+e[1],e[2]+" "+e[3]],o,["lowerCorner","upperCorner"],this)},Eu.ki=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),i=kh(t.namespaceURI,"posList"),t.appendChild(i),Au(i,e,o)},Eu.hn=function(t,e){e=(t=e[e.length-1]).node;var o=t.exteriorWritten;return void 0===o&&(t.exteriorWritten=!0),kh(e.namespaceURI,void 0!==o?"interior":"exterior")},Eu.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(),tl({node:t,hasZ:i,srsName:r},Ru,this.hn,e,o,void 0,this)):"Surface"===t.nodeName&&(i=kh(t.namespaceURI,"patches"),t.appendChild(i),t=kh(i.namespaceURI,"PolygonPatch"),i.appendChild(t),this.Se(t,e,o))},Eu.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=kh(t.namespaceURI,"posList"),t.appendChild(i),Au(i,e,o)):"Curve"===t.nodeName&&(i=kh(t.namespaceURI,"segments"),t.appendChild(i),t=kh(i.namespaceURI,"LineStringSegment"),i.appendChild(t),this.Re(t,e,o))},Eu.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(),tl({node:t,hasZ:i,srsName:r,surface:n},ju,this.o,e,o,void 0,this)},Eu.kn=function(t,e,o){var i=(r=o[o.length-1]).srsName,r=r.hasZ;i&&t.setAttribute("srsName",i),e=e.Zd(),tl({node:t,hasZ:r,srsName:i},Cu,Yh("pointMember"),e,o,void 0,this)},Eu.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(),tl({node:t,hasZ:i,srsName:r,curve:n},Lu,this.o,e,o,void 0,this)},Eu.oi=function(t,e,o){var i=kh(t.namespaceURI,"LinearRing");t.appendChild(i),this.ki(i,e,o)},Eu.pi=function(t,e,o){var i=this.a(e,o);i&&(t.appendChild(i),this.Se(i,e,o))},Eu.ln=function(t,e,o){var i=kh(t.namespaceURI,"Point");t.appendChild(i),this.ni(i,e,o)},Eu.ji=function(t,e,o){var i=this.a(e,o);i&&(t.appendChild(i),this.Re(i,e,o))},Eu.od=function(t,e,o){var i,r=o[o.length-1],n=ut({},r);n.node=t,i=Array.isArray(e)?r.dataProjection?qt(e,r.featureProjection,r.dataProjection):e:sl(e,!0,r),tl(n,Iu,this.a,[i],o,void 0,this)},Eu.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 Bi?h in i.lb[r]||(i.lb[r][h]=Kh(this.od,this)):h in i.lb[r]||(i.lb[r][h]=Kh(Mu)))}var h=ut({},i);h.node=t,tl(h,i.lb,Yh(void 0,r),a,o,e)};var ju={"http://www.opengis.net/gml":{surfaceMember:Kh(Pu.prototype.pi),polygonMember:Kh(Pu.prototype.pi)}},Cu={"http://www.opengis.net/gml":{pointMember:Kh(Pu.prototype.ln)}},Lu={"http://www.opengis.net/gml":{lineStringMember:Kh(Pu.prototype.ji),curveMember:Kh(Pu.prototype.ji)}},Ru={"http://www.opengis.net/gml":{exterior:Kh(Pu.prototype.oi),interior:Kh(Pu.prototype.oi)}},Iu={"http://www.opengis.net/gml":{Curve:Kh(Pu.prototype.Re),MultiCurve:Kh(Pu.prototype.li),Point:Kh(Pu.prototype.ni),MultiPoint:Kh(Pu.prototype.kn),LineString:Kh(Pu.prototype.Re),MultiLineString:Kh(Pu.prototype.li),LinearRing:Kh(Pu.prototype.ki),Polygon:Kh(Pu.prototype.Se),MultiPolygon:Kh(Pu.prototype.mi),Surface:Kh(Pu.prototype.Se),MultiSurface:Kh(Pu.prototype.mi),Envelope:Kh(Pu.prototype.jn)}},Nu={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"};function Fu(t){lu.call(this,t=t||{}),this.b["http://www.opengis.net/gml"].featureMember=Xh(lu.prototype.be),this.schemaLocation=t.schemaLocation?t.schemaLocation:"http://www.opengis.net/gml http://schemas.opengis.net/gml/2.1.2/feature.xsd"}function ku(t){return(t=kh(t,"coordinates")).setAttribute("decimal","."),t.setAttribute("cs",","),t.setAttribute("ts"," "),t}function Du(t,e,o){var i=o[o.length-1];o=i.hasZ,i=i.srsName;for(var r,n=(e=e.X()).length,s=Array(n),a=0;a<n;++a)r=e[a],s[a]=Ou(r,i,o);Mu(t,s.join(" "))}function Ou(t,e,o){var i="enu";return e&&(i=Vt(e).b),e="en"===i.substr(0,2)?t[0]+","+t[1]:t[1]+","+t[0],o&&(e+=","+(t[2]||0)),e}Pu.prototype.o=function(t,e){return kh("http://www.opengis.net/gml",Nu[e[e.length-1].node.nodeName])},Pu.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"),kh("http://www.opengis.net/gml",t)},Pu.prototype.ie=function(t,e){e=nl(this,e);var o=kh("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&&ut(i,e),this.od(o,t,[i]),o},Pu.prototype.Xb=function(t,e){e=nl(this,e);var o=kh("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&&ut(i,e);var r=(e=[i])[e.length-1],i=r.featureType,n=r.featureNS,s={};return s[n]={},s[n][i]=Kh(this.ii,this),(r=ut({},r)).node=o,tl(r,s,Yh(i,n),t,e),o},i(Fu,lu),(Eu=Fu.prototype).$i=function(t,e){t=Dh(t,!1).replace(/^\s*|\s*$/g,"");var o=e[0].srsName;e="enu",(o=o&&Vt(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},Eu.tp=function(t,e){return k((t=$h([null],this.Gj,t,e,this))[1][0],t[1][1],t[1][3],t[1][4])},Eu.am=function(t,e){(t=$h(void 0,this.le,t,e,this))&&e[e.length-1].push(t)},Eu.bp=function(t,e){(t=$h(void 0,this.le,t,e,this))&&(e[e.length-1][0]=t)},Eu.ke={"http://www.opengis.net/gml":{coordinates:Vh(Fu.prototype.$i)}},Eu.zf={"http://www.opengis.net/gml":{innerBoundaryIs:Fu.prototype.am,outerBoundaryIs:Fu.prototype.bp}},Eu.Gj={"http://www.opengis.net/gml":{coordinates:Xh(Fu.prototype.$i)}},Eu.Zg={"http://www.opengis.net/gml":{Point:Vh(lu.prototype.fj),MultiPoint:Vh(lu.prototype.dj),LineString:Vh(lu.prototype.hf),MultiLineString:Vh(lu.prototype.cj),LinearRing:Vh(lu.prototype.bj),Polygon:Vh(lu.prototype.jf),MultiPolygon:Vh(lu.prototype.ej),Box:Vh(Fu.prototype.tp)}},Eu.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"),kh("http://www.opengis.net/gml",t)},Eu.ai=function(t,e,o){var i,r=o[o.length-1],n=ut({},r);n.node=t,i=Array.isArray(e)?r.dataProjection?qt(e,r.featureProjection,r.dataProjection):e:sl(e,!0,r),tl(n,Uu,this.jg,[i],o,void 0,this)},Eu.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=ku(t.namespaceURI),t.appendChild(i),Du(i,e,o)):"Curve"===t.nodeName&&(i=kh(t.namespaceURI,"segments"),t.appendChild(i),t=kh(i.namespaceURI,"LineStringSegment"),i.appendChild(t),this.Pe(t,e,o))},Eu.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(),tl({node:t,hasZ:i,srsName:r},Gu,this.dn,e,o,void 0,this)):"Surface"===t.nodeName&&(i=kh(t.namespaceURI,"patches"),t.appendChild(i),t=kh(i.namespaceURI,"PolygonPatch"),i.appendChild(t),this.Qe(t,e,o))},Eu.dn=function(t,e){e=(t=e[e.length-1]).node;var o=t.exteriorWritten;return void 0===o&&(t.exteriorWritten=!0),kh(e.namespaceURI,void 0!==o?"innerBoundaryIs":"outerBoundaryIs")},Eu.gi=function(t,e,o){var i=kh(t.namespaceURI,"LinearRing");t.appendChild(i),this.ci(i,e,o)},Eu.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(),tl({node:t,hasZ:i,srsName:r,curve:n},Xu,this.a,e,o,void 0,this)},Eu.fi=function(t,e,o){var i=o[o.length-1];o=i.hasZ;var r=i.srsName;r&&t.setAttribute("srsName",r),i=ku(t.namespaceURI),t.appendChild(i),Mu(i,t=Ou(t=e.X(),r,o))},Eu.fn=function(t,e,o){var i=o[o.length-1],r=i.hasZ;(i=i.srsName)&&t.setAttribute("srsName",i),e=e.Zd(),tl({node:t,hasZ:r,srsName:i},Bu,Yh("pointMember"),e,o,void 0,this)},Eu.gn=function(t,e,o){var i=kh(t.namespaceURI,"Point");t.appendChild(i),this.fi(i,e,o)},Eu.bi=function(t,e,o){var i=this.jg(e,o);i&&(t.appendChild(i),this.Pe(i,e,o))},Eu.ci=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),i=ku(t.namespaceURI),t.appendChild(i),Du(i,e,o)},Eu.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(),tl({node:t,hasZ:i,srsName:r,surface:n},Wu,this.a,e,o,void 0,this)},Eu.hi=function(t,e,o){var i=this.jg(e,o);i&&(t.appendChild(i),this.Qe(i,e,o))},Eu.en=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),tl({node:t},Zu,Hh,[e[0]+" "+e[1],e[2]+" "+e[3]],o,["lowerCorner","upperCorner"],this)};var Uu={"http://www.opengis.net/gml":{Curve:Kh(Fu.prototype.Pe),MultiCurve:Kh(Fu.prototype.di),Point:Kh(Fu.prototype.fi),MultiPoint:Kh(Fu.prototype.fn),LineString:Kh(Fu.prototype.Pe),MultiLineString:Kh(Fu.prototype.di),LinearRing:Kh(Fu.prototype.ci),Polygon:Kh(Fu.prototype.Qe),MultiPolygon:Kh(Fu.prototype.ei),Surface:Kh(Fu.prototype.Qe),MultiSurface:Kh(Fu.prototype.ei),Envelope:Kh(Fu.prototype.en)}},Gu={"http://www.opengis.net/gml":{outerBoundaryIs:Kh(Fu.prototype.gi),innerBoundaryIs:Kh(Fu.prototype.gi)}},Bu={"http://www.opengis.net/gml":{pointMember:Kh(Fu.prototype.gn)}},Xu={"http://www.opengis.net/gml":{lineStringMember:Kh(Fu.prototype.bi),curveMember:Kh(Fu.prototype.bi)}};Fu.prototype.a=function(t,e){return kh("http://www.opengis.net/gml",Vu[e[e.length-1].node.nodeName])};var Vu={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"},Wu={"http://www.opengis.net/gml":{surfaceMember:Kh(Fu.prototype.hi),polygonMember:Kh(Fu.prototype.hi)}},Zu={"http://www.opengis.net/gml":{lowerCorner:Kh(Mu),upperCorner:Kh(Mu)}};function Ku(t){t=t||{},au.call(this),this.defaultDataProjection=Vt("EPSG:4326"),this.b=t.readExtensions}i(Ku,au);var zu=[null,"http://www.topografix.com/GPX/1/0","http://www.topografix.com/GPX/1/1"];function Yu(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 Hu(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 qu(t,e){var o=e[e.length-1],i=t.getAttribute("href");null!==i&&(o.link=i),_h(oc,t,e)}function Ju(t,e){e[e.length-1].extensionsNode_=t}function _u(t,e){var o=e[0];if(t=$h({flatCoordinates:[],layoutOptions:{}},ic,t,e)){e=t.flatCoordinates,delete t.flatCoordinates;var i=t.layoutOptions;delete t.layoutOptions;var i=Hu(i,e),r=new ul(null);return r.ba(i,e),sl(r,!1,o),(o=new Nh(r)).H(t),o}}function $u(t,e){var o=e[0];if(t=$h({flatCoordinates:[],ends:[],layoutOptions:{}},nc,t,e)){e=t.flatCoordinates,delete t.flatCoordinates;var i=t.ends;delete t.ends;var r=t.layoutOptions;delete t.layoutOptions;var r=Hu(r,e,i),n=new fl(null);return n.ba(r,e,i),sl(n,!1,o),(o=new Nh(n)).H(t),o}}function Qu(t,e){var o=e[0];if(e=$h({},pc,t,e)){var i={};return sl(t=new hr(t=Yu([],i,t,e),Hu(i,t)),!1,o),(o=new Nh(t)).H(e),o}}var tc={rte:_u,trk:$u,wpt:Qu},ec=Jh(zu,{rte:Xh(_u),trk:Xh($u),wpt:Xh(Qu)}),oc=Jh(zu,{text:Zh(mu,"linkText"),type:Zh(mu,"linkType")}),ic=Jh(zu,{name:Zh(mu),cmt:Zh(mu),desc:Zh(mu),src:Zh(mu),link:qu,number:Zh(vu),extensions:Ju,type:Zh(mu),rtept:function(t,e){var o=$h({},rc,t,e);o&&Yu((e=e[e.length-1]).flatCoordinates,e.layoutOptions,t,o)}}),rc=Jh(zu,{ele:Zh(gu),time:Zh(yu)}),nc=Jh(zu,{name:Zh(mu),cmt:Zh(mu),desc:Zh(mu),src:Zh(mu),link:qu,number:Zh(vu),type:Zh(mu),extensions:Ju,trkseg:function(t,e){var o=e[e.length-1];_h(sc,t,e),o.ends.push(o.flatCoordinates.length)}}),sc=Jh(zu,{trkpt:function(t,e){var o=$h({},ac,t,e);o&&Yu((e=e[e.length-1]).flatCoordinates,e.layoutOptions,t,o)}}),ac=Jh(zu,{ele:Zh(gu),time:Zh(yu)}),pc=Jh(zu,{ele:Zh(gu),time:Zh(yu),magvar:Zh(gu),geoidheight:Zh(gu),name:Zh(mu),cmt:Zh(mu),desc:Zh(mu),src:Zh(mu),link:qu,sym:Zh(mu),type:Zh(mu),fix:Zh(mu),sat:Zh(vu),hdop:Zh(gu),vdop:Zh(gu),pdop:Zh(gu),ageofdgpsdata:Zh(gu),dgpsid:Zh(vu),extensions:Ju});function hc(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 lc(t,e,o){t.setAttribute("href",e),e=o[o.length-1].properties,tl({node:t},fc,Hh,[e.linkText,e.linkType],o,cc)}function uc(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=qh(n,e="rtept"==t.nodeName?dc[r]:xc[r]),tl({node:t,properties:n},Sc,Hh,i,o,e)}Ku.prototype.xg=function(t,e){if(!d(zu,t.namespaceURI))return null;var o=tc[t.localName];return o&&(t=o(t,[rl(this,t,e)]))?(hc(this,[t]),t):null},Ku.prototype.zc=function(t,e){return d(zu,t.namespaceURI)&&"gpx"==t.localName&&(t=$h([],ec,t,[rl(this,t,e)]))?(hc(this,t),t):[]};var cc=["text","type"],fc=Jh(zu,{text:Kh(Mu),type:Kh(Mu)}),yc=Jh(zu,"name cmt desc src link number type rtept".split(" ")),gc=Jh(zu,{name:Kh(Mu),cmt:Kh(Mu),desc:Kh(Mu),src:Kh(Mu),link:Kh(lc),number:Kh(Su),type:Kh(Mu),rtept:zh(Kh(uc))}),dc=Jh(zu,["ele","time"]),vc=Jh(zu,"name cmt desc src link number type trkseg".split(" ")),bc=Jh(zu,{name:Kh(Mu),cmt:Kh(Mu),desc:Kh(Mu),src:Kh(Mu),link:Kh(lc),number:Kh(Su),type:Kh(Mu),trkseg:zh(Kh(function(t,e,o){tl({node:t,geometryLayout:e.ja,properties:{}},wc,mc,e.X(),o)}))}),mc=Yh("trkpt"),wc=Jh(zu,{trkpt:Kh(uc)}),xc=Jh(zu,"ele time magvar geoidheight name cmt desc src link sym type fix sat hdop vdop pdop ageofdgpsdata dgpsid".split(" ")),Sc=Jh(zu,{ele:Kh(xu),time:Kh(function(t,e){e=new Date(1e3*e),t.appendChild(Fh.createTextNode(e.getUTCFullYear()+"-"+Ai(e.getUTCMonth()+1)+"-"+Ai(e.getUTCDate())+"T"+Ai(e.getUTCHours())+":"+Ai(e.getUTCMinutes())+":"+Ai(e.getUTCSeconds())+"Z"))}),magvar:Kh(xu),geoidheight:Kh(xu),name:Kh(Mu),cmt:Kh(Mu),desc:Kh(Mu),src:Kh(Mu),link:Kh(lc),sym:Kh(Mu),type:Kh(Mu),fix:Kh(Mu),sat:Kh(Su),hdop:Kh(xu),vdop:Kh(xu),pdop:Kh(xu),ageofdgpsdata:Kh(xu),dgpsid:Kh(Su)}),Mc={Point:"wpt",LineString:"rte",MultiLineString:"trk"};function Pc(t,e){if((t=t.V())&&(t=Mc[t.U()]))return kh(e[e.length-1].node.namespaceURI,t)}var Ac=Jh(zu,{rte:Kh(function(t,e,o){var i=o[0],r=e.N();t={node:t,properties:r},(e=e.V())&&(e=sl(e,!0,i),t.geometryLayout=e.ja,r.rtept=e.X()),r=qh(r,i=yc[o[o.length-1].node.namespaceURI]),tl(t,gc,Hh,r,o,i)}),trk:Kh(function(t,e,o){var i=o[0],r=e.N();t={node:t,properties:r},(e=e.V())&&(e=sl(e,!0,i),r.trkseg=e.gd()),r=qh(r,i=vc[o[o.length-1].node.namespaceURI]),tl(t,bc,Hh,r,o,i)}),wpt:Kh(function(t,e,o){var i=o[0],r=o[o.length-1];r.properties=e.N(),(e=e.V())&&(e=sl(e,!0,i),r.geometryLayout=e.ja,uc(t,e.X(),o))})});function Ec(){il.call(this)}function Tc(t){return"string"==typeof t?t:""}function jc(t){t=t||{},il.call(this),this.defaultDataProjection=Vt("EPSG:4326"),this.b=t.altitudeMode?t.altitudeMode:"none"}Ku.prototype.Xb=function(t,e){e=nl(this,e);var o=kh("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"),tl({node:o},Ac,Pc,t,[e]),o},i(Ec,il),(Eu=Ec.prototype).U=function(){return"text"},Eu.Tb=function(t,e){return this.ae(Tc(t),nl(this,e))},Eu.Oa=function(t,e){return this.zg(Tc(t),nl(this,e))},Eu.Sc=function(t,e){return this.wd(Tc(t),nl(this,e))},Eu.kb=function(){return this.defaultDataProjection},Eu.Bd=function(t,e){return this.ge(t,nl(this,e))},Eu.Wb=function(t,e){return this.Wg(t,nl(this,e))},Eu.$c=function(t,e){return this.Cd(t,nl(this,e))},i(jc,Ec);var Cc,Lc,Rc,Ic,Nc,Fc,kc,Dc,Oc,Uc,Gc,Bc,Xc,Vc,Wc,Zc=/^B(\d{2})(\d{2})(\d{2})(\d{2})(\d{5})([NS])(\d{3})(\d{5})([EW])([AV])(\d{5})(\d{5})/,Kc=/^H.([A-Z]{3}).*?:(.*)/,zc=/^HFDTE(\d{2})(\d{2})(\d{2})/,Yc=/\r\n|\r|\n/;function Hc(t,e,o,i,r,n){Te.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&&qc(this)}function qc(e){var t=qe(1,1);try{t.drawImage(e.M,0,0),t.getImageData(0,0,1,1)}catch(t){e.l=!0}}function Jc(t){t=t||{},this.o=void 0!==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;X(!(void 0!==i&&e),4),X(!e||e&&o,5),void 0!==i&&i.length||!e||(i=e.src||B(e).toString()),X(void 0!==i&&0<i.length,6);var r=void 0!==t.src?0:2;this.j=void 0!==t.color?Ve(t.color):null;var n=this.ra,s=this.j,a=Yn.get(i,n,s);a||(a=new Hc(e,i,o,n,r,s),Yn.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,Sh.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 _c(t){t=t||{},this.a=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 Eh({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 $c(t){t=t||{},au.call(this),Cc||(Rc=new Eh({color:Lc=[255,255,255,1]}),Fc=Nc="pixels",Uc=new Jc({anchor:Ic=[20,2],anchorOrigin:"bottom-left",anchorXUnits:Nc,anchorYUnits:Fc,crossOrigin:"anonymous",rotation:0,scale:Oc=.5,size:kc=[64,64],src:Dc="https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"}),Gc="NO_IMAGE",Bc=new Ga({color:Lc,width:1}),Xc=new Ga({color:[51,51,51,1],width:2}),Vc=new _c({font:"bold 16px Helvetica",fill:Rc,stroke:Xc,scale:.8}),Wc=new Th({fill:Rc,image:Uc,text:Vc,stroke:Bc,zIndex:0}),Cc=[Wc]),this.defaultDataProjection=Vt("EPSG:4326"),this.a=t.defaultStyle?t.defaultStyle:Cc,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}(Eu=jc.prototype).ae=function(t,e){var o=this.b,i=t.split(Yc);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=Zc.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=zc.exec(d))?(a=parseInt(u[1],10),s=parseInt(u[2],10)-1,n=2e3+parseInt(u[3],10)):(u=Kc.exec(d))&&(t[u[1]]=u[2].trim()))}return r.length?((i=new ul(null)).ba("none"==o?"XYM":"XYZM",r),(e=new Nh(sl(i,!1,e))).H(t),e):null},Eu.zg=function(t,e){return(t=this.ae(t,e))?[t]:[]},Eu.ge=function(){},Eu.Wg=function(){},Eu.Cd=function(){},Eu.wd=function(){},i(Hc,Te),Hc.prototype.v=function(){this.i=3,this.f.forEach(xe),this.f=null,this.b("change")},Hc.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(xe),this.f=null,qc(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")},Hc.prototype.Y=function(){return this.c?this.c:this.M},Hc.prototype.load=function(){if(0==this.i){this.i=1,this.f=[me(this.M,"error",this.v,this),me(this.M,"load",this.u,this)];try{this.M.src=this.o}catch(t){this.v()}}},i(Jc,Sh),(Eu=Jc.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 Jc({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})},Eu.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},Eu.Lo=function(){return this.j},Eu.Y=function(t){return this.b.Y(t)},Eu.ye=function(){return this.b.a},Eu.Ye=function(){return this.b.i},Eu.qg=function(){var t,e,o,i=this.b;return i.j||(i.l?((o=qe(t=i.a[0],e=i.a[1])).fillRect(0,0,t,e),i.j=o.canvas):i.j=i.M),i.j},Eu.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},Eu.Mo=function(){return this.b.o},Eu.ic=function(){return this.D?this.D:this.b.a},Eu.Nh=function(t,e){return be(this.b,"change",t,e)},Eu.load=function(){this.b.load()},Eu.Bj=function(t,e){we(this.b,"change",t,e)},(Eu=_c.prototype).clone=function(){return new _c({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})},Eu.Nk=function(){return this.a},Eu.cl=function(){return this.i},Eu.dl=function(){return this.c},Eu.Fa=function(){return this.Va},Eu.Ro=function(){return this.o},Eu.So=function(){return this.f},Eu.To=function(){return this.b},Eu.Ga=function(){return this.Ya},Eu.Na=function(){return this.Ia},Eu.nl=function(){return this.g},Eu.ol=function(){return this.j},Eu.nj=function(t){this.a=t},Eu.sj=function(t){this.i=t},Eu.tj=function(t){this.c=t},Eu.pf=function(t){this.Va=t},Eu.Uo=function(t){this.f=t},Eu.Si=function(t){this.b=t},Eu.qf=function(t){this.Ya=t},Eu.xd=function(t){this.Ia=t},Eu.vj=function(t){this.g=t},Eu.hq=function(t){this.j=t},i($c,au);var Qc=["http://www.google.com/kml/ext/2.2"],tf=[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"],ef={fraction:"fraction",pixels:"pixels",insetPixels:"pixels"};function of(t,e){var o,i=[0,0],r="start";return t.Y()&&(null===(o=t.Y().ye())&&(o=kc),2==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||Vc.a),t.Si(o.b||Vc.b),t.pf(o.Fa()||Vc.Fa()),t.qf(o.Ga()||Xc)):t=Vc.clone(),t.xd(e),t.sj(i[0]),t.tj(i[1]),t.vj(r),new Th({text:t})}function rf(i,r,n,s,a){return function(){var t=a,e="";if(t&&this.V()&&(t="Point"===this.V().U()),t&&(e=this.get("name"),t=t&&e),i)return t?(t=of(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=of(o[0],e),o.concat(t)):o}return t?(t=of(n[0],e),n.concat(t)):n}}function nf(t){if(t=Dh(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 sf(t){t=Dh(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 af(t){var e=Dh(t,!1).trim();return t.baseURI&&"about:blank"!==t.baseURI?new URL(e,t.baseURI).href:e}function pf(t){return gu(t)}function hf(t,e){return $h(null,Ef,t,e)}function lf(t,e){if(e=$h({A:[],Ej:[]},jf,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 ul(null)).ba("XYZM",t),e}}function uf(t,e){var o=$h({},Af,t,e);if(t=$h(null,Cf,t,e))return(e=new ul(null)).ba("XYZ",t),e.H(o),e}function cf(t,e){var o=$h({},Af,t,e);if(t=$h(null,Cf,t,e))return(e=new wr(null)).ba("XYZ",t,[t.length]),e.H(o),e}function ff(t,e){if(!(t=$h([],kf,t,e)))return null;if(!t.length)return new $l(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 dl(null)).ba(o,i),vf(n,t)}else"LineString"==i?(gl(n=new fl(null),t),vf(n,t)):"Polygon"==i?(xl(n=new vl(null),t),vf(n,t)):"GeometryCollection"==i?n=new $l(t):X(!1,37);else n=new $l(t);return n}function yf(t,e){var o=$h({},Af,t,e);if(t=$h(null,Cf,t,e))return(e=new hr(null)).ba("XYZ",t),e.H(o),e}function gf(t,e){var o=$h({},Af,t,e);if((t=$h([null],Tf,t,e))&&t[0]){e=new wr(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 df(t,e){if(!(e=$h({},Zf,t,e)))return null;t="fillStyle"in e?e.fillStyle:Rc;var o=e.fill;void 0===o||o||(t=null),(o="imageStyle"in e?e.imageStyle:Uc)==Gc&&(o=void 0);var i="textStyle"in e?e.textStyle:Vc,r="strokeStyle"in e?e.strokeStyle:Bc;return void 0===(e=e.outline)||e||(r=null),[new Th({fill:t,image:o,stroke:r,text:i,zIndex:void 0})]}function vf(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 bf(t,e){_h(xf,t,e)}function mf(t,e){_h(Sf,t,e)}var wf=Jh(tf,{displayName:Zh(mu),value:Zh(mu)}),xf=Jh(tf,{Data:function(t,e){var o=t.getAttribute("name");_h(wf,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){_h(Wf,t,e)}}),Sf=Jh(tf,{LatLonAltBox:function(t,e){(t=$h({},Mf,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=$h({},Pf,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))}}),Mf=Jh(tf,{altitudeMode:Zh(mu),minAltitude:Zh(gu),maxAltitude:Zh(gu),north:Zh(gu),south:Zh(gu),east:Zh(gu),west:Zh(gu)}),Pf=Jh(tf,{minLodPixels:Zh(gu),maxLodPixels:Zh(gu),minFadeExtent:Zh(gu),maxFadeExtent:Zh(gu)}),Af=Jh(tf,{extrude:Zh(cu),altitudeMode:Zh(mu)}),Ef=Jh(tf,{coordinates:Vh(sf)}),Tf=Jh(tf,{innerBoundaryIs:function(t,e){(t=$h(void 0,If,t,e))&&e[e.length-1].push(t)},outerBoundaryIs:function(t,e){(t=$h(void 0,Gf,t,e))&&(e[e.length-1][0]=t)}}),jf=Jh(tf,{when:function(t,e){e=e[e.length-1].Ej,t=Dh(t,!1),t=Date.parse(t),e.push(isNaN(t)?0:t)}},Jh(Qc,{coord:function(t,e){e=e[e.length-1].A,t=Dh(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)}})),Cf=Jh(tf,{coordinates:Vh(sf)}),Lf=Jh(tf,{href:Zh(af)},Jh(Qc,{x:Zh(gu),y:Zh(gu),w:Zh(gu),h:Zh(gu)})),Rf=Jh(tf,{Icon:Zh(function(t,e){return(t=$h({},Lf,t,e))?t:null}),heading:Zh(gu),hotSpot:Zh(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:ef[e],y:parseFloat(t.getAttribute("y")),Yg:ef[o],origin:i}}),scale:Zh(pf)}),If=Jh(tf,{LinearRing:Vh(hf)}),Nf=Jh(tf,{color:Zh(nf),scale:Zh(pf)}),Ff=Jh(tf,{color:Zh(nf),width:Zh(gu)}),kf=Jh(tf,{LineString:Xh(uf),LinearRing:Xh(cf),MultiGeometry:Xh(ff),Point:Xh(yf),Polygon:Xh(gf)}),Df=Jh(Qc,{Track:Xh(lf)}),Of=Jh(tf,{ExtendedData:bf,Region:mf,Link:function(t,e){_h(Uf,t,e)},address:Zh(mu),description:Zh(mu),name:Zh(mu),open:Zh(cu),phoneNumber:Zh(mu),visibility:Zh(cu)}),Uf=Jh(tf,{href:Zh(af)}),Gf=Jh(tf,{LinearRing:Vh(hf)}),Bf=Jh(tf,{Style:Zh(df),key:Zh(mu),styleUrl:Zh(af)}),Xf=Jh(tf,{ExtendedData:bf,Region:mf,MultiGeometry:Zh(ff,"geometry"),LineString:Zh(uf,"geometry"),LinearRing:Zh(cf,"geometry"),Point:Zh(yf,"geometry"),Polygon:Zh(gf,"geometry"),Style:Zh(df),StyleMap:function(t,e){(t=$h(void 0,Kf,t,e))&&(e=e[e.length-1],Array.isArray(t)?e.Style=t:"string"==typeof t?e.styleUrl=t:X(!1,38))},address:Zh(mu),description:Zh(mu),name:Zh(mu),open:Zh(cu),phoneNumber:Zh(mu),styleUrl:Zh(af),visibility:Zh(cu)},Jh(Qc,{MultiTrack:Zh(function(t,e){if(t=$h([],Df,t,e))return gl(e=new fl(null),t),e},"geometry"),Track:Zh(lf,"geometry")})),Vf=Jh(tf,{color:Zh(nf),fill:Zh(cu),outline:Zh(cu)}),Wf=Jh(tf,{SimpleData:function(t,e){var o=t.getAttribute("name");null!==o&&(t=mu(t),e[e.length-1][o]=t)}}),Zf=Jh(tf,{IconStyle:function(t,e){var o,i,r,n,s,a,p,h,l,u,c,f;(t=$h({},Rf,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=Dc),r="bottom-left",(u=t.hotSpot)?(n=[u.x,u.y],s=u.Xg,a=u.Yg,r=u.origin):i===Dc?(n=Ic,s=Nc,a=Fc):/^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==Dc&&(l=kc,void 0===t&&(t=Oc)),i=new Jc({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=Gc)},LabelStyle:function(t,e){(t=$h({},Nf,t,e))&&(e[e.length-1].textStyle=new _c({fill:new Eh({color:"color"in t?t.color:Lc}),scale:t.scale}))},LineStyle:function(t,e){(t=$h({},Ff,t,e))&&(e[e.length-1].strokeStyle=new Ga({color:"color"in t?t.color:Lc,width:"width"in t?t.width:1}))},PolyStyle:function(t,e){var o;(t=$h({},Vf,t,e))&&((e=e[e.length-1]).fillStyle=new Eh({color:"color"in t?t.color:Lc}),void 0!==(o=t.fill)&&(e.fill=o),void 0!==(t=t.outline)&&(e.outline=t))}}),Kf=Jh(tf,{Pair:function(t,e){var o;!(t=$h({},Bf,t,e))||(o=t.key)&&"normal"==o&&((o=t.styleUrl)&&(e[e.length-1]=o),(t=t.Style)&&(e[e.length-1]=t))}});function zf(t,e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE){var o=Yf(t,e);if(o)return o}}function Yf(t,e){for(var o=e.firstElementChild;o;o=o.nextElementSibling)if(d(tf,o.namespaceURI)&&"name"==o.localName)return mu(o);for(o=e.firstElementChild;o;o=o.nextElementSibling)if(e=o.localName,d(tf,o.namespaceURI)&&("Document"==e||"Folder"==e||"Placemark"==e||"kml"==e)&&(e=Yf(t,o)))return e}function Hf(t,e){var o=[];for(e=e.firstChild;e;e=e.nextSibling)e.nodeType==Node.ELEMENT_NODE&&c(o,qf(t,e));return o}function qf(t,e){for(var o,i=[],r=e.firstElementChild;r;r=r.nextElementSibling){d(tf,r.namespaceURI)&&"NetworkLink"==r.localName&&(o=$h({},Of,r,[]),i.push(o))}for(r=e.firstElementChild;r;r=r.nextElementSibling)e=r.localName,!d(tf,r.namespaceURI)||"Document"!=e&&"Folder"!=e&&"kml"!=e||c(i,qf(t,r));return i}function Jf(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 _f(t,e){var o;for(e=[255*(4==(e=Ve(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}Mu(t,e.join(""))}function $f(t,e,o){t={node:t};var i,r,n=e.U();"GeometryCollection"==n?(i=e.Vf(),r=jy):"MultiPoint"==n?(i=e.Zd(),r=Dy):"MultiLineString"==n?(i=e.gd(),r=Oy):"MultiPolygon"==n?(i=e.Td(),r=Gy):X(!1,39),tl(t,by,r,i,o)}function Qf(t,e,o){tl({node:t},vy,Uy,[e],o)}function ty(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=qh(t,s),tl(i,wy,Fy,[{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=qh(t,s=my[o[o.length-1].node.namespaceURI]),tl(i,wy,Hh,t,o,s),t=o[0],(e=e.V())&&(e=sl(e,!0,t)),tl(i,wy,jy,[e],o)}function ey(t,e,o){var i=e.ga();(t={node:t}).layout=e.ja,t.stride=e.qa(),tl(t,xy,Iy,[i],o)}function oy(t,e,o){var i=(e=e.Sd()).shift();tl(t={node:t},Sy,ky,e,o),tl(t,Sy,By,[i],o)}function iy(t,e){xu(t,Math.round(1e6*e)/1e6)}(Eu=$c.prototype).vg=function(t,e){if(t=$h([],Jh(tf,{Document:Bh(this.vg,this),Folder:Bh(this.vg,this),Placemark:Xh(this.Dg,this),Style:this.Jp.bind(this),StyleMap:this.Ip.bind(this)}),t,e,this))return t},Eu.Dg=function(t,e){var o=$h({geometry:null},Xf,t,e);if(o){var i=new Nh;return null!==(t=t.getAttribute("id"))&&i.jc(t),e=e[0],(t=o.geometry)&&sl(t,!1,e),i.Ra(t),delete o.geometry,this.c&&i.hg(rf(o.Style,o.styleUrl,this.a,this.b,this.g)),delete o.Style,i.H(o),i}},Eu.Jp=function(t,e){var o=t.getAttribute("id");null!==o&&(e=df(t,e))&&(t=t.baseURI&&"about:blank"!==t.baseURI?new URL("#"+o,t.baseURI).href:"#"+o,this.b[t]=e)},Eu.Ip=function(t,e){var o=t.getAttribute("id");null!==o&&(e=$h(void 0,Kf,t,e))&&(t=t.baseURI&&"about:blank"!==t.baseURI?new URL("#"+o,t.baseURI).href:"#"+o,this.b[t]=e)},Eu.xg=function(t,e){return d(tf,t.namespaceURI)&&(t=this.Dg(t,[rl(this,t,e)]))?t:null},Eu.zc=function(t,e){if(!d(tf,t.namespaceURI))return[];var o=t.localName;if("Document"==o||"Folder"==o)return(o=this.vg(t,[rl(this,t,e)]))?o:[];if("Placemark"==o)return(e=this.Dg(t,[rl(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},Eu.Cp=function(t){return Oh(t)?zf(this,t):Uh(t)?Yf(this,t):"string"==typeof t?zf(this,t=Gh(t)):void 0},Eu.Dp=function(t){var e=[];return Oh(t)?c(e,Hf(this,t)):Uh(t)?c(e,qf(this,t)):"string"==typeof t&&c(e,Hf(this,t=Gh(t))),e},Eu.Gp=function(t){var e=[];return Oh(t)?c(e,Jf(this,t)):Uh(t)?c(e,this.lf(t)):"string"==typeof t&&c(e,Jf(this,t=Gh(t))),e},Eu.lf=function(t){for(var e,o=[],i=t.firstElementChild;i;i=i.nextElementSibling){d(tf,i.namespaceURI)&&"Region"==i.localName&&(e=$h({},Sf,i,[]),o.push(e))}for(i=t.firstElementChild;i;i=i.nextElementSibling)t=i.localName,!d(tf,i.namespaceURI)||"Document"!=t&&"Folder"!=t&&"kml"!=t||c(o,this.lf(i));return o};var ry=Jh(tf,["Document","Placemark"]),ny=Jh(tf,{Document:Kh(function(t,e,o){tl({node:t},sy,Ty,e,o,void 0,this)}),Placemark:Kh(ty)}),sy=Jh(tf,{Placemark:Kh(ty)}),ay=Jh(tf,{Data:Kh(function(t,e,o){t.setAttribute("name",e.name),t={node:t},"object"==typeof(e=e.value)?(null!==e&&e.displayName&&tl(t,ay,Hh,[e.displayName],o,["displayName"]),null!==e&&e.value&&tl(t,ay,Hh,[e.value],o,["value"])):tl(t,ay,Hh,[e],o,["value"])}),value:Kh(function(t,e){Mu(t,e)}),displayName:Kh(function(t,e){t.appendChild(Fh.createCDATASection(e))})}),py={Point:"Point",LineString:"LineString",LinearRing:"LinearRing",Polygon:"Polygon",MultiPoint:"MultiGeometry",MultiLineString:"MultiGeometry",MultiPolygon:"MultiGeometry",GeometryCollection:"MultiGeometry"},hy=Jh(tf,["href"],Jh(Qc,["x","y","w","h"])),ly=Jh(tf,{href:Kh(Mu)},Jh(Qc,{x:Kh(xu),y:Kh(xu),w:Kh(xu),h:Kh(xu)})),uy=Jh(tf,["scale","heading","Icon","hotSpot"]),cy=Jh(tf,{Icon:Kh(function(t,e,o){t={node:t};var i=hy[o[o.length-1].node.namespaceURI],r=qh(e,i);tl(t,ly,Hh,r,o,i),r=qh(e,i=hy[Qc[0]]),tl(t,ly,Ey,r,o,i)}),heading:Kh(xu),hotSpot:Kh(function(t,e){t.setAttribute("x",e.x),t.setAttribute("y",e.y),t.setAttribute("xunits",e.Xg),t.setAttribute("yunits",e.Yg)}),scale:Kh(iy)}),fy=Jh(tf,["color","scale"]),yy=Jh(tf,{color:Kh(_f),scale:Kh(iy)}),gy=Jh(tf,["color","width"]),dy=Jh(tf,{color:Kh(_f),width:Kh(xu)}),vy=Jh(tf,{LinearRing:Kh(ey)}),by=Jh(tf,{LineString:Kh(ey),Point:Kh(ey),Polygon:Kh(oy),GeometryCollection:Kh($f)}),my=Jh(tf,"name open visibility address phoneNumber description styleUrl Style".split(" ")),wy=Jh(tf,{ExtendedData:Kh(function(t,e,o){t={node:t};var i=e.names;e=e.values;for(var r=i.length,n=0;n<r;n++)tl(t,ay,Ny,[{name:i[n],value:e[n]}],o)}),MultiGeometry:Kh($f),LineString:Kh(ey),LinearRing:Kh(ey),Point:Kh(ey),Polygon:Kh(oy),Style:Kh(function(t,e,o){t={node:t};var i={},r=e.Fa(),n=e.Ga(),s=e.Y();e=e.Na(),s instanceof Jc&&(i.IconStyle=s),e&&(i.LabelStyle=e),n&&(i.LineStyle=n),r&&(i.PolyStyle=r),i=qh(i,e=Py[o[o.length-1].node.namespaceURI]),tl(t,Ay,Hh,i,o,e)}),address:Kh(Mu),description:Kh(Mu),name:Kh(Mu),open:Kh(wu),phoneNumber:Kh(Mu),styleUrl:Kh(Mu),visibility:Kh(wu)}),xy=Jh(tf,{coordinates:Kh(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:X(!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]}Mu(t,a)})}),Sy=Jh(tf,{outerBoundaryIs:Kh(Qf),innerBoundaryIs:Kh(Qf)}),My=Jh(tf,{color:Kh(_f)}),Py=Jh(tf,["IconStyle","LabelStyle","LineStyle","PolyStyle"]),Ay=Jh(tf,{IconStyle:Kh(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=qh(n,e=uy[o[o.length-1].node.namespaceURI]),tl(t,cy,Hh,n,o,e)}),LabelStyle:Kh(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=qh(i,e=fy[o[o.length-1].node.namespaceURI]),tl(t,yy,Hh,i,o,e)}),LineStyle:Kh(function(t,e,o){t={node:t};var i=gy[o[o.length-1].node.namespaceURI];e=qh({color:e.a,width:e.c},i),tl(t,dy,Hh,e,o,i)}),PolyStyle:Kh(function(t,e,o){tl({node:t},My,Ry,[e.b],o)})});function Ey(t,e,o){return kh(Qc[0],"gx:"+o)}function Ty(t,e){return kh(e[e.length-1].node.namespaceURI,"Placemark")}function jy(t,e){if(t)return kh(e[e.length-1].node.namespaceURI,py[t.U()])}var Cy,Ly,Ry=Yh("color"),Iy=Yh("coordinates"),Ny=Yh("Data"),Fy=Yh("ExtendedData"),ky=Yh("innerBoundaryIs"),Dy=Yh("Point"),Oy=Yh("LineString"),Uy=Yh("LinearRing"),Gy=Yh("Polygon"),By=Yh("outerBoundaryIs");function Xy(t){this.lc=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.type=this.ea=0,this.length=this.lc.length}function Vy(t,e,o){return o?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function Wy(t,e,o,i,r){this.g=r,this.i=t,this.b=e,this.f=o,this.c=i}function Zy(t){il.call(this),t=t||{},this.defaultDataProjection=new mt({code:"",units:"tile-pixels"}),this.b=t.featureClass?t.featureClass:Wy,this.a=t.geometryName,this.i=t.layerName?t.layerName:"layer",this.c=t.layers?t.layers:null}function Ky(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 zy(){au.call(this),this.defaultDataProjection=Vt("EPSG:4326")}function Yy(t,e){e[e.length-1].fe[t.getAttribute("k")]=t.getAttribute("v")}$c.prototype.Xb=function(t,e){e=nl(this,e);var o=kh(tf[4],"kml");o.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:gx",Qc[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=qh(r,t=ry[o.namespaceURI]),tl(i,ny,Hh,r,[e],t,this),o},Ja.Dd=function(){},Cy=Ja.Dd=Ja.Dd||{},Ly=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)},Xy.c=0,Xy.i=1,Xy.b=2,Xy.a=5,Xy.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=Ly(this.lc,this.ea,!0,23,4);return this.ea+=4,t},up:function(){var t=Ly(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 Vy(t,n,e);if(n|=(127&(r=i[o.ea++]))<<3,r<128)return Vy(t,n,e);if(n|=(127&(r=i[o.ea++]))<<10,r<128)return Vy(t,n,e);if(n|=(127&(r=i[o.ea++]))<<17,r<128)return Vy(t,n,e);if(n|=(127&(r=i[o.ea++]))<<24,r<128)return Vy(t,n,e);if((r=i[o.ea++])<128)return Vy(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)===Xy.c)for(;127<this.lc[this.ea++];);else if(t===Xy.b)this.ea=this.Ka()+this.ea;else if(t===Xy.a)this.ea+=4;else{if(t!==Xy.i)throw Error("Unimplemented type: "+t);this.ea+=8}}},Cy.default=Xy,Ja.Dd=Ja.Dd.default,Ja.xf={},Ja.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}(Ja.xf=Ja.xf||{}),(Eu=Wy.prototype).get=function(t){return this.c[t]},Eu.Bb=function(){return this.f},Eu.G=function(){return this.a||(this.a="Point"===this.i?O(this.b):K(this.b,0,this.b.length,2)),this.a},Eu.Wn=function(){return this.g},Eu.ec=function(){return this.b},Eu.ga=Wy.prototype.ec,Eu.V=function(){return this},Eu.Xn=function(){return this.c},Eu.Vd=Wy.prototype.V,Eu.qa=function(){return 2},Eu.Lc=w,Eu.U=function(){return this.i},i(Zy,il),(Eu=Zy.prototype).U=function(){return"arraybuffer"},Eu.Oa=function(t,e){var o=this.c;t=new Ja.Dd(t),t=new Ja.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===Wy?(s=void 0,p=i,Ky(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=[],Ky(c=c.Oh(),y,f),1===h?u=new(1===c.length?hr:dl)(null):2===h?u=new(1===c.length?ul:fl)(null):3===h&&(u=new wr(null)),u.ba("XY",y,f)),l=sl(u,!1,nl(this,l)),s.Ra(l),s.jc(a),s.H(p)),r.push(s)}return r},Eu.kb=function(){return this.defaultDataProjection},Eu.mn=function(t){this.c=t},Eu.Tb=function(){},Eu.Sc=function(){},Eu.Bd=function(){},Eu.$c=function(){},Eu.Wb=function(){},i(zy,au);var Hy=[null],qy=Jh(Hy,{nd:function(t,e){e[e.length-1].md.push(t.getAttribute("ref"))},tag:Yy}),Jy=Jh(Hy,{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,yt((t=$h({fe:{}},_y,t,e)).fe)||(sl(n=new hr(n),!1,o),(o=new Nh(n)).jc(r),o.H(t.fe),i.features.push(o))},way:function(t,e){var o=e[0],i=t.getAttribute("id");t=$h({md:[],fe:{}},qy,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 wr(null)).ba("XY",r,[r.length]):(n=new ul(null)).ba("XY",r),sl(n,!1,o),(o=new Nh(n)).jc(i),o.H(t.fe),e.features.push(o)}}),_y=Jh(Hy,{tag:Yy});function $y(t){return t.getAttributeNS("http://www.w3.org/1999/xlink","href")}function Qy(){}function tg(){}zy.prototype.zc=function(t,e){return e=rl(this,t,e),"osm"==t.localName&&(t=$h({Sh:{},features:[]},Jy,t,[e])).features?t.features:[]},zy.prototype.Vg=function(){},zy.prototype.Xb=function(){},zy.prototype.ie=function(){},Qy.prototype.read=function(t){return Oh(t)?this.a(t):Uh(t)?this.b(t):"string"==typeof t?(t=Gh(t),this.a(t)):null},i(tg,Qy),tg.prototype.a=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.b(t);return null},tg.prototype.b=function(t){return(t=$h({},og,t,[]))?t:null};var eg=[null,"http://www.opengis.net/ows/1.1"],og=Jh(eg,{ServiceIdentification:Zh(function(t,e){return $h({},yg,t,e)}),ServiceProvider:Zh(function(t,e){return $h({},gg,t,e)}),OperationsMetadata:Zh(function(t,e){return $h({},lg,t,e)})}),ig=Jh(eg,{DeliveryPoint:Zh(mu),City:Zh(mu),AdministrativeArea:Zh(mu),PostalCode:Zh(mu),Country:Zh(mu),ElectronicMailAddress:Zh(mu)}),rg=Jh(eg,{Value:Wh(mu)}),ng=Jh(eg,{AllowedValues:Zh(function(t,e){return $h({},rg,t,e)})}),sg=Jh(eg,{Phone:Zh(function(t,e){return $h({},ug,t,e)}),Address:Zh(function(t,e){return $h({},ig,t,e)})}),ag=Jh(eg,{HTTP:Zh(function(t,e){return $h({},pg,t,e)})}),pg=Jh(eg,{Get:Wh(function(t,e){var o=$y(t);if(o)return $h({href:o},cg,t,e)}),Post:void 0}),hg=Jh(eg,{DCP:Zh(function(t,e){return $h({},ag,t,e)})}),lg=Jh(eg,{Operation:function(t,e){var o=t.getAttribute("name");(t=$h({},hg,t,e))&&(e[e.length-1][o]=t)}}),ug=Jh(eg,{Voice:Zh(mu),Facsimile:Zh(mu)}),cg=Jh(eg,{Constraint:Wh(function(t,e){var o=t.getAttribute("name");if(o)return $h({name:o},ng,t,e)})}),fg=Jh(eg,{IndividualName:Zh(mu),PositionName:Zh(mu),ContactInfo:Zh(function(t,e){return $h({},sg,t,e)})}),yg=Jh(eg,{Title:Zh(mu),ServiceTypeVersion:Zh(mu),ServiceType:Zh(mu)}),gg=Jh(eg,{ProviderName:Zh(mu),ProviderSite:Zh($y),ServiceContact:Zh(function(t,e){return $h({},fg,t,e)})});function dg(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 vg(t){t=t||{},il.call(this),this.defaultDataProjection=Vt("EPSG:4326"),this.b=t.factor?t.factor:1e5,this.a=t.geometryLayout?t.geometryLayout:"XY"}function bg(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 wg(t,o||1e5)}function mg(t,e,o){for(var i,r=Array(e),n=0;n<e;++n)r[n]=0;for(t=xg(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 wg(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,n=t[o],s="";32<=n;)r=63+(32|31&n),s+=String.fromCharCode(r),n>>=5;e+=s+=String.fromCharCode(n+63)}return e}function xg(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 Sg(t){t=t||{},il.call(this),this.a=t.layerName,this.b=t.layers?t.layers:null,this.defaultDataProjection=Vt(t.defaultDataProjection?t.defaultDataProjection:"EPSG:4326")}function Mg(t,e){for(var o,i=[],r=0,n=t.length;r<n;++r){var s=t[r];0<r&&i.pop(),o=0<=s?e[s]:e[~s].slice().reverse(),i.push.apply(i,o)}for(t=0,e=i.length;t<e;++t)i[t]=i[t].slice();return i}function Pg(t,e,o,i,r,n,s){var a=t.type,p=Eg[a];return o="Point"===a||"MultiPoint"===a?p(t,o,i):p(t,e),(e=new Nh).Ra(sl(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 Ag(t,e,o){t[0]=t[0]*e[0]+o[0],t[1]=t[1]*e[1]+o[1]}i(vg,Ec),(Eu=vg.prototype).ae=function(t,e){return new Nh(t=this.wd(t,e))},Eu.zg=function(t,e){return[this.ae(t,e)]},Eu.wd=function(t,e){var o=Zi(this.a);return dg(t=mg(t,o,this.b),t.length,o,t),sl(new ul(ir(t,0,t.length,o),this.a),!1,nl(this,e))},Eu.ge=function(t,e){return(t=t.V())?this.Cd(t,e):(X(!1,40),"")},Eu.Wg=function(t,e){return this.ge(t[0],e)},Eu.Cd=function(t,e){return e=(t=sl(t,!0,nl(this,e))).ga(),t=t.qa(),dg(e,e.length,t,e),bg(e,t,this.b)},i(Sg,al),Sg.prototype.yg=function(t,e){if("Topology"!=t.type)return[];var o,i=null,r=null;t.transform&&(i=(o=t.transform).scale,r=o.translate);var n=t.arcs;if(o){o=i;for(var s=r,a=0,p=n.length;a<p;++a)for(var h=n[a],l=o,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,Ag(d,l,u)}}o=[],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],o.push.apply(o,function(t,e,o,i,r,n,s){for(var a=[],p=0,h=(t=t.geometries).length;p<h;++p)a[p]=Pg(t[p],e,o,i,r,n,s);return a}(a,n,i,r,s,v,e))):(a=t[v],o.push(Pg(a,n,i,r,s,v,e))));return o},Sg.prototype.Fg=function(){return this.defaultDataProjection};var Eg={Point:function(t,e,o){return t=t.coordinates,e&&o&&Ag(t,e,o),new hr(t)},LineString:function(t,e){return new ul(t=Mg(t.arcs,e))},Polygon:function(t,e){for(var o=[],i=0,r=t.arcs.length;i<r;++i)o[i]=Mg(t.arcs[i],e);return new wr(o)},MultiPoint:function(t,e,o){if(t=t.coordinates,e&&o)for(var i=0,r=t.length;i<r;++i)Ag(t[i],e,o);return new dl(t)},MultiLineString:function(t,e){for(var o=[],i=0,r=t.arcs.length;i<r;++i)o[i]=Mg(t.arcs[i],e);return new fl(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]=Mg(n[a],e);o[i]=s}return new vl(o)}};function Tg(t){t=t||{},this.c=t.featureType,this.a=t.featureNS,this.b=t.gmlFormat?t.gmlFormat:new Pu,this.o=t.schemaLocation?t.schemaLocation:jg["1.1.0"],au.call(this)}(Eu=Sg.prototype).Zc=function(){},Eu.he=function(){},Eu.je=function(){},Eu.Cg=function(){},Eu.Rc=function(){},i(Tg,au);var jg={"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 Cg(t,e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE)return Rg(t,e)}Tg.prototype.zc=function(t,e){var o={featureType:this.c,featureNS:this.a};return ut(o,rl(this,t,e||{})),e=[o],this.b.b["http://www.opengis.net/gml"].featureMember=Xh(lu.prototype.be),(t=$h([],this.b.b,t,e,this.b))||(t=[]),t},Tg.prototype.j=function(t){return Oh(t)?Dg(t):Uh(t)?$h({},kg,t,[]):"string"==typeof t?Dg(t=Gh(t)):void 0},Tg.prototype.g=function(t){return Oh(t)?Cg(this,t):Uh(t)?Rg(this,t):"string"==typeof t?Cg(this,t=Gh(t)):void 0};var Lg={"http://www.opengis.net/gml":{boundedBy:Zh(lu.prototype.gf,"bounds")}};function Rg(t,e){var o={},i=bu(e.getAttribute("numberOfFeatures"));return o.numberOfFeatures=i,$h(o,Lg,e,[],t.b)}var Ig={"http://www.opengis.net/wfs":{totalInserted:Zh(vu),totalUpdated:Zh(vu),totalDeleted:Zh(vu)}},Ng={"http://www.opengis.net/ogc":{FeatureId:Xh(function(t){return t.getAttribute("fid")})}},Fg={"http://www.opengis.net/wfs":{Feature:function(t,e){_h(Ng,t,e)}}},kg={"http://www.opengis.net/wfs":{TransactionSummary:Zh(function(t,e){return $h({},Ig,t,e)},"transactionSummary"),InsertResults:Zh(function(t,e){return $h([],Fg,t,e)},"insertIds")}};function Dg(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return $h({},kg,t,[])}var Og={"http://www.opengis.net/wfs":{PropertyName:Kh(Mu)}};function Ug(t,e){var o=kh("http://www.opengis.net/ogc","Filter"),i=kh("http://www.opengis.net/ogc","FeatureId");o.appendChild(i),i.setAttribute("fid",e),t.appendChild(o)}function Gg(t,e){return t=(t||"feature")+":",e.indexOf(t)?t+e:e}var Bg={"http://www.opengis.net/wfs":{Insert:Kh(function(t,e,o){var i=(r=o[o.length-1]).gmlVersion,r=kh(r.featureNS,r.featureType);if(t.appendChild(r),2===i){t=Fu.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 Bi?l in i.lb[n]||(i.lb[n][l]=Kh(t.ai,t)):l in i.lb[n]||(i.lb[n][l]=Kh(Mu)))}var l=ut({},i);l.node=r,tl(l,i.lb,Yh(void 0,n),p,o,e)}else Pu.prototype.ii(r,e,o)}),Update:Kh(function(t,e,o){var i=o[o.length-1];X(void 0!==e.a,27);var r=i.featurePrefix,n=i.featureNS;if(t.setAttribute("typeName",Gg(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})}tl({gmlVersion:i.gmlVersion,node:t,hasZ:i.hasZ,srsName:i.srsName},Bg,Yh("Property"),s,o),Ug(t,r)}}),Delete:Kh(function(t,e,o){o=o[o.length-1],X(void 0!==e.a,26);var i=o.featurePrefix,r=o.featureNS;t.setAttribute("typeName",Gg(i,o.featureType)),t.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+i,r),void 0!==(e=e.a)&&Ug(t,e)}),Property:Kh(function(t,e,o){var i=kh("http://www.opengis.net/wfs","Name"),r=o[o.length-1].gmlVersion;t.appendChild(i),Mu(i,e.name),void 0!==e.value&&null!==e.value&&(i=kh("http://www.opengis.net/wfs","Value"),t.appendChild(i),e.value instanceof Bi?2===r?Fu.prototype.ai(i,e.value,o):Pu.prototype.od(i,e.value,o):Mu(i,e.value))}),Native:Kh(function(t,e){e.vq&&t.setAttribute("vendorId",e.vq),void 0!==e.Vp&&t.setAttribute("safeToIgnore",e.Vp),void 0!==e.value&&Mu(t,e.value)})}};function Xg(t,e,o){var i={node:t};e.b.forEach(function(t){tl(i,Yg,Yh(t.kc),[t],o)})}function Vg(t,e){void 0!==e.a&&t.setAttribute("matchCase",e.a.toString()),Zg(t,e.b),Kg(t,""+e.i)}function Wg(t,e,o){Mu(t=kh("http://www.opengis.net/ogc",t),o),e.appendChild(t)}function Zg(t,e){Wg("PropertyName",t,e)}function Kg(t,e){Wg("Literal",t,e)}function zg(t,e){var o=kh("http://www.opengis.net/gml","TimeInstant");t.appendChild(o),t=kh("http://www.opengis.net/gml","timePosition"),o.appendChild(t),Mu(t,e)}var Yg={"http://www.opengis.net/wfs":{Query:Kh(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?Gg(r,e):e),a&&t.setAttribute("srsName",a),n&&t.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+r,n),(e=ut({},i)).node=t,tl(e,Og,Yh("PropertyName"),s,o),(i=i.filter)&&(s=kh("http://www.opengis.net/ogc","Filter"),t.appendChild(s),tl({node:s},Yg,Yh(i.kc),[i],o))})},"http://www.opengis.net/ogc":{During:Kh(function(t,e){var o=kh("http://www.opengis.net/fes","ValueReference");Mu(o,e.b),t.appendChild(o),o=kh("http://www.opengis.net/gml","TimePeriod"),t.appendChild(o),t=kh("http://www.opengis.net/gml","begin"),o.appendChild(t),zg(t,e.a),t=kh("http://www.opengis.net/gml","end"),o.appendChild(t),zg(t,e.i)}),And:Kh(Xg),Or:Kh(Xg),Not:Kh(function(t,e,o){e=e.condition,tl({node:t},Yg,Yh(e.kc),[e],o)}),BBOX:Kh(function(t,e,o){o[o.length-1].srsName=e.srsName,Zg(t,e.geometryName),Pu.prototype.od(t,e.extent,o)}),Intersects:Kh(function(t,e,o){o[o.length-1].srsName=e.srsName,Zg(t,e.geometryName),Pu.prototype.od(t,e.geometry,o)}),Within:Kh(function(t,e,o){o[o.length-1].srsName=e.srsName,Zg(t,e.geometryName),Pu.prototype.od(t,e.geometry,o)}),PropertyIsEqualTo:Kh(Vg),PropertyIsNotEqualTo:Kh(Vg),PropertyIsLessThan:Kh(Vg),PropertyIsLessThanOrEqualTo:Kh(Vg),PropertyIsGreaterThan:Kh(Vg),PropertyIsGreaterThanOrEqualTo:Kh(Vg),PropertyIsNull:Kh(function(t,e){Zg(t,e.b)}),PropertyIsBetween:Kh(function(t,e){Zg(t,e.b);var o=kh("http://www.opengis.net/ogc","LowerBoundary");t.appendChild(o),Kg(o,""+e.a),o=kh("http://www.opengis.net/ogc","UpperBoundary"),t.appendChild(o),Kg(o,""+e.i)}),PropertyIsLike:Kh(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()),Zg(t,e.b),Kg(t,""+e.c)})}};function Hg(t){t=t||{},il.call(this),this.b=void 0!==t.splitCollection&&t.splitCollection}function qg(t){return(t=t.X()).length?t.join(" "):""}function Jg(t){for(var e=[],o=0,i=(t=t.X()).length;o<i;++o)e.push(t[o].join(" "));return e.join(",")}function _g(t){for(var e=[],o=0,i=(t=t.Sd()).length;o<i;++o)e.push("("+Jg(t[o])+")");return e.join(",")}function $g(t){var e,o=t.U(),i=(0,Qg[o])(t),o=o.toUpperCase();return t instanceof Wi&&(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"}Tg.prototype.l=function(t){var e,o,i=kh("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&&(X(t.geometryName,12),e=_l(t.geometryName,t.bbox,t.srsName),o=o?Jl(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?t.featureNS:this.a,featurePrefix:t.featurePrefix,geometryName:t.geometryName,filter:o,propertyNames:t.propertyNames?t.propertyNames:[]},X(Array.isArray(t.featureTypes),11),t=t.featureTypes,(e=ut({},(o=[o])[o.length-1])).node=i,tl(e,Yg,Yh("Query"),t,o),i},Tg.prototype.v=function(t,e,o,i){var r,n=[],s=kh("http://www.opengis.net/wfs","Transaction"),a=i.version?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.gmlOptions:{},i.handle&&s.setAttribute("handle",i.handle)),s.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",jg[a]),t&&(a={node:s,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:p,hasZ:i.hasZ,srsName:i.srsName},ut(a,r),tl(a,Bg,Yh("Insert"),t,n)),e&&(a={node:s,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:p,hasZ:i.hasZ,srsName:i.srsName},ut(a,r),tl(a,Bg,Yh("Update"),e,n)),o&&tl({node:s,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:p,srsName:i.srsName},Bg,Yh("Delete"),o,n),i.nativeElements&&tl({node:s,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:p,srsName:i.srsName},Bg,Yh("Native"),i.nativeElements,n),s},Tg.prototype.Eg=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.kf(t);return null},Tg.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),Vt(e.pop().srsName)}return null},i(Hg,Ec);var Qg={Point:qg,LineString:Jg,Polygon:_g,MultiPoint:function(t){for(var e=[],o=0,i=(t=t.Zd()).length;o<i;++o)e.push("("+qg(t[o])+")");return e.join(",")},MultiLineString:function(t){for(var e=[],o=0,i=(t=t.gd()).length;o<i;++o)e.push("("+Jg(t[o])+")");return e.join(",")},MultiPolygon:function(t){for(var e=[],o=0,i=(t=t.Td()).length;o<i;++o)e.push("("+_g(t[o])+")");return e.join(",")},GeometryCollection:function(t){for(var e=[],o=0,i=(t=t.Vf()).length;o<i;++o)e.push($g(t[o]));return e.join(",")}};function td(t){this.a=t,this.b=-1}function ed(t){this.i=t,this.a="XY"}function od(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 id(t,e){return(e=t.b.type==e)&&od(t),e}function rd(t){for(var e=[],o=t.a.length,i=0;i<o;++i){var r=t.b;if(!id(t,4))break;e.push(r.value)}if(e.length==o)return e;throw Error(pd(t))}function nd(t){for(var e=[rd(t)];id(t,5);)e.push(rd(t));return e}function sd(t){for(var e=[t.sg()];id(t,5);)e.push(t.sg());return e}function ad(t){var e=1==t.b.type&&"EMPTY"==t.b.value;return e&&od(t),e}function pd(t){return"Unexpected `"+t.b.value+"` at position "+t.b.position+" in `"+t.i.a+"`"}(Eu=Hg.prototype).ae=function(t,e){return(t=this.wd(t,e))?((e=new Nh).Ra(t),e):null},Eu.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 Nh).Ra(o[i]),e.push(t);return e},Eu.wd=function(t,e){return od(t=new ed(new td(t))),(t=function t(e){var o=e.b;if(id(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&&od(e)),e.a=i,"GEOMETRYCOLLECTION"==o){t:{if(id(e,2)){for(o=[];o.push(t(e)),id(e,5););if(id(e,3)){e=o;break t}}else if(ad(e)){e=[];break t}throw Error(pd(e))}return new $l(e)}if(r=ld[o],i=hd[o],!r||!i)throw Error("Invalid geometry type: "+o);return o=r.call(e),new i(o,e.a)}throw Error(pd(e))}(t))?sl(t,!1,e):null},Eu.ge=function(t,e){return(t=t.V())?this.Cd(t,e):""},Eu.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 $l(o),this.Cd(t,e)},Eu.Cd=function(t,e){return $g(sl(t,!0,e))},(Eu=ed.prototype).tg=function(){if(id(this,2)){var t=rd(this);if(id(this,3))return t}else if(ad(this))return null;throw Error(pd(this))},Eu.sg=function(){if(id(this,2)){var t=nd(this);if(id(this,3))return t}else if(ad(this))return[];throw Error(pd(this))},Eu.ug=function(){if(id(this,2)){var t=sd(this);if(id(this,3))return t}else if(ad(this))return[];throw Error(pd(this))},Eu.fp=function(){if(id(this,2)){var t;if(2==this.b.type)for(t=[this.tg()];id(this,5);)t.push(this.tg());else t=nd(this);if(id(this,3))return t}else if(ad(this))return[];throw Error(pd(this))},Eu.ep=function(){if(id(this,2)){var t=sd(this);if(id(this,3))return t}else if(ad(this))return[];throw Error(pd(this))},Eu.gp=function(){if(id(this,2)){for(var t=[this.ug()];id(this,5);)t.push(this.ug());if(id(this,3))return t}else if(ad(this))return[];throw Error(pd(this))};var hd={POINT:hr,LINESTRING:ul,POLYGON:wr,MULTIPOINT:dl,MULTILINESTRING:fl,MULTIPOLYGON:vl},ld={POINT:ed.prototype.tg,LINESTRING:ed.prototype.sg,POLYGON:ed.prototype.ug,MULTIPOINT:ed.prototype.fp,MULTILINESTRING:ed.prototype.ep,MULTIPOLYGON:ed.prototype.gp};function ud(){this.version=void 0}function cd(t,e){return $h({},Id,t,e)}function fd(t,e){return $h({},jd,t,e)}function yd(t,e){if(e=cd(t,e))return t=[bu(t.getAttribute("width")),bu(t.getAttribute("height"))],e.size=t,e}function gd(t,e){return $h([],Nd,t,e)}i(ud,Qy),ud.prototype.a=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.b(t);return null},ud.prototype.b=function(t){return this.version=t.getAttribute("version").trim(),(t=$h({version:this.version},vd,t,[]))?t:null};var dd=[null,"http://www.opengis.net/wms"],vd=Jh(dd,{Service:Zh(function(t,e){return $h({},md,t,e)}),Capability:Zh(function(t,e){return $h({},bd,t,e)})}),bd=Jh(dd,{Request:Zh(function(t,e){return $h({},Td,t,e)}),Exception:Zh(function(t,e){return $h([],Md,t,e)}),Layer:Zh(function(t,e){return $h({},Pd,t,e)})}),md=Jh(dd,{Name:Zh(mu),Title:Zh(mu),Abstract:Zh(mu),KeywordList:Zh(gd),OnlineResource:Zh($y),ContactInformation:Zh(function(t,e){return $h({},wd,t,e)}),Fees:Zh(mu),AccessConstraints:Zh(mu),LayerLimit:Zh(vu),MaxWidth:Zh(vu),MaxHeight:Zh(vu)}),wd=Jh(dd,{ContactPersonPrimary:Zh(function(t,e){return $h({},xd,t,e)}),ContactPosition:Zh(mu),ContactAddress:Zh(function(t,e){return $h({},Sd,t,e)}),ContactVoiceTelephone:Zh(mu),ContactFacsimileTelephone:Zh(mu),ContactElectronicMailAddress:Zh(mu)}),xd=Jh(dd,{ContactPerson:Zh(mu),ContactOrganization:Zh(mu)}),Sd=Jh(dd,{AddressType:Zh(mu),Address:Zh(mu),City:Zh(mu),StateOrProvince:Zh(mu),PostCode:Zh(mu),Country:Zh(mu)}),Md=Jh(dd,{Format:Xh(mu)}),Pd=Jh(dd,{Name:Zh(mu),Title:Zh(mu),Abstract:Zh(mu),KeywordList:Zh(gd),CRS:Wh(mu),EX_GeographicBoundingBox:Zh(function(t,e){if(i=$h({},Ed,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:Wh(function(t){var e=[du(t.getAttribute("minx")),du(t.getAttribute("miny")),du(t.getAttribute("maxx")),du(t.getAttribute("maxy"))],o=[du(t.getAttribute("resx")),du(t.getAttribute("resy"))];return{crs:t.getAttribute("CRS"),extent:e,res:o}}),Dimension:Wh(function(t){return{name:t.getAttribute("name"),units:t.getAttribute("units"),unitSymbol:t.getAttribute("unitSymbol"),default:t.getAttribute("default"),multipleValues:fu(t.getAttribute("multipleValues")),nearestValue:fu(t.getAttribute("nearestValue")),current:fu(t.getAttribute("current")),values:mu(t)}}),Attribution:Zh(function(t,e){return $h({},Ad,t,e)}),AuthorityURL:Wh(function(t,e){if(e=cd(t,e))return e.name=t.getAttribute("name"),e}),Identifier:Wh(mu),MetadataURL:Wh(function(t,e){if(e=cd(t,e))return e.type=t.getAttribute("type"),e}),DataURL:Wh(cd),FeatureListURL:Wh(cd),Style:Wh(function(t,e){return $h({},Rd,t,e)}),MinScaleDenominator:Zh(gu),MaxScaleDenominator:Zh(gu),Layer:Wh(function(t,e){var o=e[e.length-1],i=$h({},Pd,t,e);if(i)return void 0===(e=fu(t.getAttribute("queryable")))&&(e=o.queryable),i.queryable=void 0!==e&&e,void 0===(e=bu(t.getAttribute("cascaded")))&&(e=o.cascaded),i.cascaded=e,void 0===(e=fu(t.getAttribute("opaque")))&&(e=o.opaque),i.opaque=void 0!==e&&e,void 0===(e=fu(t.getAttribute("noSubsets")))&&(e=o.noSubsets),i.noSubsets=void 0!==e&&e,(e=du(t.getAttribute("fixedWidth")))||(e=o.fixedWidth),i.fixedWidth=e,(t=du(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})}),Ad=Jh(dd,{Title:Zh(mu),OnlineResource:Zh($y),LogoURL:Zh(yd)}),Ed=Jh(dd,{westBoundLongitude:Zh(gu),eastBoundLongitude:Zh(gu),southBoundLatitude:Zh(gu),northBoundLatitude:Zh(gu)}),Td=Jh(dd,{GetCapabilities:Zh(fd),GetMap:Zh(fd),GetFeatureInfo:Zh(fd)}),jd=Jh(dd,{Format:Wh(mu),DCPType:Wh(function(t,e){return $h({},Cd,t,e)})}),Cd=Jh(dd,{HTTP:Zh(function(t,e){return $h({},Ld,t,e)})}),Ld=Jh(dd,{Get:Zh(cd),Post:Zh(cd)}),Rd=Jh(dd,{Name:Zh(mu),Title:Zh(mu),Abstract:Zh(mu),LegendURL:Wh(yd),StyleSheetURL:Zh(cd),StyleURL:Zh(cd)}),Id=Jh(dd,{Format:Zh(mu),OnlineResource:Zh($y)}),Nd=Jh(dd,{Keyword:Xh(mu)});function Fd(t){t=t||{},this.a="http://mapserver.gis.umn.edu/mapserver",this.b=new Fu,this.c=t.layers?t.layers:null,au.call(this)}function kd(){this.i=new tg}function Dd(t){var e=mu(t).split(" ");if(e&&2==e.length&&(t=+e[0],e=+e[1],!isNaN(t)&&!isNaN(e)))return[t,e]}i(Fd,au),Fd.prototype.zc=function(t,e){var o={};e&&ut(o,rl(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]=Xh(this.b.wg,this.b),s=Jh([s.featureNS,null],p),h.setAttribute("namespaceURI",this.a),(h=$h([],s,h,o,this.b))&&c(e,h)))}"FeatureCollection"==i&&(t=$h([],this.b.b,t,[{}],this.b))&&(e=t)}return e},Fd.prototype.Vg=function(){},Fd.prototype.Xb=function(){},Fd.prototype.ie=function(){},i(kd,Qy),kd.prototype.a=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.b(t);return null},kd.prototype.b=function(t){var e=t.getAttribute("version").trim(),o=this.i.b(t);return o?(o.version=e,(o=$h(o,Gd,t,[]))?o:null):null};var Od=[null,"http://www.opengis.net/wmts/1.0"],Ud=[null,"http://www.opengis.net/ows/1.1"],Gd=Jh(Od,{Contents:Zh(function(t,e){return $h({},Bd,t,e)})}),Bd=Jh(Od,{Layer:Wh(function(t,e){return $h({},Xd,t,e)}),TileMatrixSet:Wh(function(t,e){return $h({},Hd,t,e)})}),Xd=Jh(Od,{Style:Wh(function(t,e){if(e=$h({},Vd,t,e))return t="true"===t.getAttribute("isDefault"),e.isDefault=t,e}),Format:Wh(mu),TileMatrixSetLink:Wh(function(t,e){return $h({},Wd,t,e)}),Dimension:Wh(function(t,e){return $h({},zd,t,e)}),ResourceURL:Wh(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})},Jh(Ud,{Title:Zh(mu),Abstract:Zh(mu),WGS84BoundingBox:Zh(function(t,e){if(2==(t=$h([],Yd,t,e)).length)return A(t)}),Identifier:Zh(mu)})),Vd=Jh(Od,{LegendURL:Wh(function(t){var e={};return e.format=t.getAttribute("format"),e.href=$y(t),e})},Jh(Ud,{Title:Zh(mu),Identifier:Zh(mu)})),Wd=Jh(Od,{TileMatrixSet:Zh(mu),TileMatrixSetLimits:Zh(function(t,e){return $h([],Zd,t,e)})}),Zd=Jh(Od,{TileMatrixLimits:Xh(function(t,e){return $h({},Kd,t,e)})}),Kd=Jh(Od,{TileMatrix:Zh(mu),MinTileRow:Zh(vu),MaxTileRow:Zh(vu),MinTileCol:Zh(vu),MaxTileCol:Zh(vu)}),zd=Jh(Od,{Default:Zh(mu),Value:Wh(mu)},Jh(Ud,{Identifier:Zh(mu)})),Yd=Jh(Ud,{LowerCorner:Xh(Dd),UpperCorner:Xh(Dd)}),Hd=Jh(Od,{WellKnownScaleSet:Zh(mu),TileMatrix:Wh(function(t,e){return $h({},qd,t,e)})},Jh(Ud,{SupportedCRS:Zh(mu),Identifier:Zh(mu)})),qd=Jh(Od,{TopLeftCorner:Zh(Dd),ScaleDenominator:Zh(gu),TileWidth:Zh(vu),TileHeight:Zh(vu),MatrixWidth:Zh(vu),MatrixHeight:Zh(vu)},Jh(Ud,{Identifier:Zh(mu)}));function Jd(t){Le.call(this),t=t||{},this.a=null,this.f=zt,this.c=void 0,be(this,Ie("projection"),this.Am,this),be(this,Ie("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 _d(t,e,o){Wi.call(this),this.Ng(t,e||0,o)}function $d(t){var e=t.A[t.a]-t.A[0];return e*e+(t=t.A[t.a+1]-t.A[1])*t}function Qd(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 tv(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:ev,this.D=this.u=void 0,this.a=this.b=this.S=null,1==t.showLabels&&(this.na=t.lonLabelFormatter?t.lonLabelFormatter:Ci.bind(this,"EW"),this.Ua=t.latLabelFormatter?t.latLabelFormatter:Ci.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 _c({font:"12px Calibri,sans-serif",textBaseline:"bottom",fill:new Eh({color:"rgba(0,0,0,1)"}),stroke:new Ga({color:"rgba(255,255,255,1)",width:3})}),this.C=void 0!==t.latLabelStyle?t.latLabelStyle:new _c({font:"12px Calibri,sans-serif",textAlign:"end",fill:new Eh({color:"rgba(0,0,0,1)"}),stroke:new Ga({color:"rgba(255,255,255,1)",width:3})}),this.b=[],this.a=[]),this.setMap(void 0!==t.map?t.map:null)}i(Jd,Le),(Eu=Jd.prototype).ka=function(){this.Ke(!1),Le.prototype.ka.call(this)},Eu.Am=function(){var t=this.Uh();t&&(this.f=Kt(Vt("EPSG:4326"),t),this.a&&this.set("position",this.f(this.a)))},Eu.Bm=function(){var t;Oo&&((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))},Eu.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=Sr(Tt,this.a,t.accuracy)).Dc(this.f),this.set("accuracyGeometry",t),this.s()},Eu.op=function(t){t.type="error",this.Ke(!1),this.b(t)},Eu.Dk=function(){return this.get("accuracy")},Eu.Ek=function(){return this.get("accuracyGeometry")||null},Eu.Gk=function(){return this.get("altitude")},Eu.Hk=function(){return this.get("altitudeAccuracy")},Eu.ym=function(){return this.get("heading")},Eu.zm=function(){return this.get("position")},Eu.Uh=function(){return this.get("projection")},Eu.ll=function(){return this.get("speed")},Eu.Vh=function(){return this.get("tracking")},Eu.Gh=function(){return this.get("trackingOptions")},Eu.Wh=function(t){this.set("projection",Vt(t))},Eu.Ke=function(t){this.set("tracking",t)},Eu.wj=function(t){this.set("trackingOptions",t)},i(_d,Wi),(Eu=_d.prototype).clone=function(){var t=new _d(null);return Ki(t,this.ja,this.A.slice()),t.s(),t},Eu.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},Eu.Mc=function(t,e){var o=this.A;return(t-=o[0])*t+(e-=o[1])*e<=$d(this)},Eu.wa=function(){return this.A.slice(0,this.a)},Eu.se=function(t){var e=this.A,o=e[this.a]-e[0];return k(e[0]-o,e[1]-o,e[0]+o,e[1]+o,t)},Eu.pd=function(){return Math.sqrt($d(this))},Eu.U=function(){return"Circle"},Eu.Xa=function(t){var e=this.G();return!!at(t,e)&&(e=this.wa(),t[0]<=e[0]&&t[2]>=e[0]||t[1]<=e[1]&&t[3]>=e[1]||J(t,this.sb,this))},Eu.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];Ki(this,this.ja,i),this.s()},Eu.Ng=function(t,e,o){if(t){var i;for(zi(this,o,t,0),this.A||(this.A=[]),t=tr(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 Ki(this,"XY",null);this.s()},Eu.X=function(){},Eu.ma=function(){},Eu.Uc=function(t){this.A[this.a]=this.A[0]+t,this.s()};var ev=new Ga({color:"rgba(0,0,0,0.2)"}),ov=[90,45,30,20,10,5,2,1,.5,.2,.1,.05,.01,.005,.002,.001];function iv(t,e,o,i,r,n,s){var a,p,h,l,u,c=s;return a=e,p=o,h=i,l=t.j,u=r,o=Qd(function(t){return[a,p+(h-p)*t]},Zt(Vt("EPSG:4326"),l),u),(c=void 0!==t.i[c]?t.i[c]:new ul(null)).ba("XY",o),at(c.G(),n)&&(t.b&&(o=s,n=[(i=c.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 hr(null)).ma(n),t.b[s]={Qd:o,text:t.na(e)}),t.i[s++]=c),s}function rv(t,e,o,i,r){var n,s,a,p,h,l,u=r;return n=e,s=t.g,a=t.f,p=t.j,h=o,o=Qd(function(t){return[s+(a-s)*t,n]},Zt(Vt("EPSG:4326"),p),h),(u=void 0!==t.c[u]?t.c[u]:new ul(null)).ba("XY",o),at(u.G(),i)&&(t.a&&(o=r,l=u.ga(),i=[x(i[0]+Math.abs(i[0]-i[2])*t.T,Math.max(i[0],l[0]),Math.min(i[2],l[l.length-2])),l[1]],(o=t.a[o]?t.a[o].Qd:new hr(null)).ma(i),t.a[r]={Qd:o,text:t.Ua(e)}),t.c[r++]=u),r}function nv(t,e,o,i,r){Te.call(this),this.f=r,this.extent=t,this.a=o,this.resolution=e,this.state=i}function sv(t,e,o,i,r,n,s){nv.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 av(t,e,o,i,r,n){this.c=n||null,nv.call(this,t,e,o,n?0:2,i),this.i=r}function pv(t,e){Te.call(this),this.ta=t,this.state=e,this.i=null,this.key=""}function hv(t){if(!t.i)return t;var e=t.i;do{if(2==e.getState())return e;e=e.i}while(e);return t}function lv(t,e){t.state=e,t.s()}function uv(t,e,o,i,r){pv.call(this,t,e),this.g=o,this.M=new Image,null!==i&&(this.M.crossOrigin=i),this.c=null,this.j=r}function cv(t){t.c.forEach(xe),t.c=null}(Eu=tv.prototype).Cm=function(){return this.v},Eu.al=function(){return this.i},Eu.hl=function(){return this.c},Eu.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&&Wt(this.j,g)||(e=Vt("EPSG:4326"),o=g.G(),l=qt(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=Zt(e,g),this.D=Zt(g,e),this.S=this.D(tt(o)),this.j=g),g.i&&(e=st(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=ov.length;d<o&&(s=ov[d]/2,r[0]=c-s,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=ov[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=qt(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=iv(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=iv(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=iv(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=rv(this,y=x(c=Math.floor(c/d)*d,this.l,this.o),t,f,0),e=0;y!=this.l&&e++<g;)o=rv(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=rv(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)},Eu.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},i(nv,Te),nv.prototype.s=function(){this.b("change")},nv.prototype.G=function(){return this.extent},nv.prototype.getState=function(){return this.state},i(sv,nv),(Eu=sv.prototype).Y=function(t){return void 0===t?this.M:(t=B(t))in this.c?this.c[t]:(e=yt(this.c)?this.M:this.M.cloneNode(!1),this.c[t]=e);var e},Eu.Fm=function(){this.state=3,this.i.forEach(xe),this.i=null,this.s()},Eu.Gm=function(){void 0===this.resolution&&(this.resolution=ot(this.extent)/this.M.height),this.state=2,this.i.forEach(xe),this.i=null,this.s()},Eu.load=function(){0!=this.state&&3!=this.state||(this.state=1,this.s(),this.i=[me(this.M,"error",this.Fm,this),me(this.M,"load",this.Gm,this)],this.g(this,this.j))},Eu.Og=function(t){this.M=t},i(av,nv),av.prototype.g=function(t){this.state=t?3:2,this.s()},av.prototype.load=function(){0==this.state&&(this.state=1,this.s(),this.c(this.g.bind(this)))},av.prototype.Y=function(){return this.i},i(pv,Te),pv.prototype.s=function(){this.b("change")},pv.prototype.bb=function(){return this.key+"/"+this.ta},pv.prototype.f=function(){return this.ta},pv.prototype.getState=function(){return this.state},i(uv,pv),(Eu=uv.prototype).ka=function(){1==this.state&&cv(this),this.i&&Pe(this.i),this.state=5,this.s(),pv.prototype.ka.call(this)},Eu.Y=function(){return this.M},Eu.bb=function(){return this.g},Eu.Dm=function(){this.state=3,this.M=fv,cv(this),this.s()},Eu.Em=function(){this.state=this.M.naturalWidth&&this.M.naturalHeight?2:4,cv(this),this.s()},Eu.load=function(){0!=this.state&&3!=this.state||(this.state=1,this.s(),this.c=[me(this.M,"error",this.Dm,this),me(this.M,"load",this.Em,this)],this.j(this,this.g))};var fv=new Image;function yv(t){t=t||{},Or.call(this,{handleEvent:Ui}),this.g=t.formatConstructors?t.formatConstructors:[],this.o=t.projection?Vt(t.projection):null,this.a=null,this.target=t.target?t.target:null}function gv(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 dv(t){t.stopPropagation(),t.preventDefault(),t.dataTransfer.dropEffect="copy"}function vv(t){var e=t.v;e&&(e=t.target?t.target:e.a,t.a=[be(e,"drop",gv,t),be(e,"dragenter",dv,t),be(e,"dragover",dv,t),be(e,"drop",dv,t)])}function bv(t){t.a&&(t.a.forEach(xe),t.a=null)}fv.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",i(yv,Or),yv.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 wv(mv,t,r,i))},yv.prototype.Ha=function(t){Or.prototype.Ha.call(this,t),(t?vv:bv)(this)},yv.prototype.setMap=function(t){bv(this),Or.prototype.setMap.call(this,t),this.c()&&vv(this)};var mv="addfeatures";function wv(t,e,o,i){Ae.call(this,t),this.features=o,this.file=e,this.projection=i}function xv(t){t=t||{},$r.call(this,{handleDownEvent:Pv,handleDragEvent:Sv,handleUpEvent:Mv}),this.l=t.condition?t.condition:Hr,this.a=this.g=void 0,this.j=0,this.u=void 0!==t.duration?t.duration:400}function Sv(t){var e,o,i;Jr(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!==Mi&&void 0!==this.g&&(i=o-this.g,Ur(e,e.Qa()-i)),this.g=o,void 0!==this.a&&(o=this.a*(e.Pa()/t),Br(e,o)),void 0!==this.a&&(this.j=this.a/t),this.a=t)}function Mv(t){if(!Jr(t))return!0;Fr(t=t.map.Z(),1,-1);var e=this.j-1,o=t.Qa(),o=t.constrainRotation(o,0);Ur(t,o,void 0,void 0);var o=t.Pa(),i=this.u,o=t.constrainResolution(o,0,e);return Br(t,o,void 0,i),this.j=0,!1}function Pv(t){return!(!Jr(t)||!this.l(t))&&(Fr(t.map.Z(),1,1),!(this.a=this.g=void 0))}function Av(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=qn(),this.b=[],this.B=null,this.fa=qn(),this.na=qn()}function Ev(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=F(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 Tv(t,e){t.oa=[0,e,0],t.a.push(t.oa),t.ra=[0,e,0],t.b.push(t.ra)}function jv(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=Xi(t.coordinates,0,t.coordinates.length,2,i,t.B),Qn(t.T,i)),i=!yt(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((N=s[c])[0]){case 0:y=N[1],i&&n[B(y).toString()]||!y.V()?c=N[2]:void 0===p||at(p,y.V().G())?++c:c=N[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:O=h[y=N[1]],N=h[y+1],j=h[y+2]-O,y=h[y+3]-N,y=Math.sqrt(j*j+y*y),e.moveTo(O+y,N),e.arc(O,N,y,0,2*Math.PI,!0),++c;break;case 3:e.closePath(),++c;break;case 4:y=N[1],O=N[2];var w=N[3],x=N[4]*o,S=N[5]*o,M=N[6],P=N[7],A=N[8],E=N[9],T=N[10],j=N[11],C=N[12],L=N[13],R=N[14];for(T&&(j+=r);y<O;y+=2){var I,N=h[y]-x,T=h[y+1]-S;L&&(N=Math.round(N),T=Math.round(T)),1==C&&!j||(rs(g,I=N+x,F=T+S,C,C,j,-I,-F),e.setTransform.apply(e,g)),I=e.globalAlpha,1!=P&&(e.globalAlpha=I*P);var F=R+A>w.width?w.width-A:R,k=M+E>w.height?w.height-E:M;e.drawImage(w,A,E,F,k,N,T,F*o,k*o),1!=P&&(e.globalAlpha=I),1==C&&!j||e.setTransform.apply(e,d)}++c;break;case 5:for(y=N[1],O=N[2],S=N[3],M=N[4]*o,P=N[5]*o,j=N[6],C=N[7]*o,w=N[8],x=N[9],(T=N[10])&&(j+=r);y<O;y+=2){for(N=h[y]+M,T=h[y+1]+P,1==C&&!j||(rs(g,N,T,C,C,j,-N,-T),e.setTransform.apply(e,g)),1<(E=(A=S.split("\n")).length)?T-=(E-1)/2*(L=Math.round(1.5*e.measureText("M").width)):L=0,R=0;R<E;R++)I=A[R],x&&e.strokeText(I,N,T),w&&e.fillText(I,N,T),T+=L;1==C&&!j||e.setTransform.apply(e,d)}++c;break;case 6:if(a&&(y=a(y=N[1])))return y;++c;break;case 7:m?v++:t.Va(e,r),++c;break;case 8:for(y=N[1],O=N[2],N=h[y],C=(T=h[y+1])+.5|0,(j=N+.5|0)===l&&C===u||(e.moveTo(N,T),l=j,u=C),y+=2;y<O;y+=2)j=(N=h[y])+.5|0,C=(T=h[y+1])+.5|0,y!=O-2&&j===l&&C===u||(e.lineTo(N,T),l=j,u=C);++c;break;case 9:t.R=N[2],v&&(t.Va(e,r),v=0,b&&(e.stroke(),b=0)),e.fillStyle=N[1],++c;break;case 10:var y=void 0===N[8]||N[8],D=N[9],O=N[2];b&&(e.stroke(),b=0),e.strokeStyle=N[1],e.lineWidth=y?O*o:O,e.lineCap=N[3],e.lineJoin=N[4],e.miterLimit=N[5],Fo&&(O=N[6],j=N[7],y&&o!==D&&(O=O.map(function(t){return t*o/D}),j*=o/D,N[6]=O,N[7]=j,N[9]=o),e.lineDashOffset=j,e.setLineDash(O)),++c;break;case 11:e.font=N[1],e.textAlign=N[2],e.textBaseline=N[3],++c;break;case 12:m?b++:e.stroke(),++c;break;default:++c}}v&&t.Va(e,r),b&&e.stroke()}function Cv(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 Lv(t,e){t.oa[2]=t.a.length,t.oa=null,t.ra[2]=t.b.length,t.ra=null,e=[6,e],t.a.push(e),t.b.push(e)}function Rv(t,e,o,i){Av.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 Iv(t,e,o,i){Av.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 Nv(t,e,o,i,r){var n=[8,n=t.coordinates.length,e=Ev(t,e,o,i,r,!1,!1)];return t.a.push(n),t.b.push(n),i}function Fv(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 kv(t,e,o,i){Av.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 Dv(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];o=[8,t.coordinates.length,o=Ev(t,e,o,h,r,!0,!s)],t.a.push(o),t.b.push(o),s&&(o=[3],t.a.push(o),t.b.push(o)),o=h}return e=[7],t.b.push(e),n&&t.a.push(e),s&&(n=[12],t.a.push(n),t.b.push(n)),o}function Ov(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 Uv(t,e,o,i){Av.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 Gv(t,e,o,i,r){this.v=t,this.c=e,this.o=i,this.l=o,this.f=r,this.a={},this.g=qe(1,1),this.j=qn()}i(wv,Ae),i(xv,$r),i(Av,vs),Av.prototype.Va=function(t,e){var o;this.R&&(o=ts(this.T,this.R.slice()),t.translate(o[0],o[1]),t.rotate(e)),t.fill(),this.R&&t.setTransform.apply(t,this.na)},Av.prototype.La=function(t,e,o,i,r){jv(this,t,e,o,i,r,this.a,void 0,void 0)},Av.prototype.Te=w,Av.prototype.Sf=function(){return this.Ua},i(Rv,Av),Rv.prototype.qc=function(t,e){var o,i;this.M&&(Tv(this,e),o=t.ga(),i=this.coordinates.length,t=Ev(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]),Lv(this,e))},Rv.prototype.oc=function(t,e){var o,i;this.M&&(Tv(this,e),o=t.ga(),i=this.coordinates.length,t=Ev(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]),Lv(this,e))},Rv.prototype.Te=function(){Cv(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},Rv.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]},i(Iv,Av),(Eu=Iv.prototype).Sf=function(){return this.f||(this.f=T(this.Ua),0<this.c&&E(this.f,this.resolution*(this.c+1)/2,this.f)),this.f},Eu.mc=function(t,e){var o=this.i,i=o.lineWidth;void 0!==o.strokeStyle&&void 0!==i&&(Fv(this),Tv(this,e),this.b.push([10,o.strokeStyle,o.lineWidth,o.lineCap,o.lineJoin,o.miterLimit,o.lineDash,o.lineDashOffset,!0,1],[1]),Nv(this,o=t.ga(),0,o.length,t.qa()),this.b.push([12]),Lv(this,e))},Eu.nc=function(t,e){var o=this.i,i=o.lineWidth;if(void 0!==o.strokeStyle&&void 0!==i){Fv(this),Tv(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=Nv(this,i,r,o[n],t);this.b.push([12]),Lv(this,e)}},Eu.Te=function(){this.i.eg!=this.coordinates.length&&this.a.push([12]),Cv(this),this.i=null},Eu.Ma=function(t,e){t=e.a,this.i.strokeStyle=He(t||gs),t=e.f,this.i.lineCap=void 0!==t?t:"round",t=e.i,this.i.lineDash=t||ys,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)},i(kv,Av),(Eu=kv.prototype).Zb=function(t,e){var o,i=this.i,r=i.strokeStyle;void 0===i.fillStyle&&void 0===r||(Ov(this,t),Tv(this,e),this.b.push([9,We(fs)]),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,Ev(this,o,0,o.length,t.qa(),!1,!1),t=[1],r=[2,r],this.a.push(t,r),this.b.push(t,r),t=[7],this.b.push(t),void 0!==i.fillStyle&&this.a.push(t),void 0!==i.strokeStyle&&(i=[12],this.a.push(i),this.b.push(i)),Lv(this,e))},Eu.rc=function(t,e){var o=this.i;Ov(this,t),Tv(this,e),this.b.push([9,We(fs)]),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();Dv(this,t.ec(),0,o,t.qa()),Lv(this,e)},Eu.pc=function(t,e){var o=this.i,i=o.strokeStyle;if(void 0!==o.fillStyle||void 0!==i){Ov(this,t),Tv(this,e),this.b.push([9,We(fs)]),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=ml(t),t=t.qa();for(var r=0,n=0,s=o.length;n<s;++n)r=Dv(this,i,r,o[n],t);Lv(this,e)}},Eu.Te=function(){Cv(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)},Eu.Sf=function(){return this.f||(this.f=T(this.Ua),0<this.c&&E(this.f,this.resolution*(this.c+1)/2,this.f)),this.f},Eu.Ma=function(t,e){var o=this.i;t?(t=t.b,o.fillStyle=He(t||fs)):o.fillStyle=void 0,e?(t=e.a,o.strokeStyle=He(t||gs),t=e.f,o.lineCap=void 0!==t?t:"round",t=e.i,o.lineDash=t?t.slice():ys,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)},i(Uv,Av),Uv.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}),Tv(this,n),t=[5,r=this.coordinates.length,t=Ev(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),Lv(this,n))},Uv.prototype.Cb=function(t){var e,o,i,r,n,s,a,p,h;t?((o=t.Fa())?(o=He((o=o.b)||fs),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():ys,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=He(o||gs),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=""},i(Gv,js);var Bv={0:[[!0]]};function Xv(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 Vv(t){for(var e in t.a){var o,i=t.a[e];for(o in i)i[o].Te()}}function Wv(t,e){var o=t.c;t=o[0];var i=o[1],r=o[2];return Xi(t=[t,i,t,o=o[3],r,o,r,i],0,8,2,e,t),t}Gv.prototype.Ea=function(t,e,o,i,r,n){var s,a=2*(i=Math.round(i))+1,p=rs(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&&(H(s=Z(),t),E(s,e*(this.f+i),s));var l=function(t){if(void 0!==Bv[t])return Bv[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;)Xv(o,t+e,t+i),Xv(o,t+i,t+e),Xv(o,t-i,t+e),Xv(o,t-e,t+i),Xv(o,t-e,t-i),Xv(o,t-i,t-e),Xv(o,t+i,t-e),Xv(o,t+e,t-i),0<2*((r+=1+2*++i)-e)+1&&(r+=1-2*--e);return Bv[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=Ts.length-1;0<=p;--p){var c=u[Ts[p]];if(void 0!==c&&(c=jv(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)},Gv.prototype.b=function(t,e){var o=void 0!==t?t.toString():"0";return void 0===(t=this.a[o])&&(t={},this.a[o]=t),void 0===(o=t[e])&&(o=new Zv[e](this.v,this.c,this.l,this.o),t[e]=o),o},Gv.prototype.i=function(){return yt(this.a)},Gv.prototype.La=function(t,e,o,i,r,n){var s=Object.keys(this.a).map(Number);s.sort(G);var a=Wv(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||Ts;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 Zv={Circle:kv,Image:Rv,LineString:Iv,Polygon:kv,Text:Uv};function Kv(t){Ce.call(this),this.a=t}function zv(t,e){var o=e.getState();return 2!=o&&3!=o&&be(e,"change",t.na,t),0==o&&(e.load(),o=e.getState()),2==o}function Yv(t){var e=t.a;e.Mb()&&"ready"==e.$f()&&t.s()}function Hv(t,e){e.Ki()&&t.postRenderFunctions.push(function(t,e,o){e=B(t).toString(),t.fd(o.viewState.projection,o.usedTiles[e])}.bind(null,e))}function qv(t,e){if(e)for(var o=0,i=e.length;o<i;++o){var r=e[o];t[B(r).toString()]=r}}function Jv(t,e){void 0!==(e=e.D)&&("string"==typeof e?t.logos[e]="":e&&(X("string"==typeof e.href,44),X("string"==typeof e.src,45),t.logos[e.src]=e.href))}function _v(t,e,o,i){e=B(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 $v(t,e,o,i,r,n,s,a,p,h){var l=B(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=ie(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,re(o,g.ta),v])),p&&p.call(h,g)):e.Ug(y,b,c,r)}}function Qv(t){Kv.call(this,t),this.fa=qn()}function tb(t,e,o){var i=e.pixelRatio,r=e.size[0]*i,n=e.size[1]*i,s=e.viewState.rotation,a=rt(o),p=nt(o),h=Q(o);o=$(o),ts(e.coordinateToPixelTransform,a),ts(e.coordinateToPixelTransform,p),ts(e.coordinateToPixelTransform,h),ts(e.coordinateToPixelTransform,o),t.save(),ds(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(),ds(t,s,r/2,n/2)}function eb(t,e,o,i,r){var n,s,a,p=t.a;je(p,e)&&(n=i.size[0]*i.pixelRatio,s=i.size[1]*i.pixelRatio,ds(o,-(a=i.viewState.rotation),n/2,s/2),t=r||ob(t,i,0),p.b(new cs(e,new bs(o,i.pixelRatio,i.extent,t,i.viewState.rotation),i,o,null)),ds(o,a,n/2,s/2))}function ob(t,e,o){var i=e.viewState,r=e.pixelRatio,n=r/i.resolution;return rs(t.fa,r*e.size[0]/2,r*e.size[1]/2,n,-n,-i.rotation,-i.center[0]+o,-i.center[1])}function ib(t,e){return B(t)-B(e)}function rb(t,e){return(t=.5*t/e)*t}function nb(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,sb[i.U()])(t,i,o,e)),p}i(Kv,Ce),Kv.prototype.Ea=w,Kv.prototype.Ue=Gi,Kv.prototype.Nf=function(o,i,r){return function(e,t){return Sw(o,i,e,t,function(t){r[e]||(r[e]={}),r[e][t.ta.toString()]=t})}},Kv.prototype.na=function(t){2===t.target.getState()&&Yv(this)},i(Qv,Kv),Qv.prototype.u=function(t,e,o,i){if(this.Ea(t,e,0,Ui,this))return o.call(i,this.a,null)},Qv.prototype.ef=function(t,e,o,i){eb(this,"postcompose",t,e,i)};var sb={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(cl(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(xr(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=yl(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=bl(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,sb[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 ab(t){Qv.call(this,t),this.c=!1,this.v=-1,this.l=NaN,this.j=Z(),this.f=this.o=null,this.g=qe()}function pb(){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;}"}i(ab,Qv),ab.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=ob(this,t,0);eb(this,"precompose",o,t,l);var u=e.extent,c=void 0!==u;if(c&&tb(o,t,u),(u=this.f)&&!u.i()){var f,y=0,g=0,d=(f=je(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(ds(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=st(p),m=0;s<p[0];)l=ob(this,t,l=h*--m),u.La(f,r,l,a,n),s+=h;for(m=0,s=i[2];s>p[2];)l=ob(this,t,l=h*++m),u.La(f,r,l,a,n),s-=h;l=ob(this,t,0)}ds(f,a,v/2,b/2),f!=o&&(eb(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)},ab.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=B(t).toString();if(!(e in s))return s[e]=!0,i.call(r,t,n)})}},ab.prototype.D=function(){Yv(this)},ab.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=nb(f,t,e[i],rb(h,l),this.D,this)||o;else o=nb(f,t,e,rb(h,l),this.D,this)||o;t=o}else t=!1;this.c=this.c||t}}var n=this.a,o=n.ha();qv(t.attributions,o.j),Jv(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(vb))&&(s=ib),p=E(p,u*h),u=a.projection.G(),o.u&&a.projection.i&&!N(u,t.extent)&&(t=Math.max(st(p)/2,st(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 Gv(.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),Vv(f),this.l=h,this.v=r,this.o=s,this.j=p,this.f=f,!0},i(pb,Ls);var hb=new pb;function lb(){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;}"}i(lb,Rs);var ub=new lb;function cb(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 fb(t,e){Kv.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=qn(),this.S=qn(),this.C=Os(),this.u=null}function yb(t,e,o,i){var r;je(t=t.a,e)&&(r=i.viewState,t.b(new cs(e,new Op(o,r.center,r.resolution,r.rotation,i.size,i.extent,i.pixelRatio),i,null,o)))}function gb(t,e){fb.call(this,t,e),this.l=!1,this.R=-1,this.I=NaN,this.D=Z(),this.o=this.f=this.B=null}function db(t){var e=ut({},t=t||{});delete e.style,delete e.renderBuffer,delete e.updateWhileAnimating,delete e.updateWhileInteracting,Zn.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}i(fb,Kv),fb.prototype.Gi=function(t,e,o){yb(this,"precompose",o,t),oa(o,34962,this.T);var i,r=o.b,n=sa(o,hb,ub);this.u?i=this.u:this.u=i=new cb(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,Us(this.C,this.v)),r.uniformMatrix4fv(i.c,!1,Us(this.C,this.S)),r.uniform1f(i.i,e.opacity),r.bindTexture(3553,this.Ib),r.drawArrays(5,0,4),yb(this,"postcompose",o,t)},fb.prototype.mg=function(){this.g=this.Ib=null,this.j=void 0},i(gb,fb),(Eu=gb.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))},Eu.ka=function(){var t=this.f;t&&(Np(t,this.c.f)(),this.f=null),fb.prototype.ka.call(this)},Eu.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=B(t).toString();if(!(e in s))return s[e]=!0,i.call(r,t,n)})}},Eu.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,p=e.pixelRatio,h=this.o.opacity,l=e.skippedFeatureUids,(u=n.b).bindFramebuffer(u.FRAMEBUFFER,ra(n)),void 0!==Fp(i,n,r,s,a,p,h,l,function(){var t=new Uint8Array(4);return u.readPixels(0,0,1,1,u.RGBA,u.UNSIGNED_BYTE,t),0<t[3]},!1)}var i,r,n,s,a,p,h,l,u;return!1},Eu.lg=function(t,e,o,i){if(t=ts(e.pixelToCoordinateTransform,t.slice()),this.Ue(t,e))return o.call(i,this.a,null)},Eu.Hi=function(){Yv(this)},Eu.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=nb(f,t,e[i],rb(h,l),this.Hi,this)||o;else o=nb(f,t,e,rb(h,l),this.Hi,this)||o;t=o}else t=!1;this.l=this.l||t}}var r=this.a;e=r.ha(),qv(t.attributions,e.j),Jv(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(vb))&&(p=ib),s=E(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(Np(this.f,o)),this.l=!1;var c,f=new Ip(.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},i(db,Zn),db.prototype.Fd=function(t){var e=null,o=t.U();return"canvas"===o?e=new ab(this):"webgl"===o&&(e=new gb(t,this)),e},db.prototype.D=function(){return this.u},db.prototype.C=function(){return this.f},db.prototype.g=function(t){this.u=void 0!==t?t:Lh,this.f=null===t?void 0:jh(this.u),this.s()};var vb="renderOrder";function bb(){return[[-1/0,-1/0,1/0,1/0]]}function mb(t){Le.call(this),this.c=Vt(t.projection),this.j=wb(t.attributions),this.D=t.logo,this.na=void 0!==t.state?t.state:"ready",this.u=void 0!==t.wrapX&&t.wrapX}function wb(t){if("string"==typeof t)return[new ue({html:t})];if(t instanceof ue)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 ue({html:r}):r}return o}return null}function xb(t,e){t.na=e,t.s()}function Sb(t){mb.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&&(X(this.C,7),this.B=ol(this.I,this.C)),this.fa=t.strategy?t.strategy:bb;var e,o,i,r,n,s=void 0===t.useSpatialIndex||t.useSpatialIndex;this.a=s?new up:null,this.R=new up,this.g={},this.o={},this.l={},this.v={},this.f=null,t.features instanceof ke?o=(e=t.features).a:Array.isArray(t.features)&&(o=t.features),s||e||(e=new ke(o)),o&&Ab(this,o),e&&(r=e,n=!1,be(i=this,"addfeature",function(t){n||(n=!0,r.push(t.feature),n=!1)}),be(i,"removefeature",function(t){n||(n=!0,r.remove(t.feature),n=!1)}),be(r,"add",function(t){n||(n=!0,this.yb(t.element),n=!1)},i),be(r,"remove",function(t){n||(n=!0,this.Gb(t.element),n=!1)},i),i.f=r)}function Mb(t,e,o){t.v[e]=[be(o,"change",t.Oi,t),be(o,"propertychange",t.Oi,t)]}function Pb(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:(X(!(e in t.l),30),t.l[e]=o),i}function Ab(t,e){for(var o=[],i=[],r=[],n=0,s=e.length;n<s;n++){var a=e[n],p=B(a).toString();Pb(t,p,a)&&i.push(a)}for(n=0,s=i.length;n<s;n++)Mb(t,p=B(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 Tb("addfeature",i[n]))}function Eb(t,e){for(var o in t.o)if(t.o[o]===e){delete t.o[o];break}}function Tb(t,e){Ae.call(this,t),this.feature=e}function jb(t){var e,o;$r.call(this,{handleDownEvent:Lb,handleEvent:Cb,handleUpEvent:Rb}),this.T=!1,this.fa=null,this.u=!1,this.Yb=t.source?t.source:null,this.$a=t.features?t.features:null,this.wk=t.snapTolerance?t.snapTolerance:12,this.R=t.type,this.g=("Point"===(e=this.R)||"MultiPoint"===e?o=Ub:"LineString"===e||"MultiLineString"===e?o=Gb:"Polygon"===e||"MultiPolygon"===e?o=Bb:"Circle"===e&&(o=Xb),o),this.Sa=t.minPoints?t.minPoints:this.g===Bb?3:2,this.va=t.maxPoints?t.maxPoints:1/0,this.Cf=t.finishCondition?t.finishCondition:Ui;var i,r,n,s=(s=t.geometryFunction)||("Circle"===this.R?function(t,e){return(e=e||new _d([NaN,NaN])).Ng(t[0],Math.sqrt(Fi(t[0],t[1]))),e}:((r=this.g)===Ub?i=hr:r===Gb?i=ul:r===Bb&&(i=wr),function(t,e){return e?r===Bb?e.ma([t[0].concat([t[0][0]])]):e.ma(t):e=new i(t),e}));this.Za=s,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 db({source:new Sb({useSpatialIndex:!1,wrapX:!!t.wrapX&&t.wrapX}),style:t.style?t.style:(n=Rh(),function(t){return n[t.V().U()]})}),this.xb=t.geometryName,this.vk=t.condition?t.condition:Yr,this.Df=t.freehand?Ui:t.freehandCondition?t.freehandCondition:Hr,be(this,Ie("active"),this.ri,this)}function Cb(t){this.u=this.g!==Ub&&this.Df(t);var e=!this.u;return this.u&&"pointerdrag"===t.type&&null!==this.j?(kb(this,t),e=!1):"pointermove"===t.type?e=Ib(this,t):"dblclick"===t.type&&(e=!1),tn.call(this,t)&&e}function Lb(t){return this.T=!this.u,this.u?(this.fa=t.pixel,this.l||Fb(this,t),!0):!!this.vk(t)&&(this.fa=t.pixel,!0)}function Rb(t){var e=!0;Ib(this,t);var o=this.g===Xb;return this.T?(this.l?this.u||o?this.Pd():Nb(this,t)?this.Cf(t)&&this.Pd():kb(this,t):(Fb(this,t),this.g===Ub&&this.Pd()),e=!1):this.u&&(this.l=null,Db(this)),e}function Ib(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===Ub?o=t.a:t.g===Bb?(o=(o=t.a[0])[o.length-1],Nb(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 wr&&t.g!==Bb?(t.C||(t.C=new Nh(new ul(null))),r=i.Ch(0),(e=t.C.V()).ba(r.ja,r.ga())):t.I&&(e=t.C.V()).ma(t.I),Ob(t)):(e=e.coordinate.slice(),t.B?t.B.V().ma(e):(t.B=new Nh(new hr(e)),Ob(t))),!0}function Nb(t,e){var o=!1;if(t.j){var i=!1,r=[t.l];if(t.g===Gb?i=t.a.length>t.Sa:t.g===Bb&&(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 Fb(t,e){e=e.coordinate,t.l=e,t.g===Ub?t.a=e.slice():t.g===Bb?(t.a=[[e.slice(),e.slice()]],t.I=t.a[0]):(t.a=[e.slice(),e.slice()],t.g===Xb&&(t.I=t.a)),t.I&&(t.C=new Nh(new ul(t.I))),e=t.Za(t.a),t.j=new Nh,t.xb&&t.j.Tc(t.xb),t.j.Ra(e),Ob(t),t.b(new Vb("drawstart",t.j))}function kb(t,e){e=e.coordinate;var o,i,r=t.j.V();t.g===Gb?(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===Bb&&((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)),Ob(t),o&&t.Pd()}function Db(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 Ob(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)}i(mb,Le),(Eu=mb.prototype).Ea=w,Eu.ya=function(){return this.j},Eu.xa=function(){return this.D},Eu.za=function(){return this.c},Eu.getState=function(){return this.na},Eu.sa=function(){this.s()},Eu.ua=function(t){this.j=wb(t),this.s()},i(Sb,mb),(Eu=Sb.prototype).yb=function(t){var e,o=B(t).toString();Pb(this,o,t)&&(Mb(this,o,t),(e=t.V())?(o=e.G(),this.a&&this.a.Ca(o,t)):this.g[o]=t,this.b(new Tb("addfeature",t))),this.s()},Eu.cd=function(t){Ab(this,t),this.s()},Eu.clear=function(t){if(t){for(var e in this.v)this.v[e].forEach(xe);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 Tb("clear")),this.s()},Eu.sh=function(t,e){return this.a?this.a.forEach(t,e):this.f?this.f.forEach(t,e):void 0},Eu.$b=function(t,e,o){return this.a?gp(this.a,t,e,o):this.f?this.f.forEach(e,o):void 0},Eu.th=function(e,o,i){return this.$b(e,function(t){if(t.V().Xa(e)&&(t=o.call(i,t)))return t})},Eu.Ah=function(){return this.f},Eu.Xe=function(){var t;return this.f?t=this.f.a:this.a&&(t=fp(this.a),yt(this.g)||c(t,ft(this.g))),t},Eu.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},Eu.Uf=function(t){return yp(this.a,t)},Eu.vh=function(t,e){var i=t[0],r=t[1],n=null,s=[NaN,NaN],a=1/0,p=[-1/0,-1/0,1/0,1/0],h=e||Ui;return gp(this.a,p,function(t){var e,o;h(t)&&(e=t.V(),o=a,(a=e.Kb(i,r,s,a))<o&&(n=t,t=Math.sqrt(a),p[0]=i-t,p[1]=r-t,p[2]=i+t,p[3]=r+t))}),n},Eu.G=function(t){return this.a.G(t)},Eu.yh=function(t){return void 0!==(t=this.o[t.toString()])?t:null},Eu.Mi=function(){return this.C},Eu.Ni=function(){return this.I},Eu.Oi=function(t){var e=B(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&&cp(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&&(Eb(this,t),this.o[o]=t)):e in this.l||(Eb(this,t),this.l[e]=t),this.s(),this.b(new Tb("changefeature",t))},Eu.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];gp(i,s,function(t){return N(t.extent,s)})||(this.B.call(this,s,e,o),i.Ca(s,{extent:s.slice()}))}},Eu.Gb=function(t){var e=B(t).toString();e in this.g?delete this.g[e]:this.a&&this.a.remove(t),this.Ig(t),this.s()},Eu.Ig=function(t){var e=B(t).toString();this.v[e].forEach(xe),delete this.v[e];var o=t.a;void 0!==o?delete this.o[o.toString()]:delete this.l[e],this.b(new Tb("removefeature",t))},i(Tb,Ae),i(jb,$r),(Eu=jb.prototype).setMap=function(t){$r.prototype.setMap.call(this,t),this.ri()},Eu.Op=function(){var t,e;this.j&&(t=this.j.V(),this.g===Gb?((e=this.a).splice(-2,1),this.Za(e,t),2<=e.length&&(this.l=e[e.length-2].slice())):this.g===Bb&&((e=this.a[0]).splice(-2,1),this.C.V().ma(e),this.Za(this.a,t)),0===e.length&&(this.l=null),Ob(this))},Eu.Pd=function(){var t=Db(this),e=this.a,o=t.V();this.g===Gb?(e.pop(),this.Za(e,o)):this.g===Bb&&(e[0].pop(),this.Za(e,o),e=o.X()),"MultiPoint"===this.R?t.Ra(new dl([e])):"MultiLineString"===this.R?t.Ra(new fl([e])):"MultiPolygon"===this.R&&t.Ra(new vl([e])),this.b(new Vb("drawend",t)),this.$a&&this.$a.push(t),this.Yb&&this.Yb.yb(t)},Eu.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()),Ob(this),this.b(new Vb("drawstart",this.j))},Eu.Xc=Gi,Eu.ri=function(){var t=this.v,e=this.c();t&&e||Db(this),this.pa.setMap(e?t:null)};var Ub="Point",Gb="LineString",Bb="Polygon",Xb="Circle";function Vb(t,e){Ae.call(this,t),this.feature=e}function Wb(t){var e,o;this.a=this.j=null,this.C=!1,this.B=this.l=null,(t=t||{}).extent&&this.g(t.extent),$r.call(this,{handleDownEvent:Kb,handleDragEvent:zb,handleEvent:Zb,handleUpEvent:Yb}),this.u=new db({source:new Sb({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.boxStyle?t.boxStyle:(e=Rh(),function(){return e.Polygon}),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.I=new db({source:new Sb({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.pointerStyle?t.pointerStyle:(o=Rh(),function(){return o.Point}),updateWhileAnimating:!0,updateWhileInteracting:!0})}function Zb(t){return!(t instanceof Ko)||("pointermove"!=t.type||this.D||_b(this,Jb(this,e=t.pixel,o=t.map)||o.Wa(e)),tn.call(this,t),!1);var e,o}function Kb(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=Jb(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=Hb(e(t)):null!==o?this.a=qb(e([o,r[1]]),e([o,r[3]])):null!==i&&(this.a=qb(e([r[0],i]),e([r[2],i])))):(t=i.Wa(o),this.g([t[0],t[1],t[0],t[1]]),this.a=Hb(t)),!0}function zb(t){return this.a&&(t=t.coordinate,this.g(this.a(t)),_b(this,t)),!0}function Yb(){this.a=null;var t=this.G();return t&&_(t)||this.g(null),!1}function Hb(e){return function(t){return A([e,t])}}function qb(e,o){return e[0]==o[0]?function(t){return A([e,[t[0],o[1]]])}:e[1]==o[1]?function(t){return A([e,[o[0],t[1]]])}:null}function Jb(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 Di(i,t)-Di(i,e)});var r=r[0],n=ji(i,r),s=o.Ja(n);if(ki(e,s)<=10)return e=o.Ja(r[0]),o=o.Ja(r[1]),e=Fi(s,e),o=Fi(s,o),t.C=Math.sqrt(Math.min(e,o))<=10,t.C&&(n=o<e?r[1]:r[0]),n}return null}function _b(t,e){var o=t.B;o?o.V().ma(e):(o=new Nh(new hr(e)),t.B=o,t.I.ha().yb(o))}function $b(t){Ae.call(this,Qb),this.b=t}i(Vb,Ae),i(Wb,$r),Wb.prototype.setMap=function(t){this.u.setMap(t),this.I.setMap(t),$r.prototype.setMap.call(this,t)},Wb.prototype.G=function(){return this.j},Wb.prototype.g=function(t){this.j=t||null;var e=this.l;e?t?e.Ra(Mr(t)):e.Ra(void 0):(this.l=e=new Nh(t?Mr(t):{}),this.u.ha().yb(e)),this.b(new $b(this.j))},i($b,Ae);var Qb="extentchanged";function tm(t){var e;$r.call(this,{handleDownEvent:nm,handleDragEvent:sm,handleEvent:pm,handleUpEvent:am}),this.ad=t.condition?t.condition:_r,this.$a=function(t){return Yr(t)&&zr(t)},this.xb=t.deleteCondition?t.deleteCondition:this.$a,this.Yb=t.insertVertexCondition?t.insertVertexCondition:Ui,this.Sa=this.g=null,this.va=[0,0],this.C=this.I=!1,this.a=new up,this.fa=void 0!==t.pixelTolerance?t.pixelTolerance:10,this.l=this.pa=!1,this.j=[],this.B=new db({source:new Sb({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.style?t.style:(e=Rh(),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),be(this.u,"add",this.wn,this),be(this.u,"remove",this.xn,this),this.R=null}function em(t,e){t.C||(t.C=!0,t.b(new fm("modifystart",t.u,e)))}function om(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),we(e,"change",t.si,t)}function im(t,e){var o=t.g;o?o.V().ma(e):(o=new Nh(new hr(e)),t.g=o,t.B.ha().yb(o))}function rm(t,e){return t.index-e.index}function nm(t){if(!this.ad(t))return!1;hm(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=A([o=o.V().X()]),n={};(r=yp(this.a,r)).sort(rm);for(var s=0,a=r.length;s<a;++s){var p=r[s],h=p.la,l=B(p.feature),u=p.depth;u&&(l+="-"+u.join("-")),n[l]||(n[l]=Array(2)),"Circle"===p.geometry.U()&&1===p.index?Ri(h=um(e,p),o)&&!n[l][0]&&(this.j.push([p,0]),n[l][0]=p):Ri(h[0],o)&&!n[l][0]?(this.j.push([p,0]),n[l][0]=p):Ri(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)&&B(h)in this.Sa&&!n[l][0]&&!n[l][1]&&i.push([p,o])}for(i.length&&em(this,t),t=i.length-1;0<=t;--t)this.bm.apply(this,i[t])}return!!this.g}function sm(t){this.I=!1,em(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":i=t,a[0]=a[1]=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(ki(s.wa(),t))),this.l=!1}i&&(r=s,n=i,this.l=!0,r.ma(n),this.l=!1)}im(this,t)}function am(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,cp(this.a,O(o),i),cp(this.a,e.G(),r)):cp(this.a,A(r.la),r)}return this.C&&(this.b(new fm("modifyend",this.u,t)),this.C=!1),!1}function pm(t){return!(t instanceof Ko)||(Ir((this.R=t).map.Z())[1]||"pointermove"!=t.type||this.D||(this.va=t.pixel,hm(this,t.pixel,t.map)),this.g&&this.xb(t)&&(e=!("singleclick"!=t.type||!this.I)||this.hj()),"singleclick"==t.type&&(this.I=!1),tn.call(this,t)&&!e);var e}function hm(t,e,o){var i=o.Wa(e),r=E(O(i),o.Z().Pa()*t.fa);if(0<(r=yp(t.a,r)).length){r.sort(function(t,e){return lm(i,t)-lm(i,e)});var n=r[0],s=n.la,a=um(i,n),p=o.Ja(a),h=ki(e,p);if(h<=t.fa){if(e={},"Circle"===n.geometry.U()&&1===n.index)t.pa=!0,im(t,a);else for(h=o.Ja(s[0]),n=o.Ja(s[1]),o=Fi(p,h),p=Fi(p,n),h=Math.sqrt(Math.min(o,p)),t.pa=h<=t.fa,t.pa&&(a=p<o?s[1]:s[0]),im(t,a),p=1,o=r.length;p<o&&(a=r[p].la,Ri(s[0],a[0])&&Ri(s[1],a[1])||Ri(s[0],a[1])&&Ri(s[1],a[0]));++p)e[B(a)]=!0;return e[B(s)]=!0,void(t.Sa=e)}}t.g&&(t.B.ha().Gb(t.g),t.g=null)}function lm(t,e){var o=e.geometry;return"Circle"===o.U()&&1===e.index?(t=Fi(o.wa(),t),(o=Math.sqrt(t)-o.pd())*o):Di(t,e.la)}function um(t,e){var o=e.geometry;return"Circle"===o.U()&&1===e.index?o.Ab(t):ji(t,e.la)}function cm(t,e,o,i,r){gp(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 fm(t,e,o){Ae.call(this,t),this.features=e,this.mapBrowserEvent=o}function ym(t){var e,o;Or.call(this,{handleEvent:gm}),t=t||{},this.C=t.condition?t.condition:zr,this.D=t.addCondition?t.addCondition:Gi,this.B=t.removeCondition?t.removeCondition:Gi,this.I=t.toggleCondition?t.toggleCondition:Hr,this.l=!!t.multi&&t.multi,this.o=t.filter?t.filter:Ui,this.j=t.hitTolerance?t.hitTolerance:0,this.g=new db({source:new Sb({useSpatialIndex:!1,features:t.features,wrapX:t.wrapX}),style:t.style?t.style:(c((e=Rh()).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)}):Ui,this.u=t,this.a={},be(t=this.g.ha().f,"add",this.Fn,this),be(t,"remove",this.Jn,this)}function gm(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(ct(this.a),n.we(t.pixel,function(t,e){if(this.o(t,e))return p.push(t),t=B(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=B(t),delete this.a[e]):(p.push(t),t=B(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 dm(vm,p,a,t)),Kr(t)}function dm(t,e,o,i){Ae.call(this,t),this.selected=e,this.deselected=o,this.mapBrowserEvent=i}i(tm,$r),(Eu=tm.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()&&hm(this,this.va,e),be(t,"change",this.si,this)},Eu.Ha=function(t){this.g&&!t&&(this.B.ha().Gb(this.g),this.g=null),$r.prototype.Ha.call(this,t)},Eu.setMap=function(t){this.B.setMap(t),$r.prototype.setMap.call(this,t)},Eu.wn=function(t){this.kg(t.element)},Eu.si=function(t){this.l||(om(this,t=t.target),this.kg(t))},Eu.xn=function(t){om(this,t.element)},Eu.Dn=function(t,e){var o=e.X();t={feature:t,geometry:e,la:[o,o]},this.a.Ca(e.G(),t)},Eu.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)}},Eu.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(A(n),s)}},Eu.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(A(p),h)}},Eu.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(A(p),h)}},Eu.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(A(u),c)}},Eu.yn=function(t,e){var o=e.wa(),i={feature:t,geometry:e,index:0,la:[o,o]};t={feature:t,geometry:e,index:1,la:[o,o]},i.Pf=t.Pf=[i,t],this.a.Ca(O(o),i),this.a.Ca(e.G(),t)},Eu.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])},Eu.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),cm(this,n,a,s,1),t={la:[i[0],e],feature:r,geometry:n,depth:s,index:a},o.Ca(A(t.la),t),this.j.push([t,1]),e={la:[e,i[1]],feature:r,geometry:n,depth:s,index:a+1},o.Ca(A(e.la),e),this.j.push([e,0]),this.I=!0},Eu.hj=function(){if(this.R&&"pointerdrag"!=this.R.type){var t=this.R;em(this,t);var e,o=this.j,i={};for(a=o.length-1;0<=a;--a){var r=o[a],n=r[0],s=B(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(A(h.la),h)),cm(this,r,a,n.depth,-1),this.g&&(this.B.ha().Gb(this.g),this.g=null),o.length=0)}return this.b(new fm("modifyend",this.u,t)),!(this.C=!1)}return!1},i(fm,Ae),i(ym,Or),(Eu=ym.prototype).Gn=function(){return this.g.ha().f},Eu.Hn=function(){return this.j},Eu.In=function(t){return t=B(t),this.a[t]},Eu.Kn=function(t){this.j=t},Eu.setMap=function(t){var e=this.v,o=this.g.ha().f;e&&o.forEach(e.Cj,e),Or.prototype.setMap.call(this,t),this.g.setMap(t),t&&o.forEach(t.xj,t)},Eu.Fn=function(t){var e=this.v;e&&e.xj(t.element)},Eu.Jn=function(t){var e=this.v;e&&e.Cj(t.element)},i(dm,Ae);var vm="select";function bm(t){$r.call(this,{handleEvent:wm,handleDownEvent:Ui,handleUpEvent:xm}),t=t||{},this.l=t.source?t.source:null,this.R=void 0===t.vertex||t.vertex,this.C=void 0===t.edge||t.edge,this.j=t.features?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 Di(this.I,t.la)-Di(this.I,e.la)}.bind(this),this.a=new up,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 mm(t,e,o,i){var r=i.Wa([e[0]-t.g,e[1]+t.g]),n=i.Wa([e[0]+t.g,e[1]-t.g]),r=A([r,n]),s=yp(t.a,r);t.R&&!t.C&&(s=s.filter(function(t){return"Circle"!==t.feature.V().U()}));var a,p=!1,r=!1,h=n=null;return 0<s.length&&(t.I=o,s.sort(t.va),a=s[0].la,p="Circle"===s[0].feature.V().U(),t.R&&!t.C?(o=i.Ja(a[0]),p=i.Ja(a[1]),o=Fi(e,o),e=Fi(e,p),(p=(p=Math.sqrt(Math.min(o,e)))<=t.g)&&(r=!0,n=e<o?a[1]:a[0],h=i.Ja(n))):t.C&&(n=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,s[0].feature.V()):ji(o,a),ki(e,h=i.Ja(n))<=t.g&&(r=!0,t.R&&!p&&(o=i.Ja(a[0]),p=i.Ja(a[1]),o=Fi(h,o),e=Fi(h,p),p=(p=Math.sqrt(Math.min(o,e)))<=t.g)))&&(n=e<o?a[1]:a[0],h=i.Ja(n)),r&&(h=[Math.round(h[0]),Math.round(h[1])])),{nq:r,vertex:n,wq:h}}function wm(t){var e=mm(this,t.pixel,t.coordinate,t.map);return e.nq&&(t.coordinate=e.vertex.slice(0,2),t.pixel=e.wq),tn.call(this,t)}function xm(){var t=ft(this.u);return t.length&&(t.forEach(this.Dj,this),this.u={}),!1}function Sm(t){var e,o;$r.call(this,{handleDownEvent:Mm,handleDragEvent:Am,handleMoveEvent:Em,handleUpEvent:Pm}),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)}):Ui,this.C=o,this.l=t.hitTolerance?t.hitTolerance:0,this.g=null,be(this,Ie("active"),this.u,this)}function Mm(t){if(this.g=Tm(this,t.pixel,t.map),this.a||!this.g)return!1;this.a=t.coordinate,Em.call(this,t);var e=this.j||new ke([this.g]);return this.b(new Cm("translatestart",e,t.coordinate)),!0}function Pm(t){if(this.a){this.a=null,Em.call(this,t);var e=this.j||new ke([this.g]);return this.b(new Cm("translateend",e,t.coordinate)),!0}return!1}function Am(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 ke([this.g])).forEach(function(t){var e=t.V();e.translate(o,i),t.Ra(e)}),this.a=t,this.b(new Cm("translating",e,t)))}function Em(t){var e=t.map.a;Tm(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 Tm(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 jm(t,e){var o=t.v;t=t.c(),o&&t||(o=o||e).a.classList.remove("ol-grab","ol-grabbing")}function Cm(t,e,o){Ae.call(this,t),this.features=e,this.coordinate=o}function Lm(t){var e=ut({},t=t||{});delete e.gradient,delete e.radius,delete e.blur,delete e.shadow,delete e.weight,db.call(this,e),this.j=null,this.R=void 0!==t.shadow?t.shadow:250,this.I=void 0,this.B=null,be(this,Ie(Nm),this.Bl,this),this.pj(t.gradient?t.gradient:Rm),this.jj(void 0!==t.blur?t.blur:15),this.Uc(void 0!==t.radius?t.radius:8),be(this,Ie(Im),this.cg,this),be(this,Ie(Fm),this.cg,this),this.cg();var o=t.weight?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 Th({image:new Jc({opacity:t,src:this.I})})],this.B[e]=o),o}.bind(this)),this.set(vb,null),be(this,"render",this.Sl,this)}i(bm,$r),(Eu=bm.prototype).yb=function(t,e){e=void 0===e||e;var o,i=B(t),r=t.V();!r||(o=this.fa[r.U()])&&(this.T[i]=r.G(Z()),o.call(this,t,r)),e&&(this.B[i]=be(t,"change",this.Ln,this))},Eu.Ak=function(t){this.yb(t)},Eu.Bk=function(t){this.Gb(t)},Eu.ui=function(t){var e;t instanceof Tb?e=t.feature:t instanceof Ge&&(e=t.element),this.yb(e)},Eu.vi=function(t){var e;t instanceof Tb?e=t.feature:t instanceof Ge&&(e=t.element),this.Gb(e)},Eu.Ln=function(t){var e;t=t.target,this.D?(e=B(t))in this.u||(this.u[e]=t):this.Dj(t)},Eu.Gb=function(e,t){t=void 0===t||t;var o=B(e),i=this.T[o];if(i){var r=this.a,n=[];for(gp(r,i,function(t){e===t.feature&&n.push(t)}),i=n.length-1;0<=i;--i)r.remove(n[i])}t&&(xe(this.B[o]),delete this.B[o])},Eu.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(xe),i.length=0,e.forEach(this.Bk,this)),$r.prototype.setMap.call(this,t),t&&(this.j?i.push(be(this.j,"add",this.ui,this),be(this.j,"remove",this.vi,this)):this.l&&i.push(be(this.l,"addfeature",this.ui,this),be(this.l,"removefeature",this.vi,this)),e.forEach(this.Ak,this))},Eu.Xc=Gi,Eu.Dj=function(t){this.Gb(t,!1),this.yb(t,!1)},Eu.Mn=function(t,e){for(var o=0,i=(e=Pr(e).X()[0]).length-1;o<i;++o){var r=e.slice(o,o+2),n={feature:t,la:r};this.a.Ca(A(r),n)}},Eu.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])}},Eu.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(A(r),n)}},Eu.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(A(a),p)}},Eu.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)}},Eu.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(A(l),u)}},Eu.Rn=function(t,e){var o=e.X();t={feature:t,la:[o,o]},this.a.Ca(e.G(),t)},Eu.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(A(a),p)}},i(Sm,$r),Sm.prototype.B=function(){return this.l},Sm.prototype.I=function(t){this.l=t},Sm.prototype.setMap=function(t){var e=this.v;$r.prototype.setMap.call(this,t),jm(this,e)},Sm.prototype.u=function(){jm(this,null)},i(Cm,Ae),i(Lm,db);var Rm=["#00f","#0ff","#0f0","#ff0","#f00"];(Eu=Lm.prototype).uh=function(){return this.get(Im)},Eu.Bh=function(){return this.get(Nm)},Eu.yi=function(){return this.get(Fm)},Eu.Bl=function(){for(var t=this.Bh(),e=qe(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},Eu.cg=function(){var t=this.yi(),e=this.uh(),o=t+e+1,i=2*o;(i=qe(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()},Eu.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)},Eu.jj=function(t){this.set(Im,t)},Eu.pj=function(t){this.set(Nm,t)},Eu.Uc=function(t){this.set(Fm,t)};var Im="blur",Nm="gradient",Fm="radius";function km(t){Qv.call(this,t),this.v=qn(),this.j=null}function Dm(t){km.call(this,t),this.M=null,this.c=qn()}function Om(t,e,o,i){var r=Ht(o,e,t);return o=Dt(e,i,o),void 0!==(e=e.sc())&&(o*=e),void 0!==(e=t.sc())&&(o/=e),t=Dt(t,o,r)/o,isFinite(t)&&0<t&&(o/=t),o}function Um(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 Gm(t,e,g,d,o,v,i,r,n,s,a){var b=qe(Math.round(g*t),Math.round(g*e));if(!n.length)return b.canvas;b.scale(g,g);var m=Z();n.forEach(function(t){Y(m,t.extent)});var w=qe(Math.round(g*st(m)/d),Math.round(g*ot(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,st(t.extent)*p,ot(t.extent)*p)});var x=rt(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=Um(n=(t+p+l)/3,s=(a+h+u)/3,t,a),p=Um(n,s,p,h),l=Um(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 Bm(t,e,o,i,r){this.i=t,this.f=e;var n={},s=Zt(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()&&st(i)==st(this.i.G()),this.b=this.i.G()?st(this.i.G()):null,this.j=this.f.G()?st(this.f.G()):null,t=rt(o),e=nt(o),i=Q(o),o=$(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=A([s,a,p,h]),c=e.b?st(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=A([o,i,r,n]),g|=.25<st(d)/e.j),!y&&e.i.c&&c&&(g|=.25<c))}if(g||!e.g||at(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))return void(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)));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 Xm(t){var e=Z();return t.c.forEach(function(t){t=t.source,H(e,t[0]),H(e,t[1]),H(e,t[2])}),e}function Vm(t,e,o,i,r,n){this.v=e,this.l=t.G();var s=(a=e.G())?it(o,a):o,a=Om(t,e,tt(s),i);this.j=new Bm(t,e,s,this.l,.5*a),this.c=i,this.i=o,t=Xm(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),nv.call(this,o,i,this.o,r,n)}function Wm(t){mb.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 Zm(t,e){return t.C&&(e=t.C[b(t.C,e,0)]),e}function Km(t,e){t.Y().src=e}function zm(t,e){Ae.call(this,t),this.image=e}i(km,Qv),km.prototype.S=function(t,e,o){eb(this,"precompose",o,t,void 0);var i,r,n,s=this.Y();s&&((i=void 0!==(r=e.extent)&&!N(r,t.extent)&&at(r,t.extent))&&tb(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)},km.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)})},km.prototype.u=function(t,e,o,i){if(this.Y()){if(this.a.ha().Ea!==w)return Qv.prototype.u.apply(this,arguments);var r=ts(this.v,t.slice());if(Ni(r,e.viewState.resolution/this.f),this.j||(this.j=qe(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])return o.call(i,this.a,r)}},i(Dm,km),Dm.prototype.Y=function(){return this.M?this.M.Y():null},Dm.prototype.C=function(){return this.c},Dm.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=it(l,e.extent)),h[0]||h[1]||pt(l)||(e=p.Y(l,a,i,n.projection))&&zv(this,e)&&(this.M=e),this.M&&(h=(e=this.M).G(),o=i*(l=e.resolution)/(a*(n=e.a)),h=rs(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),rs(this.v,i*r[0]/2-h[4],i*r[1]/2-h[5],i/a,-i/a,0,-s[0],-s[1]),qv(t.attributions,e.f),Jv(t,p),this.f=a*i/n),!!this.M},i(Vm,nv),Vm.prototype.ka=function(){1==this.state&&(xe(this.ee),this.ee=null),nv.prototype.ka.call(this)},Vm.prototype.Y=function(){return this.g},Vm.prototype.de=function(){var t=this.Hb.getState();2==t&&(this.g=Gm(st(this.i)/this.c,ot(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()},Vm.prototype.load=function(){var t;0==this.state&&(this.state=1,this.s(),2==(t=this.Hb.getState())||3==t?this.de():(this.ee=be(this.Hb,"change",function(){var t=this.Hb.getState();2!=t&&3!=t||(xe(this.ee),this.ee=null,this.de())},this),this.Hb.load()))},i(Wm,mb),Wm.prototype.Y=function(t,e,o,i){var r=this.c;if(r&&i&&!Wt(r,i)){if(this.a){if(this.fa==this.i&&Wt(this.a.v,i)&&this.a.resolution==e&&this.a.a==o&&z(this.a.G(),t))return this.a;Pe(this.a),this.a=null}return this.a=new Vm(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 r&&(i=r),this.Jc(t,e,o,i)},Wm.prototype.o=function(t){switch((t=t.target).getState()){case 1:this.b(new zm(Ym,t));break;case 2:this.b(new zm(Hm,t));break;case 3:this.b(new zm(qm,t))}},i(zm,Ae);var Ym="imageloadstart",Hm="imageloadend",qm="imageloaderror";function Jm(t){Wm.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 _m(t){this.f=t.source,this.$a=qn(),this.g=qe(),this.l=[0,0],this.Sa=null==t.renderBuffer?100:t.renderBuffer,this.B=null,Jm.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),be(this.f,"change",this.ro,this)}function $m(t,e){fb.call(this,t,e),this.o=this.f=this.M=null}function Qm(t){Zn.call(this,t||{})}function tw(t){km.call(this,t),this.c=null===this.c?null:qe(),this.o=null,this.g=[],this.l=Z(),this.va=new V(0,0,0,0),this.B=qn(),this.T=0}function ew(t,e){return e=e.getState(),t=t.a.kd(),2==e||4==e||3==e&&!t}function ow(){this.b="precision mediump float;varying vec2 a;uniform sampler2D e;void main(void){gl_FragColor=texture2D(e,a);}"}i(Jm,Wm),Jm.prototype.Jc=function(t,e,o,i){e=Zm(this,e);var r=this.R;return r&&this.T==this.i&&r.resolution==e&&r.a==o&&N(r.G(),t)||(ht(t=t.slice(),this.va),(i=this.pa(t,e,o,[st(t)/e*o,ot(t)/e*o],i))&&(r=new av(t,e,o,this.j,i)),this.R=r,this.T=this.i),r},i(_m,Jm),(Eu=_m.prototype).tk=function(t,n,s,e,o){var a=new Gv(.5*n/s,t,n,this.f.T,this.Sa);this.f.Yd(t,n,o);var i,r,p,h,l=!1;return this.f.$b(t,function(t){var e,o;if(!(e=l))if((e=t.Lc())?o=e.call(t,n):this.v&&(o=this.v(t,n)),o){var i,r=!1;for(Array.isArray(o)||(o=[o]),e=0,i=o.length;e<i;++e)r=nb(a,t,o[e],rb(n,s),this.qo,this)||r;e=r}else e=!1;l=e},this),Vv(a),l?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=tt(t),h=e,p=s/(p=n),t=rs(i.$a,h[0]/2,h[1]/2,p,-p,0,-r[0],-r[1]),a.La(this.g,s,t,0,{}),this.B=a,this.g.canvas)},Eu.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=B(t).toString();if(!(e in s))return s[e]=!0,n(t)})}},Eu.no=function(){return this.f},Eu.oo=function(){return this.I},Eu.po=function(){return this.v},Eu.qo=function(){this.s()},Eu.ro=function(){xb(this,this.f.getState())},Eu.Ii=function(t){this.I=void 0!==t?t:Lh,this.v=t?jh(this.I):void 0,this.s()},i($m,fb),$m.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)})},$m.prototype.ng=function(t,e){var o,i,r,n,s,a,p,h,l,u,c=this.c.i,f=t.pixelRatio,y=t.viewState,g=y.center,d=y.resolution,v=y.rotation,b=this.M,m=this.Ib,w=this.a.ha(),x=t.viewHints,S=t.extent;return void 0!==e.extent&&(S=it(S,e.extent)),x[0]||x[1]||pt(S)||(e=w.Y(S,d,f,y.projection))&&zv(this,e)&&(o=this,i=(i=b=e).Y(),m=ha(o.c.i,i),this.Ib&&t.postRenderFunctions.push(function(t,e){t.isContextLost()||t.deleteTexture(e)}.bind(null,c,this.Ib))),b&&(c=this.c.f.j,r=this,n=c.width,s=c.height,a=f,p=g,h=d,l=v,u=b.G(),n*=h,s*=h,Jn(r=r.S),os(r,2*a/n,2*a/s),es(r,-l),is(r,u[0]-p[0],u[1]-p[1]),os(r,(u[2]-u[0])/2,(u[3]-u[1])/2),is(r,1,1),this.o=null,Jn(f=this.v),os(f,1,-1),is(f,0,-1),this.M=b,this.Ib=m,qv(t.attributions,b.f),Jv(t,w)),!!b},$m.prototype.Ue=function(t,e){return void 0!==this.Ea(t,e,0,Ui,this)},$m.prototype.lg=function(t,e,o,i){if(this.M&&this.M.Y())if(this.a.ha()instanceof _m){var r=ts(e.pixelToCoordinateTransform,t.slice());if(this.Ea(r,e,0,Ui,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,is(e=qn(),-1,-1),os(e,2/n[0],2/n[1]),is(e,0,n[1]),os(e,1,-1),n=ns(this.S.slice()),is(s=qn(),0,r[1]),os(s,1,-1),os(s,r[0]/2,r[1]/2),is(s,1,1),_n(s,n),_n(s,e),this.o=s),!((t=ts(this.o,t.slice()))[0]<0||t[0]>r[0]||t[1]<0||t[1]>r[1])&&(this.f||(this.f=qe(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)}},i(Qm,Zn),Qm.prototype.Fd=function(t){var e=null,o=t.U();return"canvas"===o?e=new Dm(this):"webgl"===o&&(e=new $m(t,this)),e},i(tw,km),tw.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(void 0!==e.extent&&(y=it(y,e.extent)),pt(y))return!1;var g=oe(l,y,c),d=l.Pc(u),v=l.Da(u),b=W(l.gb(u),l.j),d=k(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]={};for(var m,w=this.Nf(p,r,b),x=this.l,S=this.va,M=!1,P=g.ca;P<=g.$;++P)for(m=g.da;m<=g.ia;++m){var A=p.Nc(u,P,m,o,r);3!=A.getState()||this.a.kd()||lv(A,2),ew(this,A)||(A=hv(A)),ew(this,A)?2==A.getState()&&(b[u][A.ta.toString()]=A,M||-1!=this.g.indexOf(A)||(M=!0)):te(l,A.ta,w,S,x)||(A=ee(l,A.ta,S,x))&&w(u+1,A)}if(P=(P=t.viewHints)[0]||P[1],!(this.f&&16<Date.now()-t.time&&P||!M&&this.o&&N(this.o,y)&&this.mf==h&&f==this.R&&(P||c*o/v*f==this.f))){(P=this.c)&&(m=p.Xd(u,o,r),A=Math.round((g.$-g.ca+1)*m[0]/f),m=Math.round((g.ia-g.da+1)*m[1]/f),(M=P.canvas).width!=A||M.height!=m?(this.R=f,M.width=A,M.height=m):(P.clearRect(0,0,A,m),f=this.R)),this.g.length=0,(M=Object.keys(b).map(Number)).sort(G);for(var S=0,E=M.length;S<E;++S){P=M[S],w=p.Xd(P,o,r);var T,j=(A=l.Da(P))/c,C=v*p.Wf(r),L=b[P];for(T in L){A=L[T],P=((m=l.Aa(A.ta,x))[0]-d[0])/c*v/f,m=(d[3]-m[3])/c*v/f;var R=w[0]*j/f,I=w[1]*j/f;this.Of(A,t,e,P,m,R,I,C),this.g.push(A)}}this.mf=h,this.f=c*o/v*f,this.o=d}return e=this.f/n,e=rs(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),rs(this.v,o*i[0]/2-e[4],o*i[1]/2-e[5],o/n,-o/n,0,-s[0],-s[1]),_v(t.usedTiles,p,u,g),$v(t,p,l,o,r,y,u,a.Ud()),Hv(t,p),Jv(t,p),0<this.g.length},tw.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)},tw.prototype.Y=function(){var t=this.c;return t?t.canvas:null},tw.prototype.C=function(){return this.B},i(ow,Ls);var iw=new ow;function rw(){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;}"}i(rw,Rs);var nw=new rw;function sw(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 aw(t,e){fb.call(this,t,e),this.I=iw,this.fa=nw,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 pw(t){var e=ut({},t=t||{});delete e.preload,delete e.useInterimTilesOnError,Zn.call(this,e),this.zi(void 0!==t.preload?t.preload:0),this.Ai(void 0===t.useInterimTilesOnError||t.useInterimTilesOnError)}function hw(t){this.c=null,tw.call(this,t),this.I=!1,this.D=qn(),this.T="vector"==t.j?1:0}i(aw,fb),(Eu=aw.prototype).ka=function(){ia(this.c.f,this.B),fb.prototype.ka.call(this)},Eu.Nf=function(e,i,r){var n=this.c;return function(o,t){return Sw(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})}},Eu.mg=function(){fb.prototype.mg.call(this),this.f=null},Eu.ng=function(t,e,o){var i,r,n,s,a,p,h,l,u=this.c,c=o.b,f=t.viewState,y=f.projection,g=this.a,d=g.ha(),v=d.Ta(y),b=v.tc(f.resolution),m=v.Da(b),w=d.Xd(b,t.pixelRatio,y),x=w[0]/W(v.gb(b),this.R)[0],S=m/x,M=d.nb(x)*d.Wf(y),P=f.center,A=t.extent,E=oe(v,A,m);if(this.o&&(h=this.o,l=E,h.ca==l.ca&&h.da==l.da&&h.$==l.$&&h.ia==l.ia)&&this.l==d.i)S=this.D;else{var T=[E.$-E.ca+1,E.ia-E.da+1],T=S*(I=(X(0<(p=Math.max(T[0]*w[0],T[1]*w[1])),29),Math.pow(2,Math.ceil(Math.log(p)/Math.LN2)))),j=v.Pc(b),S=[N=j[0]+E.ca*w[0]*S,S=j[1]+E.da*w[1]*S,N+T,S+T];r=t,n=I,a=(i=this).c.i,void 0===i.j||i.j!=n?(r.postRenderFunctions.push(function(t,e,o){t.isContextLost()||(t.deleteFramebuffer(e),t.deleteTexture(o))}.bind(null,a,i.g,i.Ib)),r=pa(a,n,n),s=a.createFramebuffer(),a.bindFramebuffer(36160,s),a.framebufferTexture2D(36160,36064,3553,r,0),i.Ib=r,i.g=s,i.j=n):a.bindFramebuffer(36160,i.g),c.viewport(0,0,I,I),c.clearColor(0,0,0,0),c.clear(16384),c.disable(3042),I=sa(o,this.I,this.fa),o.Qc(I),this.f||(this.f=new sw(c,I)),oa(o,34962,this.B),c.enableVertexAttribArray(this.f.b),c.vertexAttribPointer(this.f.b,2,5126,!1,16,0),c.enableVertexAttribArray(this.f.a),c.vertexAttribPointer(this.f.a,2,5126,!1,16,8),c.uniform1i(this.f.i,0),(o={})[b]={};for(var C,L=this.Nf(d,y,o),R=g.kd(),I=!0,N=Z(),F=new V(0,0,0,0),k=E.ca;k<=E.$;++k)for(C=E.da;C<=E.ia;++C){if(j=d.Nc(b,k,C,x,y),void 0!==e.extent){var D=v.Aa(j.ta,N);if(!at(D,e.extent))continue}if((D=2==(D=j.getState())||4==D||3==D&&!R)||(j=hv(j)),2==(D=j.getState())){if(u.a.b.hasOwnProperty(j.bb())){o[b][j.ta.toString()]=j;continue}}else if(4==D||3==D&&!R)continue;I=!1,(D=te(v,j.ta,L,F,N))||(j=ee(v,j.ta,F,N))&&L(b+1,j)}(e=Object.keys(o).map(Number)).sort(G);for(var O,L=new Float32Array(4),R=0,F=e.length;R<F;++R)for(O in k=o[e[R]])j=k[O],D=v.Aa(j.ta,N),L[0]=2*(D[2]-D[0])/T,L[1]=2*(D[3]-D[1])/T,L[2]=2*(D[0]-S[0])/T-1,L[3]=2*(D[1]-S[1])/T-1,c.uniform4fv(this.f.c,L),Bp(u,j,w,M*x),c.drawArrays(5,0,4);I?(this.o=E,this.D=S,this.l=d.i):(this.D=this.o=null,this.l=-1,t.animate=!0)}_v(t.usedTiles,d,b,E);var U=u.j;return $v(t,d,v,x,y,A,b,g.Ud(),function(t){2!=t.getState()||u.a.b.hasOwnProperty(t.bb())||t.bb()in U.a||U.f([t,re(v,t.ta),v.Da(t.ta[0]),w,M*x])},this),Hv(t,d),Jv(t,d),Jn(c=this.v),is(c,(Math.round(P[0]/m)*m-S[0])/(S[2]-S[0]),(Math.round(P[1]/m)*m-S[1])/(S[3]-S[1])),f.rotation&&es(c,f.rotation),os(c,t.size[0]*f.resolution/(S[2]-S[0]),t.size[1]*f.resolution/(S[3]-S[1])),is(c,-.5,-.5),!0},Eu.lg=function(t,e,o,i){if(this.g){t=[(t=ts(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)}},i(pw,Zn),(Eu=pw.prototype).Fd=function(t){var e=null,o=t.U();return"canvas"===o?e=new tw(this):"webgl"===o&&(e=new aw(t,this)),e},Eu.Ud=function(){return this.get("preload")},Eu.zi=function(t){this.set("preload",t)},Eu.kd=function(){return this.get("useInterimTilesOnError")},Eu.Ai=function(t){this.set("useInterimTilesOnError",t)},i(hw,tw);var lw={image:Ts,hybrid:["Polygon","LineString"]},uw={hybrid:["Image","Text"],vector:Ts};function cw(t){var e=ut({},t=t||{});delete e.preload,delete e.useInterimTilesOnError,db.call(this,e),this.Bi(t.preload?t.preload:0),this.Ci(!t.useInterimTilesOnError||t.useInterimTilesOnError),X(null==t.renderMode||"image"==t.renderMode||"hybrid"==t.renderMode||"vector"==t.renderMode,28),this.j=t.renderMode||"hybrid"}function fw(t,e,o,i){function r(){delete window[s],n.parentNode.removeChild(n)}var n=document.createElement("script"),s="olc_"+B(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 yw(t,e,o,i,r,n,s,a,p,h,l){if(pv.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(),_(n=a?it(n,a):n))if((a=t.G())&&(r=r?it(r,a):a),i=Om(t,o,tt(n),i.Da(this.o[0])),!isFinite(i)||i<=0)this.state=4;else if(this.l=new Bm(t,o,n,r,i*(void 0!==h?h:.5)),this.l.c.length)if(this.g=e.tc(i),o=Xm(this.l),r&&(t.i?(o[1]=x(o[1],r[1],r[3]),o[3]=x(o[3],r[1],r[3])):o=it(o,r)),_(o)){for(e=(t=ie(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 gw(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 X(t,55),(t.ia-t.da+1+e[2]).toString()})}}(t[r],e);return dw(i)}function dw(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 vw(){}function bw(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 mw(t){Up.call(this),this.highWaterMark=void 0!==t?t:2048}function ww(t){return t.c>t.highWaterMark}function xw(t){mb.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 mw(t.cacheSize),this.o=[0,0],this.uc=""}function Sw(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 Mw(t,e){t.uc!==e&&(t.uc=e,t.s())}function Pw(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=re(o,i),e=R(n=le(n),t)?i:(i=st(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())?ie(o,r,i):o.a?o.a[i]:null)||l(o,n,t)))?e:null}function Aw(t,e){Ae.call(this,t),this.tile=e}function Ew(t){xw.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):vw,this.urls=null,t.urls?this.eb(t.urls):t.url&&this.jb(t.url),t.tileUrlFunction&&this.cb(t.tileUrlFunction)}function Tw(t){Ew.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?t.tileLoadFunction:Lw,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?t.tileClass:uv,this.g={},this.v={},this.Sa=t.reprojectionErrorThreshold,this.I=!1}function jw(t,e,o,i,r,n,s){return r=(o=Pw(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,be(r,"change",t.Li,t),r}function Cw(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=jw(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}1!=e.getState()&&0==e.getState()?o.i=e.i:o=e,e=o.i}while(e)}t.a.replace(s,h)}}else h=jw(t,e,o,i,r,n,a),t.a.set(s,h);return h}function Lw(t,e){t.Y().src=e}function Rw(t){this.B=void 0!==t.hidpi&&t.hidpi,Tw.call(this,{cacheSize:t.cacheSize,crossOrigin:"anonymous",opaque:!0,projection:Vt("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,fw("https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+this.l+"?uriScheme=https&include=ImageryProviders&key="+this.f,this.pa.bind(this),void 0,"jsonp")}(Eu=hw.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=qe()),this.c&&"vector"==o&&(this.c=null)),this.pa=i,tw.prototype.sd.apply(this,arguments)},Eu.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(vb)||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=it(E=E.Aa(p.v),S=x.Aa(S));for("tile-pixels"==M.a?(b=x=w.nb(),A=ts(A=rs(this.D,0,0,1/A*b,-1/A*b,0,-S[0],-S[3]),[E[0],E[3]]).concat(ts(A,[E[2],E[1]]))):(x=P,A=E,Wt(u,M)||(m=!0,v.ig(u))),y.Nd=!1,w=new Gv(0,A,x,w.l,h.c),A=rb(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){Array.isArray(T)||(T=[T]);var j=A,C=w;if(T){var L=!1;if(Array.isArray(T))for(var R=0,I=T.length;R<I;++R)L=nb(C,b,T[R],j,this.Fi,this)||L;else L=nb(C,b,T,j,this.Fi,this)||L;b=L}else b=!1;this.I=this.I||b,y.Nd=y.Nd||b}}Vv(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=lw[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=qe()),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=Jn(this.D),"tile-pixels"==M.a.a?(m=u.Aa(w,this.l),os(P,A=l/f*(w=u.Da(w[0]))/c,A),is(P,Math.round((m[0]-g[0])/w*f),Math.round((g[3]-m[3])/w*f))):(os(P,m,-m),is(P,-g[0],-g[3])),M.c[p.ta.toString()].La(y,l,P,0,{},h);tw.prototype.Of.apply(this,arguments)}},Eu.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=E(g=e.Aa(g,this.l),o*n,d);if(R(d,t)){g=0;for(var v=y.a.length;g<v;++g)var b,m="tile-pixels"===(w=y.c[y.a[g]]).a.a?(b=w.ta,m=rt(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=B(t).toString();if(!(e in p))return p[e]=!0,i.call(r,t,a)})}}return x},Eu.Fi=function(){Yv(this)},Eu.ef=function(t,e,o){var i=(l=this.a).ha(),r=uw[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(is(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=rt(P),C=C.size,rs(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)):ob(this,C,0),v*l/T,0),T=Wv(A=A.c[d.toString()],C),t.save(),t.globalAlpha=o.opacity,ds(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)}}tw.prototype.ef.apply(this,arguments)},i(cw,db),(Eu=cw.prototype).Fd=function(t){var e=null;return"canvas"===t.U()&&(e=new hw(this)),e},Eu.Ud=function(){return this.get("preload")},Eu.kd=function(){return this.get("useInterimTilesOnError")},Eu.Bi=function(t){this.set("preload",t)},Eu.Ci=function(t){this.set("useInterimTilesOnError",t)},i(yw,pv),yw.prototype.ka=function(){1==this.state&&(this.yd.forEach(xe),this.yd=null),pv.prototype.ka.call(this)},yw.prototype.Y=function(){return this.v},yw.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=Gm(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()},yw.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=be(e,"change",function(){var t=e.getState();2!=t&&3!=t&&4!=t||(xe(o),--i||(this.yd.forEach(xe),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))},i(mw,Up),mw.prototype.fd=function(t){for(var e,o,i;ww(this);){if((e=(i=(o=this.a.Yc).ta[0].toString())in t)&&(o=o.ta,e=l(t[i],o[1],o[2])),e)break;Pe(this.pop())}},i(xw,mb),(Eu=xw.prototype).Ki=function(){return ww(this.a)},Eu.fd=function(t,e){(t=this.Wd(t))&&t.fd(e)},Eu.Wf=function(){return 0},Eu.Sb=function(t,e,o){return t+"/"+e+"/"+o},Eu.Zf=function(){return this.va},Eu.ab=function(){return this.tileGrid},Eu.Ta=function(t){return this.tileGrid?this.tileGrid:se(t)},Eu.Wd=function(t){var e=this.c;return e&&!Wt(e,t)?null:this.a},Eu.nb=function(){return this.$a},Eu.Xd=function(t,e,o){return o=this.Ta(o),e=this.nb(e),t=W(o.gb(t),this.o),1==e?t:P(t,e,this.o)},Eu.sa=function(){this.a.clear(),this.s()},Eu.Ug=w,i(Aw,Ae),i(Ew,xw),(Eu=Ew.prototype).pb=function(){return this.tileLoadFunction},Eu.qb=function(){return this.tileUrlFunction},Eu.rb=function(){return this.urls},Eu.Li=function(t){switch((t=t.target).getState()){case 1:this.b(new Aw("tileloadstart",t));break;case 2:this.b(new Aw("tileloadend",t));break;case 3:this.b(new Aw("tileloaderror",t))}},Eu.vb=function(t){this.a.clear(),this.tileLoadFunction=t,this.s()},Eu.cb=function(t,e){this.tileUrlFunction=t,void 0!==e?Mw(this,e):this.s()},Eu.jb=function(t){var e=this.urls=bw(t);this.cb(this.Fc?this.Fc.bind(this):gw(e,this.tileGrid),t)},Eu.eb=function(t){var e=(this.urls=t).join("\n");this.cb(this.Fc?this.Fc.bind(this):gw(t,this.tileGrid),e)},Eu.Ug=function(t,e,o){t=this.Sb(t,e,o),this.a.b.hasOwnProperty(t)&&this.a.get(t)},i(Tw,Ew),(Eu=Tw.prototype).Ki=function(){if(ww(this.a))return!0;for(var t in this.g)if(ww(this.g[t]))return!0;return!1},Eu.fd=function(t,e){for(var o in t=this.Wd(t),this.a.fd(this.a==t?e:{}),this.g){var i=this.g[o];i.fd(i==t?e:{})}},Eu.Wf=function(t){return this.c&&t&&!Wt(this.c,t)?0:this.Xf()},Eu.Xf=function(){return 0},Eu.Zf=function(t){return!(this.c&&t&&!Wt(this.c,t))&&Ew.prototype.Zf.call(this,t)},Eu.Ta=function(t){var e=this.c;return!this.tileGrid||e&&!Wt(e,t)?((e=B(t).toString())in this.v||(this.v[e]=se(t)),this.v[e]):this.tileGrid},Eu.Wd=function(t){var e=this.c;return!e||Wt(e,t)?this.a:((t=B(t).toString())in this.g||(this.g[t]=new mw(this.a.highWaterMark)),this.g[t])},Eu.Nc=function(t,e,o,i,r){if(this.c&&r&&!Wt(this.c,r)){var n,s=this.Wd(r);if(o=[t,e,o],t=this.Sb.apply(this,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=Pw(this,o,r);return(i=new yw(a,p,r,h,o,l,this.nb(i),this.Xf(),function(t,e,o,i){return Cw(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 Cw(this,t,e,o,i,r)},Eu.Pb=function(t){if(this.I!=t){for(var e in this.I=t,this.g)this.g[e].clear();this.s()}},Eu.Qb=function(t,e){(t=Vt(t))&&((t=B(t).toString())in this.v||(this.v[t]=e))},i(Rw,Tw);var Iw=new ue({html:'<a class="ol-attribution-bing-tos" href="http://www.microsoft.com/maps/product/terms.html">Terms of Use</a>'});function Nw(t){var e=void 0!==(t=t||{}).projection?t.projection:"EPSG:3857",o=void 0!==t.tileGrid?t.tileGrid:ae({extent:le(e),maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});Tw.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 Fw(t){this.C=t.account,this.B=t.map||"",this.f=t.config||{},this.l={},Nw.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}),kw(this)}function kw(t){var e,o,i=JSON.stringify(t.f);t.l[i]?Dw(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 Dw(t,e){t.jb("https://"+e.cdn_url.https+"/"+t.C+"/api/v1/map/"+e.layergroupid+"/{z}/{x}/{y}.png")}function Ow(t){Sb.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 X((t=t.V())instanceof hr,10),t},this.source=t.source,this.source.J("change",Ow.prototype.sa,this)}function Uw(t){if(void 0!==t.resolution){t.features.length=0;for(var e=Z(),o=t.distance*t.resolution,i=t.source.Xe(),r={},n=0,s=i.length;n<s;n++){var a=i[n];B(a).toString()in r||!(a=t.geometryFunction(a))||(O(a=a.X(),e),E(e,o,e),a=(a=t.source.Uf(e)).filter(function(t){return!((t=B(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?Ti(o,r.X()):e.splice(i,1)}return Ni(o,1/e.length),(t=new Nh(new hr(o))).set("features",e),t}(t,a)))}}}function Gw(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 Bw(t){Wm.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?t.imageLoadFunction:Km,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 Xw(t){Wm.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?t.imageLoadFunction:Km,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 Vw(t){var e=t.imageExtent,o=void 0!==t.crossOrigin?t.crossOrigin:null,i=t.imageLoadFunction?t.imageLoadFunction:Km;Wm.call(this,{attributions:t.attributions,logo:t.logo,projection:Vt(t.projection)}),this.M=new sv(e,void 0,1,this.j,t.url,o,i),this.f=t.imageSize?t.imageSize:null,be(this.M,"change",this.o,this)}function Ww(t){Wm.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?t.imageLoadFunction:Km,this.f=t.params||{},this.l=!0,zw(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}Rw.prototype.T=function(){return this.f},Rw.prototype.fa=function(){return this.l},Rw.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?xb(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=ae({extent:t=le(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=dw(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 _t(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=Kt(Vt("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=lt([(t=t.bbox)[1],t[0],t[3],t[2]],p),e=o;e<=i;++e){var r=e.toString(),o=ie(a,t,e);r in n?n[r].push(o):n[r]=[o]}}),new ue({html:e,tileRanges:n})})).push(Iw),this.ua(t)),this.D=e,xb(this,"ready"))},i(Nw,Tw),i(Fw,Nw),(Eu=Fw.prototype).Kk=function(){return this.f},Eu.tq=function(t){ut(this.f,t),kw(this)},Eu.Xp=function(t){this.f=t||{},kw(this)},Eu.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 xb(this,"error")}Dw(this,o),this.l[t]=o,xb(this,"ready")}else xb(this,"error")},Eu.Cl=function(){xb(this,"error")},i(Ow,Sb),(Eu=Ow.prototype).$n=function(){return this.distance},Eu.ao=function(){return this.source},Eu.Yd=function(t,e,o){this.source.Yd(t,e,o),e!==this.resolution&&(this.clear(),this.resolution=e,Uw(this),this.cd(this.features))},Eu.Yp=function(t){this.distance=t,this.sa()},Eu.sa=function(){this.clear(),Uw(this),this.cd(this.features),Sb.prototype.sa.call(this)},i(Bw,Wm),(Eu=Bw.prototype).co=function(){return this.v},Eu.Jc=function(t,e,o,i){if(void 0===this.f)return null;e=Zm(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;ut(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*st(t)/2,p=this.B*ot(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(st(t)/a),h=Math.ceil(ot(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&&X(!1,50),r=Gw(n,r),this.M=new sv(t,e,o,this.j,r,this.R,this.g),this.I=this.i,be(this.M,"change",this.o,this),this.M},Eu.bo=function(){return this.g},Eu.eo=function(){return this.f},Eu.fo=function(t){this.M=null,this.g=t,this.s()},Eu.ho=function(t){t!=this.f&&(this.f=t,this.M=null,this.s())},Eu.io=function(t){ut(this.v,t),this.M=null,this.s()},i(Xw,Wm),(Eu=Xw.prototype).ko=function(){return this.g},Eu.Jc=function(t,e,o){e=Zm(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&&ht(t=t.slice(),this.v);var r,n,s,a,p,h,l,u=[st(t)/e*o,ot(t)/e*o];return void 0!==this.I?(i=this.I,r=tt(t),n=this.pa,s=st(t),a=ot(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]},ut(u,this.g),i=Gw(i,u),be(i=new sv(t,e,o,this.j,i,this.R,this.f),"change",this.o,this)):i=null,this.M=i,this.B=this.i,i},Eu.jo=function(){return this.f},Eu.mo=function(t){ut(this.g,t),this.s()},Eu.lo=function(t){this.M=null,this.f=t,this.s()},i(Vw,Wm),Vw.prototype.Jc=function(t){return at(t,this.M.G())?this.M:null},Vw.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(st(i)/(ot(i)/n)))!=o&&(r=(i=qe(i,n)).canvas,i.drawImage(e,0,0,o,n,0,0,r.width,r.height),this.M.Og(r))),Wm.prototype.o.call(this,t)},i(Ww,Wm);var Zw=[101,101];function Kw(t,e,o,i,r,n){if(X(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:X(!1,8)}var s;return n.WIDTH=o[0],n.HEIGHT=o[1],o=r.b,s=t.l&&"ne"==o.substr(0,2)?[e[1],e[0],e[3],e[2]]:e,n.BBOX=s.join(","),Gw(t.g,n)}function zw(t){t.l=0<=Ei(t.f.VERSION||"1.3.0")}function Yw(t){var e=void 0!==(t=t||{}).attributions?t.attributions:[Hw];Nw.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})}(Eu=Ww.prototype).so=function(t,e,o,i){if(void 0!==this.g){var r=et(t,e,0,Zw),n={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.f.LAYERS};return ut(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,Kw(this,r,Zw,1,Vt(o),n)}},Eu.uo=function(){return this.f},Eu.Jc=function(t,e,o,i){if(void 0===this.g)return null;e=Zm(this,e),1==o||this.va&&void 0!==this.T||(o=1);var r=e/o,n=tt(t),s=et(n,r,0,[Math.ceil(st(t)/r),Math.ceil(ot(t)/r)]);return t=et(n,r,0,[Math.ceil(this.I*st(t)/r),Math.ceil(this.I*ot(t)/r)]),(n=this.M)&&this.R==this.i&&n.resolution==e&&n.a==o&&N(n.G(),s)?n:(ut(s={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0},this.f),this.B[0]=Math.round(st(t)/r),this.B[1]=Math.round(ot(t)/r),i=Kw(this,t,this.B,o,i,s),this.M=new sv(t,e,o,this.j,i,this.pa,this.v),this.R=this.i,be(this.M,"change",this.o,this),this.M)},Eu.to=function(){return this.v},Eu.vo=function(){return this.g},Eu.wo=function(t){this.M=null,this.v=t,this.s()},Eu.xo=function(t){t!=this.g&&(this.g=t,this.M=null,this.s())},Eu.yo=function(t){ut(this.f,t),zw(this),this.M=null,this.s()},i(Yw,Nw);var Hw=new ue({html:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors.'});function qw(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 xw?(n=new pw({source:n}),s=new tw(n)):n instanceof Wm&&(n=new Qm({source:n}),s=new Dm(n)),o[r]=s}return o}(t.sources);for(var e=0,o=this.g.length;e<o;++e)be(this.g[e],"change",this.s,this);this.T=new xi(function(){return 1},this.s.bind(this));for(var o={},i=0,r=(e=this.g.map(function(t){return Xn(t.a)})).length;i<r;++i)o[B(e[i].layer)]=e[i];this.f=null,this.I={animate:!1,attributions:{},coordinateToPixelTransform:qn(),extent:null,focus:null,index:0,layerStates:o,layerStatesArray:e,logos:{},pixelRatio:1,pixelToCoordinateTransform:qn(),postRenderFunctions:[],size:[0,0],skippedFeatureUids:{},tileQueue:this.T,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{}},Wm.call(this,{}),t.operation&&this.v(t.operation,t.lib)}Ja.df={},Ja.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){var e;this.Ff=!!t.$l;var 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 l=!0;try{new ImageData(10,10)}catch(t){l=!1}var u=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,i=this.Gf,r=this.qe.length;if(1===r)var n=new Uint8ClampedArray(this.bd[0].buffer),s=this.bd[0].meta;else for(var a=i.inputs[0].data.length,n=new Uint8ClampedArray(a),s=Array(a),a=4*Math.ceil(a/4/r),p=0;p<r;++p){var h=p*a;n.set(new Uint8ClampedArray(this.bd[p].buffer),h),s[p]=this.bd[p].meta}this.Gf=null,this.bd={},i.callback(null,(t=n,e=i.inputs[0].width,o=i.inputs[0].height,l?new ImageData(t,e,o):((e=u.createImageData(e,o)).data.set(t),e)),s),this.dh()},t.default={Af:e},t.Af=e}(Ja.df=Ja.df||{}),i(qw,Wm),qw.prototype.v=function(t,e){this.B=new Ja.df.Af({operation:t,$l:"image"===this.va,rp:1,lib:e,threads:this.Sa}),this.s()},qw.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=ut({},this.I)).viewState=ut({},o.viewState),h=tt(t),o.extent=t.slice(),o.focus=h,o.size[0]=Math.round(st(t)/e),o.size[1]=Math.round(ot(t)/e),(r=o.viewState).center=h,r.projection=i,r.resolution=e,Si((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],r=t,n=t.layerStatesArray[o];if(!(h=h.sd(r,n)?(s=r.size[0],a=r.size[1],!Jw||(p=Jw.canvas).width!==s||p.height!==a?Jw=qe(s,a):Jw.clearRect(0,0,s,a),h.S(r,n,Jw),Jw.getImageData(0,0,s,a)):null))break t;e[o]=h}i={},this.b(new _w($w,t,i)),this.B.pp(e,i,this.pa.bind(this,t))}return this.f},qw.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=qe(Math.round(st(e)/r),Math.round(ot(e)/r)),this.f=new av(e,r,1,this.j,n.canvas)),n.putImageData(o,0,0),this.s(),this.R=this.i,this.b(new _w(Qw,t,i))))};var Jw=null;function _w(t,e,o){Ae.call(this,t),this.extent=e.extent,this.resolution=e.viewState.resolution/e.pixelRatio,this.data=o}i(_w,Ae),qw.prototype.Jc=function(){return null};var $w="beforeoperations",Qw="afteroperations";function tx(t){var e=t.layer.indexOf("-"),e=ix[-1==e?t.layer:t.layer.slice(0,e)],o=ox[t.layer];Nw.call(this,{attributions:ex,cacheSize:t.cacheSize,crossOrigin:"anonymous",maxZoom:null!=t.maxZoom?t.maxZoom:e.maxZoom,minZoom:null!=t.minZoom?t.minZoom: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})}i(tx,Nw);var ex=[new ue({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>.'}),Hw],ox={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}},ix={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:1,maxZoom:16}};function rx(t){Tw.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=Z(),Mw(this,nx(this))}function nx(t){var e,o=0,i=[];for(e in t.f)i[o++]=e+"-"+t.f[e];return i.join("/")}function sx(t){xw.call(this,{opaque:!1,projection:t.projection,tileGrid:t.tileGrid,wrapX:void 0===t.wrapX||t.wrapX})}function ax(t,e,o){pv.call(this,t,2),this.c=e,this.Ia=o,this.a=null}function px(t){var e;this.f=null,Tw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,projection:Vt("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:"loading",tileLoadFunction:t.tileLoadFunction,wrapX:void 0===t.wrapX||t.wrapX}),t.url?t.jsonp?fw(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):X(!1,51)}function hx(t){var e;xw.call(this,{projection:Vt("EPSG:3857"),state:"loading"}),this.v=void 0===t.preemptive||t.preemptive,this.l=vw,this.g=void 0,this.f=t.jsonp||!1,t.url?this.f?fw(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):X(!1,51)}function lx(t,e,o,i,r,n){pv.call(this,t,e),this.o=o,this.a=i,this.v=r,this.c=this.j=this.g=null,this.l=n}function ux(t){var e;0==t.state&&(t.state=1,t.l?fw(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 cx(t){var e=(t=t||{}).params||{};Tw.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="",yx(this),this.fa=Z(),dx(this),Mw(this,gx(this))}function fx(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:X(!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(","),Gw(1==a.length?a[0]:a[L((e[1]<<e[0])+e[2],a.length)],s)}}function yx(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 gx(t){var e,o=0,i=[];for(e in t.f)i[o++]=e+"-"+t.f[e];return i.join("/")}function dx(t){t.l=0<=Ei(t.f.VERSION||"1.3.0")}function vx(t,e,o,i,r,n,s,a,p,h,l,u,c,f){var y,g;pv.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=it(y,a.Aa(t));.5<=st(o)/g&&.5<=ot(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(be(e,"change",f))),e.j++,this.a.push(o))}.bind(this)))}function bx(t,e){t.Pg(el(e,t.o,t.$o.bind(t),t.Zo.bind(t)))}function mx(t,e,o,i,r){pv.call(this,t,e),this.j=0,this.o=i,this.g=null,this.c={},this.u=r,this.l=o}function wx(t){Ew.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?t.tileLoadFunction:bx,tileUrlFunction:t.tileUrlFunction,tilePixelRatio:t.tilePixelRatio,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX}),this.g=t.format?t.format:null,this.v={},this.l=null==t.overlaps||t.overlaps,this.tileClass=t.tileClass?t.tileClass:mx,this.f={},this.tileGrid||(this.tileGrid=this.Ta(Vt(t.projection||"EPSG:3857")))}function xx(t){this.o=t.matrixIds,$t.call(this,{extent:t.extent,origin:t.origin,origins:t.origins,resolutions:t.resolutions,tileSize:t.tileSize,tileSizes:t.tileSizes,sizes:t.sizes})}function Sx(t,e,o){var r=[],n=[],s=[],a=[],p=[],h=void 0!==o?o:[],l=(o=Vt(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=!(0<h.length)||v(h,function(t){return e.Identifier==t.TileMatrix});i&&(n.push(e.Identifier),i=28e-5*e.ScaleDenominator/l,t=e.TileWidth,o=e.TileHeight,u?s.push([e.TopLeftCorner[1],e.TopLeftCorner[0]]):s.push(e.TopLeftCorner),r.push(i),a.push(t==o?t:[t,o]),p.push([e.MatrixWidth,-e.MatrixHeight]))}),new xx({extent:e,origins:s,resolutions:r,matrixIds:n,tileSizes:a,sizes:p})}function Mx(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?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=bw(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&&ut(o,{Service:"WMTS",Request:"GetTile",Version:this.fa,Format:this.C});var n=this.f,s=e&&0<e.length?dw(e.map(function(e){return e="KVP"==i?Gw(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 ut(o,n),t=e,"KVP"==i?Gw(t,o):t.replace(/\{(\w+?)\}/g,function(t,e){return o[e]})}}})):vw;Tw.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}),Mw(this,Px(this))}function Px(t){var e,o=0,i=[];for(e in t.f)i[o++]=e+"-"+t.f[e];return i.join("/")}function Ax(t){var e=(t=t||{}).size,o=e[0],i=e[1],n=[],r=256;switch(void 0!==t.tierSizeCalculation?t.tierSizeCalculation:Tx){case Tx:for(;r<o||r<i;)n.push([Math.ceil(o/r),Math.ceil(i/r)]),r+=r;break;case jx:for(;r<o||r<i;)n.push([Math.ceil(o/r),Math.ceil(i/r)]),o>>=1,i>>=1;break;default:X(!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 $t({extent:e=[0,-e[1],e[0],0],origin:rt(e),resolutions:r}),(r=t.url)&&-1==r.indexOf("{TileGroup}")&&(r+="{TileGroup}/{z}-{x}-{y}.jpg"),r=dw((r=bw(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]})}}})),Tw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileClass:Ex,tileGrid:e,tileUrlFunction:r})}function Ex(t,e,o,i,r){uv.call(this,t,e,o,i,r),this.a=null}i(rx,Tw),rx.prototype.C=function(){return this.f},rx.prototype.nb=function(t){return t},rx.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=W(i.gb(t[0]),this.o);1!=e&&(n=P(n,e,this.o)),ut(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),Gw(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}},rx.prototype.B=function(t){ut(this.f,t),Mw(this,nx(this))},i(sx,xw),sx.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=W(this.tileGrid.gb(t)),r=new ax(t=[t,e,o],r,e=(e=Pw(this,t))?Pw(this,e).toString():"");return this.a.set(i,r),r},i(ax,pv),ax.prototype.Y=function(){if(this.a)return this.a;var t=this.c,e=qe(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},ax.prototype.load=function(){},i(px,Tw),(Eu=px.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()},Eu.zo=function(){this.Ve()},Eu.pl=function(){return this.f},Eu.og=function(t){var e,o=Vt("EPSG:4326"),i=this.c;t.bounds&&(n=Kt(o,i),e=lt(t.bounds,n));var r=t.minzoom||0,n=t.maxzoom||22;if(this.tileGrid=i=ae({extent:le(i),maxZoom:n,minZoom:r}),this.tileUrlFunction=gw(t.tiles,i),void 0!==t.attribution&&!this.j){o=void 0!==e?e:o.G(),e={};for(;r<=n;++r)e[r.toString()]=[ie(i,o,r)];this.ua([new ue({html:t.attribution,tileRanges:e})])}this.f=t,xb(this,"ready")},Eu.Ve=function(){xb(this,"error")},i(hx,xw),(Eu=hx.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()},Eu.Do=function(){this.We()},Eu.ml=function(){return this.g},Eu.zk=function(t,e,o,i,r){var n,s,a,p,h;this.tileGrid?(e=this.tileGrid.Be(t,e),n=this.Nc(e[0],e[1],e[2],1,this.c),s=t,a=o,p=i,h=r,0==n.state&&!0===h?(me(n,"change",function(){a.call(p,this.getData(s))},n),ux(n)):!0===h?setTimeout(function(){a.call(p,this.getData(s))}.bind(n),0):a.call(p,n.getData(s))):!0===r?setTimeout(function(){o.call(i,null)},0):o.call(i,null)},Eu.We=function(){xb(this,"error")},Eu.pg=function(t){var e,o=Vt("EPSG:4326"),i=this.c;t.bounds&&(n=Kt(o,i),e=lt(t.bounds,n));var r=t.minzoom||0,n=t.maxzoom||22;this.tileGrid=i=ae({extent:le(i),maxZoom:n,minZoom:r}),this.g=t.template;var s=t.grids;if(s){if(this.l=gw(s,i),void 0!==t.attribution){for(o=void 0!==e?e:o.G(),e={};r<=n;++r)e[s=r.toString()]=[ie(i,o,r)];this.ua([new ue({html:t.attribution,tileRanges:e})])}xb(this,"ready")}else xb(this,"error")},Eu.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=Pw(this,t=[t,e,o],r),i=new lx(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)},Eu.Ug=function(t,e,o){t=this.Sb(t,e,o),this.a.b.hasOwnProperty(t)&&this.a.get(t)},i(lx,pv),(Eu=lx.prototype).Y=function(){return null},Eu.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)},Eu.bb=function(){return this.o},Eu.De=function(){this.state=3,this.s()},Eu.Ji=function(t){this.g=t.grid,this.j=t.keys,this.c=t.data,this.state=4,this.s()},Eu.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()},Eu.Bo=function(){this.De()},Eu.load=function(){this.v&&ux(this)},i(cx,Tw),(Eu=cx.prototype).Fo=function(t,e,o,i){if(o=Vt(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=W(s.gb(e[0]),this.o),a=this.C;return a&&(s=g(s,a,this.o),n=E(n,r*a,n)),a={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.f.LAYERS},ut(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,fx(this,e,s,n,1,o,a)}},Eu.Xf=function(){return this.C},Eu.Sb=function(t,e,o){return this.R+Tw.prototype.Sb.call(this,t,e,o)},Eu.Go=function(){return this.f},Eu.nb=function(t){return this.T&&void 0!==this.B?t:1},Eu.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=W(n.gb(t[0]),this.o),s=this.C;return s&&(n=g(n,s,this.o),r=E(r,i*s,r)),1!=e&&(n=P(n,e,this.o)),ut(i={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0},this.f),fx(this,t,n,r,e,o,i)}},Eu.eb=function(t){Tw.prototype.eb.call(this,t),yx(this)},Eu.Ho=function(t){ut(this.f,t),yx(this),dx(this),Mw(this,gx(this))},i(vx,pv),vx.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],Pe(i))}this.a.length=0,this.c=null,1==this.state&&(this.g.forEach(xe),this.g.length=0),this.i&&Pe(this.i),this.state=5,this.s(),this.l.forEach(xe),this.l.length=0,pv.prototype.ka.call(this)},vx.prototype.Y=function(){return-1==this.o.Lg?null:this.j.canvas},vx.prototype.bb=function(){return this.a.join("/")+"/"+this.u},vx.prototype.load=function(){var r=0,n=!1;0==this.state&&lv(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=be(i,"change",function(){var t=i.getState();2!=t&&3!=t||(--r,xe(o),s(this.g,o),3==t&&(s(this.a,e),n=!0),r||lv(this,0<this.a.length?2:3))}.bind(this)),this.g.push(o),++r)}.bind(this)),r||setTimeout(function(){lv(this,0<this.a.length?2:n?3:4)}.bind(this),0)},i(mx,pv),(Eu=mx.prototype).ka=function(){this.g=null,this.c={},this.state=5,this.s(),pv.prototype.ka.call(this)},Eu.Lm=function(){return this.o},Eu.Km=function(){return this.g},Eu.bb=function(){return this.l},Eu.Mm=function(){return this.a},Eu.load=function(){0==this.state&&(lv(this,1),this.u(this,this.l),this.v(null,NaN,null))},Eu.$o=function(t,e){this.ig(e),this.mj(t)},Eu.Zo=function(){lv(this,3)},Eu.mj=function(t){this.g=t,lv(this,2)},Eu.ig=function(t){this.a=t},Eu.Pg=function(t){this.v=t},i(wx,Ew),wx.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 vx(t=[t,e,o],void 0!==(o=(e=Pw(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)},wx.prototype.Ta=function(t){var e=t.mb,o=this.f[e];return o||(o=this.tileGrid,o=this.f[e]=he(t,void 0,o?o.gb(o.minZoom):void 0)),o},wx.prototype.nb=function(t){return null==t?Ew.prototype.nb.call(this,t):t},wx.prototype.Xd=function(t,e,o){return t=W(this.Ta(o).gb(t)),[Math.round(t[0]*e),Math.round(t[1]*e)]},i(xx,$t),xx.prototype.l=function(){return this.o},i(Mx,Tw),(Eu=Mx.prototype).Mk=function(){return this.f},Eu.Io=function(){return this.C},Eu.Jo=function(){return this.B},Eu.$k=function(){return this.l},Eu.kl=function(){return this.T},Eu.Ko=function(){return this.R},Eu.rl=function(){return this.fa},Eu.uq=function(t){ut(this.f,t),Mw(this,Px(this))},i(Ax,Tw),i(Ex,uv),Ex.prototype.Y=function(){if(this.a)return this.a;var t=uv.prototype.Y.call(this);if(2!=this.state)return t;if(256==t.width&&256==t.height)return this.a=t;var e=qe(256,256);return e.drawImage(t,0,0),this.a=e.canvas};var Tx="default",jx="truncated";function Cx(t,e){this.b=e,this.a=[{x:0,y:0,width:t,height:t}],this.c={},this.i=qe(t,t),this.f=this.i.canvas}function Lx(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 Rx(t){t=t||{},this.a=void 0!==t.initialSize?t.initialSize:256,this.i=void 0!==t.maxSize?t.maxSize:void 0!==e?e:2048,this.b=void 0!==t.space?t.space:1,this.f=[new Cx(this.a,this.b)],this.c=this.a,this.g=[new Cx(this.c,this.b)]}function Ix(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 Cx(l,t.b),a.push(l),++h)}return null}return Cx.prototype.get=function(t){return this.c[t]||null},Cx.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),t=n,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}),Lx(this,t,o,e),s}return null},Rx.prototype.add=function(t,e,o,i,r,n){return!(e+this.b>this.i||o+this.b>this.i)&&(i=Ix(this,!1,t,e,o,i,n))?(t=Ix(this,!0,t,e,o,r||w,n),{offsetX:i.offsetX,offsetY:i.offsetY,image:i.image,Zl:t.image}):null},t("ol.Attribution",ue),ue.prototype.getHTML=ue.prototype.i,t("ol.Collection",ke),ke.prototype.extend=ke.prototype.fg,ke.prototype.getArray=ke.prototype.tm,ke.prototype.getLength=ke.prototype.dc,ke.prototype.insertAt=ke.prototype.He,ke.prototype.removeAt=ke.prototype.Hg,ke.prototype.setAt=ke.prototype.Wp,t("ol.color.asArray",Ve),t("ol.color.asString",We),t("ol.colorlike.asColorLike",He),t("ol.control.defaults",ho),t("ol.coordinate.add",Ti),t("ol.coordinate.createStringXY",function(e){return function(t){return Oi(t,e)}}),t("ol.coordinate.format",Li),t("ol.coordinate.rotate",Ii),t("ol.coordinate.toStringHDMS",function(t,e){return t?Ci("NS",t[1],e)+" "+Ci("EW",t[0],e):""}),t("ol.coordinate.toStringXY",Oi),t("ol.DeviceOrientation",dh),dh.prototype.getAlpha=dh.prototype.Fk,dh.prototype.getBeta=dh.prototype.Ik,dh.prototype.getGamma=dh.prototype.Ok,dh.prototype.getHeading=dh.prototype.um,dh.prototype.getTracking=dh.prototype.Th,dh.prototype.setTracking=dh.prototype.gg,t("ol.easing.easeIn",oo),t("ol.easing.easeOut",io),t("ol.easing.inAndOut",ro),t("ol.easing.linear",no),t("ol.easing.upAndDown",function(t){return t<.5?ro(2*t):1-ro(2*(t-.5))}),t("ol.extent.boundingExtent",A),t("ol.extent.buffer",E),t("ol.extent.containsCoordinate",R),t("ol.extent.containsExtent",N),t("ol.extent.containsXY",I),t("ol.extent.createEmpty",Z),t("ol.extent.equals",z),t("ol.extent.extend",Y),t("ol.extent.getArea",_),t("ol.extent.getBottomLeft",$),t("ol.extent.getBottomRight",Q),t("ol.extent.getCenter",tt),t("ol.extent.getHeight",ot),t("ol.extent.getIntersection",it),t("ol.extent.getSize",function(t){return[t[2]-t[0],t[3]-t[1]]}),t("ol.extent.getTopLeft",rt),t("ol.extent.getTopRight",nt),t("ol.extent.getWidth",st),t("ol.extent.intersects",at),t("ol.extent.isEmpty",pt),t("ol.extent.applyTransform",lt),t("ol.Feature",Nh),Nh.prototype.getGeometry=Nh.prototype.V,Nh.prototype.getId=Nh.prototype.wm,Nh.prototype.getGeometryName=Nh.prototype.Qk,Nh.prototype.getStyle=Nh.prototype.xm,Nh.prototype.getStyleFunction=Nh.prototype.Lc,Nh.prototype.setGeometry=Nh.prototype.Ra,Nh.prototype.setStyle=Nh.prototype.hg,Nh.prototype.setId=Nh.prototype.jc,Nh.prototype.setGeometryName=Nh.prototype.Tc,t("ol.featureloader.xhr",ol),t("ol.Geolocation",Jd),Jd.prototype.getAccuracy=Jd.prototype.Dk,Jd.prototype.getAccuracyGeometry=Jd.prototype.Ek,Jd.prototype.getAltitude=Jd.prototype.Gk,Jd.prototype.getAltitudeAccuracy=Jd.prototype.Hk,Jd.prototype.getHeading=Jd.prototype.ym,Jd.prototype.getPosition=Jd.prototype.zm,Jd.prototype.getProjection=Jd.prototype.Uh,Jd.prototype.getSpeed=Jd.prototype.ll,Jd.prototype.getTracking=Jd.prototype.Vh,Jd.prototype.getTrackingOptions=Jd.prototype.Gh,Jd.prototype.setProjection=Jd.prototype.Wh,Jd.prototype.setTracking=Jd.prototype.Ke,Jd.prototype.setTrackingOptions=Jd.prototype.wj,t("ol.Graticule",tv),tv.prototype.getMap=tv.prototype.Cm,tv.prototype.getMeridians=tv.prototype.al,tv.prototype.getParallels=tv.prototype.hl,t("ol.has.DEVICE_PIXEL_RATIO",No),t("ol.has.CANVAS",ko),t("ol.has.DEVICE_ORIENTATION",Do),t("ol.has.GEOLOCATION",Oo),t("ol.has.TOUCH",Uo),t("ol.has.WEBGL",Eo),sv.prototype.getImage=sv.prototype.Y,uv.prototype.getImage=uv.prototype.Y,t("ol.inherits",i),t("ol.interaction.defaults",Gn),t("ol.Kinetic",kr),t("ol.loadingstrategy.all",bb),t("ol.loadingstrategy.bbox",function(t){return[t]}),t("ol.loadingstrategy.tile",function(i){return function(t,e){e=i.tc(e),t=ie(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",Zp),Zp.prototype.addControl=Zp.prototype.kk,Zp.prototype.addInteraction=Zp.prototype.lk,Zp.prototype.addLayer=Zp.prototype.ih,Zp.prototype.addOverlay=Zp.prototype.jh,Zp.prototype.forEachFeatureAtPixel=Zp.prototype.we,Zp.prototype.forEachLayerAtPixel=Zp.prototype.Im,Zp.prototype.hasFeatureAtPixel=Zp.prototype.Yl,Zp.prototype.getEventCoordinate=Zp.prototype.Tf,Zp.prototype.getEventPixel=Zp.prototype.xe,Zp.prototype.getTarget=Zp.prototype.ag,Zp.prototype.getTargetElement=Zp.prototype.jd,Zp.prototype.getCoordinateFromPixel=Zp.prototype.Wa,Zp.prototype.getControls=Zp.prototype.Lk,Zp.prototype.getOverlays=Zp.prototype.fl,Zp.prototype.getOverlayById=Zp.prototype.el,Zp.prototype.getInteractions=Zp.prototype.Sk,Zp.prototype.getLayerGroup=Zp.prototype.Kc,Zp.prototype.getLayers=Zp.prototype.Xh,Zp.prototype.getPixelFromCoordinate=Zp.prototype.Ja,Zp.prototype.getSize=Zp.prototype.Ob,Zp.prototype.getView=Zp.prototype.Z,Zp.prototype.getViewport=Zp.prototype.sl,Zp.prototype.renderSync=Zp.prototype.Tp,Zp.prototype.removeControl=Zp.prototype.Mp,Zp.prototype.removeInteraction=Zp.prototype.Np,Zp.prototype.removeLayer=Zp.prototype.Pp,Zp.prototype.removeOverlay=Zp.prototype.Qp,Zp.prototype.setLayerGroup=Zp.prototype.qj,Zp.prototype.setSize=Zp.prototype.Qg,Zp.prototype.setTarget=Zp.prototype.Le,Zp.prototype.setView=Zp.prototype.iq,Zp.prototype.updateSize=Zp.prototype.Ad,t("ol.Object",Le),Le.prototype.getKeys=Le.prototype.O,Le.prototype.getProperties=Le.prototype.N,Le.prototype.setProperties=Le.prototype.H,Le.prototype.unset=Le.prototype.P,t("ol.Observable",Ce),t("ol.Observable.unByKey",function(t){if(Array.isArray(t))for(var e=0,o=t.length;e<o;++e)xe(t[e]);else xe(t)}),Ce.prototype.changed=Ce.prototype.s,Ce.prototype.dispatchEvent=Ce.prototype.b,Ce.prototype.getRevision=Ce.prototype.L,Ce.prototype.on=Ce.prototype.J,Ce.prototype.un=Ce.prototype.K,t("ol.Overlay",Kp),Kp.prototype.getElement=Kp.prototype.Rd,Kp.prototype.getId=Kp.prototype.Jm,Kp.prototype.getMap=Kp.prototype.Me,Kp.prototype.getOffset=Kp.prototype.Dh,Kp.prototype.getPosition=Kp.prototype.Yh,Kp.prototype.getPositioning=Kp.prototype.Eh,Kp.prototype.setElement=Kp.prototype.lj,Kp.prototype.setOffset=Kp.prototype.rj,Kp.prototype.setPosition=Kp.prototype.Ne,Kp.prototype.setPositioning=Kp.prototype.uj,t("ol.proj.METERS_PER_UNIT",vt),t("ol.proj.setProj4",function(t){bt=t}),t("ol.proj.getPointResolution",Dt),t("ol.proj.addEquivalentProjections",Ot),t("ol.proj.addProjection",Ut),t("ol.proj.addCoordinateTransforms",Bt),t("ol.proj.fromLonLat",function(t,e){return Ht(t,"EPSG:4326",void 0!==e?e:"EPSG:3857")}),t("ol.proj.toLonLat",function(t,e){return Ht(t,void 0!==e?e:"EPSG:3857","EPSG:4326")}),t("ol.proj.get",Vt),t("ol.proj.equivalent",Wt),t("ol.proj.getTransform",Zt),t("ol.proj.transform",Ht),t("ol.proj.transformExtent",qt),t("ol.render.toContext",function(t,e){var o=t.canvas,i=e||{};return e=i.pixelRatio||No,(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 bs(t,e,o=[0,0,o.width,o.height],i=os(qn(),e,e),0)}),t("ol.size.toSize",W),t("ol.Sphere",gt),gt.prototype.geodesicArea=gt.prototype.a,gt.prototype.haversineDistance=gt.prototype.b,pv.prototype.getTileCoord=pv.prototype.f,t("ol.tilegrid.createXYZ",ae),mx.prototype.getFormat=mx.prototype.Lm,mx.prototype.getFeatures=mx.prototype.Km,mx.prototype.getProjection=mx.prototype.Mm,mx.prototype.setFeatures=mx.prototype.mj,mx.prototype.setProjection=mx.prototype.ig,mx.prototype.setLoader=mx.prototype.Pg,t("ol.View",Er),Er.prototype.getAnimating=Er.prototype.Ic,Er.prototype.getInteracting=Er.prototype.Rk,Er.prototype.cancelAnimations=Er.prototype.ed,Er.prototype.constrainCenter=Er.prototype.Ec,Er.prototype.getCenter=Er.prototype.wa,Er.prototype.calculateExtent=Er.prototype.dd,Er.prototype.getMaxResolution=Er.prototype.Nm,Er.prototype.getMinResolution=Er.prototype.Pm,Er.prototype.getMaxZoom=Er.prototype.Om,Er.prototype.setMaxZoom=Er.prototype.eq,Er.prototype.getMinZoom=Er.prototype.Qm,Er.prototype.setMinZoom=Er.prototype.fq,Er.prototype.getProjection=Er.prototype.Rm,Er.prototype.getResolution=Er.prototype.Pa,Er.prototype.getResolutions=Er.prototype.Sm,Er.prototype.getResolutionForExtent=Er.prototype.ze,Er.prototype.getRotation=Er.prototype.Qa,Er.prototype.getZoom=Er.prototype.Hh,Er.prototype.getZoomForResolution=Er.prototype.Ce,Er.prototype.fit=Er.prototype.Qf,Er.prototype.centerOn=Er.prototype.uk,Er.prototype.setCenter=Er.prototype.ob,Er.prototype.setResolution=Er.prototype.Vc,Er.prototype.setRotation=Er.prototype.Oe,Er.prototype.setZoom=Er.prototype.lq,t("ol.xml.getAllTextContent",Dh),t("ol.xml.parse",Gh),ea.prototype.getGL=ea.prototype.Wo,ea.prototype.useProgram=ea.prototype.Qc,t("ol.tilegrid.TileGrid",$t),$t.prototype.forEachTileCoord=$t.prototype.Rf,$t.prototype.getMaxZoom=$t.prototype.Ti,$t.prototype.getMinZoom=$t.prototype.Ui,$t.prototype.getOrigin=$t.prototype.Pc,$t.prototype.getResolution=$t.prototype.Da,$t.prototype.getResolutions=$t.prototype.Vi,$t.prototype.getTileCoordExtent=$t.prototype.Aa,$t.prototype.getTileCoordForCoordAndResolution=$t.prototype.Be,$t.prototype.getTileCoordForCoordAndZ=$t.prototype.bg,$t.prototype.getTileSize=$t.prototype.gb,$t.prototype.getZForResolution=$t.prototype.tc,t("ol.tilegrid.WMTS",xx),xx.prototype.getMatrixIds=xx.prototype.l,t("ol.tilegrid.WMTS.createFromCapabilitiesMatrixSet",Sx),t("ol.style.AtlasManager",Rx),t("ol.style.Circle",Ah),Ah.prototype.setRadius=Ah.prototype.Uc,t("ol.style.Fill",Eh),Eh.prototype.getColor=Eh.prototype.i,Eh.prototype.setColor=Eh.prototype.c,t("ol.style.Icon",Jc),Jc.prototype.getAnchor=Jc.prototype.Hc,Jc.prototype.getColor=Jc.prototype.Lo,Jc.prototype.getImage=Jc.prototype.Y,Jc.prototype.getOrigin=Jc.prototype.Oc,Jc.prototype.getSrc=Jc.prototype.Mo,Jc.prototype.getSize=Jc.prototype.ic,t("ol.style.Image",Sh),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,t("ol.style.RegularShape",Mh),Mh.prototype.getAnchor=Mh.prototype.Hc,Mh.prototype.getAngle=Mh.prototype.Pi,Mh.prototype.getFill=Mh.prototype.Fa,Mh.prototype.getImage=Mh.prototype.Y,Mh.prototype.getOrigin=Mh.prototype.Oc,Mh.prototype.getPoints=Mh.prototype.Qi,Mh.prototype.getRadius=Mh.prototype.Ri,Mh.prototype.getRadius2=Mh.prototype.Fh,Mh.prototype.getSize=Mh.prototype.ic,Mh.prototype.getStroke=Mh.prototype.Ga,t("ol.style.Stroke",Ga),Ga.prototype.getColor=Ga.prototype.No,Ga.prototype.getLineCap=Ga.prototype.Vk,Ga.prototype.getLineDash=Ga.prototype.Oo,Ga.prototype.getLineDashOffset=Ga.prototype.Wk,Ga.prototype.getLineJoin=Ga.prototype.Xk,Ga.prototype.getMiterLimit=Ga.prototype.bl,Ga.prototype.getWidth=Ga.prototype.Po,Ga.prototype.setColor=Ga.prototype.Qo,Ga.prototype.setLineCap=Ga.prototype.aq,Ga.prototype.setLineDashOffset=Ga.prototype.bq,Ga.prototype.setLineJoin=Ga.prototype.cq,Ga.prototype.setMiterLimit=Ga.prototype.gq,Ga.prototype.setWidth=Ga.prototype.jq,t("ol.style.Style",Th),Th.prototype.getGeometry=Th.prototype.V,Th.prototype.getGeometryFunction=Th.prototype.Pk,Th.prototype.getFill=Th.prototype.Fa,Th.prototype.setFill=Th.prototype.pf,Th.prototype.getImage=Th.prototype.Y,Th.prototype.setImage=Th.prototype.Og,Th.prototype.getStroke=Th.prototype.Ga,Th.prototype.setStroke=Th.prototype.qf,Th.prototype.getText=Th.prototype.Na,Th.prototype.setText=Th.prototype.xd,Th.prototype.getZIndex=Th.prototype.Ba,Th.prototype.setGeometry=Th.prototype.Ra,Th.prototype.setZIndex=Th.prototype.Vb,t("ol.style.Text",_c),_c.prototype.getFont=_c.prototype.Nk,_c.prototype.getOffsetX=_c.prototype.cl,_c.prototype.getOffsetY=_c.prototype.dl,_c.prototype.getFill=_c.prototype.Fa,_c.prototype.getRotateWithView=_c.prototype.Ro,_c.prototype.getRotation=_c.prototype.So,_c.prototype.getScale=_c.prototype.To,_c.prototype.getStroke=_c.prototype.Ga,_c.prototype.getText=_c.prototype.Na,_c.prototype.getTextAlign=_c.prototype.nl,_c.prototype.getTextBaseline=_c.prototype.ol,_c.prototype.setFont=_c.prototype.nj,_c.prototype.setOffsetX=_c.prototype.sj,_c.prototype.setOffsetY=_c.prototype.tj,_c.prototype.setFill=_c.prototype.pf,_c.prototype.setRotation=_c.prototype.Uo,_c.prototype.setScale=_c.prototype.Si,_c.prototype.setStroke=_c.prototype.qf,_c.prototype.setText=_c.prototype.xd,_c.prototype.setTextAlign=_c.prototype.vj,_c.prototype.setTextBaseline=_c.prototype.hq,t("ol.source.BingMaps",Rw),t("ol.source.BingMaps.TOS_ATTRIBUTION",Iw),Rw.prototype.getApiKey=Rw.prototype.T,Rw.prototype.getImagerySet=Rw.prototype.fa,t("ol.source.CartoDB",Fw),Fw.prototype.getConfig=Fw.prototype.Kk,Fw.prototype.updateConfig=Fw.prototype.tq,Fw.prototype.setConfig=Fw.prototype.Xp,t("ol.source.Cluster",Ow),Ow.prototype.getDistance=Ow.prototype.$n,Ow.prototype.getSource=Ow.prototype.ao,Ow.prototype.setDistance=Ow.prototype.Yp,t("ol.source.Image",Wm),t("ol.source.ImageArcGISRest",Bw),Bw.prototype.getParams=Bw.prototype.co,Bw.prototype.getImageLoadFunction=Bw.prototype.bo,Bw.prototype.getUrl=Bw.prototype.eo,Bw.prototype.setImageLoadFunction=Bw.prototype.fo,Bw.prototype.setUrl=Bw.prototype.ho,Bw.prototype.updateParams=Bw.prototype.io,t("ol.source.ImageCanvas",Jm),t("ol.source.ImageMapGuide",Xw),Xw.prototype.getParams=Xw.prototype.ko,Xw.prototype.getImageLoadFunction=Xw.prototype.jo,Xw.prototype.updateParams=Xw.prototype.mo,Xw.prototype.setImageLoadFunction=Xw.prototype.lo,t("ol.source.ImageStatic",Vw),t("ol.source.ImageVector",_m),_m.prototype.getSource=_m.prototype.no,_m.prototype.getStyle=_m.prototype.oo,_m.prototype.getStyleFunction=_m.prototype.po,_m.prototype.setStyle=_m.prototype.Ii,t("ol.source.ImageWMS",Ww),Ww.prototype.getGetFeatureInfoUrl=Ww.prototype.so,Ww.prototype.getParams=Ww.prototype.uo,Ww.prototype.getImageLoadFunction=Ww.prototype.to,Ww.prototype.getUrl=Ww.prototype.vo,Ww.prototype.setImageLoadFunction=Ww.prototype.wo,Ww.prototype.setUrl=Ww.prototype.xo,Ww.prototype.updateParams=Ww.prototype.yo,t("ol.source.OSM",Yw),t("ol.source.OSM.ATTRIBUTION",Hw),t("ol.source.Raster",qw),qw.prototype.setOperation=qw.prototype.v,t("ol.source.Source",mb),mb.prototype.getAttributions=mb.prototype.ya,mb.prototype.getLogo=mb.prototype.xa,mb.prototype.getProjection=mb.prototype.za,mb.prototype.refresh=mb.prototype.sa,mb.prototype.setAttributions=mb.prototype.ua,t("ol.source.Stamen",tx),t("ol.source.Tile",xw),xw.prototype.getTileGrid=xw.prototype.ab,t("ol.source.TileArcGISRest",rx),rx.prototype.getParams=rx.prototype.C,rx.prototype.updateParams=rx.prototype.B,t("ol.source.TileDebug",sx),t("ol.source.TileImage",Tw),Tw.prototype.setRenderReprojectionEdges=Tw.prototype.Pb,Tw.prototype.setTileGridForProjection=Tw.prototype.Qb,t("ol.source.TileJSON",px),px.prototype.getTileJSON=px.prototype.pl,t("ol.source.TileUTFGrid",hx),hx.prototype.getTemplate=hx.prototype.ml,hx.prototype.forDataAtCoordinateAndResolution=hx.prototype.zk,t("ol.source.TileWMS",cx),cx.prototype.getGetFeatureInfoUrl=cx.prototype.Fo,cx.prototype.getParams=cx.prototype.Go,cx.prototype.updateParams=cx.prototype.Ho,Ew.prototype.getTileLoadFunction=Ew.prototype.pb,Ew.prototype.getTileUrlFunction=Ew.prototype.qb,Ew.prototype.getUrls=Ew.prototype.rb,Ew.prototype.setTileLoadFunction=Ew.prototype.vb,Ew.prototype.setTileUrlFunction=Ew.prototype.cb,Ew.prototype.setUrl=Ew.prototype.jb,Ew.prototype.setUrls=Ew.prototype.eb,t("ol.source.Vector",Sb),Sb.prototype.addFeature=Sb.prototype.yb,Sb.prototype.addFeatures=Sb.prototype.cd,Sb.prototype.forEachFeature=Sb.prototype.sh,Sb.prototype.forEachFeatureInExtent=Sb.prototype.$b,Sb.prototype.forEachFeatureIntersectingExtent=Sb.prototype.th,Sb.prototype.getFeaturesCollection=Sb.prototype.Ah,Sb.prototype.getFeatures=Sb.prototype.Xe,Sb.prototype.getFeaturesAtCoordinate=Sb.prototype.zh,Sb.prototype.getFeaturesInExtent=Sb.prototype.Uf,Sb.prototype.getClosestFeatureToCoordinate=Sb.prototype.vh,Sb.prototype.getExtent=Sb.prototype.G,Sb.prototype.getFeatureById=Sb.prototype.yh,Sb.prototype.getFormat=Sb.prototype.Mi,Sb.prototype.getUrl=Sb.prototype.Ni,Sb.prototype.removeFeature=Sb.prototype.Gb,t("ol.source.VectorTile",wx),t("ol.source.WMTS",Mx),Mx.prototype.getDimensions=Mx.prototype.Mk,Mx.prototype.getFormat=Mx.prototype.Io,Mx.prototype.getLayer=Mx.prototype.Jo,Mx.prototype.getMatrixSet=Mx.prototype.$k,Mx.prototype.getRequestEncoding=Mx.prototype.kl,Mx.prototype.getStyle=Mx.prototype.Ko,Mx.prototype.getVersion=Mx.prototype.rl,Mx.prototype.updateDimensions=Mx.prototype.uq,t("ol.source.WMTS.optionsFromCapabilities",function(t,r){var e=v(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=v(n,function(t){return t.Identifier==e.TileMatrixSet}).SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"),o=Vt(t),i=Vt(r.projection);return o&&i?Wt(o,i):t==r.projection}):m(e.TileMatrixSetLink,function(t){return t.TileMatrixSet==r.matrixSet}):0;o<0&&(o=0);var i=e.TileMatrixSetLink[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}))<0&&(o=0),o=e.Style[o].Identifier;var 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=v(t.Contents.TileMatrixSet,function(t){return t.Identifier==i}),c="projection"in r?Vt(r.projection):Vt(u.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3")),f=e.WGS84BoundingBox;void 0!==f&&(h=Vt("EPSG:4326").G(),h=f[0]==h[0]&&f[2]==h[2],l=qt(f,"EPSG:4326",c),(f=c.G())&&(N(f,l)||(l=void 0))),s=Sx(u,l,s);var 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=v(t[l].Constraint,function(t){return"GetEncoding"==t.name}).AllowedValues.Value;if(""===u&&(u=g[0]),"KVP"!==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",Nw),t("ol.source.Zoomify",Ax),Wy.prototype.getExtent=Wy.prototype.G,Wy.prototype.getId=Wy.prototype.Wn,Wy.prototype.getGeometry=Wy.prototype.V,Wy.prototype.getProperties=Wy.prototype.Xn,Wy.prototype.getType=Wy.prototype.U,t("ol.render.VectorContext",vs),Op.prototype.setStyle=Op.prototype.rd,Op.prototype.drawGeometry=Op.prototype.zb,Op.prototype.drawFeature=Op.prototype.te,bs.prototype.drawCircle=bs.prototype.Zb,bs.prototype.setStyle=bs.prototype.rd,bs.prototype.drawGeometry=bs.prototype.zb,bs.prototype.drawFeature=bs.prototype.te,t("ol.proj.common.add",Jt),t("ol.proj.Projection",mt),mt.prototype.getCode=mt.prototype.Jk,mt.prototype.getExtent=mt.prototype.G,mt.prototype.getUnits=mt.prototype.Un,mt.prototype.getMetersPerUnit=mt.prototype.sc,mt.prototype.getWorldExtent=mt.prototype.tl,mt.prototype.isGlobal=mt.prototype.dm,mt.prototype.setGlobal=mt.prototype.$p,mt.prototype.setExtent=mt.prototype.Vn,mt.prototype.setWorldExtent=mt.prototype.kq,mt.prototype.setGetPointResolution=mt.prototype.Zp,t("ol.proj.Units.METERS_PER_UNIT",vt),t("ol.layer.Base",Bn),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,t("ol.layer.Group",Vn),Vn.prototype.getLayers=Vn.prototype.qd,Vn.prototype.setLayers=Vn.prototype.xi,t("ol.layer.Heatmap",Lm),Lm.prototype.getBlur=Lm.prototype.uh,Lm.prototype.getGradient=Lm.prototype.Bh,Lm.prototype.getRadius=Lm.prototype.yi,Lm.prototype.setBlur=Lm.prototype.jj,Lm.prototype.setGradient=Lm.prototype.pj,Lm.prototype.setRadius=Lm.prototype.Uc,t("ol.layer.Image",Qm),Qm.prototype.getSource=Qm.prototype.ha,t("ol.layer.Layer",Zn),Zn.prototype.getSource=Zn.prototype.ha,Zn.prototype.setSource=Zn.prototype.Wc,t("ol.layer.Tile",pw),pw.prototype.getPreload=pw.prototype.Ud,pw.prototype.getSource=pw.prototype.ha,pw.prototype.setPreload=pw.prototype.zi,pw.prototype.getUseInterimTilesOnError=pw.prototype.kd,pw.prototype.setUseInterimTilesOnError=pw.prototype.Ai,t("ol.layer.Vector",db),db.prototype.getSource=db.prototype.ha,db.prototype.getStyle=db.prototype.D,db.prototype.getStyleFunction=db.prototype.C,db.prototype.setStyle=db.prototype.g,t("ol.layer.VectorTile",cw),cw.prototype.getPreload=cw.prototype.Ud,cw.prototype.getUseInterimTilesOnError=cw.prototype.kd,cw.prototype.setPreload=cw.prototype.Bi,cw.prototype.setUseInterimTilesOnError=cw.prototype.Ci,t("ol.interaction.DoubleClickZoom",Xr),t("ol.interaction.DoubleClickZoom.handleEvent",Vr),t("ol.interaction.DragAndDrop",yv),t("ol.interaction.DragAndDrop.handleEvent",Ui),t("ol.interaction.DragBox",fn),fn.prototype.getGeometry=fn.prototype.V,t("ol.interaction.DragPan",en),t("ol.interaction.DragRotate",sn),t("ol.interaction.DragRotateAndZoom",xv),t("ol.interaction.DragZoom",Sn),t("ol.interaction.Draw",jb),t("ol.interaction.Draw.handleEvent",Cb),jb.prototype.removeLastPoint=jb.prototype.Op,jb.prototype.finishDrawing=jb.prototype.Pd,jb.prototype.extend=jb.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(Fi(o,t));return Ar(e=e||Pr(new _d(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=A(t),(e=e||new wr(null)).ma([[$(t),Q(t),nt(t),rt(t),$(t)]]),e}}),t("ol.interaction.Extent",Wb),Wb.prototype.getExtent=Wb.prototype.G,Wb.prototype.setExtent=Wb.prototype.g,$b.prototype.extent_=$b.prototype.b,t("ol.interaction.Interaction",Or),Or.prototype.getActive=Or.prototype.c,Or.prototype.getMap=Or.prototype.f,Or.prototype.setActive=Or.prototype.Ha,t("ol.interaction.KeyboardPan",Mn),t("ol.interaction.KeyboardPan.handleEvent",Pn),t("ol.interaction.KeyboardZoom",An),t("ol.interaction.KeyboardZoom.handleEvent",En),t("ol.interaction.Modify",tm),t("ol.interaction.Modify.handleEvent",pm),tm.prototype.removePoint=tm.prototype.hj,t("ol.interaction.MouseWheelZoom",Tn),t("ol.interaction.MouseWheelZoom.handleEvent",jn),Tn.prototype.setMouseAnchor=Tn.prototype.T,t("ol.interaction.PinchRotate",Rn),t("ol.interaction.PinchZoom",kn),t("ol.interaction.Pointer",$r),t("ol.interaction.Pointer.handleEvent",tn),t("ol.interaction.Select",ym),ym.prototype.getFeatures=ym.prototype.Gn,ym.prototype.getHitTolerance=ym.prototype.Hn,ym.prototype.getLayer=ym.prototype.In,t("ol.interaction.Select.handleEvent",gm),ym.prototype.setHitTolerance=ym.prototype.Kn,t("ol.interaction.Snap",bm),bm.prototype.addFeature=bm.prototype.yb,bm.prototype.removeFeature=bm.prototype.Gb,t("ol.interaction.Translate",Sm),Sm.prototype.getHitTolerance=Sm.prototype.B,Sm.prototype.setHitTolerance=Sm.prototype.I,t("ol.geom.Circle",_d),_d.prototype.getCenter=_d.prototype.wa,_d.prototype.getRadius=_d.prototype.pd,_d.prototype.getType=_d.prototype.U,_d.prototype.intersectsExtent=_d.prototype.Xa,_d.prototype.setCenter=_d.prototype.ob,_d.prototype.setCenterAndRadius=_d.prototype.Ng,_d.prototype.setRadius=_d.prototype.Uc,_d.prototype.transform=_d.prototype.tb,t("ol.geom.Geometry",Bi),Bi.prototype.getClosestPoint=Bi.prototype.Ab,Bi.prototype.intersectsCoordinate=Bi.prototype.sb,Bi.prototype.getExtent=Bi.prototype.G,Bi.prototype.simplify=Bi.prototype.Rb,Bi.prototype.transform=Bi.prototype.tb,t("ol.geom.GeometryCollection",$l),$l.prototype.getGeometries=$l.prototype.Vf,$l.prototype.getType=$l.prototype.U,$l.prototype.intersectsExtent=$l.prototype.Xa,$l.prototype.setGeometries=$l.prototype.oj,$l.prototype.applyTransform=$l.prototype.Dc,t("ol.geom.LinearRing",ar),ar.prototype.getArea=ar.prototype.qn,ar.prototype.getCoordinates=ar.prototype.X,ar.prototype.getType=ar.prototype.U,ar.prototype.setCoordinates=ar.prototype.ma,t("ol.geom.LineString",ul),ul.prototype.appendCoordinate=ul.prototype.mk,ul.prototype.forEachSegment=ul.prototype.Ck,ul.prototype.getCoordinateAtM=ul.prototype.nn,ul.prototype.getCoordinates=ul.prototype.X,ul.prototype.getCoordinateAt=ul.prototype.wh,ul.prototype.getLength=ul.prototype.pn,ul.prototype.getType=ul.prototype.U,ul.prototype.intersectsExtent=ul.prototype.Xa,ul.prototype.setCoordinates=ul.prototype.ma,t("ol.geom.MultiLineString",fl),fl.prototype.appendLineString=fl.prototype.nk,fl.prototype.getCoordinateAtM=fl.prototype.rn,fl.prototype.getCoordinates=fl.prototype.X,fl.prototype.getLineString=fl.prototype.Yk,fl.prototype.getLineStrings=fl.prototype.gd,fl.prototype.getType=fl.prototype.U,fl.prototype.intersectsExtent=fl.prototype.Xa,fl.prototype.setCoordinates=fl.prototype.ma,t("ol.geom.MultiPoint",dl),dl.prototype.appendPoint=dl.prototype.qk,dl.prototype.getCoordinates=dl.prototype.X,dl.prototype.getPoint=dl.prototype.il,dl.prototype.getPoints=dl.prototype.Zd,dl.prototype.getType=dl.prototype.U,dl.prototype.intersectsExtent=dl.prototype.Xa,dl.prototype.setCoordinates=dl.prototype.ma,t("ol.geom.MultiPolygon",vl),vl.prototype.appendPolygon=vl.prototype.rk,vl.prototype.getArea=vl.prototype.sn,vl.prototype.getCoordinates=vl.prototype.X,vl.prototype.getInteriorPoints=vl.prototype.Uk,vl.prototype.getPolygon=vl.prototype.jl,vl.prototype.getPolygons=vl.prototype.Td,vl.prototype.getType=vl.prototype.U,vl.prototype.intersectsExtent=vl.prototype.Xa,vl.prototype.setCoordinates=vl.prototype.ma,t("ol.geom.Point",hr),hr.prototype.getCoordinates=hr.prototype.X,hr.prototype.getType=hr.prototype.U,hr.prototype.intersectsExtent=hr.prototype.Xa,hr.prototype.setCoordinates=hr.prototype.ma,t("ol.geom.Polygon",wr),wr.prototype.appendLinearRing=wr.prototype.pk,wr.prototype.getArea=wr.prototype.tn,wr.prototype.getCoordinates=wr.prototype.X,wr.prototype.getInteriorPoint=wr.prototype.Tk,wr.prototype.getLinearRingCount=wr.prototype.Zk,wr.prototype.getLinearRing=wr.prototype.Ch,wr.prototype.getLinearRings=wr.prototype.Sd,wr.prototype.getType=wr.prototype.U,wr.prototype.intersectsExtent=wr.prototype.Xa,wr.prototype.setCoordinates=wr.prototype.ma,t("ol.geom.Polygon.circular",Sr),t("ol.geom.Polygon.fromExtent",Mr),t("ol.geom.Polygon.fromCircle",Pr),t("ol.geom.SimpleGeometry",Wi),Wi.prototype.getFirstCoordinate=Wi.prototype.ac,Wi.prototype.getLastCoordinate=Wi.prototype.bc,Wi.prototype.getLayout=Wi.prototype.cc,Wi.prototype.applyTransform=Wi.prototype.Dc,t("ol.format.EsriJSON",Sl),Sl.prototype.readFeature=Sl.prototype.Tb,Sl.prototype.readFeatures=Sl.prototype.Oa,Sl.prototype.readGeometry=Sl.prototype.Sc,Sl.prototype.readProjection=Sl.prototype.kb,Sl.prototype.writeGeometry=Sl.prototype.$c,Sl.prototype.writeGeometryObject=Sl.prototype.je,Sl.prototype.writeFeature=Sl.prototype.Bd,Sl.prototype.writeFeatureObject=Sl.prototype.Zc,Sl.prototype.writeFeatures=Sl.prototype.Wb,Sl.prototype.writeFeaturesObject=Sl.prototype.he,t("ol.format.Feature",il),t("ol.format.filter.and",Jl),t("ol.format.filter.or",function(t){var e=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(Hl,e))}),t("ol.format.filter.not",function(t){return new zl(t)}),t("ol.format.filter.bbox",_l),t("ol.format.filter.intersects",function(t,e,o){return new Bl(t,e,o)}),t("ol.format.filter.within",function(t,e,o){return new ql(t,e,o)}),t("ol.format.filter.equalTo",function(t,e,o){return new Dl(t,e,o)}),t("ol.format.filter.notEqualTo",function(t,e,o){return new Yl(t,e,o)}),t("ol.format.filter.lessThan",function(t,e){return new Zl(t,e)}),t("ol.format.filter.lessThanOrEqualTo",function(t,e){return new Kl(t,e)}),t("ol.format.filter.greaterThan",function(t,e){return new Ol(t,e)}),t("ol.format.filter.greaterThanOrEqualTo",function(t,e){return new Ul(t,e)}),t("ol.format.filter.isNull",function(t){return new Wl(t)}),t("ol.format.filter.between",function(t,e,o){return new Xl(t,e,o)}),t("ol.format.filter.like",function(t,e,o,i,r,n){return new Vl(t,e,o,i,r,n)}),t("ol.format.filter.during",function(t,e,o){return new Fl(t,e,o)}),t("ol.format.GeoJSON",ou),ou.prototype.readFeature=ou.prototype.Tb,ou.prototype.readFeatures=ou.prototype.Oa,ou.prototype.readGeometry=ou.prototype.Sc,ou.prototype.readProjection=ou.prototype.kb,ou.prototype.writeFeature=ou.prototype.Bd,ou.prototype.writeFeatureObject=ou.prototype.Zc,ou.prototype.writeFeatures=ou.prototype.Wb,ou.prototype.writeFeaturesObject=ou.prototype.he,ou.prototype.writeGeometry=ou.prototype.$c,ou.prototype.writeGeometryObject=ou.prototype.je,t("ol.format.GML",Pu),Pu.prototype.writeFeatures=Pu.prototype.Wb,Pu.prototype.writeFeaturesNode=Pu.prototype.Xb,t("ol.format.GML2",Fu),t("ol.format.GML3",Pu),Pu.prototype.writeGeometryNode=Pu.prototype.ie,Pu.prototype.writeFeatures=Pu.prototype.Wb,Pu.prototype.writeFeaturesNode=Pu.prototype.Xb,lu.prototype.readFeatures=lu.prototype.Oa,t("ol.format.GPX",Ku),Ku.prototype.readFeature=Ku.prototype.Tb,Ku.prototype.readFeatures=Ku.prototype.Oa,Ku.prototype.readProjection=Ku.prototype.kb,Ku.prototype.writeFeatures=Ku.prototype.Wb,Ku.prototype.writeFeaturesNode=Ku.prototype.Xb,t("ol.format.IGC",jc),jc.prototype.readFeature=jc.prototype.Tb,jc.prototype.readFeatures=jc.prototype.Oa,jc.prototype.readProjection=jc.prototype.kb,t("ol.format.KML",$c),$c.prototype.readFeature=$c.prototype.Tb,$c.prototype.readFeatures=$c.prototype.Oa,$c.prototype.readName=$c.prototype.Cp,$c.prototype.readNetworkLinks=$c.prototype.Dp,$c.prototype.readRegion=$c.prototype.Gp,$c.prototype.readRegionFromNode=$c.prototype.lf,$c.prototype.readProjection=$c.prototype.kb,$c.prototype.writeFeatures=$c.prototype.Wb,$c.prototype.writeFeaturesNode=$c.prototype.Xb,t("ol.format.MVT",Zy),Zy.prototype.readFeatures=Zy.prototype.Oa,Zy.prototype.readProjection=Zy.prototype.kb,Zy.prototype.setLayers=Zy.prototype.mn,t("ol.format.OSMXML",zy),zy.prototype.readFeatures=zy.prototype.Oa,zy.prototype.readProjection=zy.prototype.kb,t("ol.format.Polyline",vg),t("ol.format.Polyline.encodeDeltas",bg),t("ol.format.Polyline.decodeDeltas",mg),t("ol.format.Polyline.encodeFloats",wg),t("ol.format.Polyline.decodeFloats",xg),vg.prototype.readFeature=vg.prototype.Tb,vg.prototype.readFeatures=vg.prototype.Oa,vg.prototype.readGeometry=vg.prototype.Sc,vg.prototype.readProjection=vg.prototype.kb,vg.prototype.writeGeometry=vg.prototype.$c,t("ol.format.TopoJSON",Sg),Sg.prototype.readFeatures=Sg.prototype.Oa,Sg.prototype.readProjection=Sg.prototype.kb,t("ol.format.WFS",Tg),Tg.prototype.readFeatures=Tg.prototype.Oa,Tg.prototype.readTransactionResponse=Tg.prototype.j,Tg.prototype.readFeatureCollectionMetadata=Tg.prototype.g,t("ol.format.WFS.writeFilter",function(t){var e=kh("http://www.opengis.net/ogc","Filter");return tl({node:e},Yg,Yh(t.kc),[t],[]),e}),Tg.prototype.writeGetFeature=Tg.prototype.l,Tg.prototype.writeTransaction=Tg.prototype.v,Tg.prototype.readProjection=Tg.prototype.kb,t("ol.format.WKT",Hg),Hg.prototype.readFeature=Hg.prototype.Tb,Hg.prototype.readFeatures=Hg.prototype.Oa,Hg.prototype.readGeometry=Hg.prototype.Sc,Hg.prototype.writeFeature=Hg.prototype.Bd,Hg.prototype.writeFeatures=Hg.prototype.Wb,Hg.prototype.writeGeometry=Hg.prototype.$c,t("ol.format.WMSCapabilities",ud),t("ol.format.WMSGetFeatureInfo",Fd),Fd.prototype.readFeatures=Fd.prototype.Oa,t("ol.format.WMTSCapabilities",kd),t("ol.format.filter.And",Rl),t("ol.format.filter.Bbox",Il),t("ol.format.filter.Comparison",Nl),t("ol.format.filter.ComparisonBinary",kl),t("ol.format.filter.During",Fl),t("ol.format.filter.EqualTo",Dl),t("ol.format.filter.Filter",Cl),t("ol.format.filter.GreaterThan",Ol),t("ol.format.filter.GreaterThanOrEqualTo",Ul),t("ol.format.filter.Intersects",Bl),t("ol.format.filter.IsBetween",Xl),t("ol.format.filter.IsLike",Vl),t("ol.format.filter.IsNull",Wl),t("ol.format.filter.LessThan",Zl),t("ol.format.filter.LessThanOrEqualTo",Kl),t("ol.format.filter.Not",zl),t("ol.format.filter.NotEqualTo",Yl),t("ol.format.filter.Or",Hl),t("ol.format.filter.Spatial",Gl),t("ol.format.filter.Within",ql),t("ol.events.condition.altKeyOnly",function(t){return(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey}),t("ol.events.condition.altShiftKeysOnly",Wr),t("ol.events.condition.always",Ui),t("ol.events.condition.click",function(t){return"click"==t.type}),t("ol.events.condition.never",Gi),t("ol.events.condition.pointerMove",Kr),t("ol.events.condition.singleClick",zr),t("ol.events.condition.doubleClick",function(t){return"dblclick"==t.type}),t("ol.events.condition.noModifierKeys",Yr),t("ol.events.condition.platformModifierKeyOnly",function(t){return!(t=t.originalEvent).altKey&&(Io?t.metaKey:t.ctrlKey)&&!t.shiftKey}),t("ol.events.condition.shiftKeyOnly",Hr),t("ol.events.condition.targetNotEditable",qr),t("ol.events.condition.mouseOnly",Jr),t("ol.events.condition.primaryAction",_r),t("ol.control.Attribution",Qe),t("ol.control.Attribution.render",to),Qe.prototype.getCollapsible=Qe.prototype.Um,Qe.prototype.setCollapsible=Qe.prototype.Xm,Qe.prototype.setCollapsed=Qe.prototype.Wm,Qe.prototype.getCollapsed=Qe.prototype.Tm,t("ol.control.Control",$e),$e.prototype.getMap=$e.prototype.g,$e.prototype.setTarget=$e.prototype.f,t("ol.control.FullScreen",lo),t("ol.control.MousePosition",vo),t("ol.control.MousePosition.render",bo),vo.prototype.getCoordinateFormat=vo.prototype.xh,vo.prototype.getProjection=vo.prototype.Zh,vo.prototype.setCoordinateFormat=vo.prototype.kj,vo.prototype.setProjection=vo.prototype.$h,t("ol.control.OverviewMap",th),t("ol.control.OverviewMap.render",eh),th.prototype.getCollapsible=th.prototype.$m,th.prototype.setCollapsible=th.prototype.cn,th.prototype.setCollapsed=th.prototype.bn,th.prototype.getCollapsed=th.prototype.Zm,th.prototype.getOverviewMap=th.prototype.gl,t("ol.control.Rotate",so),t("ol.control.Rotate.render",ao),t("ol.control.ScaleLine",nh),nh.prototype.getUnits=nh.prototype.C,t("ol.control.ScaleLine.render",ah),nh.prototype.setUnits=nh.prototype.I,t("ol.control.Zoom",po),t("ol.control.ZoomSlider",lh),t("ol.control.ZoomSlider.render",ch),t("ol.control.ZoomToExtent",gh),Le.prototype.changed=Le.prototype.s,Le.prototype.dispatchEvent=Le.prototype.b,Le.prototype.getRevision=Le.prototype.L,Le.prototype.on=Le.prototype.J,Le.prototype.un=Le.prototype.K,ke.prototype.getKeys=ke.prototype.O,ke.prototype.getProperties=ke.prototype.N,ke.prototype.setProperties=ke.prototype.H,ke.prototype.unset=ke.prototype.P,ke.prototype.changed=ke.prototype.s,ke.prototype.dispatchEvent=ke.prototype.b,ke.prototype.getRevision=ke.prototype.L,ke.prototype.on=ke.prototype.J,ke.prototype.un=ke.prototype.K,dh.prototype.getKeys=dh.prototype.O,dh.prototype.getProperties=dh.prototype.N,dh.prototype.setProperties=dh.prototype.H,dh.prototype.unset=dh.prototype.P,dh.prototype.changed=dh.prototype.s,dh.prototype.dispatchEvent=dh.prototype.b,dh.prototype.getRevision=dh.prototype.L,dh.prototype.on=dh.prototype.J,dh.prototype.un=dh.prototype.K,Nh.prototype.getKeys=Nh.prototype.O,Nh.prototype.getProperties=Nh.prototype.N,Nh.prototype.setProperties=Nh.prototype.H,Nh.prototype.unset=Nh.prototype.P,Nh.prototype.changed=Nh.prototype.s,Nh.prototype.dispatchEvent=Nh.prototype.b,Nh.prototype.getRevision=Nh.prototype.L,Nh.prototype.on=Nh.prototype.J,Nh.prototype.un=Nh.prototype.K,Jd.prototype.getKeys=Jd.prototype.O,Jd.prototype.getProperties=Jd.prototype.N,Jd.prototype.setProperties=Jd.prototype.H,Jd.prototype.unset=Jd.prototype.P,Jd.prototype.changed=Jd.prototype.s,Jd.prototype.dispatchEvent=Jd.prototype.b,Jd.prototype.getRevision=Jd.prototype.L,Jd.prototype.on=Jd.prototype.J,Jd.prototype.un=Jd.prototype.K,uv.prototype.getTileCoord=uv.prototype.f,Zp.prototype.getKeys=Zp.prototype.O,Zp.prototype.getProperties=Zp.prototype.N,Zp.prototype.setProperties=Zp.prototype.H,Zp.prototype.unset=Zp.prototype.P,Zp.prototype.changed=Zp.prototype.s,Zp.prototype.dispatchEvent=Zp.prototype.b,Zp.prototype.getRevision=Zp.prototype.L,Zp.prototype.on=Zp.prototype.J,Zp.prototype.un=Zp.prototype.K,Kp.prototype.getKeys=Kp.prototype.O,Kp.prototype.getProperties=Kp.prototype.N,Kp.prototype.setProperties=Kp.prototype.H,Kp.prototype.unset=Kp.prototype.P,Kp.prototype.changed=Kp.prototype.s,Kp.prototype.dispatchEvent=Kp.prototype.b,Kp.prototype.getRevision=Kp.prototype.L,Kp.prototype.on=Kp.prototype.J,Kp.prototype.un=Kp.prototype.K,vx.prototype.getTileCoord=vx.prototype.f,mx.prototype.getTileCoord=mx.prototype.f,Er.prototype.getKeys=Er.prototype.O,Er.prototype.getProperties=Er.prototype.N,Er.prototype.setProperties=Er.prototype.H,Er.prototype.unset=Er.prototype.P,Er.prototype.changed=Er.prototype.s,Er.prototype.dispatchEvent=Er.prototype.b,Er.prototype.getRevision=Er.prototype.L,Er.prototype.on=Er.prototype.J,Er.prototype.un=Er.prototype.K,xx.prototype.forEachTileCoord=xx.prototype.Rf,xx.prototype.getMaxZoom=xx.prototype.Ti,xx.prototype.getMinZoom=xx.prototype.Ui,xx.prototype.getOrigin=xx.prototype.Pc,xx.prototype.getResolution=xx.prototype.Da,xx.prototype.getResolutions=xx.prototype.Vi,xx.prototype.getTileCoordExtent=xx.prototype.Aa,xx.prototype.getTileCoordForCoordAndResolution=xx.prototype.Be,xx.prototype.getTileCoordForCoordAndZ=xx.prototype.bg,xx.prototype.getTileSize=xx.prototype.gb,xx.prototype.getZForResolution=xx.prototype.tc,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,Ah.prototype.getAngle=Ah.prototype.Pi,Ah.prototype.getFill=Ah.prototype.Fa,Ah.prototype.getPoints=Ah.prototype.Qi,Ah.prototype.getRadius=Ah.prototype.Ri,Ah.prototype.getRadius2=Ah.prototype.Fh,Ah.prototype.getStroke=Ah.prototype.Ga,Ah.prototype.getOpacity=Ah.prototype.Ze,Ah.prototype.getRotateWithView=Ah.prototype.$e,Ah.prototype.getRotation=Ah.prototype.af,Ah.prototype.getScale=Ah.prototype.bf,Ah.prototype.getSnapToPixel=Ah.prototype.Ae,Ah.prototype.setOpacity=Ah.prototype.td,Ah.prototype.setRotation=Ah.prototype.cf,Ah.prototype.setScale=Ah.prototype.ud,Jc.prototype.getOpacity=Jc.prototype.Ze,Jc.prototype.getRotateWithView=Jc.prototype.$e,Jc.prototype.getRotation=Jc.prototype.af,Jc.prototype.getScale=Jc.prototype.bf,Jc.prototype.getSnapToPixel=Jc.prototype.Ae,Jc.prototype.setOpacity=Jc.prototype.td,Jc.prototype.setRotation=Jc.prototype.cf,Jc.prototype.setScale=Jc.prototype.ud,mb.prototype.getKeys=mb.prototype.O,mb.prototype.getProperties=mb.prototype.N,mb.prototype.setProperties=mb.prototype.H,mb.prototype.unset=mb.prototype.P,mb.prototype.changed=mb.prototype.s,mb.prototype.dispatchEvent=mb.prototype.b,mb.prototype.getRevision=mb.prototype.L,mb.prototype.on=mb.prototype.J,mb.prototype.un=mb.prototype.K,xw.prototype.getAttributions=xw.prototype.ya,xw.prototype.getLogo=xw.prototype.xa,xw.prototype.getProjection=xw.prototype.za,xw.prototype.refresh=xw.prototype.sa,xw.prototype.setAttributions=xw.prototype.ua,xw.prototype.getKeys=xw.prototype.O,xw.prototype.getProperties=xw.prototype.N,xw.prototype.setProperties=xw.prototype.H,xw.prototype.unset=xw.prototype.P,xw.prototype.changed=xw.prototype.s,xw.prototype.dispatchEvent=xw.prototype.b,xw.prototype.getRevision=xw.prototype.L,xw.prototype.on=xw.prototype.J,xw.prototype.un=xw.prototype.K,Ew.prototype.getTileGrid=Ew.prototype.ab,Ew.prototype.refresh=Ew.prototype.sa,Ew.prototype.getAttributions=Ew.prototype.ya,Ew.prototype.getLogo=Ew.prototype.xa,Ew.prototype.getProjection=Ew.prototype.za,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,Tw.prototype.getTileLoadFunction=Tw.prototype.pb,Tw.prototype.getTileUrlFunction=Tw.prototype.qb,Tw.prototype.getUrls=Tw.prototype.rb,Tw.prototype.setTileLoadFunction=Tw.prototype.vb,Tw.prototype.setTileUrlFunction=Tw.prototype.cb,Tw.prototype.setUrl=Tw.prototype.jb,Tw.prototype.setUrls=Tw.prototype.eb,Tw.prototype.getTileGrid=Tw.prototype.ab,Tw.prototype.refresh=Tw.prototype.sa,Tw.prototype.getAttributions=Tw.prototype.ya,Tw.prototype.getLogo=Tw.prototype.xa,Tw.prototype.getProjection=Tw.prototype.za,Tw.prototype.setAttributions=Tw.prototype.ua,Tw.prototype.getKeys=Tw.prototype.O,Tw.prototype.getProperties=Tw.prototype.N,Tw.prototype.setProperties=Tw.prototype.H,Tw.prototype.unset=Tw.prototype.P,Tw.prototype.changed=Tw.prototype.s,Tw.prototype.dispatchEvent=Tw.prototype.b,Tw.prototype.getRevision=Tw.prototype.L,Tw.prototype.on=Tw.prototype.J,Tw.prototype.un=Tw.prototype.K,Rw.prototype.setRenderReprojectionEdges=Rw.prototype.Pb,Rw.prototype.setTileGridForProjection=Rw.prototype.Qb,Rw.prototype.getTileLoadFunction=Rw.prototype.pb,Rw.prototype.getTileUrlFunction=Rw.prototype.qb,Rw.prototype.getUrls=Rw.prototype.rb,Rw.prototype.setTileLoadFunction=Rw.prototype.vb,Rw.prototype.setTileUrlFunction=Rw.prototype.cb,Rw.prototype.setUrl=Rw.prototype.jb,Rw.prototype.setUrls=Rw.prototype.eb,Rw.prototype.getTileGrid=Rw.prototype.ab,Rw.prototype.refresh=Rw.prototype.sa,Rw.prototype.getAttributions=Rw.prototype.ya,Rw.prototype.getLogo=Rw.prototype.xa,Rw.prototype.getProjection=Rw.prototype.za,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,Nw.prototype.setRenderReprojectionEdges=Nw.prototype.Pb,Nw.prototype.setTileGridForProjection=Nw.prototype.Qb,Nw.prototype.getTileLoadFunction=Nw.prototype.pb,Nw.prototype.getTileUrlFunction=Nw.prototype.qb,Nw.prototype.getUrls=Nw.prototype.rb,Nw.prototype.setTileLoadFunction=Nw.prototype.vb,Nw.prototype.setTileUrlFunction=Nw.prototype.cb,Nw.prototype.setUrl=Nw.prototype.jb,Nw.prototype.setUrls=Nw.prototype.eb,Nw.prototype.getTileGrid=Nw.prototype.ab,Nw.prototype.refresh=Nw.prototype.sa,Nw.prototype.getAttributions=Nw.prototype.ya,Nw.prototype.getLogo=Nw.prototype.xa,Nw.prototype.getProjection=Nw.prototype.za,Nw.prototype.setAttributions=Nw.prototype.ua,Nw.prototype.getKeys=Nw.prototype.O,Nw.prototype.getProperties=Nw.prototype.N,Nw.prototype.setProperties=Nw.prototype.H,Nw.prototype.unset=Nw.prototype.P,Nw.prototype.changed=Nw.prototype.s,Nw.prototype.dispatchEvent=Nw.prototype.b,Nw.prototype.getRevision=Nw.prototype.L,Nw.prototype.on=Nw.prototype.J,Nw.prototype.un=Nw.prototype.K,Fw.prototype.setRenderReprojectionEdges=Fw.prototype.Pb,Fw.prototype.setTileGridForProjection=Fw.prototype.Qb,Fw.prototype.getTileLoadFunction=Fw.prototype.pb,Fw.prototype.getTileUrlFunction=Fw.prototype.qb,Fw.prototype.getUrls=Fw.prototype.rb,Fw.prototype.setTileLoadFunction=Fw.prototype.vb,Fw.prototype.setTileUrlFunction=Fw.prototype.cb,Fw.prototype.setUrl=Fw.prototype.jb,Fw.prototype.setUrls=Fw.prototype.eb,Fw.prototype.getTileGrid=Fw.prototype.ab,Fw.prototype.refresh=Fw.prototype.sa,Fw.prototype.getAttributions=Fw.prototype.ya,Fw.prototype.getLogo=Fw.prototype.xa,Fw.prototype.getProjection=Fw.prototype.za,Fw.prototype.setAttributions=Fw.prototype.ua,Fw.prototype.getKeys=Fw.prototype.O,Fw.prototype.getProperties=Fw.prototype.N,Fw.prototype.setProperties=Fw.prototype.H,Fw.prototype.unset=Fw.prototype.P,Fw.prototype.changed=Fw.prototype.s,Fw.prototype.dispatchEvent=Fw.prototype.b,Fw.prototype.getRevision=Fw.prototype.L,Fw.prototype.on=Fw.prototype.J,Fw.prototype.un=Fw.prototype.K,Sb.prototype.getAttributions=Sb.prototype.ya,Sb.prototype.getLogo=Sb.prototype.xa,Sb.prototype.getProjection=Sb.prototype.za,Sb.prototype.refresh=Sb.prototype.sa,Sb.prototype.setAttributions=Sb.prototype.ua,Sb.prototype.getKeys=Sb.prototype.O,Sb.prototype.getProperties=Sb.prototype.N,Sb.prototype.setProperties=Sb.prototype.H,Sb.prototype.unset=Sb.prototype.P,Sb.prototype.changed=Sb.prototype.s,Sb.prototype.dispatchEvent=Sb.prototype.b,Sb.prototype.getRevision=Sb.prototype.L,Sb.prototype.on=Sb.prototype.J,Sb.prototype.un=Sb.prototype.K,Ow.prototype.addFeature=Ow.prototype.yb,Ow.prototype.addFeatures=Ow.prototype.cd,Ow.prototype.forEachFeature=Ow.prototype.sh,Ow.prototype.forEachFeatureInExtent=Ow.prototype.$b,Ow.prototype.forEachFeatureIntersectingExtent=Ow.prototype.th,Ow.prototype.getFeaturesCollection=Ow.prototype.Ah,Ow.prototype.getFeatures=Ow.prototype.Xe,Ow.prototype.getFeaturesAtCoordinate=Ow.prototype.zh,Ow.prototype.getFeaturesInExtent=Ow.prototype.Uf,Ow.prototype.getClosestFeatureToCoordinate=Ow.prototype.vh,Ow.prototype.getExtent=Ow.prototype.G,Ow.prototype.getFeatureById=Ow.prototype.yh,Ow.prototype.getFormat=Ow.prototype.Mi,Ow.prototype.getUrl=Ow.prototype.Ni,Ow.prototype.removeFeature=Ow.prototype.Gb,Ow.prototype.getAttributions=Ow.prototype.ya,Ow.prototype.getLogo=Ow.prototype.xa,Ow.prototype.getProjection=Ow.prototype.za,Ow.prototype.refresh=Ow.prototype.sa,Ow.prototype.setAttributions=Ow.prototype.ua,Ow.prototype.getKeys=Ow.prototype.O,Ow.prototype.getProperties=Ow.prototype.N,Ow.prototype.setProperties=Ow.prototype.H,Ow.prototype.unset=Ow.prototype.P,Ow.prototype.changed=Ow.prototype.s,Ow.prototype.dispatchEvent=Ow.prototype.b,Ow.prototype.getRevision=Ow.prototype.L,Ow.prototype.on=Ow.prototype.J,Ow.prototype.un=Ow.prototype.K,Wm.prototype.getAttributions=Wm.prototype.ya,Wm.prototype.getLogo=Wm.prototype.xa,Wm.prototype.getProjection=Wm.prototype.za,Wm.prototype.refresh=Wm.prototype.sa,Wm.prototype.setAttributions=Wm.prototype.ua,Wm.prototype.getKeys=Wm.prototype.O,Wm.prototype.getProperties=Wm.prototype.N,Wm.prototype.setProperties=Wm.prototype.H,Wm.prototype.unset=Wm.prototype.P,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,Bw.prototype.getAttributions=Bw.prototype.ya,Bw.prototype.getLogo=Bw.prototype.xa,Bw.prototype.getProjection=Bw.prototype.za,Bw.prototype.refresh=Bw.prototype.sa,Bw.prototype.setAttributions=Bw.prototype.ua,Bw.prototype.getKeys=Bw.prototype.O,Bw.prototype.getProperties=Bw.prototype.N,Bw.prototype.setProperties=Bw.prototype.H,Bw.prototype.unset=Bw.prototype.P,Bw.prototype.changed=Bw.prototype.s,Bw.prototype.dispatchEvent=Bw.prototype.b,Bw.prototype.getRevision=Bw.prototype.L,Bw.prototype.on=Bw.prototype.J,Bw.prototype.un=Bw.prototype.K,Jm.prototype.getAttributions=Jm.prototype.ya,Jm.prototype.getLogo=Jm.prototype.xa,Jm.prototype.getProjection=Jm.prototype.za,Jm.prototype.refresh=Jm.prototype.sa,Jm.prototype.setAttributions=Jm.prototype.ua,Jm.prototype.getKeys=Jm.prototype.O,Jm.prototype.getProperties=Jm.prototype.N,Jm.prototype.setProperties=Jm.prototype.H,Jm.prototype.unset=Jm.prototype.P,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,Xw.prototype.getAttributions=Xw.prototype.ya,Xw.prototype.getLogo=Xw.prototype.xa,Xw.prototype.getProjection=Xw.prototype.za,Xw.prototype.refresh=Xw.prototype.sa,Xw.prototype.setAttributions=Xw.prototype.ua,Xw.prototype.getKeys=Xw.prototype.O,Xw.prototype.getProperties=Xw.prototype.N,Xw.prototype.setProperties=Xw.prototype.H,Xw.prototype.unset=Xw.prototype.P,Xw.prototype.changed=Xw.prototype.s,Xw.prototype.dispatchEvent=Xw.prototype.b,Xw.prototype.getRevision=Xw.prototype.L,Xw.prototype.on=Xw.prototype.J,Xw.prototype.un=Xw.prototype.K,Vw.prototype.getAttributions=Vw.prototype.ya,Vw.prototype.getLogo=Vw.prototype.xa,Vw.prototype.getProjection=Vw.prototype.za,Vw.prototype.refresh=Vw.prototype.sa,Vw.prototype.setAttributions=Vw.prototype.ua,Vw.prototype.getKeys=Vw.prototype.O,Vw.prototype.getProperties=Vw.prototype.N,Vw.prototype.setProperties=Vw.prototype.H,Vw.prototype.unset=Vw.prototype.P,Vw.prototype.changed=Vw.prototype.s,Vw.prototype.dispatchEvent=Vw.prototype.b,Vw.prototype.getRevision=Vw.prototype.L,Vw.prototype.on=Vw.prototype.J,Vw.prototype.un=Vw.prototype.K,_m.prototype.getAttributions=_m.prototype.ya,_m.prototype.getLogo=_m.prototype.xa,_m.prototype.getProjection=_m.prototype.za,_m.prototype.refresh=_m.prototype.sa,_m.prototype.setAttributions=_m.prototype.ua,_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,Ww.prototype.getAttributions=Ww.prototype.ya,Ww.prototype.getLogo=Ww.prototype.xa,Ww.prototype.getProjection=Ww.prototype.za,Ww.prototype.refresh=Ww.prototype.sa,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.getAttributions=qw.prototype.ya,qw.prototype.getLogo=qw.prototype.xa,qw.prototype.getProjection=qw.prototype.za,qw.prototype.refresh=qw.prototype.sa,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,tx.prototype.setRenderReprojectionEdges=tx.prototype.Pb,tx.prototype.setTileGridForProjection=tx.prototype.Qb,tx.prototype.getTileLoadFunction=tx.prototype.pb,tx.prototype.getTileUrlFunction=tx.prototype.qb,tx.prototype.getUrls=tx.prototype.rb,tx.prototype.setTileLoadFunction=tx.prototype.vb,tx.prototype.setTileUrlFunction=tx.prototype.cb,tx.prototype.setUrl=tx.prototype.jb,tx.prototype.setUrls=tx.prototype.eb,tx.prototype.getTileGrid=tx.prototype.ab,tx.prototype.refresh=tx.prototype.sa,tx.prototype.getAttributions=tx.prototype.ya,tx.prototype.getLogo=tx.prototype.xa,tx.prototype.getProjection=tx.prototype.za,tx.prototype.setAttributions=tx.prototype.ua,tx.prototype.getKeys=tx.prototype.O,tx.prototype.getProperties=tx.prototype.N,tx.prototype.setProperties=tx.prototype.H,tx.prototype.unset=tx.prototype.P,tx.prototype.changed=tx.prototype.s,tx.prototype.dispatchEvent=tx.prototype.b,tx.prototype.getRevision=tx.prototype.L,tx.prototype.on=tx.prototype.J,tx.prototype.un=tx.prototype.K,rx.prototype.setRenderReprojectionEdges=rx.prototype.Pb,rx.prototype.setTileGridForProjection=rx.prototype.Qb,rx.prototype.getTileLoadFunction=rx.prototype.pb,rx.prototype.getTileUrlFunction=rx.prototype.qb,rx.prototype.getUrls=rx.prototype.rb,rx.prototype.setTileLoadFunction=rx.prototype.vb,rx.prototype.setTileUrlFunction=rx.prototype.cb,rx.prototype.setUrl=rx.prototype.jb,rx.prototype.setUrls=rx.prototype.eb,rx.prototype.getTileGrid=rx.prototype.ab,rx.prototype.refresh=rx.prototype.sa,rx.prototype.getAttributions=rx.prototype.ya,rx.prototype.getLogo=rx.prototype.xa,rx.prototype.getProjection=rx.prototype.za,rx.prototype.setAttributions=rx.prototype.ua,rx.prototype.getKeys=rx.prototype.O,rx.prototype.getProperties=rx.prototype.N,rx.prototype.setProperties=rx.prototype.H,rx.prototype.unset=rx.prototype.P,rx.prototype.changed=rx.prototype.s,rx.prototype.dispatchEvent=rx.prototype.b,rx.prototype.getRevision=rx.prototype.L,rx.prototype.on=rx.prototype.J,rx.prototype.un=rx.prototype.K,sx.prototype.getTileGrid=sx.prototype.ab,sx.prototype.refresh=sx.prototype.sa,sx.prototype.getAttributions=sx.prototype.ya,sx.prototype.getLogo=sx.prototype.xa,sx.prototype.getProjection=sx.prototype.za,sx.prototype.setAttributions=sx.prototype.ua,sx.prototype.getKeys=sx.prototype.O,sx.prototype.getProperties=sx.prototype.N,sx.prototype.setProperties=sx.prototype.H,sx.prototype.unset=sx.prototype.P,sx.prototype.changed=sx.prototype.s,sx.prototype.dispatchEvent=sx.prototype.b,sx.prototype.getRevision=sx.prototype.L,sx.prototype.on=sx.prototype.J,sx.prototype.un=sx.prototype.K,px.prototype.setRenderReprojectionEdges=px.prototype.Pb,px.prototype.setTileGridForProjection=px.prototype.Qb,px.prototype.getTileLoadFunction=px.prototype.pb,px.prototype.getTileUrlFunction=px.prototype.qb,px.prototype.getUrls=px.prototype.rb,px.prototype.setTileLoadFunction=px.prototype.vb,px.prototype.setTileUrlFunction=px.prototype.cb,px.prototype.setUrl=px.prototype.jb,px.prototype.setUrls=px.prototype.eb,px.prototype.getTileGrid=px.prototype.ab,px.prototype.refresh=px.prototype.sa,px.prototype.getAttributions=px.prototype.ya,px.prototype.getLogo=px.prototype.xa,px.prototype.getProjection=px.prototype.za,px.prototype.setAttributions=px.prototype.ua,px.prototype.getKeys=px.prototype.O,px.prototype.getProperties=px.prototype.N,px.prototype.setProperties=px.prototype.H,px.prototype.unset=px.prototype.P,px.prototype.changed=px.prototype.s,px.prototype.dispatchEvent=px.prototype.b,px.prototype.getRevision=px.prototype.L,px.prototype.on=px.prototype.J,px.prototype.un=px.prototype.K,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,wx.prototype.getTileLoadFunction=wx.prototype.pb,wx.prototype.getTileUrlFunction=wx.prototype.qb,wx.prototype.getUrls=wx.prototype.rb,wx.prototype.setTileLoadFunction=wx.prototype.vb,wx.prototype.setTileUrlFunction=wx.prototype.cb,wx.prototype.setUrl=wx.prototype.jb,wx.prototype.setUrls=wx.prototype.eb,wx.prototype.getTileGrid=wx.prototype.ab,wx.prototype.refresh=wx.prototype.sa,wx.prototype.getAttributions=wx.prototype.ya,wx.prototype.getLogo=wx.prototype.xa,wx.prototype.getProjection=wx.prototype.za,wx.prototype.setAttributions=wx.prototype.ua,wx.prototype.getKeys=wx.prototype.O,wx.prototype.getProperties=wx.prototype.N,wx.prototype.setProperties=wx.prototype.H,wx.prototype.unset=wx.prototype.P,wx.prototype.changed=wx.prototype.s,wx.prototype.dispatchEvent=wx.prototype.b,wx.prototype.getRevision=wx.prototype.L,wx.prototype.on=wx.prototype.J,wx.prototype.un=wx.prototype.K,Mx.prototype.setRenderReprojectionEdges=Mx.prototype.Pb,Mx.prototype.setTileGridForProjection=Mx.prototype.Qb,Mx.prototype.getTileLoadFunction=Mx.prototype.pb,Mx.prototype.getTileUrlFunction=Mx.prototype.qb,Mx.prototype.getUrls=Mx.prototype.rb,Mx.prototype.setTileLoadFunction=Mx.prototype.vb,Mx.prototype.setTileUrlFunction=Mx.prototype.cb,Mx.prototype.setUrl=Mx.prototype.jb,Mx.prototype.setUrls=Mx.prototype.eb,Mx.prototype.getTileGrid=Mx.prototype.ab,Mx.prototype.refresh=Mx.prototype.sa,Mx.prototype.getAttributions=Mx.prototype.ya,Mx.prototype.getLogo=Mx.prototype.xa,Mx.prototype.getProjection=Mx.prototype.za,Mx.prototype.setAttributions=Mx.prototype.ua,Mx.prototype.getKeys=Mx.prototype.O,Mx.prototype.getProperties=Mx.prototype.N,Mx.prototype.setProperties=Mx.prototype.H,Mx.prototype.unset=Mx.prototype.P,Mx.prototype.changed=Mx.prototype.s,Mx.prototype.dispatchEvent=Mx.prototype.b,Mx.prototype.getRevision=Mx.prototype.L,Mx.prototype.on=Mx.prototype.J,Mx.prototype.un=Mx.prototype.K,Ax.prototype.setRenderReprojectionEdges=Ax.prototype.Pb,Ax.prototype.setTileGridForProjection=Ax.prototype.Qb,Ax.prototype.getTileLoadFunction=Ax.prototype.pb,Ax.prototype.getTileUrlFunction=Ax.prototype.qb,Ax.prototype.getUrls=Ax.prototype.rb,Ax.prototype.setTileLoadFunction=Ax.prototype.vb,Ax.prototype.setTileUrlFunction=Ax.prototype.cb,Ax.prototype.setUrl=Ax.prototype.jb,Ax.prototype.setUrls=Ax.prototype.eb,Ax.prototype.getTileGrid=Ax.prototype.ab,Ax.prototype.refresh=Ax.prototype.sa,Ax.prototype.getAttributions=Ax.prototype.ya,Ax.prototype.getLogo=Ax.prototype.xa,Ax.prototype.getProjection=Ax.prototype.za,Ax.prototype.setAttributions=Ax.prototype.ua,Ax.prototype.getKeys=Ax.prototype.O,Ax.prototype.getProperties=Ax.prototype.N,Ax.prototype.setProperties=Ax.prototype.H,Ax.prototype.unset=Ax.prototype.P,Ax.prototype.changed=Ax.prototype.s,Ax.prototype.dispatchEvent=Ax.prototype.b,Ax.prototype.getRevision=Ax.prototype.L,Ax.prototype.on=Ax.prototype.J,Ax.prototype.un=Ax.prototype.K,yw.prototype.getTileCoord=yw.prototype.f,Kv.prototype.changed=Kv.prototype.s,Kv.prototype.dispatchEvent=Kv.prototype.b,Kv.prototype.getRevision=Kv.prototype.L,Kv.prototype.on=Kv.prototype.J,Kv.prototype.un=Kv.prototype.K,fb.prototype.changed=fb.prototype.s,fb.prototype.dispatchEvent=fb.prototype.b,fb.prototype.getRevision=fb.prototype.L,fb.prototype.on=fb.prototype.J,fb.prototype.un=fb.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,aw.prototype.changed=aw.prototype.s,aw.prototype.dispatchEvent=aw.prototype.b,aw.prototype.getRevision=aw.prototype.L,aw.prototype.on=aw.prototype.J,aw.prototype.un=aw.prototype.K,gb.prototype.changed=gb.prototype.s,gb.prototype.dispatchEvent=gb.prototype.b,gb.prototype.getRevision=gb.prototype.L,gb.prototype.on=gb.prototype.J,gb.prototype.un=gb.prototype.K,Qv.prototype.changed=Qv.prototype.s,Qv.prototype.dispatchEvent=Qv.prototype.b,Qv.prototype.getRevision=Qv.prototype.L,Qv.prototype.on=Qv.prototype.J,Qv.prototype.un=Qv.prototype.K,km.prototype.changed=km.prototype.s,km.prototype.dispatchEvent=km.prototype.b,km.prototype.getRevision=km.prototype.L,km.prototype.on=km.prototype.J,km.prototype.un=km.prototype.K,Dm.prototype.changed=Dm.prototype.s,Dm.prototype.dispatchEvent=Dm.prototype.b,Dm.prototype.getRevision=Dm.prototype.L,Dm.prototype.on=Dm.prototype.J,Dm.prototype.un=Dm.prototype.K,tw.prototype.changed=tw.prototype.s,tw.prototype.dispatchEvent=tw.prototype.b,tw.prototype.getRevision=tw.prototype.L,tw.prototype.on=tw.prototype.J,tw.prototype.un=tw.prototype.K,ab.prototype.changed=ab.prototype.s,ab.prototype.dispatchEvent=ab.prototype.b,ab.prototype.getRevision=ab.prototype.L,ab.prototype.on=ab.prototype.J,ab.prototype.un=ab.prototype.K,hw.prototype.changed=hw.prototype.s,hw.prototype.dispatchEvent=hw.prototype.b,hw.prototype.getRevision=hw.prototype.L,hw.prototype.on=hw.prototype.J,hw.prototype.un=hw.prototype.K,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,Zn.prototype.getExtent=Zn.prototype.G,Zn.prototype.getMaxResolution=Zn.prototype.fc,Zn.prototype.getMinResolution=Zn.prototype.gc,Zn.prototype.getOpacity=Zn.prototype.hc,Zn.prototype.getVisible=Zn.prototype.Mb,Zn.prototype.getZIndex=Zn.prototype.Ba,Zn.prototype.setExtent=Zn.prototype.vc,Zn.prototype.setMaxResolution=Zn.prototype.Ac,Zn.prototype.setMinResolution=Zn.prototype.Bc,Zn.prototype.setOpacity=Zn.prototype.wc,Zn.prototype.setVisible=Zn.prototype.xc,Zn.prototype.setZIndex=Zn.prototype.Vb,Zn.prototype.getKeys=Zn.prototype.O,Zn.prototype.getProperties=Zn.prototype.N,Zn.prototype.setProperties=Zn.prototype.H,Zn.prototype.unset=Zn.prototype.P,Zn.prototype.changed=Zn.prototype.s,Zn.prototype.dispatchEvent=Zn.prototype.b,Zn.prototype.getRevision=Zn.prototype.L,Zn.prototype.on=Zn.prototype.J,Zn.prototype.un=Zn.prototype.K,db.prototype.setSource=db.prototype.Wc,db.prototype.getExtent=db.prototype.G,db.prototype.getMaxResolution=db.prototype.fc,db.prototype.getMinResolution=db.prototype.gc,db.prototype.getOpacity=db.prototype.hc,db.prototype.getVisible=db.prototype.Mb,db.prototype.getZIndex=db.prototype.Ba,db.prototype.setExtent=db.prototype.vc,db.prototype.setMaxResolution=db.prototype.Ac,db.prototype.setMinResolution=db.prototype.Bc,db.prototype.setOpacity=db.prototype.wc,db.prototype.setVisible=db.prototype.xc,db.prototype.setZIndex=db.prototype.Vb,db.prototype.getKeys=db.prototype.O,db.prototype.getProperties=db.prototype.N,db.prototype.setProperties=db.prototype.H,db.prototype.unset=db.prototype.P,db.prototype.changed=db.prototype.s,db.prototype.dispatchEvent=db.prototype.b,db.prototype.getRevision=db.prototype.L,db.prototype.on=db.prototype.J,db.prototype.un=db.prototype.K,Lm.prototype.getSource=Lm.prototype.ha,Lm.prototype.getStyle=Lm.prototype.D,Lm.prototype.getStyleFunction=Lm.prototype.C,Lm.prototype.setStyle=Lm.prototype.g,Lm.prototype.setSource=Lm.prototype.Wc,Lm.prototype.getExtent=Lm.prototype.G,Lm.prototype.getMaxResolution=Lm.prototype.fc,Lm.prototype.getMinResolution=Lm.prototype.gc,Lm.prototype.getOpacity=Lm.prototype.hc,Lm.prototype.getVisible=Lm.prototype.Mb,Lm.prototype.getZIndex=Lm.prototype.Ba,Lm.prototype.setExtent=Lm.prototype.vc,Lm.prototype.setMaxResolution=Lm.prototype.Ac,Lm.prototype.setMinResolution=Lm.prototype.Bc,Lm.prototype.setOpacity=Lm.prototype.wc,Lm.prototype.setVisible=Lm.prototype.xc,Lm.prototype.setZIndex=Lm.prototype.Vb,Lm.prototype.getKeys=Lm.prototype.O,Lm.prototype.getProperties=Lm.prototype.N,Lm.prototype.setProperties=Lm.prototype.H,Lm.prototype.unset=Lm.prototype.P,Lm.prototype.changed=Lm.prototype.s,Lm.prototype.dispatchEvent=Lm.prototype.b,Lm.prototype.getRevision=Lm.prototype.L,Lm.prototype.on=Lm.prototype.J,Lm.prototype.un=Lm.prototype.K,Qm.prototype.setSource=Qm.prototype.Wc,Qm.prototype.getExtent=Qm.prototype.G,Qm.prototype.getMaxResolution=Qm.prototype.fc,Qm.prototype.getMinResolution=Qm.prototype.gc,Qm.prototype.getOpacity=Qm.prototype.hc,Qm.prototype.getVisible=Qm.prototype.Mb,Qm.prototype.getZIndex=Qm.prototype.Ba,Qm.prototype.setExtent=Qm.prototype.vc,Qm.prototype.setMaxResolution=Qm.prototype.Ac,Qm.prototype.setMinResolution=Qm.prototype.Bc,Qm.prototype.setOpacity=Qm.prototype.wc,Qm.prototype.setVisible=Qm.prototype.xc,Qm.prototype.setZIndex=Qm.prototype.Vb,Qm.prototype.getKeys=Qm.prototype.O,Qm.prototype.getProperties=Qm.prototype.N,Qm.prototype.setProperties=Qm.prototype.H,Qm.prototype.unset=Qm.prototype.P,Qm.prototype.changed=Qm.prototype.s,Qm.prototype.dispatchEvent=Qm.prototype.b,Qm.prototype.getRevision=Qm.prototype.L,Qm.prototype.on=Qm.prototype.J,Qm.prototype.un=Qm.prototype.K,pw.prototype.setSource=pw.prototype.Wc,pw.prototype.getExtent=pw.prototype.G,pw.prototype.getMaxResolution=pw.prototype.fc,pw.prototype.getMinResolution=pw.prototype.gc,pw.prototype.getOpacity=pw.prototype.hc,pw.prototype.getVisible=pw.prototype.Mb,pw.prototype.getZIndex=pw.prototype.Ba,pw.prototype.setExtent=pw.prototype.vc,pw.prototype.setMaxResolution=pw.prototype.Ac,pw.prototype.setMinResolution=pw.prototype.Bc,pw.prototype.setOpacity=pw.prototype.wc,pw.prototype.setVisible=pw.prototype.xc,pw.prototype.setZIndex=pw.prototype.Vb,pw.prototype.getKeys=pw.prototype.O,pw.prototype.getProperties=pw.prototype.N,pw.prototype.setProperties=pw.prototype.H,pw.prototype.unset=pw.prototype.P,pw.prototype.changed=pw.prototype.s,pw.prototype.dispatchEvent=pw.prototype.b,pw.prototype.getRevision=pw.prototype.L,pw.prototype.on=pw.prototype.J,pw.prototype.un=pw.prototype.K,cw.prototype.getSource=cw.prototype.ha,cw.prototype.getStyle=cw.prototype.D,cw.prototype.getStyleFunction=cw.prototype.C,cw.prototype.setStyle=cw.prototype.g,cw.prototype.setSource=cw.prototype.Wc,cw.prototype.getExtent=cw.prototype.G,cw.prototype.getMaxResolution=cw.prototype.fc,cw.prototype.getMinResolution=cw.prototype.gc,cw.prototype.getOpacity=cw.prototype.hc,cw.prototype.getVisible=cw.prototype.Mb,cw.prototype.getZIndex=cw.prototype.Ba,cw.prototype.setExtent=cw.prototype.vc,cw.prototype.setMaxResolution=cw.prototype.Ac,cw.prototype.setMinResolution=cw.prototype.Bc,cw.prototype.setOpacity=cw.prototype.wc,cw.prototype.setVisible=cw.prototype.xc,cw.prototype.setZIndex=cw.prototype.Vb,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,Or.prototype.getKeys=Or.prototype.O,Or.prototype.getProperties=Or.prototype.N,Or.prototype.setProperties=Or.prototype.H,Or.prototype.unset=Or.prototype.P,Or.prototype.changed=Or.prototype.s,Or.prototype.dispatchEvent=Or.prototype.b,Or.prototype.getRevision=Or.prototype.L,Or.prototype.on=Or.prototype.J,Or.prototype.un=Or.prototype.K,Xr.prototype.getActive=Xr.prototype.c,Xr.prototype.getMap=Xr.prototype.f,Xr.prototype.setActive=Xr.prototype.Ha,Xr.prototype.getKeys=Xr.prototype.O,Xr.prototype.getProperties=Xr.prototype.N,Xr.prototype.setProperties=Xr.prototype.H,Xr.prototype.unset=Xr.prototype.P,Xr.prototype.changed=Xr.prototype.s,Xr.prototype.dispatchEvent=Xr.prototype.b,Xr.prototype.getRevision=Xr.prototype.L,Xr.prototype.on=Xr.prototype.J,Xr.prototype.un=Xr.prototype.K,yv.prototype.getActive=yv.prototype.c,yv.prototype.getMap=yv.prototype.f,yv.prototype.setActive=yv.prototype.Ha,yv.prototype.getKeys=yv.prototype.O,yv.prototype.getProperties=yv.prototype.N,yv.prototype.setProperties=yv.prototype.H,yv.prototype.unset=yv.prototype.P,yv.prototype.changed=yv.prototype.s,yv.prototype.dispatchEvent=yv.prototype.b,yv.prototype.getRevision=yv.prototype.L,yv.prototype.on=yv.prototype.J,yv.prototype.un=yv.prototype.K,$r.prototype.getActive=$r.prototype.c,$r.prototype.getMap=$r.prototype.f,$r.prototype.setActive=$r.prototype.Ha,$r.prototype.getKeys=$r.prototype.O,$r.prototype.getProperties=$r.prototype.N,$r.prototype.setProperties=$r.prototype.H,$r.prototype.unset=$r.prototype.P,$r.prototype.changed=$r.prototype.s,$r.prototype.dispatchEvent=$r.prototype.b,$r.prototype.getRevision=$r.prototype.L,$r.prototype.on=$r.prototype.J,$r.prototype.un=$r.prototype.K,fn.prototype.getActive=fn.prototype.c,fn.prototype.getMap=fn.prototype.f,fn.prototype.setActive=fn.prototype.Ha,fn.prototype.getKeys=fn.prototype.O,fn.prototype.getProperties=fn.prototype.N,fn.prototype.setProperties=fn.prototype.H,fn.prototype.unset=fn.prototype.P,fn.prototype.changed=fn.prototype.s,fn.prototype.dispatchEvent=fn.prototype.b,fn.prototype.getRevision=fn.prototype.L,fn.prototype.on=fn.prototype.J,fn.prototype.un=fn.prototype.K,en.prototype.getActive=en.prototype.c,en.prototype.getMap=en.prototype.f,en.prototype.setActive=en.prototype.Ha,en.prototype.getKeys=en.prototype.O,en.prototype.getProperties=en.prototype.N,en.prototype.setProperties=en.prototype.H,en.prototype.unset=en.prototype.P,en.prototype.changed=en.prototype.s,en.prototype.dispatchEvent=en.prototype.b,en.prototype.getRevision=en.prototype.L,en.prototype.on=en.prototype.J,en.prototype.un=en.prototype.K,sn.prototype.getActive=sn.prototype.c,sn.prototype.getMap=sn.prototype.f,sn.prototype.setActive=sn.prototype.Ha,sn.prototype.getKeys=sn.prototype.O,sn.prototype.getProperties=sn.prototype.N,sn.prototype.setProperties=sn.prototype.H,sn.prototype.unset=sn.prototype.P,sn.prototype.changed=sn.prototype.s,sn.prototype.dispatchEvent=sn.prototype.b,sn.prototype.getRevision=sn.prototype.L,sn.prototype.on=sn.prototype.J,sn.prototype.un=sn.prototype.K,xv.prototype.getActive=xv.prototype.c,xv.prototype.getMap=xv.prototype.f,xv.prototype.setActive=xv.prototype.Ha,xv.prototype.getKeys=xv.prototype.O,xv.prototype.getProperties=xv.prototype.N,xv.prototype.setProperties=xv.prototype.H,xv.prototype.unset=xv.prototype.P,xv.prototype.changed=xv.prototype.s,xv.prototype.dispatchEvent=xv.prototype.b,xv.prototype.getRevision=xv.prototype.L,xv.prototype.on=xv.prototype.J,xv.prototype.un=xv.prototype.K,Sn.prototype.getGeometry=Sn.prototype.V,Sn.prototype.getActive=Sn.prototype.c,Sn.prototype.getMap=Sn.prototype.f,Sn.prototype.setActive=Sn.prototype.Ha,Sn.prototype.getKeys=Sn.prototype.O,Sn.prototype.getProperties=Sn.prototype.N,Sn.prototype.setProperties=Sn.prototype.H,Sn.prototype.unset=Sn.prototype.P,Sn.prototype.changed=Sn.prototype.s,Sn.prototype.dispatchEvent=Sn.prototype.b,Sn.prototype.getRevision=Sn.prototype.L,Sn.prototype.on=Sn.prototype.J,Sn.prototype.un=Sn.prototype.K,jb.prototype.getActive=jb.prototype.c,jb.prototype.getMap=jb.prototype.f,jb.prototype.setActive=jb.prototype.Ha,jb.prototype.getKeys=jb.prototype.O,jb.prototype.getProperties=jb.prototype.N,jb.prototype.setProperties=jb.prototype.H,jb.prototype.unset=jb.prototype.P,jb.prototype.changed=jb.prototype.s,jb.prototype.dispatchEvent=jb.prototype.b,jb.prototype.getRevision=jb.prototype.L,jb.prototype.on=jb.prototype.J,jb.prototype.un=jb.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,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,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,tm.prototype.getActive=tm.prototype.c,tm.prototype.getMap=tm.prototype.f,tm.prototype.setActive=tm.prototype.Ha,tm.prototype.getKeys=tm.prototype.O,tm.prototype.getProperties=tm.prototype.N,tm.prototype.setProperties=tm.prototype.H,tm.prototype.unset=tm.prototype.P,tm.prototype.changed=tm.prototype.s,tm.prototype.dispatchEvent=tm.prototype.b,tm.prototype.getRevision=tm.prototype.L,tm.prototype.on=tm.prototype.J,tm.prototype.un=tm.prototype.K,Tn.prototype.getActive=Tn.prototype.c,Tn.prototype.getMap=Tn.prototype.f,Tn.prototype.setActive=Tn.prototype.Ha,Tn.prototype.getKeys=Tn.prototype.O,Tn.prototype.getProperties=Tn.prototype.N,Tn.prototype.setProperties=Tn.prototype.H,Tn.prototype.unset=Tn.prototype.P,Tn.prototype.changed=Tn.prototype.s,Tn.prototype.dispatchEvent=Tn.prototype.b,Tn.prototype.getRevision=Tn.prototype.L,Tn.prototype.on=Tn.prototype.J,Tn.prototype.un=Tn.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,kn.prototype.getActive=kn.prototype.c,kn.prototype.getMap=kn.prototype.f,kn.prototype.setActive=kn.prototype.Ha,kn.prototype.getKeys=kn.prototype.O,kn.prototype.getProperties=kn.prototype.N,kn.prototype.setProperties=kn.prototype.H,kn.prototype.unset=kn.prototype.P,kn.prototype.changed=kn.prototype.s,kn.prototype.dispatchEvent=kn.prototype.b,kn.prototype.getRevision=kn.prototype.L,kn.prototype.on=kn.prototype.J,kn.prototype.un=kn.prototype.K,ym.prototype.getActive=ym.prototype.c,ym.prototype.getMap=ym.prototype.f,ym.prototype.setActive=ym.prototype.Ha,ym.prototype.getKeys=ym.prototype.O,ym.prototype.getProperties=ym.prototype.N,ym.prototype.setProperties=ym.prototype.H,ym.prototype.unset=ym.prototype.P,ym.prototype.changed=ym.prototype.s,ym.prototype.dispatchEvent=ym.prototype.b,ym.prototype.getRevision=ym.prototype.L,ym.prototype.on=ym.prototype.J,ym.prototype.un=ym.prototype.K,bm.prototype.getActive=bm.prototype.c,bm.prototype.getMap=bm.prototype.f,bm.prototype.setActive=bm.prototype.Ha,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,Sm.prototype.getActive=Sm.prototype.c,Sm.prototype.getMap=Sm.prototype.f,Sm.prototype.setActive=Sm.prototype.Ha,Sm.prototype.getKeys=Sm.prototype.O,Sm.prototype.getProperties=Sm.prototype.N,Sm.prototype.setProperties=Sm.prototype.H,Sm.prototype.unset=Sm.prototype.P,Sm.prototype.changed=Sm.prototype.s,Sm.prototype.dispatchEvent=Sm.prototype.b,Sm.prototype.getRevision=Sm.prototype.L,Sm.prototype.on=Sm.prototype.J,Sm.prototype.un=Sm.prototype.K,Bi.prototype.getKeys=Bi.prototype.O,Bi.prototype.getProperties=Bi.prototype.N,Bi.prototype.setProperties=Bi.prototype.H,Bi.prototype.unset=Bi.prototype.P,Bi.prototype.changed=Bi.prototype.s,Bi.prototype.dispatchEvent=Bi.prototype.b,Bi.prototype.getRevision=Bi.prototype.L,Bi.prototype.on=Bi.prototype.J,Bi.prototype.un=Bi.prototype.K,Wi.prototype.getClosestPoint=Wi.prototype.Ab,Wi.prototype.intersectsCoordinate=Wi.prototype.sb,Wi.prototype.getExtent=Wi.prototype.G,Wi.prototype.simplify=Wi.prototype.Rb,Wi.prototype.transform=Wi.prototype.tb,Wi.prototype.getKeys=Wi.prototype.O,Wi.prototype.getProperties=Wi.prototype.N,Wi.prototype.setProperties=Wi.prototype.H,Wi.prototype.unset=Wi.prototype.P,Wi.prototype.changed=Wi.prototype.s,Wi.prototype.dispatchEvent=Wi.prototype.b,Wi.prototype.getRevision=Wi.prototype.L,Wi.prototype.on=Wi.prototype.J,Wi.prototype.un=Wi.prototype.K,_d.prototype.getFirstCoordinate=_d.prototype.ac,_d.prototype.getLastCoordinate=_d.prototype.bc,_d.prototype.getLayout=_d.prototype.cc,_d.prototype.getClosestPoint=_d.prototype.Ab,_d.prototype.intersectsCoordinate=_d.prototype.sb,_d.prototype.getExtent=_d.prototype.G,_d.prototype.simplify=_d.prototype.Rb,_d.prototype.getKeys=_d.prototype.O,_d.prototype.getProperties=_d.prototype.N,_d.prototype.setProperties=_d.prototype.H,_d.prototype.unset=_d.prototype.P,_d.prototype.changed=_d.prototype.s,_d.prototype.dispatchEvent=_d.prototype.b,_d.prototype.getRevision=_d.prototype.L,_d.prototype.on=_d.prototype.J,_d.prototype.un=_d.prototype.K,$l.prototype.getClosestPoint=$l.prototype.Ab,$l.prototype.intersectsCoordinate=$l.prototype.sb,$l.prototype.getExtent=$l.prototype.G,$l.prototype.simplify=$l.prototype.Rb,$l.prototype.transform=$l.prototype.tb,$l.prototype.getKeys=$l.prototype.O,$l.prototype.getProperties=$l.prototype.N,$l.prototype.setProperties=$l.prototype.H,$l.prototype.unset=$l.prototype.P,$l.prototype.changed=$l.prototype.s,$l.prototype.dispatchEvent=$l.prototype.b,$l.prototype.getRevision=$l.prototype.L,$l.prototype.on=$l.prototype.J,$l.prototype.un=$l.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,ul.prototype.getFirstCoordinate=ul.prototype.ac,ul.prototype.getLastCoordinate=ul.prototype.bc,ul.prototype.getLayout=ul.prototype.cc,ul.prototype.getClosestPoint=ul.prototype.Ab,ul.prototype.intersectsCoordinate=ul.prototype.sb,ul.prototype.getExtent=ul.prototype.G,ul.prototype.simplify=ul.prototype.Rb,ul.prototype.transform=ul.prototype.tb,ul.prototype.getKeys=ul.prototype.O,ul.prototype.getProperties=ul.prototype.N,ul.prototype.setProperties=ul.prototype.H,ul.prototype.unset=ul.prototype.P,ul.prototype.changed=ul.prototype.s,ul.prototype.dispatchEvent=ul.prototype.b,ul.prototype.getRevision=ul.prototype.L,ul.prototype.on=ul.prototype.J,ul.prototype.un=ul.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,dl.prototype.getFirstCoordinate=dl.prototype.ac,dl.prototype.getLastCoordinate=dl.prototype.bc,dl.prototype.getLayout=dl.prototype.cc,dl.prototype.getClosestPoint=dl.prototype.Ab,dl.prototype.intersectsCoordinate=dl.prototype.sb,dl.prototype.getExtent=dl.prototype.G,dl.prototype.simplify=dl.prototype.Rb,dl.prototype.transform=dl.prototype.tb,dl.prototype.getKeys=dl.prototype.O,dl.prototype.getProperties=dl.prototype.N,dl.prototype.setProperties=dl.prototype.H,dl.prototype.unset=dl.prototype.P,dl.prototype.changed=dl.prototype.s,dl.prototype.dispatchEvent=dl.prototype.b,dl.prototype.getRevision=dl.prototype.L,dl.prototype.on=dl.prototype.J,dl.prototype.un=dl.prototype.K,vl.prototype.getFirstCoordinate=vl.prototype.ac,vl.prototype.getLastCoordinate=vl.prototype.bc,vl.prototype.getLayout=vl.prototype.cc,vl.prototype.getClosestPoint=vl.prototype.Ab,vl.prototype.intersectsCoordinate=vl.prototype.sb,vl.prototype.getExtent=vl.prototype.G,vl.prototype.simplify=vl.prototype.Rb,vl.prototype.transform=vl.prototype.tb,vl.prototype.getKeys=vl.prototype.O,vl.prototype.getProperties=vl.prototype.N,vl.prototype.setProperties=vl.prototype.H,vl.prototype.unset=vl.prototype.P,vl.prototype.changed=vl.prototype.s,vl.prototype.dispatchEvent=vl.prototype.b,vl.prototype.getRevision=vl.prototype.L,vl.prototype.on=vl.prototype.J,vl.prototype.un=vl.prototype.K,hr.prototype.getFirstCoordinate=hr.prototype.ac,hr.prototype.getLastCoordinate=hr.prototype.bc,hr.prototype.getLayout=hr.prototype.cc,hr.prototype.getClosestPoint=hr.prototype.Ab,hr.prototype.intersectsCoordinate=hr.prototype.sb,hr.prototype.getExtent=hr.prototype.G,hr.prototype.simplify=hr.prototype.Rb,hr.prototype.transform=hr.prototype.tb,hr.prototype.getKeys=hr.prototype.O,hr.prototype.getProperties=hr.prototype.N,hr.prototype.setProperties=hr.prototype.H,hr.prototype.unset=hr.prototype.P,hr.prototype.changed=hr.prototype.s,hr.prototype.dispatchEvent=hr.prototype.b,hr.prototype.getRevision=hr.prototype.L,hr.prototype.on=hr.prototype.J,hr.prototype.un=hr.prototype.K,wr.prototype.getFirstCoordinate=wr.prototype.ac,wr.prototype.getLastCoordinate=wr.prototype.bc,wr.prototype.getLayout=wr.prototype.cc,wr.prototype.getClosestPoint=wr.prototype.Ab,wr.prototype.intersectsCoordinate=wr.prototype.sb,wr.prototype.getExtent=wr.prototype.G,wr.prototype.simplify=wr.prototype.Rb,wr.prototype.transform=wr.prototype.tb,wr.prototype.getKeys=wr.prototype.O,wr.prototype.getProperties=wr.prototype.N,wr.prototype.setProperties=wr.prototype.H,wr.prototype.unset=wr.prototype.P,wr.prototype.changed=wr.prototype.s,wr.prototype.dispatchEvent=wr.prototype.b,wr.prototype.getRevision=wr.prototype.L,wr.prototype.on=wr.prototype.J,wr.prototype.un=wr.prototype.K,Pu.prototype.readFeatures=Pu.prototype.Oa,Fu.prototype.readFeatures=Fu.prototype.Oa,Pu.prototype.readFeatures=Pu.prototype.Oa,$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,Qe.prototype.getMap=Qe.prototype.g,Qe.prototype.setTarget=Qe.prototype.f,Qe.prototype.getKeys=Qe.prototype.O,Qe.prototype.getProperties=Qe.prototype.N,Qe.prototype.setProperties=Qe.prototype.H,Qe.prototype.unset=Qe.prototype.P,Qe.prototype.changed=Qe.prototype.s,Qe.prototype.dispatchEvent=Qe.prototype.b,Qe.prototype.getRevision=Qe.prototype.L,Qe.prototype.on=Qe.prototype.J,Qe.prototype.un=Qe.prototype.K,lo.prototype.getMap=lo.prototype.g,lo.prototype.setTarget=lo.prototype.f,lo.prototype.getKeys=lo.prototype.O,lo.prototype.getProperties=lo.prototype.N,lo.prototype.setProperties=lo.prototype.H,lo.prototype.unset=lo.prototype.P,lo.prototype.changed=lo.prototype.s,lo.prototype.dispatchEvent=lo.prototype.b,lo.prototype.getRevision=lo.prototype.L,lo.prototype.on=lo.prototype.J,lo.prototype.un=lo.prototype.K,vo.prototype.getMap=vo.prototype.g,vo.prototype.setTarget=vo.prototype.f,vo.prototype.getKeys=vo.prototype.O,vo.prototype.getProperties=vo.prototype.N,vo.prototype.setProperties=vo.prototype.H,vo.prototype.unset=vo.prototype.P,vo.prototype.changed=vo.prototype.s,vo.prototype.dispatchEvent=vo.prototype.b,vo.prototype.getRevision=vo.prototype.L,vo.prototype.on=vo.prototype.J,vo.prototype.un=vo.prototype.K,th.prototype.getMap=th.prototype.g,th.prototype.setTarget=th.prototype.f,th.prototype.getKeys=th.prototype.O,th.prototype.getProperties=th.prototype.N,th.prototype.setProperties=th.prototype.H,th.prototype.unset=th.prototype.P,th.prototype.changed=th.prototype.s,th.prototype.dispatchEvent=th.prototype.b,th.prototype.getRevision=th.prototype.L,th.prototype.on=th.prototype.J,th.prototype.un=th.prototype.K,so.prototype.getMap=so.prototype.g,so.prototype.setTarget=so.prototype.f,so.prototype.getKeys=so.prototype.O,so.prototype.getProperties=so.prototype.N,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.un=so.prototype.K,nh.prototype.getMap=nh.prototype.g,nh.prototype.setTarget=nh.prototype.f,nh.prototype.getKeys=nh.prototype.O,nh.prototype.getProperties=nh.prototype.N,nh.prototype.setProperties=nh.prototype.H,nh.prototype.unset=nh.prototype.P,nh.prototype.changed=nh.prototype.s,nh.prototype.dispatchEvent=nh.prototype.b,nh.prototype.getRevision=nh.prototype.L,nh.prototype.on=nh.prototype.J,nh.prototype.un=nh.prototype.K,po.prototype.getMap=po.prototype.g,po.prototype,po.prototype.setMap,po.prototype.setTarget=po.prototype.f,po.prototype,po.prototype.get,po.prototype.getKeys=po.prototype.O,po.prototype.getProperties=po.prototype.N,po.prototype,po.prototype.set,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,po.prototype.once,po.prototype.un=po.prototype.K,lh.prototype.getMap=lh.prototype.g,lh.prototype.setTarget=lh.prototype.f,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,gh.prototype.getMap=gh.prototype.g,gh.prototype.setTarget=gh.prototype.f,gh.prototype.getKeys=gh.prototype.O,gh.prototype.getProperties=gh.prototype.N,gh.prototype.setProperties=gh.prototype.H,gh.prototype.unset=gh.prototype.P,gh.prototype.changed=gh.prototype.s,gh.prototype.dispatchEvent=gh.prototype.b,gh.prototype.getRevision=gh.prototype.L,gh.prototype.on=gh.prototype.J,gh.prototype.un=gh.prototype.K,r.ol}) |